@botpress/client 1.46.0 → 1.48.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/bundle.cjs +13 -13
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +713 -145
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var zk=Object.create;var ot=Object.defineProperty;var Jk=Object.getOwnPropertyDescriptor;var jk=Object.getOwnPropertyNames;var Yk=Object.getPrototypeOf,Zk=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var n in t)ot(e,n,{get:t[n],enumerable:!0})},za=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jk(t))!Zk.call(e,a)&&a!==n&&ot(e,a,{get:()=>t[a],enumerable:!(r=Jk(t,a))||r.enumerable});return e};var E=(e,t,n)=>(n=e!=null?zk(Yk(e)):{},za(t||!e||!e.__esModule?ot(n,"default",{value:e,enumerable:!0}):n,e)),Xk=e=>za(ot({},"__esModule",{value:!0}),e);var ja=q((oT,Ja)=>{"use strict";var eP=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Ja.exports=e=>!eP.has(e&&e.code)});var Qt=q((lT,fo)=>{"use strict";fo.exports=Object});var Ks=q((gT,xo)=>{"use strict";xo.exports=Error});var $s=q((yT,Io)=>{"use strict";Io.exports=EvalError});var zs=q((mT,ko)=>{"use strict";ko.exports=RangeError});var Js=q((RT,Po)=>{"use strict";Po.exports=ReferenceError});var Dt=q((qT,Ao)=>{"use strict";Ao.exports=SyntaxError});var Re=q((hT,vo)=>{"use strict";vo.exports=TypeError});var js=q((bT,Bo)=>{"use strict";Bo.exports=URIError});var Ys=q((fT,To)=>{"use strict";To.exports=Math.abs});var Zs=q((xT,Co)=>{"use strict";Co.exports=Math.floor});var Xs=q((IT,wo)=>{"use strict";wo.exports=Math.max});var er=q((kT,Uo)=>{"use strict";Uo.exports=Math.min});var tr=q((PT,Go)=>{"use strict";Go.exports=Math.pow});var sr=q((AT,So)=>{"use strict";So.exports=Math.round});var Lo=q((vT,Eo)=>{"use strict";Eo.exports=Number.isNaN||function(t){return t!==t}});var rr=q((BT,_o)=>{"use strict";var LP=Lo();_o.exports=function(t){return LP(t)||t===0?t:t<0?-1:1}});var Qo=q((TT,Wo)=>{"use strict";Wo.exports=Object.getOwnPropertyDescriptor});var we=q((CT,Do)=>{"use strict";var Ht=Qo();if(Ht)try{Ht([],"length")}catch{Ht=null}Do.exports=Ht});var Ue=q((wT,Ho)=>{"use strict";var Mt=Object.defineProperty||!1;if(Mt)try{Mt({},"a",{value:1})}catch{Mt=!1}Ho.exports=Mt});var Fo=q((UT,Mo)=>{"use strict";Mo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},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 nr=q((GT,Vo)=>{"use strict";var Oo=typeof Symbol<"u"&&Symbol,_P=Fo();Vo.exports=function(){return typeof Oo!="function"||typeof Symbol!="function"||typeof Oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_P()}});var Ft=q((ST,No)=>{"use strict";No.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ot=q((ET,Ko)=>{"use strict";var WP=Qt();Ko.exports=WP.getPrototypeOf||null});var Jo=q((LT,zo)=>{"use strict";var QP="Function.prototype.bind called on incompatible ",DP=Object.prototype.toString,HP=Math.max,MP="[object Function]",$o=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},FP=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},OP=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};zo.exports=function(t){var n=this;if(typeof n!="function"||DP.apply(n)!==MP)throw new TypeError(QP+n);for(var r=FP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,$o(r,arguments));return Object(y)===y?y:this}return n.apply(t,$o(r,arguments))},i=HP(0,n.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+OP(p,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var s=function(){};s.prototype=n.prototype,a.prototype=new s,s.prototype=null}return a}});var qe=q((_T,jo)=>{"use strict";var VP=Jo();jo.exports=Function.prototype.bind||VP});var Je=q((WT,Yo)=>{"use strict";Yo.exports=Function.prototype.call});var Vt=q((QT,Zo)=>{"use strict";Zo.exports=Function.prototype.apply});var ei=q((DT,Xo)=>{"use strict";Xo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var si=q((HT,ti)=>{"use strict";var NP=qe(),KP=Vt(),$P=Je(),zP=ei();ti.exports=zP||NP.call($P,KP)});var ni=q((MT,ri)=>{"use strict";var JP=qe(),jP=Re(),YP=Je(),ZP=si();ri.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new jP("a function is required");return ZP(JP,YP,t)}});var ci=q((FT,ui)=>{"use strict";var XP=ni(),ai=we(),ii;try{ii=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ar=!!ii&&ai&&ai(Object.prototype,"__proto__"),pi=Object,oi=pi.getPrototypeOf;ui.exports=ar&&typeof ar.get=="function"?XP([ar.get]):typeof oi=="function"?function(t){return oi(t==null?t:pi(t))}:!1});var or=q((OT,yi)=>{"use strict";var di=Ft(),li=Ot(),gi=ci();yi.exports=di?function(t){return di(t)}:li?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return li(t)}:gi?function(t){return gi(t)}:null});var ir=q((VT,mi)=>{"use strict";var eA=Function.prototype.call,tA=Object.prototype.hasOwnProperty,sA=qe();mi.exports=sA.call(eA,tA)});var Ii=q((NT,xi)=>{"use strict";var k,rA=Qt(),nA=Ks(),aA=$s(),oA=zs(),iA=Js(),Le=Dt(),Ee=Re(),pA=js(),uA=Ys(),cA=Zs(),dA=Xs(),lA=er(),gA=tr(),yA=sr(),mA=rr(),bi=Function,pr=function(e){try{return bi('"use strict"; return ('+e+").constructor;")()}catch{}},je=we(),RA=Ue(),ur=function(){throw new Ee},qA=je?(function(){try{return arguments.callee,ur}catch{try{return je(arguments,"callee").get}catch{return ur}}})():ur,Ge=nr()(),W=or(),hA=Ot(),bA=Ft(),fi=Vt(),Ye=Je(),Se={},fA=typeof Uint8Array>"u"||!W?k:W(Uint8Array),he={__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%":Se,"%AsyncGenerator%":Se,"%AsyncGeneratorFunction%":Se,"%AsyncIteratorPrototype%":Se,"%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%":nA,"%eval%":eval,"%EvalError%":aA,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":bi,"%GeneratorFunction%":Se,"%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%":rA,"%Object.getOwnPropertyDescriptor%":je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":oA,"%ReferenceError%":iA,"%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%":qA,"%TypedArray%":fA,"%TypeError%":Ee,"%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%":pA,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ye,"%Function.prototype.apply%":fi,"%Object.defineProperty%":RA,"%Object.getPrototypeOf%":hA,"%Math.abs%":uA,"%Math.floor%":cA,"%Math.max%":dA,"%Math.min%":lA,"%Math.pow%":gA,"%Math.round%":yA,"%Math.sign%":mA,"%Reflect.getPrototypeOf%":bA};if(W)try{null.error}catch(e){Ri=W(W(e)),he["%Error.prototype%"]=Ri}var Ri,xA=function e(t){var n;if(t==="%AsyncFunction%")n=pr("async function () {}");else if(t==="%GeneratorFunction%")n=pr("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=pr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&W&&(n=W(a.prototype))}return he[t]=n,n},qi={__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"]},Ze=qe(),Nt=ir(),IA=Ze.call(Ye,Array.prototype.concat),kA=Ze.call(fi,Array.prototype.splice),hi=Ze.call(Ye,String.prototype.replace),Kt=Ze.call(Ye,String.prototype.slice),PA=Ze.call(Ye,RegExp.prototype.exec),AA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vA=/\\(\\)?/g,BA=function(t){var n=Kt(t,0,1),r=Kt(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 hi(t,AA,function(o,i,p,u){a[a.length]=p?hi(u,vA,"$1"):i||o}),a},TA=function(t,n){var r=t,a;if(Nt(qi,r)&&(a=qi[r],r="%"+a[0]+"%"),Nt(he,r)){var o=he[r];if(o===Se&&(o=xA(r)),typeof o>"u"&&!n)throw new Ee("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!")};xi.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ee('"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=BA(t),a=r.length>0?r[0]:"",o=TA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],kA(r,IA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Kt(R,0,1),f=Kt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Le("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",Nt(he,i))p=he[i];else if(p!=null){if(!(R in p)){if(!n)throw new Ee("base intrinsic for "+t+" exists, but the property is not available.");return}if(je&&y+1>=r.length){var L=je(p,R);P=!!L,P&&"get"in L&&!("originalValue"in L.get)?p=L.get:p=p[R]}else P=Nt(p,R),p=p[R];P&&!u&&(he[i]=p)}}return p}});var Jt=q((KT,Ti)=>{"use strict";var I,CA=Qt(),wA=Ks(),UA=$s(),GA=zs(),SA=Js(),De=Dt(),Qe=Re(),EA=js(),LA=Ys(),_A=Zs(),WA=Xs(),QA=er(),DA=tr(),HA=sr(),MA=rr(),vi=Function,cr=function(e){try{return vi('"use strict"; return ('+e+").constructor;")()}catch{}},Xe=we(),FA=Ue(),dr=function(){throw new Qe},OA=Xe?(function(){try{return arguments.callee,dr}catch{try{return Xe(arguments,"callee").get}catch{return dr}}})():dr,_e=nr()(),Q=or(),VA=Ot(),NA=Ft(),Bi=Vt(),et=Je(),We={},KA=typeof Uint8Array>"u"||!Q?I:Q(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":_e&&Q?Q([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":We,"%AsyncGenerator%":We,"%AsyncGeneratorFunction%":We,"%AsyncIteratorPrototype%":We,"%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%":wA,"%eval%":eval,"%EvalError%":UA,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":vi,"%GeneratorFunction%":We,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_e&&Q?Q(Q([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_e||!Q?I:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":CA,"%Object.getOwnPropertyDescriptor%":Xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":GA,"%ReferenceError%":SA,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_e||!Q?I:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_e&&Q?Q(""[Symbol.iterator]()):I,"%Symbol%":_e?Symbol:I,"%SyntaxError%":De,"%ThrowTypeError%":OA,"%TypedArray%":KA,"%TypeError%":Qe,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":EA,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":et,"%Function.prototype.apply%":Bi,"%Object.defineProperty%":FA,"%Object.getPrototypeOf%":VA,"%Math.abs%":LA,"%Math.floor%":_A,"%Math.max%":WA,"%Math.min%":QA,"%Math.pow%":DA,"%Math.round%":HA,"%Math.sign%":MA,"%Reflect.getPrototypeOf%":NA};if(Q)try{null.error}catch(e){ki=Q(Q(e)),be["%Error.prototype%"]=ki}var ki,$A=function e(t){var n;if(t==="%AsyncFunction%")n=cr("async function () {}");else if(t==="%GeneratorFunction%")n=cr("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=cr("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 be[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"]},tt=qe(),$t=ir(),zA=tt.call(et,Array.prototype.concat),JA=tt.call(Bi,Array.prototype.splice),Ai=tt.call(et,String.prototype.replace),zt=tt.call(et,String.prototype.slice),jA=tt.call(et,RegExp.prototype.exec),YA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ZA=/\\(\\)?/g,XA=function(t){var n=zt(t,0,1),r=zt(t,-1);if(n==="%"&&r!=="%")throw new De("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new De("invalid intrinsic syntax, expected opening `%`");var a=[];return Ai(t,YA,function(o,i,p,u){a[a.length]=p?Ai(u,ZA,"$1"):i||o}),a},ev=function(t,n){var r=t,a;if($t(Pi,r)&&(a=Pi[r],r="%"+a[0]+"%"),$t(be,r)){var o=be[r];if(o===We&&(o=$A(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 De("intrinsic "+t+" does not exist!")};Ti.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(jA(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=XA(t),a=r.length>0?r[0]:"",o=ev("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],JA(r,zA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=zt(R,0,1),f=zt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new De("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",$t(be,i))p=be[i];else if(p!=null){if(!(R in p)){if(!n)throw new Qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(Xe&&y+1>=r.length){var L=Xe(p,R);P=!!L,P&&"get"in L&&!("originalValue"in L.get)?p=L.get:p=p[R]}else P=$t(p,R),p=p[R];P&&!u&&(be[i]=p)}}return p}});var Gi=q(($T,Ui)=>{"use strict";var Ci=Ue(),tv=Dt(),He=Re(),wi=we();Ui.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=!!wi&&wi(t,n);if(Ci)Ci(t,n,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[n]=r;else throw new tv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Li=q((zT,Ei)=>{"use strict";var lr=Ue(),Si=function(){return!!lr};Si.hasArrayLengthDefineBug=function(){if(!lr)return null;try{return lr([],"length",{value:1}).length!==1}catch{return!0}};Ei.exports=Si});var Hi=q((JT,Di)=>{"use strict";var sv=Jt(),_i=Gi(),rv=Li()(),Wi=we(),Qi=Re(),nv=sv("%Math.floor%");Di.exports=function(t,n){if(typeof t!="function")throw new Qi("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||nv(n)!==n)throw new Qi("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Wi){var i=Wi(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!r)&&(rv?_i(t,"length",n,!0,!0):_i(t,"length",n)),t}});var Ki=q((jT,jt)=>{"use strict";var gr=qe(),Yt=Jt(),av=Hi(),ov=Re(),Oi=Yt("%Function.prototype.apply%"),Vi=Yt("%Function.prototype.call%"),Ni=Yt("%Reflect.apply%",!0)||gr.call(Vi,Oi),Mi=Ue(),iv=Yt("%Math.max%");jt.exports=function(t){if(typeof t!="function")throw new ov("a function is required");var n=Ni(gr,Vi,arguments);return av(n,1+iv(0,t.length-(arguments.length-1)),!0)};var Fi=function(){return Ni(gr,Oi,arguments)};Mi?Mi(jt.exports,"apply",{value:Fi}):jt.exports.apply=Fi});var ji=q((YT,Ji)=>{"use strict";var $i=Jt(),zi=Ki(),pv=zi($i("String.prototype.indexOf"));Ji.exports=function(t,n){var r=$i(t,!!n);return typeof r=="function"&&pv(t,".prototype.")>-1?zi(r):r}});var Zi=q((ZT,Yi)=>{Yi.exports=require("util").inspect});var bp=q((XT,hp)=>{var kr=typeof Map=="function"&&Map.prototype,yr=Object.getOwnPropertyDescriptor&&kr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xt=kr&&yr&&typeof yr.get=="function"?yr.get:null,Xi=kr&&Map.prototype.forEach,Pr=typeof Set=="function"&&Set.prototype,mr=Object.getOwnPropertyDescriptor&&Pr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,es=Pr&&mr&&typeof mr.get=="function"?mr.get:null,ep=Pr&&Set.prototype.forEach,uv=typeof WeakMap=="function"&&WeakMap.prototype,rt=uv?WeakMap.prototype.has:null,cv=typeof WeakSet=="function"&&WeakSet.prototype,nt=cv?WeakSet.prototype.has:null,dv=typeof WeakRef=="function"&&WeakRef.prototype,tp=dv?WeakRef.prototype.deref:null,lv=Boolean.prototype.valueOf,gv=Object.prototype.toString,yv=Function.prototype.toString,mv=String.prototype.match,Ar=String.prototype.slice,ce=String.prototype.replace,Rv=String.prototype.toUpperCase,sp=String.prototype.toLowerCase,dp=RegExp.prototype.test,rp=Array.prototype.concat,Z=Array.prototype.join,qv=Array.prototype.slice,np=Math.floor,hr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rr=Object.getOwnPropertySymbols,br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,lp=Object.prototype.propertyIsEnumerable,ap=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function op(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-np(-e):np(e);if(r!==e){var a=String(r),o=Ar.call(t,a.length+1);return ce.call(a,n,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,n,"$&_")}var fr=Zi(),ip=fr.custom,pp=mp(ip)?ip:null,gp={__proto__:null,double:'"',single:"'"},hv={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hp.exports=function e(t,n,r,a){var o=n||{};if(re(o,"quoteStyle")&&!re(gp,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=re(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(re(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(re(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return qp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?op(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?op(t,s):s}var y=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=y&&y>0&&typeof t=="object")return xr(t)?"[Array]":"[Object]";var P=_v(o,r);if(typeof a>"u")a=[];else if(Rp(a,t)>=0)return"[Circular]";function R(Y,ie,te){if(ie&&(a=qv.call(a),a.push(ie)),te){var $e={depth:o.depth};return re(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(Y,$e,r+1,a)}return e(Y,o,r+1,a)}if(typeof t=="function"&&!up(t)){var x=Bv(t),f=Zt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Z.call(f,", ")+" }":"")}if(mp(t)){var L=Me?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):br.call(t);return typeof t=="object"&&!Me?st(L):L}if(Sv(t)){for(var _="<"+sp.call(String(t.nodeName)),A=t.attributes||[],ee=0;ee<A.length;ee++)_+=" "+A[ee].name+"="+yp(bv(A[ee].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+sp.call(String(t.nodeName))+">",_}if(xr(t)){if(t.length===0)return"[]";var ae=Zt(t,R);return P&&!Lv(ae)?"["+Ir(ae,P)+"]":"[ "+Z.call(ae,", ")+" ]"}if(xv(t)){var ve=Zt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!lp.call(t,"cause")?"{ ["+String(t)+"] "+Z.call(rp.call("[cause]: "+R(t.cause),ve),", ")+" }":ve.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.call(ve,", ")+" }"}if(typeof t=="object"&&i){if(pp&&typeof t[pp]=="function"&&fr)return fr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Tv(t)){var Ve=[];return Xi&&Xi.call(t,function(Y,ie){Ve.push(R(ie,t,!0)+" => "+R(Y,t))}),cp("Map",Xt.call(t),Ve,P)}if(Uv(t)){var Ne=[];return ep&&ep.call(t,function(Y){Ne.push(R(Y,t))}),cp("Set",es.call(t),Ne,P)}if(Cv(t))return qr("WeakMap");if(Gv(t))return qr("WeakSet");if(wv(t))return qr("WeakRef");if(kv(t))return st(R(Number(t)));if(Av(t))return st(R(hr.call(t)));if(Pv(t))return st(lv.call(t));if(Iv(t))return st(R(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!fv(t)&&!up(t)){var le=Zt(t,R),Ke=ap?ap(t)===Object.prototype:t instanceof Object||t.constructor===Object,oe=t instanceof Object?"":"null prototype",Be=!Ke&&O&&Object(t)===t&&O in t?Ar.call(de(t),8,-1):oe?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Te=ge+(Be||oe?"["+Z.call(rp.call([],Be||[],oe||[]),": ")+"] ":"");return le.length===0?Te+"{}":P?Te+"{"+Ir(le,P)+"}":Te+"{ "+Z.call(le,", ")+" }"}return String(t)};function yp(e,t,n){var r=n.quoteStyle||t,a=gp[r];return a+e+a}function bv(e){return ce.call(String(e),/"/g,""")}function xr(e){return de(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function fv(e){return de(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function up(e){return de(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function xv(e){return de(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Iv(e){return de(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function kv(e){return de(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function Pv(e){return de(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function mp(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!br)return!1;try{return br.call(e),!0}catch{}return!1}function Av(e){if(!e||typeof e!="object"||!hr)return!1;try{return hr.call(e),!0}catch{}return!1}var vv=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return vv.call(e,t)}function de(e){return gv.call(e)}function Bv(e){if(e.name)return e.name;var t=mv.call(yv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Rp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Tv(e){if(!Xt||!e||typeof e!="object")return!1;try{Xt.call(e);try{es.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Cv(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e,rt);try{nt.call(e,nt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function wv(e){if(!tp||!e||typeof e!="object")return!1;try{return tp.call(e),!0}catch{}return!1}function Uv(e){if(!es||!e||typeof e!="object")return!1;try{es.call(e);try{Xt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Gv(e){if(!nt||!e||typeof e!="object")return!1;try{nt.call(e,nt);try{rt.call(e,rt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Sv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function qp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return qp(Ar.call(e,0,t.maxStringLength),t)+r}var a=hv[t.quoteStyle||"single"];a.lastIndex=0;var o=ce.call(ce.call(e,a,"\\$1"),/[\x00-\x1f]/g,Ev);return yp(o,"single",t)}function Ev(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Rv.call(t.toString(16))}function st(e){return"Object("+e+")"}function qr(e){return e+" { ? }"}function cp(e,t,n,r){var a=r?Ir(n,r):Z.call(n,", ");return e+" ("+t+") {"+a+"}"}function Lv(e){for(var t=0;t<e.length;t++)if(Rp(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";var nP=Object.create;var ot=Object.defineProperty;var aP=Object.getOwnPropertyDescriptor;var oP=Object.getOwnPropertyNames;var iP=Object.getPrototypeOf,pP=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var n in t)ot(e,n,{get:t[n],enumerable:!0})},za=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of oP(t))!pP.call(e,a)&&a!==n&&ot(e,a,{get:()=>t[a],enumerable:!(s=aP(t,a))||s.enumerable});return e};var E=(e,t,n)=>(n=e!=null?nP(iP(e)):{},za(t||!e||!e.__esModule?ot(n,"default",{value:e,enumerable:!0}):n,e)),uP=e=>za(ot({},"__esModule",{value:!0}),e);var ja=q((RT,Ja)=>{"use strict";var cP=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Ja.exports=e=>!cP.has(e&&e.code)});var Qt=q((IT,fo)=>{"use strict";fo.exports=Object});var Kr=q((kT,xo)=>{"use strict";xo.exports=Error});var $r=q((PT,Io)=>{"use strict";Io.exports=EvalError});var zr=q((vT,ko)=>{"use strict";ko.exports=RangeError});var Jr=q((AT,Po)=>{"use strict";Po.exports=ReferenceError});var Dt=q((BT,vo)=>{"use strict";vo.exports=SyntaxError});var Re=q((TT,Ao)=>{"use strict";Ao.exports=TypeError});var jr=q((CT,Bo)=>{"use strict";Bo.exports=URIError});var Yr=q((wT,To)=>{"use strict";To.exports=Math.abs});var Zr=q((UT,Co)=>{"use strict";Co.exports=Math.floor});var Xr=q((GT,wo)=>{"use strict";wo.exports=Math.max});var es=q((ST,Uo)=>{"use strict";Uo.exports=Math.min});var ts=q((ET,Go)=>{"use strict";Go.exports=Math.pow});var rs=q((LT,So)=>{"use strict";So.exports=Math.round});var Lo=q((_T,Eo)=>{"use strict";Eo.exports=Number.isNaN||function(t){return t!==t}});var ss=q((WT,_o)=>{"use strict";var NP=Lo();_o.exports=function(t){return NP(t)||t===0?t:t<0?-1:1}});var Qo=q((QT,Wo)=>{"use strict";Wo.exports=Object.getOwnPropertyDescriptor});var we=q((DT,Do)=>{"use strict";var Ht=Qo();if(Ht)try{Ht([],"length")}catch{Ht=null}Do.exports=Ht});var Ue=q((HT,Ho)=>{"use strict";var Mt=Object.defineProperty||!1;if(Mt)try{Mt({},"a",{value:1})}catch{Mt=!1}Ho.exports=Mt});var Fo=q((MT,Mo)=>{"use strict";Mo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),s=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[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 ns=q((FT,Vo)=>{"use strict";var Oo=typeof Symbol<"u"&&Symbol,KP=Fo();Vo.exports=function(){return typeof Oo!="function"||typeof Symbol!="function"||typeof Oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:KP()}});var Ft=q((OT,No)=>{"use strict";No.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ot=q((VT,Ko)=>{"use strict";var $P=Qt();Ko.exports=$P.getPrototypeOf||null});var Jo=q((NT,zo)=>{"use strict";var zP="Function.prototype.bind called on incompatible ",JP=Object.prototype.toString,jP=Math.max,YP="[object Function]",$o=function(t,n){for(var s=[],a=0;a<t.length;a+=1)s[a]=t[a];for(var o=0;o<n.length;o+=1)s[o+t.length]=n[o];return s},ZP=function(t,n){for(var s=[],a=n||0,o=0;a<t.length;a+=1,o+=1)s[o]=t[a];return s},XP=function(e,t){for(var n="",s=0;s<e.length;s+=1)n+=e[s],s+1<e.length&&(n+=t);return n};zo.exports=function(t){var n=this;if(typeof n!="function"||JP.apply(n)!==YP)throw new TypeError(zP+n);for(var s=ZP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,$o(s,arguments));return Object(y)===y?y:this}return n.apply(t,$o(s,arguments))},i=jP(0,n.length-s.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+XP(p,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var r=function(){};r.prototype=n.prototype,a.prototype=new r,r.prototype=null}return a}});var qe=q((KT,jo)=>{"use strict";var ev=Jo();jo.exports=Function.prototype.bind||ev});var Je=q(($T,Yo)=>{"use strict";Yo.exports=Function.prototype.call});var Vt=q((zT,Zo)=>{"use strict";Zo.exports=Function.prototype.apply});var ei=q((JT,Xo)=>{"use strict";Xo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ri=q((jT,ti)=>{"use strict";var tv=qe(),rv=Vt(),sv=Je(),nv=ei();ti.exports=nv||tv.call(sv,rv)});var ni=q((YT,si)=>{"use strict";var av=qe(),ov=Re(),iv=Je(),pv=ri();si.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ov("a function is required");return pv(av,iv,t)}});var ci=q((ZT,ui)=>{"use strict";var uv=ni(),ai=we(),ii;try{ii=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var as=!!ii&&ai&&ai(Object.prototype,"__proto__"),pi=Object,oi=pi.getPrototypeOf;ui.exports=as&&typeof as.get=="function"?uv([as.get]):typeof oi=="function"?function(t){return oi(t==null?t:pi(t))}:!1});var os=q((XT,yi)=>{"use strict";var di=Ft(),li=Ot(),gi=ci();yi.exports=di?function(t){return di(t)}:li?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return li(t)}:gi?function(t){return gi(t)}:null});var is=q((eC,mi)=>{"use strict";var cv=Function.prototype.call,dv=Object.prototype.hasOwnProperty,lv=qe();mi.exports=lv.call(cv,dv)});var Ii=q((tC,xi)=>{"use strict";var k,gv=Qt(),yv=Kr(),mv=$r(),Rv=zr(),qv=Jr(),Le=Dt(),Ee=Re(),hv=jr(),bv=Yr(),fv=Zr(),xv=Xr(),Iv=es(),kv=ts(),Pv=rs(),vv=ss(),bi=Function,ps=function(e){try{return bi('"use strict"; return ('+e+").constructor;")()}catch{}},je=we(),Av=Ue(),us=function(){throw new Ee},Bv=je?(function(){try{return arguments.callee,us}catch{try{return je(arguments,"callee").get}catch{return us}}})():us,Ge=ns()(),W=os(),Tv=Ot(),Cv=Ft(),fi=Vt(),Ye=Je(),Se={},wv=typeof Uint8Array>"u"||!W?k:W(Uint8Array),he={__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%":Se,"%AsyncGenerator%":Se,"%AsyncGeneratorFunction%":Se,"%AsyncIteratorPrototype%":Se,"%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%":yv,"%eval%":eval,"%EvalError%":mv,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":bi,"%GeneratorFunction%":Se,"%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%":gv,"%Object.getOwnPropertyDescriptor%":je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Rv,"%ReferenceError%":qv,"%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%":Bv,"%TypedArray%":wv,"%TypeError%":Ee,"%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%":hv,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ye,"%Function.prototype.apply%":fi,"%Object.defineProperty%":Av,"%Object.getPrototypeOf%":Tv,"%Math.abs%":bv,"%Math.floor%":fv,"%Math.max%":xv,"%Math.min%":Iv,"%Math.pow%":kv,"%Math.round%":Pv,"%Math.sign%":vv,"%Reflect.getPrototypeOf%":Cv};if(W)try{null.error}catch(e){Ri=W(W(e)),he["%Error.prototype%"]=Ri}var Ri,Uv=function e(t){var n;if(t==="%AsyncFunction%")n=ps("async function () {}");else if(t==="%GeneratorFunction%")n=ps("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ps("async function* () {}");else if(t==="%AsyncGenerator%"){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&W&&(n=W(a.prototype))}return he[t]=n,n},qi={__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"]},Ze=qe(),Nt=is(),Gv=Ze.call(Ye,Array.prototype.concat),Sv=Ze.call(fi,Array.prototype.splice),hi=Ze.call(Ye,String.prototype.replace),Kt=Ze.call(Ye,String.prototype.slice),Ev=Ze.call(Ye,RegExp.prototype.exec),Lv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_v=/\\(\\)?/g,Wv=function(t){var n=Kt(t,0,1),s=Kt(t,-1);if(n==="%"&&s!=="%")throw new Le("invalid intrinsic syntax, expected closing `%`");if(s==="%"&&n!=="%")throw new Le("invalid intrinsic syntax, expected opening `%`");var a=[];return hi(t,Lv,function(o,i,p,u){a[a.length]=p?hi(u,_v,"$1"):i||o}),a},Qv=function(t,n){var s=t,a;if(Nt(qi,s)&&(a=qi[s],s="%"+a[0]+"%"),Nt(he,s)){var o=he[s];if(o===Se&&(o=Uv(s)),typeof o>"u"&&!n)throw new Ee("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:s,value:o}}throw new Le("intrinsic "+t+" does not exist!")};xi.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ee('"allowMissing" argument must be a boolean');if(Ev(/^%?[^%]*%?$/,t)===null)throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=Wv(t),a=s.length>0?s[0]:"",o=Qv("%"+a+"%",n),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],Sv(s,Gv([0,1],r)));for(var y=1,P=!0;y<s.length;y+=1){var R=s[y],x=Kt(R,0,1),f=Kt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Le("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",Nt(he,i))p=he[i];else if(p!=null){if(!(R in p)){if(!n)throw new Ee("base intrinsic for "+t+" exists, but the property is not available.");return}if(je&&y+1>=s.length){var L=je(p,R);P=!!L,P&&"get"in L&&!("originalValue"in L.get)?p=L.get:p=p[R]}else P=Nt(p,R),p=p[R];P&&!u&&(he[i]=p)}}return p}});var Jt=q((rC,Ti)=>{"use strict";var I,Dv=Qt(),Hv=Kr(),Mv=$r(),Fv=zr(),Ov=Jr(),De=Dt(),Qe=Re(),Vv=jr(),Nv=Yr(),Kv=Zr(),$v=Xr(),zv=es(),Jv=ts(),jv=rs(),Yv=ss(),Ai=Function,cs=function(e){try{return Ai('"use strict"; return ('+e+").constructor;")()}catch{}},Xe=we(),Zv=Ue(),ds=function(){throw new Qe},Xv=Xe?(function(){try{return arguments.callee,ds}catch{try{return Xe(arguments,"callee").get}catch{return ds}}})():ds,_e=ns()(),Q=os(),eA=Ot(),tA=Ft(),Bi=Vt(),et=Je(),We={},rA=typeof Uint8Array>"u"||!Q?I:Q(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":_e&&Q?Q([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":We,"%AsyncGenerator%":We,"%AsyncGeneratorFunction%":We,"%AsyncIteratorPrototype%":We,"%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%":Hv,"%eval%":eval,"%EvalError%":Mv,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":Ai,"%GeneratorFunction%":We,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_e&&Q?Q(Q([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_e||!Q?I:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Dv,"%Object.getOwnPropertyDescriptor%":Xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Fv,"%ReferenceError%":Ov,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_e||!Q?I:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_e&&Q?Q(""[Symbol.iterator]()):I,"%Symbol%":_e?Symbol:I,"%SyntaxError%":De,"%ThrowTypeError%":Xv,"%TypedArray%":rA,"%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%":Vv,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":et,"%Function.prototype.apply%":Bi,"%Object.defineProperty%":Zv,"%Object.getPrototypeOf%":eA,"%Math.abs%":Nv,"%Math.floor%":Kv,"%Math.max%":$v,"%Math.min%":zv,"%Math.pow%":Jv,"%Math.round%":jv,"%Math.sign%":Yv,"%Reflect.getPrototypeOf%":tA};if(Q)try{null.error}catch(e){ki=Q(Q(e)),be["%Error.prototype%"]=ki}var ki,sA=function e(t){var n;if(t==="%AsyncFunction%")n=cs("async function () {}");else if(t==="%GeneratorFunction%")n=cs("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=cs("async function* () {}");else if(t==="%AsyncGenerator%"){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Q&&(n=Q(a.prototype))}return be[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"]},tt=qe(),$t=is(),nA=tt.call(et,Array.prototype.concat),aA=tt.call(Bi,Array.prototype.splice),vi=tt.call(et,String.prototype.replace),zt=tt.call(et,String.prototype.slice),oA=tt.call(et,RegExp.prototype.exec),iA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pA=/\\(\\)?/g,uA=function(t){var n=zt(t,0,1),s=zt(t,-1);if(n==="%"&&s!=="%")throw new De("invalid intrinsic syntax, expected closing `%`");if(s==="%"&&n!=="%")throw new De("invalid intrinsic syntax, expected opening `%`");var a=[];return vi(t,iA,function(o,i,p,u){a[a.length]=p?vi(u,pA,"$1"):i||o}),a},cA=function(t,n){var s=t,a;if($t(Pi,s)&&(a=Pi[s],s="%"+a[0]+"%"),$t(be,s)){var o=be[s];if(o===We&&(o=sA(s)),typeof o>"u"&&!n)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:s,value:o}}throw new De("intrinsic "+t+" does not exist!")};Ti.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(oA(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=uA(t),a=s.length>0?s[0]:"",o=cA("%"+a+"%",n),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],aA(s,nA([0,1],r)));for(var y=1,P=!0;y<s.length;y+=1){var R=s[y],x=zt(R,0,1),f=zt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new De("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",$t(be,i))p=be[i];else if(p!=null){if(!(R in p)){if(!n)throw new Qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(Xe&&y+1>=s.length){var L=Xe(p,R);P=!!L,P&&"get"in L&&!("originalValue"in L.get)?p=L.get:p=p[R]}else P=$t(p,R),p=p[R];P&&!u&&(be[i]=p)}}return p}});var Gi=q((sC,Ui)=>{"use strict";var Ci=Ue(),dA=Dt(),He=Re(),wi=we();Ui.exports=function(t,n,s){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=!!wi&&wi(t,n);if(Ci)Ci(t,n,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:s,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[n]=s;else throw new dA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Li=q((nC,Ei)=>{"use strict";var ls=Ue(),Si=function(){return!!ls};Si.hasArrayLengthDefineBug=function(){if(!ls)return null;try{return ls([],"length",{value:1}).length!==1}catch{return!0}};Ei.exports=Si});var Hi=q((aC,Di)=>{"use strict";var lA=Jt(),_i=Gi(),gA=Li()(),Wi=we(),Qi=Re(),yA=lA("%Math.floor%");Di.exports=function(t,n){if(typeof t!="function")throw new Qi("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||yA(n)!==n)throw new Qi("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Wi){var i=Wi(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!s)&&(gA?_i(t,"length",n,!0,!0):_i(t,"length",n)),t}});var Ki=q((oC,jt)=>{"use strict";var gs=qe(),Yt=Jt(),mA=Hi(),RA=Re(),Oi=Yt("%Function.prototype.apply%"),Vi=Yt("%Function.prototype.call%"),Ni=Yt("%Reflect.apply%",!0)||gs.call(Vi,Oi),Mi=Ue(),qA=Yt("%Math.max%");jt.exports=function(t){if(typeof t!="function")throw new RA("a function is required");var n=Ni(gs,Vi,arguments);return mA(n,1+qA(0,t.length-(arguments.length-1)),!0)};var Fi=function(){return Ni(gs,Oi,arguments)};Mi?Mi(jt.exports,"apply",{value:Fi}):jt.exports.apply=Fi});var ji=q((iC,Ji)=>{"use strict";var $i=Jt(),zi=Ki(),hA=zi($i("String.prototype.indexOf"));Ji.exports=function(t,n){var s=$i(t,!!n);return typeof s=="function"&&hA(t,".prototype.")>-1?zi(s):s}});var Zi=q((pC,Yi)=>{Yi.exports=require("util").inspect});var bp=q((uC,hp)=>{var ks=typeof Map=="function"&&Map.prototype,ys=Object.getOwnPropertyDescriptor&&ks?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xt=ks&&ys&&typeof ys.get=="function"?ys.get:null,Xi=ks&&Map.prototype.forEach,Ps=typeof Set=="function"&&Set.prototype,ms=Object.getOwnPropertyDescriptor&&Ps?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,er=Ps&&ms&&typeof ms.get=="function"?ms.get:null,ep=Ps&&Set.prototype.forEach,bA=typeof WeakMap=="function"&&WeakMap.prototype,st=bA?WeakMap.prototype.has:null,fA=typeof WeakSet=="function"&&WeakSet.prototype,nt=fA?WeakSet.prototype.has:null,xA=typeof WeakRef=="function"&&WeakRef.prototype,tp=xA?WeakRef.prototype.deref:null,IA=Boolean.prototype.valueOf,kA=Object.prototype.toString,PA=Function.prototype.toString,vA=String.prototype.match,vs=String.prototype.slice,ce=String.prototype.replace,AA=String.prototype.toUpperCase,rp=String.prototype.toLowerCase,dp=RegExp.prototype.test,sp=Array.prototype.concat,Z=Array.prototype.join,BA=Array.prototype.slice,np=Math.floor,hs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rs=Object.getOwnPropertySymbols,bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,lp=Object.prototype.propertyIsEnumerable,ap=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function op(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var s=e<0?-np(-e):np(e);if(s!==e){var a=String(s),o=vs.call(t,a.length+1);return ce.call(a,n,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,n,"$&_")}var fs=Zi(),ip=fs.custom,pp=mp(ip)?ip:null,gp={__proto__:null,double:'"',single:"'"},TA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hp.exports=function e(t,n,s,a){var o=n||{};if(se(o,"quoteStyle")&&!se(gp,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=se(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(se(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(se(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return qp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?op(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?op(t,r):r}var y=typeof o.depth>"u"?5:o.depth;if(typeof s>"u"&&(s=0),s>=y&&y>0&&typeof t=="object")return xs(t)?"[Array]":"[Object]";var P=KA(o,s);if(typeof a>"u")a=[];else if(Rp(a,t)>=0)return"[Circular]";function R(Y,ie,te){if(ie&&(a=BA.call(a),a.push(ie)),te){var $e={depth:o.depth};return se(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(Y,$e,s+1,a)}return e(Y,o,s+1,a)}if(typeof t=="function"&&!up(t)){var x=WA(t),f=Zt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Z.call(f,", ")+" }":"")}if(mp(t)){var L=Me?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bs.call(t);return typeof t=="object"&&!Me?rt(L):L}if(OA(t)){for(var _="<"+rp.call(String(t.nodeName)),v=t.attributes||[],ee=0;ee<v.length;ee++)_+=" "+v[ee].name+"="+yp(CA(v[ee].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+rp.call(String(t.nodeName))+">",_}if(xs(t)){if(t.length===0)return"[]";var ae=Zt(t,R);return P&&!NA(ae)?"["+Is(ae,P)+"]":"[ "+Z.call(ae,", ")+" ]"}if(UA(t)){var Ae=Zt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!lp.call(t,"cause")?"{ ["+String(t)+"] "+Z.call(sp.call("[cause]: "+R(t.cause),Ae),", ")+" }":Ae.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.call(Ae,", ")+" }"}if(typeof t=="object"&&i){if(pp&&typeof t[pp]=="function"&&fs)return fs(t,{depth:y-s});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(QA(t)){var Ve=[];return Xi&&Xi.call(t,function(Y,ie){Ve.push(R(ie,t,!0)+" => "+R(Y,t))}),cp("Map",Xt.call(t),Ve,P)}if(MA(t)){var Ne=[];return ep&&ep.call(t,function(Y){Ne.push(R(Y,t))}),cp("Set",er.call(t),Ne,P)}if(DA(t))return qs("WeakMap");if(FA(t))return qs("WeakSet");if(HA(t))return qs("WeakRef");if(SA(t))return rt(R(Number(t)));if(LA(t))return rt(R(hs.call(t)));if(EA(t))return rt(IA.call(t));if(GA(t))return rt(R(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!wA(t)&&!up(t)){var le=Zt(t,R),Ke=ap?ap(t)===Object.prototype:t instanceof Object||t.constructor===Object,oe=t instanceof Object?"":"null prototype",Be=!Ke&&O&&Object(t)===t&&O in t?vs.call(de(t),8,-1):oe?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Te=ge+(Be||oe?"["+Z.call(sp.call([],Be||[],oe||[]),": ")+"] ":"");return le.length===0?Te+"{}":P?Te+"{"+Is(le,P)+"}":Te+"{ "+Z.call(le,", ")+" }"}return String(t)};function yp(e,t,n){var s=n.quoteStyle||t,a=gp[s];return a+e+a}function CA(e){return ce.call(String(e),/"/g,""")}function xs(e){return de(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function wA(e){return de(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function up(e){return de(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function UA(e){return de(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function GA(e){return de(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function SA(e){return de(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function EA(e){return de(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function mp(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!bs)return!1;try{return bs.call(e),!0}catch{}return!1}function LA(e){if(!e||typeof e!="object"||!hs)return!1;try{return hs.call(e),!0}catch{}return!1}var _A=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return _A.call(e,t)}function de(e){return kA.call(e)}function WA(e){if(e.name)return e.name;var t=vA.call(PA.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Rp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,s=e.length;n<s;n++)if(e[n]===t)return n;return-1}function QA(e){if(!Xt||!e||typeof e!="object")return!1;try{Xt.call(e);try{er.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function DA(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{nt.call(e,nt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function HA(e){if(!tp||!e||typeof e!="object")return!1;try{return tp.call(e),!0}catch{}return!1}function MA(e){if(!er||!e||typeof e!="object")return!1;try{er.call(e);try{Xt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function FA(e){if(!nt||!e||typeof e!="object")return!1;try{nt.call(e,nt);try{st.call(e,st)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function OA(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function qp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,s="... "+n+" more character"+(n>1?"s":"");return qp(vs.call(e,0,t.maxStringLength),t)+s}var a=TA[t.quoteStyle||"single"];a.lastIndex=0;var o=ce.call(ce.call(e,a,"\\$1"),/[\x00-\x1f]/g,VA);return yp(o,"single",t)}function VA(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":"")+AA.call(t.toString(16))}function rt(e){return"Object("+e+")"}function qs(e){return e+" { ? }"}function cp(e,t,n,s){var a=s?Is(n,s):Z.call(n,", ");return e+" ("+t+") {"+a+"}"}function NA(e){for(var t=0;t<e.length;t++)if(Rp(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function KA(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Z.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Z.call(Array(t+1),n)}}function Is(e,t){if(e.length===0)return"";var n=`
|
|
3
3
|
`+t.prev+t.base;return n+Z.call(e,","+n)+`
|
|
4
|
-
`+t.prev}function Zt(e,t){var n=xr(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=re(e,a)?t(e[a],e):""}var o=typeof Rr=="function"?Rr(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(n&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(dp.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof Rr=="function")for(var s=0;s<o.length;s++)lp.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var xp=q((eC,fp)=>{"use strict";var vr=Ii(),Fe=ji(),Wv=bp(),Qv=vr("%TypeError%"),ts=vr("%WeakMap%",!0),ss=vr("%Map%",!0),Dv=Fe("WeakMap.prototype.get",!0),Hv=Fe("WeakMap.prototype.set",!0),Mv=Fe("WeakMap.prototype.has",!0),Fv=Fe("Map.prototype.get",!0),Ov=Fe("Map.prototype.set",!0),Vv=Fe("Map.prototype.has",!0),Br=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},Nv=function(e,t){var n=Br(e,t);return n&&n.value},Kv=function(e,t,n){var r=Br(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},$v=function(e,t){return!!Br(e,t)};fp.exports=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new Qv("Side channel does not contain "+Wv(o))},get:function(o){if(ts&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Dv(t,o)}else if(ss){if(n)return Fv(n,o)}else if(r)return Nv(r,o)},has:function(o){if(ts&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Mv(t,o)}else if(ss){if(n)return Vv(n,o)}else if(r)return $v(r,o);return!1},set:function(o,i){ts&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ts),Hv(t,o,i)):ss?(n||(n=new ss),Ov(n,o,i)):(r||(r={key:{},next:null}),Kv(r,o,i))}};return a}});var rs=q((tC,Ip)=>{"use strict";var zv=String.prototype.replace,Jv=/%20/g,Tr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ip.exports={default:Tr.RFC3986,formatters:{RFC1738:function(e){return zv.call(e,Jv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Tr.RFC1738,RFC3986:Tr.RFC3986}});var wr=q((sC,Pp)=>{"use strict";var jv=rs(),Cr=Object.prototype.hasOwnProperty,fe=Array.isArray,X=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Yv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(fe(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},kp=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(r[a]=t[a]);return r},Zv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(fe(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Cr.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return fe(t)&&!fe(n)&&(a=kp(t,r)),fe(t)&&fe(n)?(n.forEach(function(o,i){if(Cr.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(n).reduce(function(o,i){var p=n[i];return Cr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},a)},Xv=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},eB=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}},tB=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===jv.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+X[s];continue}if(s<2048){p=p+(X[192|s>>6]+X[128|s&63]);continue}if(s<55296||s>=57344){p=p+(X[224|s>>12]+X[128|s>>6&63]+X[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=X[240|s>>18]+X[128|s>>12&63]+X[128|s>>6&63]+X[128|s&63]}return p},sB=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 Yv(n),t},rB=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},nB=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},aB=function(t,n){return[].concat(t,n)},oB=function(t,n){if(fe(t)){for(var r=[],a=0;a<t.length;a+=1)r.push(n(t[a]));return r}return n(t)};Pp.exports={arrayToObject:kp,assign:Xv,combine:aB,compact:sB,decode:eB,encode:tB,isBuffer:nB,isRegExp:rB,maybeMap:oB,merge:Zv}});var wp=q((rC,Cp)=>{"use strict";var Bp=xp(),Gr=wr(),at=rs(),iB=Object.prototype.hasOwnProperty,Ap={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},ne=Array.isArray,pB=String.prototype.split,uB=Array.prototype.push,Tp=function(e,t){uB.apply(e,ne(t)?t:[t])},cB=Date.prototype.toISOString,vp=at.default,M={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Gr.encode,encodeValuesOnly:!1,format:vp,formatter:at.formatters[vp],indices:!1,serializeDate:function(t){return cB.call(t)},skipNulls:!1,strictNullHandling:!1},dB=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ur={},lB=function e(t,n,r,a,o,i,p,u,s,y,P,R,x,f,L,_){for(var A=t,ee=_,ae=0,ve=!1;(ee=ee.get(Ur))!==void 0&&!ve;){var Ve=ee.get(t);if(ae+=1,typeof Ve<"u"){if(Ve===ae)throw new RangeError("Cyclic object value");ve=!0}typeof ee.get(Ur)>"u"&&(ae=0)}if(typeof u=="function"?A=u(n,A):A instanceof Date?A=P(A):r==="comma"&&ne(A)&&(A=Gr.maybeMap(A,function(ds){return ds instanceof Date?P(ds):ds})),A===null){if(o)return p&&!f?p(n,M.encoder,L,"key",R):n;A=""}if(dB(A)||Gr.isBuffer(A)){if(p){var Ne=f?n:p(n,M.encoder,L,"key",R);if(r==="comma"&&f){for(var le=pB.call(String(A),","),Ke="",oe=0;oe<le.length;++oe)Ke+=(oe===0?"":",")+x(p(le[oe],M.encoder,L,"value",R));return[x(Ne)+(a&&ne(A)&&le.length===1?"[]":"")+"="+Ke]}return[x(Ne)+"="+x(p(A,M.encoder,L,"value",R))]}return[x(n)+"="+x(String(A))]}var Be=[];if(typeof A>"u")return Be;var ge;if(r==="comma"&&ne(A))ge=[{value:A.length>0?A.join(",")||null:void 0}];else if(ne(u))ge=u;else{var Te=Object.keys(A);ge=s?Te.sort(s):Te}for(var Y=a&&ne(A)&&A.length===1?n+"[]":n,ie=0;ie<ge.length;++ie){var te=ge[ie],$e=typeof te=="object"&&typeof te.value<"u"?te.value:A[te];if(!(i&&$e===null)){var $k=ne(A)?typeof r=="function"?r(Y,te):Y:Y+(y?"."+te:"["+te+"]");_.set(t,ae);var $a=Bp();$a.set(Ur,_),Tp(Be,e($e,$k,r,a,o,i,p,u,s,y,P,R,x,f,L,$a))}}return Be},gB=function(t){if(!t)return M;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||M.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=at.default;if(typeof t.format<"u"){if(!iB.call(at.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var a=at.formatters[r],o=M.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:M.addQueryPrefix,allowDots:typeof t.allowDots>"u"?M.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:M.charsetSentinel,delimiter:typeof t.delimiter>"u"?M.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:M.encode,encoder:typeof t.encoder=="function"?t.encoder:M.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:M.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:M.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:M.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:M.strictNullHandling}};Cp.exports=function(e,t){var n=e,r=gB(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ne(r.filter)&&(o=r.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in Ap?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Ap[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var y=Bp(),P=0;P<a.length;++P){var R=a[P];r.skipNulls&&n[R]===null||Tp(i,lB(n[R],R,u,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,y))}var x=i.join(r.delimiter),f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Sp=q((nC,Gp)=>{"use strict";var Oe=wr(),Sr=Object.prototype.hasOwnProperty,yB=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},mB=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Up=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},RB="utf8=%26%2310003%3B",qB="utf8=%E2%9C%93",hB=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]===qB?s="utf-8":i[u]===RB&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),R=P===-1?y.indexOf("="):P+1,x,f;R===-1?(x=n.decoder(y,D.decoder,s,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,R),D.decoder,s,"key"),f=Oe.maybeMap(Up(y.slice(R+1),n),function(L){return n.decoder(L,D.decoder,s,"value")})),f&&n.interpretNumericEntities&&s==="iso-8859-1"&&(f=mB(f)),y.indexOf("[]=")>-1&&(f=yB(f)?[f]:f),Sr.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},bB=function(e,t,n,r){for(var a=r?t:Up(t,n),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!n.parseArrays&&u===""?i={0:a}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},fB=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&&Sr.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&&Sr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),bB(y,n,r,a)}},xB=function(t){if(!t)return D;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Gp.exports=function(e,t){var n=xB(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?hB(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=fB(p,r[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var xe=q((aC,Ep)=>{"use strict";var IB=wp(),kB=Sp(),PB=rs();Ep.exports={formats:PB,parse:kB,stringify:IB}});var rT={};j(rT,{AlreadyExistsError:()=>Ut,BreakingChangesError:()=>_t,Client:()=>Ka,ForbiddenError:()=>mt,InternalError:()=>gt,InvalidDataFormatError:()=>It,InvalidIdentifierError:()=>kt,InvalidJsonSchemaError:()=>xt,InvalidPayloadError:()=>qt,InvalidQueryError:()=>Ct,LimitExceededError:()=>Lt,MethodNotFoundError:()=>bt,OperationTimeoutError:()=>Wt,PayloadTooLargeError:()=>Rt,PaymentRequiredError:()=>St,QuotaExceededError:()=>Et,RateLimitedError:()=>Gt,ReferenceConstraintError:()=>At,ReferenceNotFoundError:()=>Tt,RelationConflictError:()=>Pt,ResourceGoneError:()=>Bt,ResourceLockedConflictError:()=>vt,ResourceNotFoundError:()=>ft,RuntimeError:()=>wt,UnauthorizedError:()=>yt,UnknownError:()=>ue,UnsupportedMediaTypeError:()=>ht,UploadFileError:()=>se,admin:()=>dn,axios:()=>nT,axiosRetry:()=>ms,billing:()=>Hn,errorFrom:()=>ye,files:()=>Ra,isApiError:()=>Ro,runtime:()=>Lr,tables:()=>Na});module.exports=Xk(rT);var nT=E(require("axios"));var ms={};j(ms,{DEFAULT_OPTIONS:()=>ro,default:()=>J,exponentialDelay:()=>to,isIdempotentRequestError:()=>gs,isNetworkError:()=>ls,isNetworkOrIdempotentRequestError:()=>ys,isRetryableError:()=>pt,isSafeRequestError:()=>eo,linearDelay:()=>so,namespace:()=>it,retryAfter:()=>ut});var Za=E(ja(),1),it="axios-retry";function ls(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Za.default)(e)}var Xa=["get","head","options"],tP=Xa.concat(["put","delete"]);function pt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function eo(e){return e.config?.method?pt(e)&&Xa.indexOf(e.config.method)!==-1:!1}function gs(e){return e.config?.method?pt(e)&&tP.indexOf(e.config.method)!==-1:!1}function ys(e){return ls(e)||gs(e)}function ut(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 sP(e=0,t=void 0){return Math.max(0,ut(t))}function to(e=0,t=void 0,n=100){let r=2**e*n,a=Math.max(r,ut(t)),o=a*.2*Math.random();return a+o}function so(e=100){return(t=0,n=void 0)=>{let r=t*e;return Math.max(r,ut(n))}}var ro={retries:3,retryCondition:ys,retryDelay:sP,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function rP(e,t){return{...ro,...t,...e[it]}}function Ya(e,t,n=!1){let r=rP(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=Date.now()),e[it]=r,r}function nP(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 aP(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 oP(e,t,n,r){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(nP(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 iP(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var pe=(e,t)=>{let n=e.interceptors.request.use(a=>(Ya(a,t,!0),a[it]?.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=Ya(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await aP(i,a)?oP(e,i,a,o):(await iP(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};pe.isNetworkError=ls;pe.isSafeRequestError=eo;pe.isIdempotentRequestError=gs;pe.isNetworkOrIdempotentRequestError=ys;pe.exponentialDelay=to;pe.linearDelay=so;pe.isRetryableError=pt;var J=pe;var Lr={};j(Lr,{Client:()=>Er});var Rs=require("browser-or-node"),ct=E(require("http")),dt=E(require("https")),no=100*1024*1024,ao=no,oo=no,io=Rs.isNode&&ct.default&&ct.default.Agent?new ct.default.Agent({keepAlive:!0}):void 0,po=Rs.isNode&&dt.default&&dt.default.Agent?new dt.default.Agent({keepAlive:!0}):void 0;var K={};j(K,{getClientConfig:()=>RP});var ze=require("browser-or-node"),pP="https://api.botpress.cloud",uP=6e4,cP=!1,dP="BP_API_URL",lP="BP_BOT_ID",gP="BP_INTEGRATION_ID",yP="BP_WORKSPACE_ID",mP="BP_TOKEN";function RP(e){let t=qP(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??pP,a=t.timeout??uP,o=t.debug??cP;return{apiUrl:r,timeout:a,withCredentials:ze.isBrowser,headers:n,debug:o}}function qP(e){return ze.isBrowser?e:ze.isNode?hP(e):e}function hP(e){let t={...e,apiUrl:e.apiUrl??process.env[dP],botId:e.botId??process.env[lP],integrationId:e.integrationId??process.env[gP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[yP]},n=t.token??process.env[mP];return n&&(t.token=n),t}var m={};j(m,{AsyncCollection:()=>qs});var qs=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 $={};j($,{createAxiosInstance:()=>PP});var yo=E(require("axios"));var co=require("browser-or-node"),lt;co.isNode?lt=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?lt=()=>crypto.randomUUID():lt=()=>Math.random().toString(36).substring(2,15);var lo=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:lt()},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
|
-
`},
|
|
6
|
-
`},xP=e=>{let t=e?go(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})},go=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:ao,maxContentLength:oo,httpAgent:io,httpsAgent:po}),PP=e=>{let t=kP(e),n=yo.default.create(t);return e.debug&&lo(n),n};var z={};j(z,{toApiError:()=>CP});var ho=E(require("axios"));var mo=E(require("crypto"));var AP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},hs=typeof window<"u"&&typeof window.document<"u"?window.crypto:mo.default;hs.getRandomValues||(hs=AP);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(hs.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"}},vP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ro=e=>e instanceof v||vP(e)&&e.isApiError===!0,ue=class extends v{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},gt=class extends v{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},yt=class extends v{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},mt=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)}},Rt=class extends v{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},qt=class extends v{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},ht=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)}},bt=class extends v{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},ft=class extends v{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},xt=class extends v{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},It=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)}},kt=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)}},Pt=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)}},At=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)}},vt=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)}},Bt=class extends v{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Tt=class extends v{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Ct=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)}},wt=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)}},Ut=class extends v{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Gt=class extends v{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},St=class extends v{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Et=class extends v{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Lt=class extends v{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},_t=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)}},Wt=class extends v{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},BP={Unknown:ue,Internal:gt,Unauthorized:yt,Forbidden:mt,PayloadTooLarge:Rt,InvalidPayload:qt,UnsupportedMediaType:ht,MethodNotFound:bt,ResourceNotFound:ft,InvalidJsonSchema:xt,InvalidDataFormat:It,InvalidIdentifier:kt,RelationConflict:Pt,ReferenceConstraint:At,ResourceLockedConflict:vt,ResourceGone:Bt,ReferenceNotFound:Tt,InvalidQuery:Ct,Runtime:wt,AlreadyExists:Ut,RateLimited:Gt,PaymentRequired:St,QuotaExceeded:Et,LimitExceeded:Lt,BreakingChanges:_t,OperationTimeout:Wt},ye=e=>Ro(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(e):TP(e);function TP(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=BP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var se=class extends Error{constructor(n,r,a){super(n);this.innerError=r;this.file=a;this.name="FileUploadError"}};var CP=e=>ho.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e);var Rc=E(require("axios"));var bo=E(require("crypto"));var wP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},bs=typeof window<"u"&&typeof window.document<"u"?window.crypto:bo.default;bs.getRandomValues||(bs=wP);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(bs.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"}},UP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,GP=e=>e instanceof B||UP(e)&&e.isApiError===!0,me=class extends B{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},fs=class extends B{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},xs=class extends B{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Is=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)}},ks=class extends B{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Ps=class extends B{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},As=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)}},vs=class extends B{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Bs=class extends B{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Ts=class extends B{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Cs=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)}},ws=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)}},Us=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)}},Gs=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)}},Ss=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)}},Es=class extends B{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Ls=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)}},_s=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)}},Ws=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)}},Qs=class extends B{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ds=class extends B{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Hs=class extends B{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ms=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)}},Fs=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)}},Os=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)}},Vs=class extends B{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},SP={Unknown:me,Internal:fs,Unauthorized:xs,Forbidden:Is,PayloadTooLarge:ks,InvalidPayload:Ps,UnsupportedMediaType:As,MethodNotFound:vs,ResourceNotFound:Bs,InvalidJsonSchema:Ts,InvalidDataFormat:Cs,InvalidIdentifier:ws,RelationConflict:Us,ReferenceConstraint:Gs,ResourceLockedConflict:Ss,ResourceGone:Es,ReferenceNotFound:Ls,InvalidQuery:_s,Runtime:Ws,AlreadyExists:Qs,RateLimited:Ds,PaymentRequired:Hs,QuotaExceeded:Ms,LimitExceeded:Fs,BreakingChanges:Os,OperationTimeout:Vs},Ns=e=>GP(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(e):EP(e);function EP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=SP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var Lp=E(xe()),AB=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(AB),p=Object.fromEntries(i),u=Lp.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 _p=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var Qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hp=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate,minMessageCount:e.minMessageCount,maxMessageCount:e.maxMessageCount},params:{},body:{}});var Fp=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties,discriminateByTags:e.discriminateByTags}});var Vp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags,properties:e.properties}});var Kp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var eu=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var su=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var nu=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var pu=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var lu=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var yu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var hu=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var fu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var Pu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var vu=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var Tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wu=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Gu=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var Eu=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 _u=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var 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:{}});var Fu=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 Vu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Ku=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var zu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ju=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Zu=e=>({path:"/v1/chat/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 ec=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sc=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 nc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var pc=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var cc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type},params:{key:e.key},body:{}});var lc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var yc=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 ns=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=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:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Hp(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}=Fp(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}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Eu(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}=_u(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=Qu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=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)})};getOrSetState=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)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=Ku(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=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:"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}=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)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=sc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=nc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=oc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=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)})};listTagValues=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)})};trackAnalytics=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)})};captureObservation=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:"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 Rc.default.isAxiosError(e)&&e.response?.data?Ns(e.response.data):Ns(e)}var Er=class extends ns{config;constructor(t){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users})))}}};var dn={};j(dn,{Client:()=>cn});var Ay=E(require("axios"));var qc=E(require("crypto"));var BB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},_r=typeof window<"u"&&typeof window.document<"u"?window.crypto:qc.default;_r.getRandomValues||(_r=BB);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(_r.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"}},TB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,CB=e=>e instanceof T||TB(e)&&e.isApiError===!0,Ie=class extends T{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Wr=class extends T{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Qr=class extends T{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Dr=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)}},Hr=class extends T{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Mr=class extends T{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Fr=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)}},Or=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Vr=class extends T{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Nr=class extends T{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Kr=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)}},$r=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)}},zr=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)}},Jr=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)}},jr=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)}},Yr=class extends T{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Zr=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)}},Xr=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)}},en=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)}},tn=class extends T{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},sn=class extends T{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},rn=class extends T{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},nn=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)}},an=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)}},on=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)}},pn=class extends T{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},wB={Unknown:Ie,Internal:Wr,Unauthorized:Qr,Forbidden:Dr,PayloadTooLarge:Hr,InvalidPayload:Mr,UnsupportedMediaType:Fr,MethodNotFound:Or,ResourceNotFound:Vr,InvalidJsonSchema:Nr,InvalidDataFormat:Kr,InvalidIdentifier:$r,RelationConflict:zr,ReferenceConstraint:Jr,ResourceLockedConflict:jr,ResourceGone:Yr,ReferenceNotFound:Zr,InvalidQuery:Xr,Runtime:en,AlreadyExists:tn,RateLimited:sn,PaymentRequired:rn,QuotaExceeded:nn,LimitExceeded:an,BreakingChanges:on,OperationTimeout:pn},un=e=>CB(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):UB(e);function UB(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=wB[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 hc=E(xe()),GB=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(GB),p=Object.fromEntries(i),u=hc.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 bc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var xc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var kc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Ac=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Bc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Cc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Uc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Lc=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,pageSize:e.pageSize,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 Dc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Oc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Nc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $c=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Jc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Yc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Xc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var td=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ad=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type,maxExecutionTime:e.maxExecutionTime}});var id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var ud=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var gd=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,integrationNames:e.integrationNames,pluginNames:e.pluginNames,nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var md=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bd=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 xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var kd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Ud=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ld=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 Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var $d=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var 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 Yd=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 Xd=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 tl=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var rl=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var al=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var il=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var ul=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var dl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var gl=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 ql=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var bl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var xl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var kl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Al=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 Cl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ul=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 Ll=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Wl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Dl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Ml=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var $l=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Jl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Yl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Xl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var tg=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rg=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var ag=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ig=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var ug=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var dg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gg=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,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,attributes:e.attributes}});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,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,attributes:e.attributes}});var qg=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 bg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var xg=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 kg=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Ag=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 Cg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ug=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 Lg=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var Wg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dg=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var Og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ng=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var $g=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,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,attributes:e.attributes}});var Jg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ty=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,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,attributes:e.attributes}});var ry=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ay=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var iy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var uy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var dy=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var gy=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,pageSize:e.pageSize},params:{id:e.id},body:{}});var qy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var by=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var xy=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var ky=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var as=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=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)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=xc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=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:"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}=Ac(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}=Bc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({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}=Cc(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}=Uc(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}=Sc(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}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({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}=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)})};getPublicIntegration=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)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=$c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};getPublicPluginCode=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)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Xc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=id(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}=ud(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}=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)})};listBots=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)})};getBot=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)})};deleteBot=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:"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}=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)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=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:"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}=Ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=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)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=Cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=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)})};listBotVersions=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)})};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}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=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:"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}=Od(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}=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)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=$d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Jd(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}=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)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=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:"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}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=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)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};listWorkspaceInvoices=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)})};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}=ql(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}=bl(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}=xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=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)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=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)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=Ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=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)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=Ol(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}=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)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=$l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=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}=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)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=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:"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}=rg(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}=ag(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}=ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=dg(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}=gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=qg(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}=bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=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)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=Cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=Og(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}=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)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=$g(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=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}=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)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=Xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=ty(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=ry(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}=ay(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({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}=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)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=uy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=dy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=gy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=qy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=by(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=xy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({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}=ky(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 Ay.default.isAxiosError(e)&&e.response?.data?un(e.response.data):un(e)}var cn=class extends as{config;constructor(t){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data})))}}};var Hn={};j(Hn,{Client:()=>Dn});var wm=E(require("axios"));var vy=E(require("crypto"));var EB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:vy.default;ln.getRandomValues||(ln=EB);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(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"}},LB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,_B=e=>e instanceof C||LB(e)&&e.isApiError===!0,ke=class extends C{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},gn=class extends C{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},yn=class extends C{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},mn=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)}},Rn=class extends C{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},qn=class extends C{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},hn=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)}},bn=class extends C{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},fn=class extends C{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},xn=class extends C{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},In=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)}},kn=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)}},Pn=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)}},An=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)}},vn=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)}},Bn=class extends C{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Tn=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)}},Cn=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)}},wn=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)}},Un=class extends C{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Gn=class extends C{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Sn=class extends C{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},En=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)}},Ln=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)}},_n=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)}},Wn=class extends C{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},WB={Unknown:ke,Internal:gn,Unauthorized:yn,Forbidden:mn,PayloadTooLarge:Rn,InvalidPayload:qn,UnsupportedMediaType:hn,MethodNotFound:bn,ResourceNotFound:fn,InvalidJsonSchema:xn,InvalidDataFormat:In,InvalidIdentifier:kn,RelationConflict:Pn,ReferenceConstraint:An,ResourceLockedConflict:vn,ResourceGone:Bn,ReferenceNotFound:Tn,InvalidQuery:Cn,Runtime:wn,AlreadyExists:Un,RateLimited:Gn,PaymentRequired:Sn,QuotaExceeded:En,LimitExceeded:Ln,BreakingChanges:_n,OperationTimeout:Wn},Qn=e=>_B(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(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=WB[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 By=E(xe()),DB=e=>e[1]!==void 0,w=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(DB),p=Object.fromEntries(i),u=By.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Ty=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 Ey=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var _y=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var Qy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Hy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Fy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var Vy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var Ky=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var zy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var jy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var Zy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var em=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var sm=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var nm=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var om=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var pm=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var cm=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var lm=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var ym=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Rm=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var hm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var fm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Im=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Pm=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var vm=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var Tm=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var os=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getBillingReadonly=async t=>{let{path:n,headers:r,query:a,body:o}=Ty(t),i=this.props.toAxiosRequest??w,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??w,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??w,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)})};getCustomer=async t=>{let{path:n,headers:r,query:a,body:o}=Ey(t),i=this.props.toAxiosRequest??w,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)})};setCustomer=async t=>{let{path:n,headers:r,query:a,body:o}=_y(t),i=this.props.toAxiosRequest??w,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)})};getPlan=async t=>{let{path:n,headers:r,query:a,body:o}=Qy(t),i=this.props.toAxiosRequest??w,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}=Hy(t),i=this.props.toAxiosRequest??w,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}=Fy(t),i=this.props.toAxiosRequest??w,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}=Vy(t),i=this.props.toAxiosRequest??w,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}=Ky(t),i=this.props.toAxiosRequest??w,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}=zy(t),i=this.props.toAxiosRequest??w,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}=jy(t),i=this.props.toAxiosRequest??w,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}=Zy(t),i=this.props.toAxiosRequest??w,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}=em(t),i=this.props.toAxiosRequest??w,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)})};getAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=sm(t),i=this.props.toAxiosRequest??w,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}=nm(t),i=this.props.toAxiosRequest??w,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}=om(t),i=this.props.toAxiosRequest??w,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}=pm(t),i=this.props.toAxiosRequest??w,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}=cm(t),i=this.props.toAxiosRequest??w,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)})};createCreditGrant=async t=>{let{path:n,headers:r,query:a,body:o}=lm(t),i=this.props.toAxiosRequest??w,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)})};listInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=ym(t),i=this.props.toAxiosRequest??w,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}=Rm(t),i=this.props.toAxiosRequest??w,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}=hm(t),i=this.props.toAxiosRequest??w,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}=fm(t),i=this.props.toAxiosRequest??w,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}=Im(t),i=this.props.toAxiosRequest??w,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??w,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)})};getWorkspaceUsage=async t=>{let{path:n,headers:r,query:a,body:o}=vm(t),i=this.props.toAxiosRequest??w,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)})};getWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Tm(t),i=this.props.toAxiosRequest??w,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 wm.default.isAxiosError(e)&&e.response?.data?Qn(e.response.data):Qn(e)}var Dn=class extends os{config;constructor(t){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{listInvoices:t=>new m.AsyncCollection(({nextToken:n})=>this.listInvoices({nextToken:n,...t}).then(r=>({...r,items:r.invoices})))}}};var Ra={};j(Ra,{Client:()=>ma});var uR=E(require("axios"));var Um=E(require("crypto"));var MB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Mn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Um.default;Mn.getRandomValues||(Mn=MB);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(Mn.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,OB=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)}},Fn=class extends U{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},On=class extends U{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Vn=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)}},Nn=class extends U{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Kn=class extends U{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},$n=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)}},zn=class extends U{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Jn=class extends U{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},jn=class extends U{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Yn=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)}},Zn=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)}},Xn=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)}},ea=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)}},ta=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)}},sa=class extends U{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ra=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)}},na=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)}},aa=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)}},oa=class extends U{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ia=class extends U{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},pa=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)}},ca=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)}},da=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)}},la=class extends U{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},VB={Unknown:Pe,Internal:Fn,Unauthorized:On,Forbidden:Vn,PayloadTooLarge:Nn,InvalidPayload:Kn,UnsupportedMediaType:$n,MethodNotFound:zn,ResourceNotFound:Jn,InvalidJsonSchema:jn,InvalidDataFormat:Yn,InvalidIdentifier:Zn,RelationConflict:Xn,ReferenceConstraint:ea,ResourceLockedConflict:ta,ResourceGone:sa,ReferenceNotFound:ra,InvalidQuery:na,Runtime:aa,AlreadyExists:oa,RateLimited:ia,PaymentRequired:pa,QuotaExceeded:ua,LimitExceeded:ca,BreakingChanges:da,OperationTimeout:la},ga=e=>OB(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=VB[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 Gm=E(xe()),KB=e=>e[1]!==void 0,V=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(KB),p=Object.fromEntries(i),u=Gm.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Sm=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 Lm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wm=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var Dm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Om=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 Nm=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 $m=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,limit:e.limit},params:{id:e.id},body:{}});var Jm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Ym=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Xm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var tR=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var rR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var iR=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var is=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=Sm(t),i=this.props.toAxiosRequest??V,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}=Lm(t),i=this.props.toAxiosRequest??V,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}=Wm(t),i=this.props.toAxiosRequest??V,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}=Dm(t),i=this.props.toAxiosRequest??V,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}=Mm(t),i=this.props.toAxiosRequest??V,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}=Om(t),i=this.props.toAxiosRequest??V,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}=Nm(t),i=this.props.toAxiosRequest??V,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}=$m(t),i=this.props.toAxiosRequest??V,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}=Jm(t),i=this.props.toAxiosRequest??V,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}=Ym(t),i=this.props.toAxiosRequest??V,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}=Xm(t),i=this.props.toAxiosRequest??V,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}=tR(t),i=this.props.toAxiosRequest??V,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}=rR(t),i=this.props.toAxiosRequest??V,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}=aR(t),i=this.props.toAxiosRequest??V,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}=iR(t),i=this.props.toAxiosRequest??V,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 uR.default.isAxiosError(e)&&e.response?.data?ga(e.response.data):ga(e)}var ya=E(require("axios"));var ps=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 se("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await ya.default.get(p,{responseType:"arraybuffer"}).then(_=>_.data).catch(_=>{throw new se(`Failed to download file from provided URL: ${_.message}`,_)})),!i)throw new se("No content was provided for the file");let R,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);R=A,x=A.byteLength}else if(i instanceof Uint8Array)R=i,x=R.byteLength;else if(i instanceof ArrayBuffer)R=i,x=R.byteLength;else if(i instanceof Blob)R=i,x=i.size;else throw new se("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:a,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),L={"Content-Type":f.contentType};P&&(L["x-amz-tagging"]="public=true");try{await ya.default.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:L})}catch(_){let A=_ instanceof Error?_:new Error(String(_));throw new se(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var ma=class extends is{config;constructor(t){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await ps(this,t)}};var Na={};j(Na,{Client:()=>Va});var $R=E(require("axios"));var dR=E(require("crypto"));var zB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},qa=typeof window<"u"&&typeof window.document<"u"?window.crypto:dR.default;qa.getRandomValues||(qa=zB);var G=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(qa.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"}},JB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,jB=e=>e instanceof G||JB(e)&&e.isApiError===!0,Ae=class extends G{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ha=class extends G{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},ba=class extends G{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},fa=class extends G{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},xa=class extends G{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Ia=class extends G{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},ka=class extends G{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Pa=class extends G{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Aa=class extends G{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},va=class extends G{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Ba=class extends G{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Ta=class extends G{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)}},Ca=class extends G{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)}},wa=class extends G{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Ua=class extends G{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)}},Ga=class extends G{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Sa=class extends G{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Ea=class extends G{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)}},La=class extends G{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},_a=class extends G{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Wa=class extends G{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Qa=class extends G{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Da=class extends G{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)}},Ha=class extends G{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)}},Ma=class extends G{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)}},Fa=class extends G{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},YB={Unknown:Ae,Internal:ha,Unauthorized:ba,Forbidden:fa,PayloadTooLarge:xa,InvalidPayload:Ia,UnsupportedMediaType:ka,MethodNotFound:Pa,ResourceNotFound:Aa,InvalidJsonSchema:va,InvalidDataFormat:Ba,InvalidIdentifier:Ta,RelationConflict:Ca,ReferenceConstraint:wa,ResourceLockedConflict:Ua,ResourceGone:Ga,ReferenceNotFound:Sa,InvalidQuery:Ea,Runtime:La,AlreadyExists:_a,RateLimited:Wa,PaymentRequired:Qa,QuotaExceeded:Da,LimitExceeded:Ha,BreakingChanges:Ma,OperationTimeout:Fa},Oa=e=>jB(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):ZB(e);function ZB(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=YB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ae(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ae("An invalid error occurred: "+JSON.stringify(e))}var lR=E(xe()),XB=e=>e[1]!==void 0,H=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(XB),p=Object.fromEntries(i),u=lR.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var gR=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var mR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var qR=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 bR=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 xR=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 kR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var AR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var BR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var CR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var UR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var SR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var LR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var WR=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 DR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var MR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var OR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var NR=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 us=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:r,query:a,body:o}=gR(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}=mR(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}=qR(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}=bR(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}=xR(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}=kR(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}=AR(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}=BR(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}=CR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=UR(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}=SR(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}=LR(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}=WR(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}=DR(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}=MR(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}=OR(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}=NR(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 $R.default.isAxiosError(e)&&e.response?.data?Oa(e.response.data):Oa(e)}var Va=class extends us{config;constructor(t){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}};var Kk=E(require("axios"));var zR=E(xe()),tT=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(tT),p=Object.fromEntries(i),u=zR.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 JR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var YR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate,minMessageCount:e.minMessageCount,maxMessageCount:e.maxMessageCount},params:{},body:{}});var tq=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties,discriminateByTags:e.discriminateByTags}});var rq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags,properties:e.properties}});var aq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var uq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var dq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var gq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var mq=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 qq=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bq=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var xq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kq=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 Aq=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 Bq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Uq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Sq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lq=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 Wq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Dq=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 Mq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Nq=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 $q=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 Jq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yq=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 Xq=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 th=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 rh=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 ah=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 ih=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var uh=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var dh=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 gh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=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 qh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bh=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var xh=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 kh=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type},params:{key:e.key},body:{}});var Ah=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Bh=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ch=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Uh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Sh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Lh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Wh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Dh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Mh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oh=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 $h=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Yh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Xh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var tb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ib=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ub=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var db=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var mb=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type,maxExecutionTime:e.maxExecutionTime}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var kb=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,integrationNames:e.integrationNames,pluginNames:e.pluginNames,nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Ab=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)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},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 Db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ob=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 $b=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 Yb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var tf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var rf=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 af=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 pf=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 cf=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 lf=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yf=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 hf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var ff=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var If=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var vf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Gf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Ef=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _f=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Qf=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 Hf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ff=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vf=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 zf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var jf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Zf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ex=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sx=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var nx=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ox=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var px=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var cx=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var lx=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yx=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Rx=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var hx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var fx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Ix=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Px=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,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,attributes:e.attributes}});var vx=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,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,attributes:e.attributes}});var Tx=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 wx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Gx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Ex=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 _x=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Hx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vx=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var zx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jx=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var eI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var nI=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,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,attributes:e.attributes}});var oI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lI=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,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,attributes:e.attributes}});var yI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var hI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var fI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var II=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var PI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var vI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var TI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var wI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var GI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var EI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var _I=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 QI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var HI=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var FI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var VI=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 zI=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 jI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 ek=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var sk=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var nk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var ok=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ck=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var lk=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var yk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Rk=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 hk=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 fk=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 Ik=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var vk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Tk=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 wk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Gk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var _k=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 Qk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Hk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Fk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Vk=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 cs=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=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)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=YR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=XR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=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:"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}=aq(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}=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)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=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)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=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:"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}=xq(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}=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)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=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:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=Uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};initializeIncomingMessage=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)})};importMessages=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)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=Dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=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)})};listUsers=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)})};getOrCreateUser=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)})};updateUser=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:"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}=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)})};setStateExpiry=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)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=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)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=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)})};updateWorkflow=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:"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}=qh(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}=bh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=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)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=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)})};runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=Ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=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:"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}=Lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};setAccountPreference=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)})};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}=$h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=Yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=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)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=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:"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}=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)})};createBot=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:"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}=qb(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}=bb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=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)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=Ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=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:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=Ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=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)})};listActionRuns=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)})};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}=Db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};listBotIssueEvents=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)})};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}=$b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=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)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=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)})};createIntegrationShareableId=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:"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}=af(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}=pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=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:"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}=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)})};createBotApiKey=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)})};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}=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)})};updateBotAllowlist=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:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:r,query:a,body:o}=If(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=Pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=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:"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}=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)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=wf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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:"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}=zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=ex(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}=sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=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:"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}=Rx(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}=hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=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)})};deleteIntegrationApiKey=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:"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}=Px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=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:"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}=Tx(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}=wx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=Gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=_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)})};getIntegrationLogs=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)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=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:"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}=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)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=jx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=eI(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}=sI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=nI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=pI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=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)})};updatePlugin=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:"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}=yI(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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=PI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=wI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=GI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=EI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=_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)})};deleteFile=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)})};listFiles=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)})};getFile=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)})};updateFileMetadata=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:"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}=zI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=jI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=ek(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=sk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=nk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=ok(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=pk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=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:"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}=lk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=yk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};createTable=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:"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}=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)})};exportTable=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)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=Pk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=vk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=wk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=Gk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=Ek(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=_k(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};deleteTableRows=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:"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}=Fk(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}=Vk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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 Kk.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e)}var Ka=class extends cs{config;constructor(t={}){let n=K.getClientConfig(t),r=$.createAxiosInstance(n);super(r,{toApiError:z.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users}))),publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkflows({nextToken:n,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await ps(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
|
|
4
|
+
`+t.prev}function Zt(e,t){var n=xs(e),s=[];if(n){s.length=e.length;for(var a=0;a<e.length;a++)s[a]=se(e,a)?t(e[a],e):""}var o=typeof Rs=="function"?Rs(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(n&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(dp.call(/[^\w$]/,u)?s.push(t(u,e)+": "+t(e[u],e)):s.push(u+": "+t(e[u],e))));if(typeof Rs=="function")for(var r=0;r<o.length;r++)lp.call(e,o[r])&&s.push("["+t(o[r])+"]: "+t(e[o[r]],e));return s}});var xp=q((cC,fp)=>{"use strict";var As=Ii(),Fe=ji(),$A=bp(),zA=As("%TypeError%"),tr=As("%WeakMap%",!0),rr=As("%Map%",!0),JA=Fe("WeakMap.prototype.get",!0),jA=Fe("WeakMap.prototype.set",!0),YA=Fe("WeakMap.prototype.has",!0),ZA=Fe("Map.prototype.get",!0),XA=Fe("Map.prototype.set",!0),eB=Fe("Map.prototype.has",!0),Bs=function(e,t){for(var n=e,s;(s=n.next)!==null;n=s)if(s.key===t)return n.next=s.next,s.next=e.next,e.next=s,s},tB=function(e,t){var n=Bs(e,t);return n&&n.value},rB=function(e,t,n){var s=Bs(e,t);s?s.value=n:e.next={key:t,next:e.next,value:n}},sB=function(e,t){return!!Bs(e,t)};fp.exports=function(){var t,n,s,a={assert:function(o){if(!a.has(o))throw new zA("Side channel does not contain "+$A(o))},get:function(o){if(tr&&o&&(typeof o=="object"||typeof o=="function")){if(t)return JA(t,o)}else if(rr){if(n)return ZA(n,o)}else if(s)return tB(s,o)},has:function(o){if(tr&&o&&(typeof o=="object"||typeof o=="function")){if(t)return YA(t,o)}else if(rr){if(n)return eB(n,o)}else if(s)return sB(s,o);return!1},set:function(o,i){tr&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new tr),jA(t,o,i)):rr?(n||(n=new rr),XA(n,o,i)):(s||(s={key:{},next:null}),rB(s,o,i))}};return a}});var sr=q((dC,Ip)=>{"use strict";var nB=String.prototype.replace,aB=/%20/g,Ts={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ip.exports={default:Ts.RFC3986,formatters:{RFC1738:function(e){return nB.call(e,aB,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ts.RFC1738,RFC3986:Ts.RFC3986}});var ws=q((lC,Pp)=>{"use strict";var oB=sr(),Cs=Object.prototype.hasOwnProperty,fe=Array.isArray,X=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),iB=function(t){for(;t.length>1;){var n=t.pop(),s=n.obj[n.prop];if(fe(s)){for(var a=[],o=0;o<s.length;++o)typeof s[o]<"u"&&a.push(s[o]);n.obj[n.prop]=a}}},kp=function(t,n){for(var s=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(s[a]=t[a]);return s},pB=function e(t,n,s){if(!n)return t;if(typeof n!="object"){if(fe(t))t.push(n);else if(t&&typeof t=="object")(s&&(s.plainObjects||s.allowPrototypes)||!Cs.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return fe(t)&&!fe(n)&&(a=kp(t,s)),fe(t)&&fe(n)?(n.forEach(function(o,i){if(Cs.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,s):t.push(o)}else t[i]=o}),t):Object.keys(n).reduce(function(o,i){var p=n[i];return Cs.call(o,i)?o[i]=e(o[i],p,s):o[i]=p,o},a)},uB=function(t,n){return Object.keys(n).reduce(function(s,a){return s[a]=n[a],s},t)},cB=function(e,t,n){var s=e.replace(/\+/g," ");if(n==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},dB=function(t,n,s,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)),s==="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 r=i.charCodeAt(u);if(r===45||r===46||r===95||r===126||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||o===oB.RFC1738&&(r===40||r===41)){p+=i.charAt(u);continue}if(r<128){p=p+X[r];continue}if(r<2048){p=p+(X[192|r>>6]+X[128|r&63]);continue}if(r<55296||r>=57344){p=p+(X[224|r>>12]+X[128|r>>6&63]+X[128|r&63]);continue}u+=1,r=65536+((r&1023)<<10|i.charCodeAt(u)&1023),p+=X[240|r>>18]+X[128|r>>12&63]+X[128|r>>6&63]+X[128|r&63]}return p},lB=function(t){for(var n=[{obj:{o:t},prop:"o"}],s=[],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 r=p[u],y=i[r];typeof y=="object"&&y!==null&&s.indexOf(y)===-1&&(n.push({obj:i,prop:r}),s.push(y))}return iB(n),t},gB=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},yB=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},mB=function(t,n){return[].concat(t,n)},RB=function(t,n){if(fe(t)){for(var s=[],a=0;a<t.length;a+=1)s.push(n(t[a]));return s}return n(t)};Pp.exports={arrayToObject:kp,assign:uB,combine:mB,compact:lB,decode:cB,encode:dB,isBuffer:yB,isRegExp:gB,maybeMap:RB,merge:pB}});var wp=q((gC,Cp)=>{"use strict";var Bp=xp(),Gs=ws(),at=sr(),qB=Object.prototype.hasOwnProperty,vp={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},ne=Array.isArray,hB=String.prototype.split,bB=Array.prototype.push,Tp=function(e,t){bB.apply(e,ne(t)?t:[t])},fB=Date.prototype.toISOString,Ap=at.default,M={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Gs.encode,encodeValuesOnly:!1,format:Ap,formatter:at.formatters[Ap],indices:!1,serializeDate:function(t){return fB.call(t)},skipNulls:!1,strictNullHandling:!1},xB=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Us={},IB=function e(t,n,s,a,o,i,p,u,r,y,P,R,x,f,L,_){for(var v=t,ee=_,ae=0,Ae=!1;(ee=ee.get(Us))!==void 0&&!Ae;){var Ve=ee.get(t);if(ae+=1,typeof Ve<"u"){if(Ve===ae)throw new RangeError("Cyclic object value");Ae=!0}typeof ee.get(Us)>"u"&&(ae=0)}if(typeof u=="function"?v=u(n,v):v instanceof Date?v=P(v):s==="comma"&&ne(v)&&(v=Gs.maybeMap(v,function(dr){return dr instanceof Date?P(dr):dr})),v===null){if(o)return p&&!f?p(n,M.encoder,L,"key",R):n;v=""}if(xB(v)||Gs.isBuffer(v)){if(p){var Ne=f?n:p(n,M.encoder,L,"key",R);if(s==="comma"&&f){for(var le=hB.call(String(v),","),Ke="",oe=0;oe<le.length;++oe)Ke+=(oe===0?"":",")+x(p(le[oe],M.encoder,L,"value",R));return[x(Ne)+(a&&ne(v)&&le.length===1?"[]":"")+"="+Ke]}return[x(Ne)+"="+x(p(v,M.encoder,L,"value",R))]}return[x(n)+"="+x(String(v))]}var Be=[];if(typeof v>"u")return Be;var ge;if(s==="comma"&&ne(v))ge=[{value:v.length>0?v.join(",")||null:void 0}];else if(ne(u))ge=u;else{var Te=Object.keys(v);ge=r?Te.sort(r):Te}for(var Y=a&&ne(v)&&v.length===1?n+"[]":n,ie=0;ie<ge.length;++ie){var te=ge[ie],$e=typeof te=="object"&&typeof te.value<"u"?te.value:v[te];if(!(i&&$e===null)){var sP=ne(v)?typeof s=="function"?s(Y,te):Y:Y+(y?"."+te:"["+te+"]");_.set(t,ae);var $a=Bp();$a.set(Us,_),Tp(Be,e($e,sP,s,a,o,i,p,u,r,y,P,R,x,f,L,$a))}}return Be},kB=function(t){if(!t)return M;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||M.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 s=at.default;if(typeof t.format<"u"){if(!qB.call(at.formatters,t.format))throw new TypeError("Unknown format option provided.");s=t.format}var a=at.formatters[s],o=M.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:M.addQueryPrefix,allowDots:typeof t.allowDots>"u"?M.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:M.charsetSentinel,delimiter:typeof t.delimiter>"u"?M.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:M.encode,encoder:typeof t.encoder=="function"?t.encoder:M.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:M.encodeValuesOnly,filter:o,format:s,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:M.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:M.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:M.strictNullHandling}};Cp.exports=function(e,t){var n=e,s=kB(t),a,o;typeof s.filter=="function"?(o=s.filter,n=o("",n)):ne(s.filter)&&(o=s.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in vp?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=vp[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),s.sort&&a.sort(s.sort);for(var y=Bp(),P=0;P<a.length;++P){var R=a[P];s.skipNulls&&n[R]===null||Tp(i,IB(n[R],R,u,r,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,y))}var x=i.join(s.delimiter),f=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Sp=q((yC,Gp)=>{"use strict";var Oe=ws(),Ss=Object.prototype.hasOwnProperty,PB=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},vB=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Up=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},AB="utf8=%26%2310003%3B",BB="utf8=%E2%9C%93",TB=function(t,n){var s={},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,i=a.split(n.delimiter,o),p=-1,u,r=n.charset;if(n.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===BB?r="utf-8":i[u]===AB&&(r="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),R=P===-1?y.indexOf("="):P+1,x,f;R===-1?(x=n.decoder(y,D.decoder,r,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,R),D.decoder,r,"key"),f=Oe.maybeMap(Up(y.slice(R+1),n),function(L){return n.decoder(L,D.decoder,r,"value")})),f&&n.interpretNumericEntities&&r==="iso-8859-1"&&(f=vB(f)),y.indexOf("[]=")>-1&&(f=PB(f)?[f]:f),Ss.call(s,x)?s[x]=Oe.combine(s[x],f):s[x]=f}return s},CB=function(e,t,n,s){for(var a=s?t:Up(t,n),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,r=parseInt(u,10);!n.parseArrays&&u===""?i={0:a}:!isNaN(r)&&p!==u&&String(r)===u&&r>=0&&n.parseArrays&&r<=n.arrayLimit?(i=[],i[r]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},wB=function(t,n,s,a){if(t){var o=s.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=s.depth>0&&i.exec(o),r=u?o.slice(0,u.index):o,y=[];if(r){if(!s.plainObjects&&Ss.call(Object.prototype,r)&&!s.allowPrototypes)return;y.push(r)}for(var P=0;s.depth>0&&(u=p.exec(o))!==null&&P<s.depth;){if(P+=1,!s.plainObjects&&Ss.call(Object.prototype,u[1].slice(1,-1))&&!s.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),CB(y,n,s,a)}},UB=function(t){if(!t)return D;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Gp.exports=function(e,t){var n=UB(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var s=typeof e=="string"?TB(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(s),i=0;i<o.length;++i){var p=o[i],u=wB(p,s[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var xe=q((mC,Ep)=>{"use strict";var GB=wp(),SB=Sp(),EB=sr();Ep.exports={formats:EB,parse:SB,stringify:GB}});var gT={};j(gT,{AlreadyExistsError:()=>Ut,BreakingChangesError:()=>_t,Client:()=>Ka,ForbiddenError:()=>mt,InternalError:()=>gt,InvalidDataFormatError:()=>It,InvalidIdentifierError:()=>kt,InvalidJsonSchemaError:()=>xt,InvalidPayloadError:()=>qt,InvalidQueryError:()=>Ct,LimitExceededError:()=>Lt,MethodNotFoundError:()=>bt,OperationTimeoutError:()=>Wt,PayloadTooLargeError:()=>Rt,PaymentRequiredError:()=>St,QuotaExceededError:()=>Et,RateLimitedError:()=>Gt,ReferenceConstraintError:()=>vt,ReferenceNotFoundError:()=>Tt,RelationConflictError:()=>Pt,ResourceGoneError:()=>Bt,ResourceLockedConflictError:()=>At,ResourceNotFoundError:()=>ft,RuntimeError:()=>wt,UnauthorizedError:()=>yt,UnknownError:()=>ue,UnsupportedMediaTypeError:()=>ht,UploadFileError:()=>re,admin:()=>dn,axios:()=>yT,axiosRetry:()=>mr,billing:()=>Hn,errorFrom:()=>ye,files:()=>Ra,isApiError:()=>Ro,runtime:()=>Ls,tables:()=>Na});module.exports=uP(gT);var yT=E(require("axios"));var mr={};j(mr,{DEFAULT_OPTIONS:()=>so,default:()=>J,exponentialDelay:()=>to,isIdempotentRequestError:()=>gr,isNetworkError:()=>lr,isNetworkOrIdempotentRequestError:()=>yr,isRetryableError:()=>pt,isSafeRequestError:()=>eo,linearDelay:()=>ro,namespace:()=>it,retryAfter:()=>ut});var Za=E(ja(),1),it="axios-retry";function lr(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Za.default)(e)}var Xa=["get","head","options"],dP=Xa.concat(["put","delete"]);function pt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function eo(e){return e.config?.method?pt(e)&&Xa.indexOf(e.config.method)!==-1:!1}function gr(e){return e.config?.method?pt(e)&&dP.indexOf(e.config.method)!==-1:!1}function yr(e){return lr(e)||gr(e)}function ut(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 lP(e=0,t=void 0){return Math.max(0,ut(t))}function to(e=0,t=void 0,n=100){let s=2**e*n,a=Math.max(s,ut(t)),o=a*.2*Math.random();return a+o}function ro(e=100){return(t=0,n=void 0)=>{let s=t*e;return Math.max(s,ut(n))}}var so={retries:3,retryCondition:yr,retryDelay:lP,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function gP(e,t){return{...so,...t,...e[it]}}function Ya(e,t,n=!1){let s=gP(e,t||{});return s.retryCount=s.retryCount||0,(!s.lastRequestTime||n)&&(s.lastRequestTime=Date.now()),e[it]=s,s}function yP(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 mP(e,t){let{retries:n,retryCondition:s}=e,a=(e.retryCount||0)<n&&s(t);if(typeof a=="object")try{return await a!==!1}catch{return!1}return a}async function RP(e,t,n,s){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(yP(e,s),!o&&s.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,r=s.timeout-u-p;if(r<=0)return Promise.reject(n);s.timeout=r}return s.transformRequest=[u=>u],await i(t.retryCount,n,s),s.signal?.aborted?Promise.resolve(e(s)):new Promise(u=>{let r=()=>{clearTimeout(y),u(e(s))},y=setTimeout(()=>{u(e(s)),s.signal?.removeEventListener&&s.signal.removeEventListener("abort",r)},p);s.signal?.addEventListener&&s.signal.addEventListener("abort",r,{once:!0})})}async function qP(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var pe=(e,t)=>{let n=e.interceptors.request.use(a=>(Ya(a,t,!0),a[it]?.validateResponse&&(a.validateStatus=()=>!1),a)),s=e.interceptors.response.use(null,async a=>{let{config:o}=a;if(!o)return Promise.reject(a);let i=Ya(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await mP(i,a)?RP(e,i,a,o):(await qP(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:s}};pe.isNetworkError=lr;pe.isSafeRequestError=eo;pe.isIdempotentRequestError=gr;pe.isNetworkOrIdempotentRequestError=yr;pe.exponentialDelay=to;pe.linearDelay=ro;pe.isRetryableError=pt;var J=pe;var Ls={};j(Ls,{Client:()=>Es});var Rr=require("browser-or-node"),ct=E(require("http")),dt=E(require("https")),no=100*1024*1024,ao=no,oo=no,io=Rr.isNode&&ct.default&&ct.default.Agent?new ct.default.Agent({keepAlive:!0}):void 0,po=Rr.isNode&&dt.default&&dt.default.Agent?new dt.default.Agent({keepAlive:!0}):void 0;var K={};j(K,{getClientConfig:()=>AP});var ze=require("browser-or-node"),hP="https://api.botpress.cloud",bP=6e4,fP=!1,xP="BP_API_URL",IP="BP_BOT_ID",kP="BP_INTEGRATION_ID",PP="BP_WORKSPACE_ID",vP="BP_TOKEN";function AP(e){let t=BP(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 s=t.apiUrl??hP,a=t.timeout??bP,o=t.debug??fP;return{apiUrl:s,timeout:a,withCredentials:ze.isBrowser,headers:n,debug:o}}function BP(e){return ze.isBrowser?e:ze.isNode?TP(e):e}function TP(e){let t={...e,apiUrl:e.apiUrl??process.env[xP],botId:e.botId??process.env[IP],integrationId:e.integrationId??process.env[kP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[PP]},n=t.token??process.env[vP];return n&&(t.token=n),t}var m={};j(m,{AsyncCollection:()=>qr});var qr=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:n,meta:s}=await this._list({nextToken:t});t=s.nextToken;for(let a of n)yield a}while(t)}async collect(t={}){let n=t.limit??Number.POSITIVE_INFINITY,s=[],a=0;for await(let o of this)if(s.push(o),a++,a>=n)break;return s}};var $={};j($,{createAxiosInstance:()=>EP});var yo=E(require("axios"));var co=require("browser-or-node"),lt;co.isNode?lt=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?lt=()=>crypto.randomUUID():lt=()=>Math.random().toString(36).substring(2,15);var lo=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:lt()},console.debug(CP(t)),t)),e.interceptors.response.use(t=>(console.debug(wP(t)),t),t=>(console.debug(UP(t)),Promise.reject(t)))},CP=e=>{let{method:t,url:n,headers:s,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:s,body:a})+`
|
|
5
|
+
`},wP=e=>{let{config:t,status:n,headers:s,data:a}=e,o=go(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:n,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:s,body:a})+`
|
|
6
|
+
`},UP=e=>{let t=e?go(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})},go=e=>{let t=e.config.metadata?.startTime,n=new Date().getTime();return t?`${n-t}ms`:"N/A"};var SP=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:ao,maxContentLength:oo,httpAgent:io,httpsAgent:po}),EP=e=>{let t=SP(e),n=yo.default.create(t);return e.debug&&lo(n),n};var z={};j(z,{toApiError:()=>DP});var ho=E(require("axios"));var mo=E(require("crypto"));var LP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},hr=typeof window<"u"&&typeof window.document<"u"?window.crypto:mo.default;hr.getRandomValues||(hr=LP);var B=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(hr.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${s}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},_P=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ro=e=>e instanceof B||_P(e)&&e.isApiError===!0,ue=class extends B{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},gt=class extends B{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},yt=class extends B{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},mt=class extends B{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},Rt=class extends B{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},qt=class extends B{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},ht=class extends B{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},bt=class extends B{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},ft=class extends B{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},xt=class extends B{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},It=class extends B{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},kt=class extends B{constructor(t,n,s,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,s,a)}},Pt=class extends B{constructor(t,n,s,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,s,a)}},vt=class extends B{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},At=class extends B{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},Bt=class extends B{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Tt=class extends B{constructor(t,n,s,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,s,a)}},Ct=class extends B{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},wt=class extends B{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},Ut=class extends B{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Gt=class extends B{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},St=class extends B{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Et=class extends B{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},Lt=class extends B{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},_t=class extends B{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},Wt=class extends B{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},WP={Unknown:ue,Internal:gt,Unauthorized:yt,Forbidden:mt,PayloadTooLarge:Rt,InvalidPayload:qt,UnsupportedMediaType:ht,MethodNotFound:bt,ResourceNotFound:ft,InvalidJsonSchema:xt,InvalidDataFormat:It,InvalidIdentifier:kt,RelationConflict:Pt,ReferenceConstraint:vt,ResourceLockedConflict:At,ResourceGone:Bt,ReferenceNotFound:Tt,InvalidQuery:Ct,Runtime:wt,AlreadyExists:Ut,RateLimited:Gt,PaymentRequired:St,QuotaExceeded:Et,LimitExceeded:Lt,BreakingChanges:_t,OperationTimeout:Wt},ye=e=>Ro(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(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=WP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var re=class extends Error{constructor(n,s,a){super(n);this.innerError=s;this.file=a;this.name="FileUploadError"}};var DP=e=>ho.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e);var fc=E(require("axios"));var bo=E(require("crypto"));var HP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},br=typeof window<"u"&&typeof window.document<"u"?window.crypto:bo.default;br.getRandomValues||(br=HP);var T=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(br.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${s}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,FP=e=>e instanceof T||MP(e)&&e.isApiError===!0,me=class extends T{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},fr=class extends T{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},xr=class extends T{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},Ir=class extends T{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},kr=class extends T{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Pr=class extends T{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},vr=class extends T{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},Ar=class extends T{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Br=class extends T{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Tr=class extends T{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Cr=class extends T{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},wr=class extends T{constructor(t,n,s,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,s,a)}},Ur=class extends T{constructor(t,n,s,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,s,a)}},Gr=class extends T{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},Sr=class extends T{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},Er=class extends T{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Lr=class extends T{constructor(t,n,s,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,s,a)}},_r=class extends T{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},Wr=class extends T{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},Qr=class extends T{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Dr=class extends T{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Hr=class extends T{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Mr=class extends T{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},Fr=class extends T{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},Or=class extends T{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},Vr=class extends T{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},OP={Unknown:me,Internal:fr,Unauthorized:xr,Forbidden:Ir,PayloadTooLarge:kr,InvalidPayload:Pr,UnsupportedMediaType:vr,MethodNotFound:Ar,ResourceNotFound:Br,InvalidJsonSchema:Tr,InvalidDataFormat:Cr,InvalidIdentifier:wr,RelationConflict:Ur,ReferenceConstraint:Gr,ResourceLockedConflict:Sr,ResourceGone:Er,ReferenceNotFound:Lr,InvalidQuery:_r,Runtime:Wr,AlreadyExists:Qr,RateLimited:Dr,PaymentRequired:Hr,QuotaExceeded:Mr,LimitExceeded:Fr,BreakingChanges:Or,OperationTimeout:Vr},Nr=e=>FP(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(e):VP(e);function VP(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=OP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var Lp=E(xe()),LB=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(LB),p=Object.fromEntries(i),u=Lp.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var _p=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var Qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hp=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate,minMessageCount:e.minMessageCount,maxMessageCount:e.maxMessageCount},params:{},body:{}});var Fp=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties,discriminateByTags:e.discriminateByTags}});var Vp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags,properties:e.properties}});var Kp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var eu=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ru=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var nu=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var pu=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var lu=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var yu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var hu=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var fu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var Pu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Au=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 Tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wu=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Gu=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var Eu=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 _u=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var 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:{}});var Fu=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 Vu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Ku=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var zu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ju=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Zu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var ec=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var rc=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,pageSize:e.pageSize,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,pageSize:e.pageSize,type:e.type},params:{key:e.key},body:{}});var Rc=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:{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 nr=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:s,query:a,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getConversation=async t=>{let{path:n,headers:s,query:a,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:n,headers:s,query:a,body:o}=Hp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:n,headers:s,query:a,body:o}=Fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateConversation=async t=>{let{path:n,headers:s,query:a,body:o}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteConversation=async t=>{let{path:n,headers:s,query:a,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listParticipants=async t=>{let{path:n,headers:s,query:a,body:o}=zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createEvent=async t=>{let{path:n,headers:s,query:a,body:o}=ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=async t=>{let{path:n,headers:s,query:a,body:o}=nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listEvents=async t=>{let{path:n,headers:s,query:a,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:n,headers:s,query:a,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:n,headers:s,query:a,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:n,headers:s,query:a,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=async t=>{let{path:n,headers:s,query:a,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listMessages=async t=>{let{path:n,headers:s,query:a,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteMessage=async t=>{let{path:n,headers:s,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};initializeIncomingMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importMessages=async t=>{let{path:n,headers:s,query:a,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:n,headers:s,query:a,body:o}=Au(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUser=async t=>{let{path:n,headers:s,query:a,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsers=async t=>{let{path:n,headers:s,query:a,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=async t=>{let{path:n,headers:s,query:a,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateUser=async t=>{let{path:n,headers:s,query:a,body:o}=Eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteUser=async t=>{let{path:n,headers:s,query:a,body:o}=_u(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setStateExpiry=async t=>{let{path:n,headers:s,query:a,body:o}=Qu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:n,headers:s,query:a,body:o}=Hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:n,headers:s,query:a,body:o}=Fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrSetState=async t=>{let{path:n,headers:s,query:a,body:o}=Vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:n,headers:s,query:a,body:o}=Ku(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};callAction=async t=>{let{path:n,headers:s,query:a,body:o}=zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkIntegrationIdentifier=async t=>{let{path:n,headers:s,query:a,body:o}=ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationIdentifierAvailability=async t=>{let{path:n,headers:s,query:a,body:o}=Zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=ec(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=rc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=nc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=oc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=pc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkflows=async t=>{let{path:n,headers:s,query:a,body:o}=cc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=lc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTagValues=async t=>{let{path:n,headers:s,query:a,body:o}=yc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:n,headers:s,query:a,body:o}=Rc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:n,headers:s,query:a,body:o}=hc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function b(e){return fc.default.isAxiosError(e)&&e.response?.data?Nr(e.response.data):Nr(e)}var Es=class extends nr{config;constructor(t){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(s=>({...s,items:s.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(s=>({...s,items:s.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(s=>({...s,items:s.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(s=>({...s,items:s.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(s=>({...s,items:s.users})))}}};var dn={};j(dn,{Client:()=>cn});var Cy=E(require("axios"));var xc=E(require("crypto"));var WB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},_s=typeof window<"u"&&typeof window.document<"u"?window.crypto:xc.default;_s.getRandomValues||(_s=WB);var C=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(_s.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${s}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},QB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DB=e=>e instanceof C||QB(e)&&e.isApiError===!0,Ie=class extends C{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},Ws=class extends C{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},Qs=class extends C{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},Ds=class extends C{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},Hs=class extends C{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Ms=class extends C{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},Fs=class extends C{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},Os=class extends C{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Vs=class extends C{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Ns=class extends C{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Ks=class extends C{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},$s=class extends C{constructor(t,n,s,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,s,a)}},zs=class extends C{constructor(t,n,s,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,s,a)}},Js=class extends C{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},js=class extends C{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},Ys=class extends C{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Zs=class extends C{constructor(t,n,s,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,s,a)}},Xs=class extends C{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},en=class extends C{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},tn=class extends C{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},rn=class extends C{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},sn=class extends C{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},nn=class extends C{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},an=class extends C{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},on=class extends C{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},pn=class extends C{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},HB={Unknown:Ie,Internal:Ws,Unauthorized:Qs,Forbidden:Ds,PayloadTooLarge:Hs,InvalidPayload:Ms,UnsupportedMediaType:Fs,MethodNotFound:Os,ResourceNotFound:Vs,InvalidJsonSchema:Ns,InvalidDataFormat:Ks,InvalidIdentifier:$s,RelationConflict:zs,ReferenceConstraint:Js,ResourceLockedConflict:js,ResourceGone:Ys,ReferenceNotFound:Zs,InvalidQuery:Xs,Runtime:en,AlreadyExists:tn,RateLimited:rn,PaymentRequired:sn,QuotaExceeded:nn,LimitExceeded:an,BreakingChanges:on,OperationTimeout:pn},un=e=>DB(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):MB(e);function MB(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=HB[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 Ic=E(xe()),FB=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(FB),p=Object.fromEntries(i),u=Ic.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var kc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var vc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Bc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Cc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Uc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Sc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Lc=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 Dc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Mc=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Oc=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 $c=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Yc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Xc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var td=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,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var ad=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var id=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ud=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,maxExecutionTime:e.maxExecutionTime,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,maxExecutionTime:e.maxExecutionTime,blocked:e.blocked,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var md=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var qd=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,integrationNames:e.integrationNames,pluginNames:e.pluginNames,nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var bd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kd=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 vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Ud=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Ld=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 Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Od=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 $d=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 Yd=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 Xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var tl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var 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 al=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var il=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var ul=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var gl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var ml=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var ql=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var bl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var kl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var vl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Bl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ul=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Sl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ll=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Wl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Dl=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 Ml=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Ol=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Nl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var $l=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Yl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Xl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var tg=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var sg=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var ag=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ig=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var ug=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var dg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var gg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var mg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qg=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,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,attributes:e.attributes}});var bg=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,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,attributes:e.attributes}});var xg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var kg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var vg=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 Bg=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Cg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ug=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 Sg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Dg=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var Mg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ng=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var $g=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Yg=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,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,attributes:e.attributes}});var Xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ty=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var sy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ay=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,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,attributes:e.attributes}});var iy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uy=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var dy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var gy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var my=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var qy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var by=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var xy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var ky=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var vy=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var By=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var ar=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=async t=>{let{path:n,headers:s,query:a,body:o}=kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccount=async t=>{let{path:n,headers:s,query:a,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=async t=>{let{path:n,headers:s,query:a,body:o}=Bc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteAccount=async t=>{let{path:n,headers:s,query:a,body:o}=Cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPersonalAccessTokens=async t=>{let{path:n,headers:s,query:a,body:o}=Uc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPersonalAccessToken=async t=>{let{path:n,headers:s,query:a,body:o}=Sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePersonalAccessToken=async t=>{let{path:n,headers:s,query:a,body:o}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:n,headers:s,query:a,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:n,headers:s,query:a,body:o}=Dc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicIntegrations=async t=>{let{path:n,headers:s,query:a,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegrationById=async t=>{let{path:n,headers:s,query:a,body:o}=Oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Nc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicPlugins=async t=>{let{path:n,headers:s,query:a,body:o}=$c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginById=async t=>{let{path:n,headers:s,query:a,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:s,query:a,body:o}=Yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=Xc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:n,headers:s,query:a,body:o}=td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=async t=>{let{path:n,headers:s,query:a,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterfaceById=async t=>{let{path:n,headers:s,query:a,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:n,headers:s,query:a,body:o}=id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=async t=>{let{path:n,headers:s,query:a,body:o}=ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=async t=>{let{path:n,headers:s,query:a,body:o}=dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:s,query:a,body:o}=gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:n,headers:s,query:a,body:o}=md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:n,headers:s,query:a,body:o}=qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBot=async t=>{let{path:n,headers:s,query:a,body:o}=bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBot=async t=>{let{path:n,headers:s,query:a,body:o}=xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=async t=>{let{path:n,headers:s,query:a,body:o}=kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotWebchat=async t=>{let{path:n,headers:s,query:a,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=async t=>{let{path:n,headers:s,query:a,body:o}=Bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActionRuns=async t=>{let{path:n,headers:s,query:a,body:o}=Cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotIssue=async t=>{let{path:n,headers:s,query:a,body:o}=Ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=async t=>{let{path:n,headers:s,query:a,body:o}=Sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotIssue=async t=>{let{path:n,headers:s,query:a,body:o}=Ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:n,headers:s,query:a,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:n,headers:s,query:a,body:o}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=Md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=async t=>{let{path:n,headers:s,query:a,body:o}=Od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};publishFromBotJson=async t=>{let{path:n,headers:s,query:a,body:o}=Nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=$d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=Yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=Xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:s,query:a,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:n,headers:s,query:a,body:o}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAllowlist=async t=>{let{path:n,headers:s,query:a,body:o}=dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=async t=>{let{path:n,headers:s,query:a,body:o}=gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:s,query:a,body:o}=ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=async t=>{let{path:n,headers:s,query:a,body:o}=bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=Bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceUsages=async t=>{let{path:n,headers:s,query:a,body:o}=Cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:s,query:a,body:o}=Ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:s,query:a,body:o}=Sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=async t=>{let{path:n,headers:s,query:a,body:o}=Ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=async t=>{let{path:n,headers:s,query:a,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:n,headers:s,query:a,body:o}=Ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=async t=>{let{path:n,headers:s,query:a,body:o}=Ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicWorkspaces=async t=>{let{path:n,headers:s,query:a,body:o}=Nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=$l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAuditRecords=async t=>{let{path:n,headers:s,query:a,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=async t=>{let{path:n,headers:s,query:a,body:o}=Yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=async t=>{let{path:n,headers:s,query:a,body:o}=Xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:n,headers:s,query:a,body:o}=tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:n,headers:s,query:a,body:o}=dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=qg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationCreation=async t=>{let{path:n,headers:s,query:a,body:o}=bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:s,query:a,body:o}=kg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:n,headers:s,query:a,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:n,headers:s,query:a,body:o}=Bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:n,headers:s,query:a,body:o}=Ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:n,headers:s,query:a,body:o}=Sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};requestIntegrationVerification=async t=>{let{path:n,headers:s,query:a,body:o}=Wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:n,headers:s,query:a,body:o}=Dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:n,headers:s,query:a,body:o}=Mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=async t=>{let{path:n,headers:s,query:a,body:o}=Og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateInterface=async t=>{let{path:n,headers:s,query:a,body:o}=Ng(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteInterface=async t=>{let{path:n,headers:s,query:a,body:o}=$g(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInterfaces=async t=>{let{path:n,headers:s,query:a,body:o}=Jg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=Yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=Xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=ty(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:n,headers:s,query:a,body:o}=sy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:n,headers:s,query:a,body:o}=ay(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=async t=>{let{path:n,headers:s,query:a,body:o}=iy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlugins=async t=>{let{path:n,headers:s,query:a,body:o}=uy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginCode=async t=>{let{path:n,headers:s,query:a,body:o}=dy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUsage=async t=>{let{path:n,headers:s,query:a,body:o}=gy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMultipleUsages=async t=>{let{path:n,headers:s,query:a,body:o}=my(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageHistory=async t=>{let{path:n,headers:s,query:a,body:o}=qy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:n,headers:s,query:a,body:o}=by(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivityDaily=async t=>{let{path:n,headers:s,query:a,body:o}=xy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};changeAISpendQuota=async t=>{let{path:n,headers:s,query:a,body:o}=ky(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActivities=async t=>{let{path:n,headers:s,query:a,body:o}=vy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=async t=>{let{path:n,headers:s,query:a,body:o}=By(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function g(e){return Cy.default.isAxiosError(e)&&e.response?.data?un(e.response.data):un(e)}var cn=class extends ar{config;constructor(t){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}get list(){return{publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(s=>({...s,items:s.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(s=>({...s,items:s.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(s=>({...s,items:s.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(s=>({...s,items:s.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(s=>({...s,items:s.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(s=>({...s,items:s.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(s=>({...s,items:s.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(s=>({...s,items:s.interfaces}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(s=>({...s,items:s.activities}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(s=>({...s,items:s.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(s=>({...s,items:s.data})))}}};var Hn={};j(Hn,{Client:()=>Dn});var _m=E(require("axios"));var wy=E(require("crypto"));var VB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:wy.default;ln.getRandomValues||(ln=VB);var w=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=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}_${s}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},NB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KB=e=>e instanceof w||NB(e)&&e.isApiError===!0,ke=class extends w{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},gn=class extends w{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},yn=class extends w{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},mn=class extends w{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},Rn=class extends w{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},qn=class extends w{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},hn=class extends w{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},bn=class extends w{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},fn=class extends w{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},xn=class extends w{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},In=class extends w{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},kn=class extends w{constructor(t,n,s,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,s,a)}},Pn=class extends w{constructor(t,n,s,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,s,a)}},vn=class extends w{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},An=class extends w{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},Bn=class extends w{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Tn=class extends w{constructor(t,n,s,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,s,a)}},Cn=class extends w{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},wn=class extends w{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},Un=class extends w{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Gn=class extends w{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Sn=class extends w{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},En=class extends w{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},Ln=class extends w{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},_n=class extends w{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},Wn=class extends w{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},$B={Unknown:ke,Internal:gn,Unauthorized:yn,Forbidden:mn,PayloadTooLarge:Rn,InvalidPayload:qn,UnsupportedMediaType:hn,MethodNotFound:bn,ResourceNotFound:fn,InvalidJsonSchema:xn,InvalidDataFormat:In,InvalidIdentifier:kn,RelationConflict:Pn,ReferenceConstraint:vn,ResourceLockedConflict:An,ResourceGone:Bn,ReferenceNotFound:Tn,InvalidQuery:Cn,Runtime:wn,AlreadyExists:Un,RateLimited:Gn,PaymentRequired:Sn,QuotaExceeded:En,LimitExceeded:Ln,BreakingChanges:_n,OperationTimeout:Wn},Qn=e=>KB(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):zB(e);function zB(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$B[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new 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 Uy=E(xe()),JB=e=>e[1]!==void 0,A=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(JB),p=Object.fromEntries(i),u=Uy.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Gy=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var Ey=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var _y=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 Qy=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Hy=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var Fy=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 Ky=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var zy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var jy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Zy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var em=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var rm=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var nm=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var om=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var pm=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var cm=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var lm=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var ym=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Rm=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var hm=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var fm=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Im=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Pm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Am=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Tm=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var wm=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var Gm=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var Em=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var or=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getBillingReadonly=async t=>{let{path:n,headers:s,query:a,body:o}=Gy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBillingAddress=async t=>{let{path:n,headers:s,query:a,body:o}=Ey(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setBillingAddress=async t=>{let{path:n,headers:s,query:a,body:o}=_y(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getCustomer=async t=>{let{path:n,headers:s,query:a,body:o}=Qy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setCustomer=async t=>{let{path:n,headers:s,query:a,body:o}=Hy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"patch",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlan=async t=>{let{path:n,headers:s,query:a,body:o}=Fy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlans=async t=>{let{path:n,headers:s,query:a,body:o}=Vy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAddon=async t=>{let{path:n,headers:s,query:a,body:o}=Ky(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listAddons=async t=>{let{path:n,headers:s,query:a,body:o}=zy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getSubscription=async t=>{let{path:n,headers:s,query:a,body:o}=jy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};previewSubscriptionUpdate=async t=>{let{path:n,headers:s,query:a,body:o}=Zy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setPlan=async t=>{let{path:n,headers:s,query:a,body:o}=em(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAddons=async t=>{let{path:n,headers:s,query:a,body:o}=rm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"patch",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setCancelAtPeriodEnd=async t=>{let{path:n,headers:s,query:a,body:o}=nm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAutoRechargeSettings=async t=>{let{path:n,headers:s,query:a,body:o}=om(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAutoRechargeSettings=async t=>{let{path:n,headers:s,query:a,body:o}=pm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTrials=async t=>{let{path:n,headers:s,query:a,body:o}=cm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTrial=async t=>{let{path:n,headers:s,query:a,body:o}=lm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeTrial=async t=>{let{path:n,headers:s,query:a,body:o}=ym(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createCreditGrant=async t=>{let{path:n,headers:s,query:a,body:o}=Rm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=hm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};payInvoice=async t=>{let{path:n,headers:s,query:a,body:o}=fm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPaymentMethod=async t=>{let{path:n,headers:s,query:a,body:o}=Im(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setPaymentMethod=async t=>{let{path:n,headers:s,query:a,body:o}=Pm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPaymentMethodIntent=async t=>{let{path:n,headers:s,query:a,body:o}=Am(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getQuotas=async t=>{let{path:n,headers:s,query:a,body:o}=Tm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceUsage=async t=>{let{path:n,headers:s,query:a,body:o}=wm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceUsages=async t=>{let{path:n,headers:s,query:a,body:o}=Gm(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFeatureGates=async t=>{let{path:n,headers:s,query:a,body:o}=Em(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function U(e){return _m.default.isAxiosError(e)&&e.response?.data?Qn(e.response.data):Qn(e)}var Dn=class extends or{config;constructor(t){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}get list(){return{listInvoices:t=>new m.AsyncCollection(({nextToken:n})=>this.listInvoices({nextToken:n,...t}).then(s=>({...s,items:s.invoices})))}}};var Ra={};j(Ra,{Client:()=>ma});var mR=E(require("axios"));var Wm=E(require("crypto"));var YB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Mn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Wm.default;Mn.getRandomValues||(Mn=YB);var G=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Mn.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${s}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},ZB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,XB=e=>e instanceof G||ZB(e)&&e.isApiError===!0,Pe=class extends G{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},Fn=class extends G{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},On=class extends G{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},Vn=class extends G{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},Nn=class extends G{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Kn=class extends G{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},$n=class extends G{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},zn=class extends G{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Jn=class extends G{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},jn=class extends G{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Yn=class extends G{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},Zn=class extends G{constructor(t,n,s,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,s,a)}},Xn=class extends G{constructor(t,n,s,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,s,a)}},ea=class extends G{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},ta=class extends G{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},ra=class extends G{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},sa=class extends G{constructor(t,n,s,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,s,a)}},na=class extends G{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},aa=class extends G{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},oa=class extends G{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},ia=class extends G{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},pa=class extends G{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},ua=class extends G{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},ca=class extends G{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},da=class extends G{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},la=class extends G{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},eT={Unknown:Pe,Internal:Fn,Unauthorized:On,Forbidden:Vn,PayloadTooLarge:Nn,InvalidPayload:Kn,UnsupportedMediaType:$n,MethodNotFound:zn,ResourceNotFound:Jn,InvalidJsonSchema:jn,InvalidDataFormat:Yn,InvalidIdentifier:Zn,RelationConflict:Xn,ReferenceConstraint:ea,ResourceLockedConflict:ta,ResourceGone:ra,ReferenceNotFound:sa,InvalidQuery:na,Runtime:aa,AlreadyExists:oa,RateLimited:ia,PaymentRequired:pa,QuotaExceeded:ua,LimitExceeded:ca,BreakingChanges:da,OperationTimeout:la},ga=e=>XB(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):tT(e);function tT(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=eT[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 Qm=E(xe()),rT=e=>e[1]!==void 0,V=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(rT),p=Object.fromEntries(i),u=Qm.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Dm=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 Mm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Om=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var Nm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $m=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 Jm=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 Ym=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var Xm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,limit:e.limit},params:{id:e.id},body:{}});var tR=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var sR=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var aR=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var iR=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var uR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dR=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description,tags:e.tags}});var gR=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var ir=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:s,query:a,body:o}=Dm(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=async t=>{let{path:n,headers:s,query:a,body:o}=Mm(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFiles=async t=>{let{path:n,headers:s,query:a,body:o}=Om(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getFile=async t=>{let{path:n,headers:s,query:a,body:o}=Nm(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateFileMetadata=async t=>{let{path:n,headers:s,query:a,body:o}=$m(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=async t=>{let{path:n,headers:s,query:a,body:o}=Jm(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=async t=>{let{path:n,headers:s,query:a,body:o}=Ym(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFilePassages=async t=>{let{path:n,headers:s,query:a,body:o}=Xm(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setFilePassages=async t=>{let{path:n,headers:s,query:a,body:o}=tR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=async t=>{let{path:n,headers:s,query:a,body:o}=sR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=async t=>{let{path:n,headers:s,query:a,body:o}=aR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=iR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=uR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=dR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=async t=>{let{path:n,headers:s,query:a,body:o}=gR(t),i=this.props.toAxiosRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function N(e){return mR.default.isAxiosError(e)&&e.response?.data?ga(e.response.data):ga(e)}var ya=E(require("axios"));var pr=async(e,{key:t,index:n,tags:s,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:r,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await ya.default.get(p,{responseType:"arraybuffer"}).then(_=>_.data).catch(_=>{throw new re(`Failed to download file from provided URL: ${_.message}`,_)})),!i)throw new re("No content was provided for the file");let R,x;if(typeof i=="string"){let v=new TextEncoder().encode(i);R=v,x=v.byteLength}else if(i instanceof Uint8Array)R=i,x=R.byteLength;else if(i instanceof ArrayBuffer)R=i,x=R.byteLength;else if(i instanceof Blob)R=i,x=i.size;else throw new re("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:s,index:n,accessPolicies:o,contentType:a,metadata:y,size:x,expiresAt:r,indexing:u,publicContentImmediatelyAccessible:P}),L={"Content-Type":f.contentType};P&&(L["x-amz-tagging"]="public=true");try{await ya.default.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:L})}catch(_){let v=_ instanceof Error?_:new Error(String(_));throw new re(`Failed to upload file: ${v.message}`,v,f)}return{file:{...f,size:x}}};var ma=class extends ir{config;constructor(t){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}get list(){return{files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(s=>({...s,items:s.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(s=>({...s,items:s.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(s=>({...s,items:s.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(s=>({...s,items:s.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(s=>({...s,items:s.knowledgeBases})))}}async uploadFile(t){return await pr(this,t)}};var Na={};j(Na,{Client:()=>Va});var XR=E(require("axios"));var qR=E(require("crypto"));var nT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},qa=typeof window<"u"&&typeof window.document<"u"?window.crypto:qR.default;qa.getRandomValues||(qa=nT);var S=class e extends Error{constructor(n,s,a,o,i,p,u){super(o);this.code=n;this.description=s;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(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(qa.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${s}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},aT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,oT=e=>e instanceof S||aT(e)&&e.isApiError===!0,ve=class extends S{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},ha=class extends S{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},ba=class extends S{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},fa=class extends S{constructor(t,n,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,s,a)}},xa=class extends S{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Ia=class extends S{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},ka=class extends S{constructor(t,n,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,s,a)}},Pa=class extends S{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},va=class extends S{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Aa=class extends S{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Ba=class extends S{constructor(t,n,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,s,a)}},Ta=class extends S{constructor(t,n,s,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,s,a)}},Ca=class extends S{constructor(t,n,s,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,s,a)}},wa=class extends S{constructor(t,n,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,s,a)}},Ua=class extends S{constructor(t,n,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,s,a)}},Ga=class extends S{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Sa=class extends S{constructor(t,n,s,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,s,a)}},Ea=class extends S{constructor(t,n,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,s,a)}},La=class extends S{constructor(t,n,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,s,a)}},_a=class extends S{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Wa=class extends S{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Qa=class extends S{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Da=class extends S{constructor(t,n,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,s,a)}},Ha=class extends S{constructor(t,n,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,s,a)}},Ma=class extends S{constructor(t,n,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,s,a)}},Fa=class extends S{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},iT={Unknown:ve,Internal:ha,Unauthorized:ba,Forbidden:fa,PayloadTooLarge:xa,InvalidPayload:Ia,UnsupportedMediaType:ka,MethodNotFound:Pa,ResourceNotFound:va,InvalidJsonSchema:Aa,InvalidDataFormat:Ba,InvalidIdentifier:Ta,RelationConflict:Ca,ReferenceConstraint:wa,ResourceLockedConflict:Ua,ResourceGone:Ga,ReferenceNotFound:Sa,InvalidQuery:Ea,Runtime:La,AlreadyExists:_a,RateLimited:Wa,PaymentRequired:Qa,QuotaExceeded:Da,LimitExceeded:Ha,BreakingChanges:Ma,OperationTimeout:Fa},Oa=e=>oT(e)?e:e instanceof Error?new ve(e.message,e):typeof e=="string"?new ve(e):pT(e);function pT(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=iT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ve(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ve("An invalid error occurred: "+JSON.stringify(e))}var hR=E(xe()),uT=e=>e[1]!==void 0,H=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(uT),p=Object.fromEntries(i),u=hR.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var bR=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var xR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var kR=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 vR=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 BR=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 CR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var UR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var SR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var LR=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 WR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var DR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var MR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var OR=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 NR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var $R=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 JR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var YR=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 ur=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:s,query:a,body:o}=bR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:n,headers:s,query:a,body:o}=xR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:n,headers:s,query:a,body:o}=kR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=async t=>{let{path:n,headers:s,query:a,body:o}=vR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};duplicateTable=async t=>{let{path:n,headers:s,query:a,body:o}=BR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};exportTable=async t=>{let{path:n,headers:s,query:a,body:o}=CR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableJobs=async t=>{let{path:n,headers:s,query:a,body:o}=UR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importTable=async t=>{let{path:n,headers:s,query:a,body:o}=SR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:n,headers:s,query:a,body:o}=LR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};renameTableColumn=async t=>{let{path:n,headers:s,query:a,body:o}=WR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTable=async t=>{let{path:n,headers:s,query:a,body:o}=DR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableRow=async t=>{let{path:n,headers:s,query:a,body:o}=MR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};findTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=OR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=NR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=$R(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=JR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=YR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function F(e){return XR.default.isAxiosError(e)&&e.response?.data?Oa(e.response.data):Oa(e)}var Va=class extends ur{config;constructor(t){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}};var rP=E(require("axios"));var eq=E(xe()),dT=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(dT),p=Object.fromEntries(i),u=eq.default.stringify(s,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var tq=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var sq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aq=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate,minMessageCount:e.minMessageCount,maxMessageCount:e.maxMessageCount},params:{},body:{}});var iq=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties,discriminateByTags:e.discriminateByTags}});var uq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags,properties:e.properties}});var dq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var mq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var qq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var bq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var xq=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 kq=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vq=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Bq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cq=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 Uq=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 Sq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Wq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Dq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mq=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 Oq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Nq=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 $q=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Yq=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 Xq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var th=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sh=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 ah=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 ih=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 uh=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 dh=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 gh=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var mh=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var qh=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var bh=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var xh=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 kh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vh=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 Bh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ch=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Uh=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,pageSize:e.pageSize,type:e.type},params:{key:e.key},body:{}});var Lh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Wh=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 Dh=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Mh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Oh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Nh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var $h=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Jh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Yh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var tb=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var sb=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 ab=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ib=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ub=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var db=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var mb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var bb=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var xb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vb=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,maxExecutionTime:e.maxExecutionTime,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var Bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,maxExecutionTime:e.maxExecutionTime,blocked:e.blocked,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var Cb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Ub=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,integrationNames:e.integrationNames,pluginNames:e.pluginNames,nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Nb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},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 Jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Yb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var af=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var pf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var cf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var lf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var yf=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 Rf=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 hf=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 ff=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 If=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Pf=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Af=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var wf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Gf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Ef=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _f=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Qf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Hf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Ff=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Vf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var zf=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 jf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Zf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ex=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var rx=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 nx=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ox=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var px=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var cx=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lx=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var yx=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 hx=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var fx=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Ix=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Px=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Ax=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Tx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var wx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Gx=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ex=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,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,attributes:e.attributes}});var _x=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,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,attributes:e.attributes}});var Qx=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 Hx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Fx=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 Vx=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,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 Kx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zx=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 jx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var rI=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var nI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pI=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var cI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var yI=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,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,attributes:e.attributes}});var RI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var fI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var II=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,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,attributes:e.attributes}});var PI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var TI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var wI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var GI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var EI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var _I=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var QI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var HI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var FI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var VI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var KI=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 zI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jI=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var ZI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ek=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 rk=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 nk=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 ok=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,limit:e.limit},params:{id:e.id},body:{}});var pk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var ck=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var lk=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var yk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Rk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description,tags:e.tags}});var fk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Ik=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ak=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 Tk=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 wk=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 Gk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var _k=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Qk=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 Hk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Fk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Kk=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 zk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var jk=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 Zk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var eP=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 cr=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:s,query:a,body:o}=tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getConversation=async t=>{let{path:n,headers:s,query:a,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:n,headers:s,query:a,body:o}=aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:n,headers:s,query:a,body:o}=iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateConversation=async t=>{let{path:n,headers:s,query:a,body:o}=uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteConversation=async t=>{let{path:n,headers:s,query:a,body:o}=dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listParticipants=async t=>{let{path:n,headers:s,query:a,body:o}=gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=bq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createEvent=async t=>{let{path:n,headers:s,query:a,body:o}=xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=async t=>{let{path:n,headers:s,query:a,body:o}=kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listEvents=async t=>{let{path:n,headers:s,query:a,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:n,headers:s,query:a,body:o}=Bq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listMessages=async t=>{let{path:n,headers:s,query:a,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};initializeIncomingMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importMessages=async t=>{let{path:n,headers:s,query:a,body:o}=Oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:n,headers:s,query:a,body:o}=Nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUser=async t=>{let{path:n,headers:s,query:a,body:o}=$q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsers=async t=>{let{path:n,headers:s,query:a,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=async t=>{let{path:n,headers:s,query:a,body:o}=Yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateUser=async t=>{let{path:n,headers:s,query:a,body:o}=Xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteUser=async t=>{let{path:n,headers:s,query:a,body:o}=th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setStateExpiry=async t=>{let{path:n,headers:s,query:a,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:n,headers:s,query:a,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:n,headers:s,query:a,body:o}=ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrSetState=async t=>{let{path:n,headers:s,query:a,body:o}=uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:n,headers:s,query:a,body:o}=dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};callAction=async t=>{let{path:n,headers:s,query:a,body:o}=gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkIntegrationIdentifier=async t=>{let{path:n,headers:s,query:a,body:o}=mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationIdentifierAvailability=async t=>{let{path:n,headers:s,query:a,body:o}=qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=bh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=Bh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkflows=async t=>{let{path:n,headers:s,query:a,body:o}=Ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=async t=>{let{path:n,headers:s,query:a,body:o}=Uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTagValues=async t=>{let{path:n,headers:s,query:a,body:o}=Sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:n,headers:s,query:a,body:o}=Lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:n,headers:s,query:a,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};runVrl=async t=>{let{path:n,headers:s,query:a,body:o}=Dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccount=async t=>{let{path:n,headers:s,query:a,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=async t=>{let{path:n,headers:s,query:a,body:o}=Oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteAccount=async t=>{let{path:n,headers:s,query:a,body:o}=Nh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPersonalAccessTokens=async t=>{let{path:n,headers:s,query:a,body:o}=$h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPersonalAccessToken=async t=>{let{path:n,headers:s,query:a,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePersonalAccessToken=async t=>{let{path:n,headers:s,query:a,body:o}=Yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:n,headers:s,query:a,body:o}=Xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:n,headers:s,query:a,body:o}=tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicIntegrations=async t=>{let{path:n,headers:s,query:a,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegrationById=async t=>{let{path:n,headers:s,query:a,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicPlugins=async t=>{let{path:n,headers:s,query:a,body:o}=ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginById=async t=>{let{path:n,headers:s,query:a,body:o}=db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:s,query:a,body:o}=gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:n,headers:s,query:a,body:o}=qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=async t=>{let{path:n,headers:s,query:a,body:o}=bb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterfaceById=async t=>{let{path:n,headers:s,query:a,body:o}=xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:n,headers:s,query:a,body:o}=kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=async t=>{let{path:n,headers:s,query:a,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=async t=>{let{path:n,headers:s,query:a,body:o}=Bb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:s,query:a,body:o}=Cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:n,headers:s,query:a,body:o}=Ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:n,headers:s,query:a,body:o}=Sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBot=async t=>{let{path:n,headers:s,query:a,body:o}=Lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBot=async t=>{let{path:n,headers:s,query:a,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=async t=>{let{path:n,headers:s,query:a,body:o}=Db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotWebchat=async t=>{let{path:n,headers:s,query:a,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=async t=>{let{path:n,headers:s,query:a,body:o}=Ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActionRuns=async t=>{let{path:n,headers:s,query:a,body:o}=Nb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotIssue=async t=>{let{path:n,headers:s,query:a,body:o}=$b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=async t=>{let{path:n,headers:s,query:a,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotIssue=async t=>{let{path:n,headers:s,query:a,body:o}=Yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:n,headers:s,query:a,body:o}=Xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:n,headers:s,query:a,body:o}=tf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=async t=>{let{path:n,headers:s,query:a,body:o}=af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};publishFromBotJson=async t=>{let{path:n,headers:s,query:a,body:o}=pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=Rf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationShareableId=async t=>{let{path:n,headers:s,query:a,body:o}=hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:s,query:a,body:o}=ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:n,headers:s,query:a,body:o}=If(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=Pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAllowlist=async t=>{let{path:n,headers:s,query:a,body:o}=Tf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=async t=>{let{path:n,headers:s,query:a,body:o}=wf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:s,query:a,body:o}=Gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=async t=>{let{path:n,headers:s,query:a,body:o}=_f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=Qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=Ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=Vf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceUsages=async t=>{let{path:n,headers:s,query:a,body:o}=Kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:s,query:a,body:o}=zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:s,query:a,body:o}=jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=async t=>{let{path:n,headers:s,query:a,body:o}=Zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=async t=>{let{path:n,headers:s,query:a,body:o}=ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:n,headers:s,query:a,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=async t=>{let{path:n,headers:s,query:a,body:o}=ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicWorkspaces=async t=>{let{path:n,headers:s,query:a,body:o}=px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=async t=>{let{path:n,headers:s,query:a,body:o}=cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAuditRecords=async t=>{let{path:n,headers:s,query:a,body:o}=lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=async t=>{let{path:n,headers:s,query:a,body:o}=yx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=async t=>{let{path:n,headers:s,query:a,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:n,headers:s,query:a,body:o}=hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=Ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=Px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspaceMember=async t=>{let{path:n,headers:s,query:a,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:n,headers:s,query:a,body:o}=Tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=wx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=Gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationCreation=async t=>{let{path:n,headers:s,query:a,body:o}=_x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:s,query:a,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:n,headers:s,query:a,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:n,headers:s,query:a,body:o}=Vx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:n,headers:s,query:a,body:o}=zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:n,headers:s,query:a,body:o}=jx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};requestIntegrationVerification=async t=>{let{path:n,headers:s,query:a,body:o}=eI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:n,headers:s,query:a,body:o}=rI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:n,headers:s,query:a,body:o}=nI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=async t=>{let{path:n,headers:s,query:a,body:o}=oI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateInterface=async t=>{let{path:n,headers:s,query:a,body:o}=pI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteInterface=async t=>{let{path:n,headers:s,query:a,body:o}=cI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInterfaces=async t=>{let{path:n,headers:s,query:a,body:o}=lI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=yI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=RI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=hI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:n,headers:s,query:a,body:o}=fI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:n,headers:s,query:a,body:o}=II(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=async t=>{let{path:n,headers:s,query:a,body:o}=PI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlugins=async t=>{let{path:n,headers:s,query:a,body:o}=AI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginCode=async t=>{let{path:n,headers:s,query:a,body:o}=TI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUsage=async t=>{let{path:n,headers:s,query:a,body:o}=wI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMultipleUsages=async t=>{let{path:n,headers:s,query:a,body:o}=GI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageHistory=async t=>{let{path:n,headers:s,query:a,body:o}=EI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:n,headers:s,query:a,body:o}=_I(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivityDaily=async t=>{let{path:n,headers:s,query:a,body:o}=QI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};changeAISpendQuota=async t=>{let{path:n,headers:s,query:a,body:o}=HI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActivities=async t=>{let{path:n,headers:s,query:a,body:o}=FI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=async t=>{let{path:n,headers:s,query:a,body:o}=VI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertFile=async t=>{let{path:n,headers:s,query:a,body:o}=KI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=async t=>{let{path:n,headers:s,query:a,body:o}=zI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFiles=async t=>{let{path:n,headers:s,query:a,body:o}=jI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getFile=async t=>{let{path:n,headers:s,query:a,body:o}=ZI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateFileMetadata=async t=>{let{path:n,headers:s,query:a,body:o}=ek(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=async t=>{let{path:n,headers:s,query:a,body:o}=rk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=async t=>{let{path:n,headers:s,query:a,body:o}=nk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFilePassages=async t=>{let{path:n,headers:s,query:a,body:o}=ok(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setFilePassages=async t=>{let{path:n,headers:s,query:a,body:o}=pk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=async t=>{let{path:n,headers:s,query:a,body:o}=ck(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=async t=>{let{path:n,headers:s,query:a,body:o}=lk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=yk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=Rk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateKnowledgeBase=async t=>{let{path:n,headers:s,query:a,body:o}=hk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=async t=>{let{path:n,headers:s,query:a,body:o}=fk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTables=async t=>{let{path:n,headers:s,query:a,body:o}=Ik(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:n,headers:s,query:a,body:o}=Pk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:n,headers:s,query:a,body:o}=Ak(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=async t=>{let{path:n,headers:s,query:a,body:o}=Tk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};duplicateTable=async t=>{let{path:n,headers:s,query:a,body:o}=wk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};exportTable=async t=>{let{path:n,headers:s,query:a,body:o}=Gk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableJobs=async t=>{let{path:n,headers:s,query:a,body:o}=Ek(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importTable=async t=>{let{path:n,headers:s,query:a,body:o}=_k(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:n,headers:s,query:a,body:o}=Qk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};renameTableColumn=async t=>{let{path:n,headers:s,query:a,body:o}=Hk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTable=async t=>{let{path:n,headers:s,query:a,body:o}=Fk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableRow=async t=>{let{path:n,headers:s,query:a,body:o}=Vk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};findTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=Kk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=zk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=jk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=Zk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=eP(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function d(e){return rP.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e)}var Ka=class extends cr{config;constructor(t={}){let n=K.getClientConfig(t),s=$.createAxiosInstance(n);super(s,{toApiError:z.toApiError}),t.retry&&J(s,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(s=>({...s,items:s.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(s=>({...s,items:s.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(s=>({...s,items:s.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(s=>({...s,items:s.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(s=>({...s,items:s.users}))),publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(s=>({...s,items:s.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(s=>({...s,items:s.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(s=>({...s,items:s.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(s=>({...s,items:s.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(s=>({...s,items:s.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(s=>({...s,items:s.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(s=>({...s,items:s.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(s=>({...s,items:s.interfaces}))),publicInterfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicInterfaces({nextToken:n,...t}).then(s=>({...s,items:s.interfaces}))),plugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPlugins({nextToken:n,...t}).then(s=>({...s,items:s.plugins}))),publicPlugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicPlugins({nextToken:n,...t}).then(s=>({...s,items:s.plugins}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(s=>({...s,items:s.activities}))),files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(s=>({...s,items:s.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(s=>({...s,items:s.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(s=>({...s,items:s.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(s=>({...s,items:s.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(s=>({...s,items:s.knowledgeBases}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(s=>({...s,items:s.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(s=>({...s,items:s.data}))),workflows:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkflows({nextToken:n,...t}).then(s=>({...s,items:s.workflows})))}}uploadFile=async t=>await pr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
|
|
7
7
|
//# sourceMappingURL=index.cjs.map
|