@botpress/client 1.35.0 → 1.37.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 Vk=Object.create;var Dt=Object.defineProperty;var Kk=Object.getOwnPropertyDescriptor;var $k=Object.getOwnPropertyNames;var Jk=Object.getPrototypeOf,zk=Object.prototype.hasOwnProperty;var jk=(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)Dt(e,n,{get:t[n],enumerable:!0})},Yk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $k(t))!zk.call(e,a)&&a!==n&&Dt(e,a,{get:()=>t[a],enumerable:!(r=Kk(t,a))||r.enumerable});return e};var te=(e,t,n)=>(n=e!=null?Vk(Jk(e)):{},Yk(t||!e||!e.__esModule?Dt(n,"default",{value:e,enumerable:!0}):n,e));var Ha=m((hB,Qa)=>{"use strict";var Zk=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"]);Qa.exports=e=>!Zk.has(e&&e.code)});var Ja=m(()=>{});var za=m(()=>{});var uo=m((SB,po)=>{"use strict";po.exports=Object});var Fs=m((LB,co)=>{"use strict";co.exports=Error});var Ms=m((WB,lo)=>{"use strict";lo.exports=EvalError});var Os=m((DB,go)=>{"use strict";go.exports=RangeError});var Ns=m((QB,yo)=>{"use strict";yo.exports=ReferenceError});var ct=m((HB,Ro)=>{"use strict";Ro.exports=SyntaxError});var Re=m((_B,mo)=>{"use strict";mo.exports=TypeError});var Vs=m((FB,qo)=>{"use strict";qo.exports=URIError});var Ks=m((MB,ho)=>{"use strict";ho.exports=Math.abs});var $s=m((OB,bo)=>{"use strict";bo.exports=Math.floor});var Js=m((NB,fo)=>{"use strict";fo.exports=Math.max});var zs=m((VB,xo)=>{"use strict";xo.exports=Math.min});var js=m((KB,Io)=>{"use strict";Io.exports=Math.pow});var Ys=m(($B,ko)=>{"use strict";ko.exports=Math.round});var Ao=m((JB,Po)=>{"use strict";Po.exports=Number.isNaN||function(t){return t!==t}});var Zs=m((zB,vo)=>{"use strict";var HP=Ao();vo.exports=function(t){return HP(t)||t===0?t:t<0?-1:1}});var Bo=m((jB,To)=>{"use strict";To.exports=Object.getOwnPropertyDescriptor});var we=m((YB,Co)=>{"use strict";var dt=Bo();if(dt)try{dt([],"length")}catch{dt=null}Co.exports=dt});var Ue=m((ZB,wo)=>{"use strict";var lt=Object.defineProperty||!1;if(lt)try{lt({},"a",{value:1})}catch{lt=!1}wo.exports=lt});var Go=m((XB,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((eC,So)=>{"use strict";var Eo=typeof Symbol<"u"&&Symbol,_P=Go();So.exports=function(){return typeof Eo!="function"||typeof Symbol!="function"||typeof Eo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_P()}});var gt=m((tC,Lo)=>{"use strict";Lo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var er=m((sC,Wo)=>{"use strict";Wo.exports=Object});var yt=m((rC,Do)=>{"use strict";var FP=er();Do.exports=FP.getPrototypeOf||null});var _o=m((nC,Ho)=>{"use strict";var MP="Function.prototype.bind called on incompatible ",OP=Object.prototype.toString,NP=Math.max,VP="[object Function]",Qo=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},KP=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},$P=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"||OP.apply(n)!==VP)throw new TypeError(MP+n);for(var r=KP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,Qo(r,arguments));return Object(y)===y?y:this}return n.apply(t,Qo(r,arguments))},i=NP(0,n.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+$P(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 me=m((aC,Fo)=>{"use strict";var JP=_o();Fo.exports=Function.prototype.bind||JP});var Rt=m((oC,Mo)=>{"use strict";Mo.exports=Function.prototype.call});var tr=m((iC,Oo)=>{"use strict";Oo.exports=Function.prototype.apply});var Vo=m((pC,No)=>{"use strict";No.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $o=m((uC,Ko)=>{"use strict";var zP=me(),jP=tr(),YP=Rt(),ZP=Vo();Ko.exports=ZP||zP.call(YP,jP)});var zo=m((cC,Jo)=>{"use strict";var XP=me(),eA=Re(),tA=Rt(),sA=$o();Jo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new eA("a function is required");return sA(XP,tA,t)}});var ti=m((dC,ei)=>{"use strict";var rA=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"?rA([sr.get]):typeof Yo=="function"?function(t){return Yo(t==null?t:Xo(t))}:!1});var rr=m((lC,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((gC,oi)=>{"use strict";var nA=Function.prototype.call,aA=Object.prototype.hasOwnProperty,oA=me();oi.exports=oA.call(nA,aA)});var ht=m((yC,li)=>{"use strict";var k,iA=uo(),pA=Fs(),uA=Ms(),cA=Os(),dA=Ns(),Le=ct(),Se=Re(),lA=Vs(),gA=Ks(),yA=$s(),RA=Js(),mA=zs(),qA=js(),hA=Ys(),bA=Zs(),ci=Function,ar=function(e){try{return ci('"use strict"; return ('+e+").constructor;")()}catch{}},Je=we(),fA=Ue(),or=function(){throw new Se},xA=Je?(function(){try{return arguments.callee,or}catch{try{return Je(arguments,"callee").get}catch{return or}}})():or,Ge=Xs()(),W=rr(),IA=yt(),kA=gt(),di=tr(),ze=Rt(),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%":pA,"%eval%":eval,"%EvalError%":uA,"%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%":iA,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":cA,"%ReferenceError%":dA,"%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%":xA,"%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%":lA,"%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%":fA,"%Object.getPrototypeOf%":IA,"%Math.abs%":gA,"%Math.floor%":yA,"%Math.max%":RA,"%Math.min%":mA,"%Math.pow%":qA,"%Math.round%":hA,"%Math.sign%":bA,"%Reflect.getPrototypeOf%":kA};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=me(),mt=nr(),vA=je.call(ze,Array.prototype.concat),TA=je.call(di,Array.prototype.splice),ui=je.call(ze,String.prototype.replace),qt=je.call(ze,String.prototype.slice),BA=je.call(ze,RegExp.prototype.exec),CA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wA=/\\(\\)?/g,UA=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,CA,function(o,i,p,u){a[a.length]=p?ui(u,wA,"$1"):i||o}),a},GA=function(t,n){var r=t,a;if(mt(pi,r)&&(a=pi[r],r="%"+a[0]+"%"),mt(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(BA(/^%?[^%]*%?$/,t)===null)throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=UA(t),a=r.length>0?r[0]:"",o=GA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],TA(r,vA([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+"%",mt(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=mt(p,q),p=p[q];P&&!u&&(qe[i]=p)}}return p}});var yi=m((RC,gi)=>{"use strict";gi.exports=Function.prototype.apply});var mi=m((mC,Ri)=>{"use strict";Ri.exports=Function.prototype.call});var ki=m((qC,Ii)=>{"use strict";var I,EA=er(),SA=Fs(),LA=Ms(),WA=Os(),DA=Ns(),He=ct(),Qe=Re(),QA=Vs(),HA=Ks(),_A=$s(),FA=Js(),MA=zs(),OA=js(),NA=Ys(),VA=Zs(),fi=Function,ir=function(e){try{return fi('"use strict"; return ('+e+").constructor;")()}catch{}},Ye=we(),KA=Ue(),pr=function(){throw new Qe},$A=Ye?(function(){try{return arguments.callee,pr}catch{try{return Ye(arguments,"callee").get}catch{return pr}}})():pr,We=Xs()(),D=rr(),JA=yt(),zA=gt(),xi=yi(),Ze=mi(),De={},jA=typeof Uint8Array>"u"||!D?I:D(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":We&&D?D([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":De,"%AsyncGenerator%":De,"%AsyncGeneratorFunction%":De,"%AsyncIteratorPrototype%":De,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":SA,"%eval%":eval,"%EvalError%":LA,"%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%":De,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":We&&D?D(D([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!We||!D?I:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":EA,"%Object.getOwnPropertyDescriptor%":Ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":WA,"%ReferenceError%":DA,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!We||!D?I:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":We&&D?D(""[Symbol.iterator]()):I,"%Symbol%":We?Symbol:I,"%SyntaxError%":He,"%ThrowTypeError%":$A,"%TypedArray%":jA,"%TypeError%":Qe,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":QA,"%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%":KA,"%Object.getPrototypeOf%":JA,"%Math.abs%":HA,"%Math.floor%":_A,"%Math.max%":FA,"%Math.min%":MA,"%Math.pow%":OA,"%Math.round%":NA,"%Math.sign%":VA,"%Reflect.getPrototypeOf%":zA};if(D)try{null.error}catch(e){qi=D(D(e)),he["%Error.prototype%"]=qi}var qi,YA=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&&D&&(n=D(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=me(),bt=nr(),ZA=Xe.call(Ze,Array.prototype.concat),XA=Xe.call(xi,Array.prototype.splice),bi=Xe.call(Ze,String.prototype.replace),ft=Xe.call(Ze,String.prototype.slice),ev=Xe.call(Ze,RegExp.prototype.exec),tv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sv=/\\(\\)?/g,rv=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,tv,function(o,i,p,u){a[a.length]=p?bi(u,sv,"$1"):i||o}),a},nv=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===De&&(o=YA(r)),typeof o>"u"&&!n)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new He("intrinsic "+t+" does not exist!")};Ii.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(ev(/^%?[^%]*%?$/,t)===null)throw new He("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=rv(t),a=r.length>0?r[0]:"",o=nv("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],XA(r,ZA([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 Qe("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 Ti=m((hC,vi)=>{"use strict";var Pi=Ue(),av=ct(),_e=Re(),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 av("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wi=m((bC,Ci)=>{"use strict";var ur=Ue(),Bi=function(){return!!ur};Bi.hasArrayLengthDefineBug=function(){if(!ur)return null;try{return ur([],"length",{value:1}).length!==1}catch{return!0}};Ci.exports=Bi});var Li=m((fC,Si)=>{"use strict";var ov=ki(),Ui=Ti(),iv=wi()(),Gi=we(),Ei=Re(),pv=ov("%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||pv(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)&&(iv?Ui(t,"length",n,!0,!0):Ui(t,"length",n)),t}});var Fi=m((xC,xt)=>{"use strict";var cr=me(),It=ht(),uv=Li(),cv=Re(),Qi=It("%Function.prototype.apply%"),Hi=It("%Function.prototype.call%"),_i=It("%Reflect.apply%",!0)||cr.call(Hi,Qi),Wi=Ue(),dv=It("%Math.max%");xt.exports=function(t){if(typeof t!="function")throw new cv("a function is required");var n=_i(cr,Hi,arguments);return uv(n,1+dv(0,t.length-(arguments.length-1)),!0)};var Di=function(){return _i(cr,Qi,arguments)};Wi?Wi(xt.exports,"apply",{value:Di}):xt.exports.apply=Di});var Vi=m((IC,Ni)=>{"use strict";var Mi=ht(),Oi=Fi(),lv=Oi(Mi("String.prototype.indexOf"));Ni.exports=function(t,n){var r=Mi(t,!!n);return typeof r=="function"&&lv(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,gv=typeof WeakMap=="function"&&WeakMap.prototype,tt=gv?WeakMap.prototype.has:null,yv=typeof WeakSet=="function"&&WeakSet.prototype,st=yv?WeakSet.prototype.has:null,Rv=typeof WeakRef=="function"&&WeakRef.prototype,zi=Rv?WeakRef.prototype.deref:null,mv=Boolean.prototype.valueOf,qv=Object.prototype.toString,hv=Function.prototype.toString,bv=String.prototype.match,Ir=String.prototype.slice,ue=String.prototype.replace,fv=String.prototype.toUpperCase,ji=String.prototype.toLowerCase,ap=RegExp.prototype.test,Yi=Array.prototype.concat,Y=Array.prototype.join,xv=Array.prototype.slice,Zi=Math.floor,Rr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gr=Object.getOwnPropertySymbols,mr=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:"'"},Iv={__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=_v(o,r);if(typeof a>"u")a=[];else if(cp(a,t)>=0)return"[Circular]";function q(z,oe,ee){if(oe&&(a=xv.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=Uv(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"):mr.call(t);return typeof t=="object"&&!Fe?et(E):E}if(Dv(t)){for(var L="<"+ji.call(String(t.nodeName)),A=t.attributes||[],X=0;X<A.length;X++)L+=" "+A[X].name+"="+pp(kv(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&&!Hv(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(Gv(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(Lv(t)){var Ve=[];return Ji&&Ji.call(t,function(z){Ve.push(q(z,t))}),np("Set",At.call(t),Ve,P)}if(Ev(t))return yr("WeakMap");if(Wv(t))return yr("WeakSet");if(Sv(t))return yr("WeakRef");if(Tv(t))return et(q(Number(t)));if(Cv(t))return et(q(Rr.call(t)));if(Bv(t))return et(mv.call(t));if(vv(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&&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+" ":"",Te=le+(ve||ae?"["+Y.call(Yi.call([],ve||[],ae||[]),": ")+"] ":"");return de.length===0?Te+"{}":P?Te+"{"+br(de,P)+"}":Te+"{ "+Y.call(de,", ")+" }"}return String(t)};function pp(e,t,n){var r=n.quoteStyle||t,a=ip[r];return a+e+a}function kv(e){return ue.call(String(e),/"/g,"&quot;")}function hr(e){return ce(e)==="[object Array]"&&(!M||!(typeof e=="object"&&M in e))}function Pv(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 vv(e){return ce(e)==="[object String]"&&(!M||!(typeof e=="object"&&M in e))}function Tv(e){return ce(e)==="[object Number]"&&(!M||!(typeof e=="object"&&M in e))}function Bv(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"||!mr)return!1;try{return mr.call(e),!0}catch{}return!1}function Cv(e){if(!e||typeof e!="object"||!Rr)return!1;try{return Rr.call(e),!0}catch{}return!1}var wv=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return wv.call(e,t)}function ce(e){return qv.call(e)}function Uv(e){if(e.name)return e.name;var t=bv.call(hv.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 Gv(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 Ev(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 Sv(e){if(!zi||!e||typeof e!="object")return!1;try{return zi.call(e),!0}catch{}return!1}function Lv(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 Wv(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 Dv(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=Iv[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,Qv);return pp(o,"single",t)}function Qv(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":"")+fv.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 Hv(e){for(var t=0;t<e.length;t++)if(cp(e[t],`
2
- `)>=0)return!1;return!0}function _v(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 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 _a=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 Ho=m((DT,_o)=>{"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};_o.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((_T,Fo)=>{"use strict";var TP=Ho();Fo.exports=Function.prototype.bind||TP});var mt=m((HT,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,_P=Object.prototype.hasOwnProperty,HP=Re();oi.exports=HP.call(DP,_P)});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(),_e=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%":_e,"%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 _e("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new _e("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 _e("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 _e("`%` 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 _e("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(),_A=ct(),He=me(),Ai=we();vi.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new He("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new He("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new He("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new He("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new He("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new He("`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 _A("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 HA=ki(),Ui=Bi(),FA=wi()(),Gi=we(),Ei=me(),MA=HA("%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%"),_i=It("%Function.prototype.call%"),Hi=It("%Reflect.apply%",!0)||cr.call(_i,Di),Wi=Ue(),VA=It("%Math.max%");xt.exports=function(t){if(typeof t!="function")throw new NA("a function is required");var n=Hi(cr,_i,arguments);return OA(n,1+VA(0,t.length-(arguments.length-1)),!0)};var Qi=function(){return Hi(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=`
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 Rp=m((vC,yp)=>{"use strict";var kr=ht(),Me=Vi(),Fv=gp(),Mv=kr("%TypeError%"),vt=kr("%WeakMap%",!0),Tt=kr("%Map%",!0),Ov=Me("WeakMap.prototype.get",!0),Nv=Me("WeakMap.prototype.set",!0),Vv=Me("WeakMap.prototype.has",!0),Kv=Me("Map.prototype.get",!0),$v=Me("Map.prototype.set",!0),Jv=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},zv=function(e,t){var n=Pr(e,t);return n&&n.value},jv=function(e,t,n){var r=Pr(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Yv=function(e,t){return!!Pr(e,t)};yp.exports=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new Mv("Side channel does not contain "+Fv(o))},get:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ov(t,o)}else if(Tt){if(n)return Kv(n,o)}else if(r)return zv(r,o)},has:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Vv(t,o)}else if(Tt){if(n)return Jv(n,o)}else if(r)return Yv(r,o);return!1},set:function(o,i){vt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new vt),Nv(t,o,i)):Tt?(n||(n=new Tt),$v(n,o,i)):(r||(r={key:{},next:null}),jv(r,o,i))}};return a}});var Bt=m((TC,mp)=>{"use strict";var Zv=String.prototype.replace,Xv=/%20/g,Ar={RFC1738:"RFC1738",RFC3986:"RFC3986"};mp.exports={default:Ar.RFC3986,formatters:{RFC1738:function(e){return Zv.call(e,Xv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ar.RFC1738,RFC3986:Ar.RFC3986}});var Tr=m((BC,hp)=>{"use strict";var eT=Bt(),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})(),tT=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},sT=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)},rT=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},nT=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}},aT=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===eT.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},oT=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 tT(n),t},iT=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},pT=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},uT=function(t,n){return[].concat(t,n)},cT=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:rT,combine:uT,compact:oT,decode:nT,encode:aT,isBuffer:pT,isRegExp:iT,maybeMap:cT,merge:sT}});var Pp=m((CC,kp)=>{"use strict";var xp=Rp(),Cr=Tr(),rt=Bt(),dT=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,lT=String.prototype.split,gT=Array.prototype.push,Ip=function(e,t){gT.apply(e,re(t)?t:[t])},yT=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 yT.call(t)},skipNulls:!1,strictNullHandling:!1},RT=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Br={},mT=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(Br))!==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(Br)>"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(RT(A)||Cr.isBuffer(A)){if(p){var Ve=f?n:p(n,_.encoder,E,"key",q);if(r==="comma"&&f){for(var de=lT.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 Te=Object.keys(A);le=s?Te.sort(s):Te}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 Nk=re(A)?typeof r=="function"?r(z,ee):z:z+(y?"."+ee:"["+ee+"]");L.set(t,ne);var Da=xp();Da.set(Br,L),Ip(ve,e($e,Nk,r,a,o,i,p,u,s,y,P,q,x,f,E,Da))}}return ve},qT=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(!dT.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=qT(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,mT(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 Tp=m((wC,vp)=>{"use strict";var Oe=Tr(),wr=Object.prototype.hasOwnProperty,hT=Array.isArray,Q={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},bT=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},fT="utf8=%26%2310003%3B",xT="utf8=%E2%9C%93",IT=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]===xT?s="utf-8":i[u]===fT&&(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,Q.decoder,s,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,q),Q.decoder,s,"key"),f=Oe.maybeMap(Ap(y.slice(q+1),n),function(E){return n.decoder(E,Q.decoder,s,"value")})),f&&n.interpretNumericEntities&&s==="iso-8859-1"&&(f=bT(f)),y.indexOf("[]=")>-1&&(f=hT(f)?[f]:f),wr.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},kT=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},PT=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)+"]"),kT(y,n,r,a)}},AT=function(t){if(!t)return Q;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"?Q.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Q.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Q.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Q.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Q.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Q.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Q.comma,decoder:typeof t.decoder=="function"?t.decoder:Q.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:Q.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Q.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Q.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Q.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Q.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Q.strictNullHandling}};vp.exports=function(e,t){var n=AT(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?IT(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=PT(p,r[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var fe=m((UC,Bp)=>{"use strict";var vT=Pp(),TT=Tp(),BT=Bt();Bp.exports={formats:BT,parse:TT,stringify:vT}});import*as Gw from"axios";var $a={};j($a,{DEFAULT_OPTIONS:()=>Ka,default:()=>J,exponentialDelay:()=>Na,isIdempotentRequestError:()=>Ht,isNetworkError:()=>Qt,isNetworkOrIdempotentRequestError:()=>_t,isRetryableError:()=>at,isSafeRequestError:()=>Oa,linearDelay:()=>Va,namespace:()=>nt,retryAfter:()=>ot});var Fa=te(Ha(),1),nt="axios-retry";function Qt(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"],Xk=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)&&Xk.indexOf(e.config.method)!==-1:!1}function _t(e){return Qt(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 eP(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:eP,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function tP(e,t){return{...Ka,...t,...e[nt]}}function _a(e,t,n=!1){let r=tP(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=Date.now()),e[nt]=r,r}function sP(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 rP(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 nP(e,t,n,r){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(sP(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 aP(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 rP(i,a)?nP(e,i,a,o):(await aP(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};ie.isNetworkError=Qt;ie.isSafeRequestError=Oa;ie.isIdempotentRequestError=Ht;ie.isNetworkOrIdempotentRequestError=_t;ie.exponentialDelay=Na;ie.linearDelay=Va;ie.isRetryableError=at;var J=ie;var fc={};j(fc,{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:()=>RP});import{isBrowser as ro,isNode as oP}from"browser-or-node";var iP="https://api.botpress.cloud",pP=6e4,uP=!1,cP="BP_API_URL",dP="BP_BOT_ID",lP="BP_INTEGRATION_ID",gP="BP_WORKSPACE_ID",yP="BP_TOKEN";function RP(e){let t=mP(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??iP,a=t.timeout??pP,o=t.debug??uP;return{apiUrl:r,timeout:a,withCredentials:ro,headers:n,debug:o}}function mP(e){return ro?e:oP?qP(e):e}function qP(e){let t={...e,apiUrl:e.apiUrl??process.env[cP],botId:e.botId??process.env[dP],integrationId:e.integrationId??process.env[lP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[gP]},n=t.token??process.env[yP];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:()=>PP});import*as oo from"axios";import{isNode as hP}from"browser-or-node";var ut;hP?ut=jk("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(bP(t)),t)),e.interceptors.response.use(t=>(console.debug(fP(t)),t),t=>(console.debug(xP(t)),Promise.reject(t)))},bP=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
- `},fP=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
- `},xP=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 kP=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=kP(e),n=oo.default.create(t);return e.debug&&no(n),n};var $={};j($,{toApiError:()=>GP});import UP from"axios";import AP from"crypto";var vP={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=vP);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"}},TP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,BP=e=>e instanceof v||TP(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)}},CP={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},Be=e=>BP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):wP(e);function wP(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=CP[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 GP=e=>UP.isAxiosError(e)&&e.response?.data?Be(e.response.data):Be(e);import wT from"axios";import EP from"crypto";var SP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ys=typeof window<"u"&&typeof window.document<"u"?window.crypto:EP;ys.getRandomValues||(ys=SP);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(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"}},LP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,WP=e=>e instanceof T||LP(e)&&e.isApiError===!0,ye=class extends T{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Rs=class extends T{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},ms=class extends T{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},qs=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)}},hs=class extends T{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},bs=class extends T{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},fs=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)}},xs=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Is=class extends T{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ks=class extends T{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Ps=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)}},As=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)}},vs=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)}},Ts=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)}},Bs=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)}},Cs=class extends T{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ws=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)}},Us=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)}},Gs=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)}},Es=class extends T{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ss=class extends T{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Ls=class extends T{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ws=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)}},Ds=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)}},Qs=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)}},Hs=class extends T{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},DP={Unknown:ye,Internal:Rs,Unauthorized:ms,Forbidden:qs,PayloadTooLarge:hs,InvalidPayload:bs,UnsupportedMediaType:fs,MethodNotFound:xs,ResourceNotFound:Is,InvalidJsonSchema:ks,InvalidDataFormat:Ps,InvalidIdentifier:As,RelationConflict:vs,ReferenceConstraint:Ts,ResourceLockedConflict:Bs,ResourceGone:Cs,ReferenceNotFound:ws,InvalidQuery:Us,Runtime:Gs,AlreadyExists:Es,RateLimited:Ss,PaymentRequired:Ls,QuotaExceeded:Ws,LimitExceeded:Ds,BreakingChanges:Qs,OperationTimeout:Hs},_s=e=>WP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):QP(e);function QP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=DP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new 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()),CT=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(CT),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 Qp=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 mu=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 Bu=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 Qu=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/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ju=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var ju=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var Zu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var sc=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 nc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=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 pc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cc=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 lc=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 yc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var mc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var hc=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var 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}=Qp(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}=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)})};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}=Bu(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}=Qu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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)})};getTask=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:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:n,headers:r,query:a,body:o}=Ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=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)})};deleteTask=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)})};listTasks=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)})};createWorkflow=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)})};getWorkflow=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)})};updateWorkflow=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:"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}=pc(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}=cc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=lc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"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}=yc(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}=mc(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}=hc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return wT.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}))),tasks:t=>new R.AsyncCollection(({nextToken:n})=>this.listTasks({nextToken:n,...t}).then(r=>({...r,items:r.tasks})))}}};var vy={};j(vy,{Client:()=>an});import HT from"axios";import GT from"crypto";var ET={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Gr=typeof window<"u"&&typeof window.document<"u"?window.crypto:GT;Gr.getRandomValues||(Gr=ET);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(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"}},ST=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,LT=e=>e instanceof B||ST(e)&&e.isApiError===!0,xe=class extends B{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Er=class extends B{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Sr=class extends B{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Lr=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)}},Wr=class extends B{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Dr=class extends B{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Qr=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)}},Hr=class extends B{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},_r=class extends B{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Fr=class extends B{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Mr=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)}},Or=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)}},Nr=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)}},Vr=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)}},Kr=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)}},$r=class extends B{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Jr=class extends B{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},zr=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)}},jr=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)}},Yr=class extends B{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Zr=class extends B{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Xr=class extends B{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},en=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)}},tn=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)}},sn=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)}},rn=class extends B{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},WT={Unknown:xe,Internal:Er,Unauthorized:Sr,Forbidden:Lr,PayloadTooLarge:Wr,InvalidPayload:Dr,UnsupportedMediaType:Qr,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=>LT(e)?e:e instanceof Error?new xe(e.message,e):typeof e=="string"?new xe(e):DT(e);function DT(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=WT[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 xc=te(fe()),QT=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(QT),p=Object.fromEntries(i),u=xc.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 Ic=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Pc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var vc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Bc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var wc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Gc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Sc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Qc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var _c=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 Mc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Jc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Zc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ed=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var sd=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var nd=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var od=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pd=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 cd=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 ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var md=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 hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Id=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 Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Bd=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 wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Qd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var _d=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Md=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Kd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Jd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var jd=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 Zd=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 el=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 sl=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 nl=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var ol=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var pl=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var ll=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var yl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var ml=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var fl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Il=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Bl=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 wl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Gl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Sl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Wl=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 Ql=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var _l=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Ml=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Jl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var jl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var eg=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var sg=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ng=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var og=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var pg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var cg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var lg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=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 mg=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 hg=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 fg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Ig=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 Pg=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 vg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bg=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 wg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Wg=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 Qg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _g=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Mg=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 Ng=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Jg=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 jg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var ey=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var sy=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 ny=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oy=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var py=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var cy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ly=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var yy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var my=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 hy=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 fy=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Iy=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Py=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}=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)})};getAccount=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:"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}=vc(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}=Bc(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}=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)})};createPersonalAccessToken=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:"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}=Sc(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}=Wc(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}=Qc(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}=_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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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:"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}=cd(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}=ld(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}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=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:"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}=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)})};deleteBot=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)})};getBotLogs=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=Bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=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)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=Qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=_d(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}=Md(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}=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)})};createBotVersion=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:"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}=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)})};createIntegrationShareableId=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)})};deleteIntegrationShareableId=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=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)})};listBotApiKeys=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)})};createBotApiKey=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:"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}=pl(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}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=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:"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}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=fl(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=Bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=_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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=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)})};setWorkspacePreference=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)})};getWorkspacePreference=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:"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}=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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)})};createWorkspaceMember=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)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=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:"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}=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)})};deleteIntegrationApiKey=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:"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}=yg(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}=mg(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}=hg(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}=fg(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}=Ig(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}=Pg(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}=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)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=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)})};deleteIntegration=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:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=Sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Wg(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}=Qg(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}=_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)})};updateInterface=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:"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}=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)})};listInterfaces=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=ny(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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=my(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=hy(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}=fy(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}=Iy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=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:"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 HT.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 fR={};j(fR,{Client:()=>Sn});import JT from"axios";import FT from"crypto";var MT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},on=typeof window<"u"&&typeof window.document<"u"?window.crypto:FT;on.getRandomValues||(on=MT);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"}},OT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,NT=e=>e instanceof C||OT(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)}},Rn=class extends C{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},mn=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)}},Tn=class extends C{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Bn=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)}},VT={Unknown:Ie,Internal:pn,Unauthorized:un,Forbidden:cn,PayloadTooLarge:dn,InvalidPayload:ln,UnsupportedMediaType:gn,MethodNotFound:yn,ResourceNotFound:Rn,InvalidJsonSchema:mn,InvalidDataFormat:qn,InvalidIdentifier:hn,RelationConflict:bn,ReferenceConstraint:fn,ResourceLockedConflict:xn,ResourceGone:In,ReferenceNotFound:kn,InvalidQuery:Pn,Runtime:An,AlreadyExists:vn,RateLimited:Tn,PaymentRequired:Bn,QuotaExceeded:Cn,LimitExceeded:wn,BreakingChanges:Un,OperationTimeout:Gn},En=e=>NT(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):KT(e);function KT(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=VT[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 Ty=te(fe()),$T=e=>e[1]!==void 0,G=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter($T),p=Object.fromEntries(i),u=Ty.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 By=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var wy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Gy=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 Sy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Wy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Qy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var _y=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var My=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Ny=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Ky=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var Jy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var jy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var Zy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var eR=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var sR=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var nR=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var oR=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var pR=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var cR=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var lR=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var yR=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var mR=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var hR=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}=By(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}=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)})};setBillingAddress=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:"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}=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)})};listPlans=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)})};getAddon=async t=>{let{path:n,headers:r,query:a,body:o}=Qy(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}=_y(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}=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)})};previewSubscriptionUpdate=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:"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}=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)})};setAddons=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:"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}=jy(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}=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)})};setAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=eR(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}=sR(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}=nR(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}=oR(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}=pR(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}=cR(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}=lR(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}=yR(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}=mR(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}=hR(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 JT.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 em={};j(em,{Client:()=>pa});import rB from"axios";import jT from"crypto";var YT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:jT;Ln.getRandomValues||(Ln=YT);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"}},ZT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,XT=e=>e instanceof w||ZT(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)}},Dn=class extends w{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Qn=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)}},eB={Unknown:ke,Internal:Wn,Unauthorized:Dn,Forbidden:Qn,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=>XT(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):tB(e);function tB(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=eB[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 xR=te(fe()),sB=e=>e[1]!==void 0,O=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(sB),p=Object.fromEntries(i),u=xR.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 IR=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 PR=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vR=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 BR=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=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 GR=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 SR=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 WR=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var QR=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var _R=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var MR=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var NR=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var KR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var JR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var jR=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}=IR(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}=PR(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}=vR(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}=BR(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}=wR(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}=GR(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}=SR(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}=WR(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}=QR(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}=_R(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}=MR(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}=NR(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}=KR(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}=JR(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}=jR(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 rB.isAxiosError(e)&&e.response?.data?ia(e.response.data):ia(e)}import ZR 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 ZR.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 ZR.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 Wm={};j(Wm,{Client:()=>Wa});import lB from"axios";import aB from"crypto";var oB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ua=typeof window<"u"&&typeof window.document<"u"?window.crypto:aB;ua.getRandomValues||(ua=oB);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"}},iB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,pB=e=>e instanceof U||iB(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)}},Ra=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)}},ma=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)}},Ta=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)}},Ba=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)}},uB={Unknown:Pe,Internal:ca,Unauthorized:da,Forbidden:la,PayloadTooLarge:ga,InvalidPayload:ya,UnsupportedMediaType:Ra,MethodNotFound:ma,ResourceNotFound:qa,InvalidJsonSchema:ha,InvalidDataFormat:ba,InvalidIdentifier:fa,RelationConflict:xa,ReferenceConstraint:Ia,ResourceLockedConflict:ka,ResourceGone:Pa,ReferenceNotFound:Aa,InvalidQuery:va,Runtime:Ta,AlreadyExists:Ba,RateLimited:Ca,PaymentRequired:wa,QuotaExceeded:Ua,LimitExceeded:Ga,BreakingChanges:Ea,OperationTimeout:Sa},La=e=>pB(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):cB(e);function cB(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=uB[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 tm=te(fe()),dB=e=>e[1]!==void 0,H=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(dB),p=Object.fromEntries(i),u=tm.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 sm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var nm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var om=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 pm=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 cm=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 lm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var ym=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var mm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var hm=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 fm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Im=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Pm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var vm=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 Bm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var wm=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 Gm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Sm=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}=sm(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}=nm(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}=om(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}=pm(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}=cm(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}=lm(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}=ym(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}=mm(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}=hm(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}=fm(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}=Im(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}=Pm(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}=vm(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}=Bm(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}=wm(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}=Gm(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}=Sm(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 lB.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 RB from"axios";var Dm=te(fe()),yB=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(yB),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 Qm=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var _m=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mm=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 Nm=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 Km=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Jm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var eq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var sq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var nq=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 oq=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pq=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 cq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lq=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 yq=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 mq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var fq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Iq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pq=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 vq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Bq=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 wq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gq=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 Sq=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 Wq=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 Qq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _q=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 Mq=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 Nq=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 Kq=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 Jq=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 jq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Zq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var eh=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sh=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var nh=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var oh=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ph=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var ch=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 lh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yh=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 mh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hh=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 fh=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var Ih=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ph=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var vh=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Bh=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var wh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Gh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Sh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Wh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Qh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var _h=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Nh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Kh=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 Jh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var eb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var nb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ob=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var pb=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var cb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yb=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 mb=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 hb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Ib=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 Pb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bb=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 wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Sb=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 Wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var _b=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Nb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Zb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var ef=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var sf=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 nf=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 of=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 uf=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 df=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var gf=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Rf=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var bf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var kf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Tf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},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)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Lf=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 Df=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Hf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ff=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Of=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 Vf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var $f=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var zf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var tx=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var rx=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ax=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ix=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var ux=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dx=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var gx=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Rx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var qx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var bx=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xx=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 kx=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 Tx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Ux=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 Ex=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lx=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 Dx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Hx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fx=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Ox=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Vx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $x=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zx=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 Yx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xx=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var tI=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 rI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var iI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var uI=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 dI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var RI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var qI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var bI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var xI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var kI=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 TI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var CI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var UI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var EI=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 LI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=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 HI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var FI=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 OI=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var VI=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var $I=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var zI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var YI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var XI=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var tk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var rk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ak=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ik=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var uk=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var dk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var gk=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 Rk=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 qk=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 bk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var kk=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 Tk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Uk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Ek=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 Lk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Dk=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 Hk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Fk=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}=Qm(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}=_m(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Nm(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}=Km(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}=Jm(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}=jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Zm(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}=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)})};removeParticipant=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)})};createEvent=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)})};getEvent=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)})};listEvents=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)})};cancelScheduledEvent=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:"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}=lq(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}=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)})};getMessage=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:"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}=hq(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}=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)})};deleteMessage=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:"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}=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)})};importMessages=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)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=Bq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=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:"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}=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)})};getOrCreateUser=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)})};updateUser=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:"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}=Qq(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}=_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)})};getState=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:"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}=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)})};getOrSetState=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)})};patchState=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:"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}=jq(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}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=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)})};createTask=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)})};updateTask=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:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:n,headers:r,query:a,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};createWorkflow=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)})};getWorkflow=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)})};updateWorkflow=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)})};deleteWorkflow=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:"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}=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)})};getOrCreateWorkflow=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)})};listTagValues=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:"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}=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)})};captureObservation=async t=>{let{path:n,headers:r,query:a,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=Bh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=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)})};updateAccount=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:"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}=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)})};listPersonalAccessTokens=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)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=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:"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}=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=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:"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}=hb(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}=fb(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}=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)})};getBot=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)})};deleteBot=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)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Bb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=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)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=Qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=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)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=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)})};getBotVersion=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)})};getBotJson=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)})};publishFromBotJson=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)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=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:"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}=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)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=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)})};listBotApiKeys=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)})};createBotApiKey=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:"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}=Rf(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}=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)})};updateBotAllowlist=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)})};listWorkspaceInvoices=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=Tf(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=Lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=Vf(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}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=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)})};setWorkspacePreference=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)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=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)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=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)})};createWorkspaceMember=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)})};updateWorkspaceMember=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)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=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:"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}=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)})};createIntegration=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)})};validateIntegrationCreation=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)})};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}=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)})};validateIntegrationUpdate=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)})};listIntegrations=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)})};getIntegration=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)})};getIntegrationLogs=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:"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}=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)})};deleteIntegration=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:"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}=Fx(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}=Ox(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}=Vx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=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)})};updateInterface=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:"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}=Yx(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}=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=dI(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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};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}=TI(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}=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)})};introspect=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:"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}=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)})};deleteFile=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:"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}=DI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=HI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=FI(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}=OI(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}=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)})};listFilePassages=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)})};setFilePassages=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:"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}=YI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=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)})};createKnowledgeBase=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)})};deleteKnowledgeBase=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:"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}=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)})};listKnowledgeBases=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:"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}=uk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};getOrCreateTable=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)})};createTable=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)})};duplicateTable=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)})};exportTable=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:"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}=xk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=kk(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}=Tk(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}=Ck(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}=Uk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Ek(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}=Lk(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}=Dk(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}=Hk(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}=Fk(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 RB.isAxiosError(e)&&e.response?.data?Be(e.response.data):Be(e)}var Ok=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}))),tasks:t=>new R.AsyncCollection(({nextToken:n})=>this.listTasks({nextToken:n,...t}).then(r=>({...r,items:r.tasks}))),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,Ok 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,vy as admin,Gw as axios,$a as axiosRetry,fR as billing,Be as errorFrom,em as files,BP as isApiError,fc as runtime,Wm 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(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}},_v=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},Hv=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:Hv,decode:Dv,encode:_v,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,H={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,H.encoder,E,"key",q):n;A=""}if(zv(A)||Cr.isBuffer(A)){if(p){var Ve=f?n:p(n,H.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],H.encoder,E,"value",q));return[x(Ve)+(a&&re(A)&&de.length===1?"[]":"")+"="+Ke]}return[x(Ve)+"="+x(p(A,H.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 H;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||H.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=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=H.filter;return(typeof t.filter=="function"||re(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:H.addQueryPrefix,allowDots:typeof t.allowDots>"u"?H.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:H.charsetSentinel,delimiter:typeof t.delimiter>"u"?H.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:H.encode,encoder:typeof t.encoder=="function"?t.encoder:H.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:H.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:H.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:H.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:H.strictNullHandling}};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:()=>_t,isNetworkError:()=>Dt,isNetworkOrIdempotentRequestError:()=>Ht,isRetryableError:()=>at,isSafeRequestError:()=>Oa,linearDelay:()=>Va,namespace:()=>nt,retryAfter:()=>ot});var Fa=te(_a(),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 _t(e){return e.config?.method?at(e)&&Ek.indexOf(e.config.method)!==-1:!1}function Ht(e){return Dt(e)||_t(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:Ht,retryDelay:Sk,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Lk(e,t){return{...Ka,...t,...e[nt]}}function Ha(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 _k(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ie=(e,t)=>{let n=e.interceptors.request.use(a=>(Ha(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=Ha(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await Qk(i,a)?Dk(e,i,a,o):(await _k(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};ie.isNetworkError=Dt;ie.isSafeRequestError=Oa;ie.isIdempotentRequestError=_t;ie.isNetworkOrIdempotentRequestError=Ht;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 Hk}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:Hk?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)}},_s=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:_s},Hs=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 Hp=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,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 Hu=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}=Hp(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}=Hu(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?Hs(e.response.data):Hs(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)}},_r=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Hr=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:_r,ResourceNotFound:Hr,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 Hc=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 Hd=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 Hl=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,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 Hg=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,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 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}=Hc(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}=Hd(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}=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)})};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}=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)})};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 Hy=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}=Hy(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)}},_n=class extends w{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Hn=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:_n,InvalidPayload:Hn,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 Hm=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}=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)})}};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 _B from"crypto";var HB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ua=typeof window<"u"&&typeof window.document<"u"?window.crypto:_B;ua.getRandomValues||(ua=HB);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,_=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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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??_,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 HR=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,properties:e.properties,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,properties:e.properties,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,properties:e.properties}});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 Hq=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 Hh=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 Hb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var 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 _f=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,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 Qx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _x=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var 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,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 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 _I=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}=HR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};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}=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)})};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}=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)})};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}=_f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=_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)})};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}=_I(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};
7
7
  //# sourceMappingURL=index.mjs.map