@botpress/client 1.49.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var 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 Ft=Object.defineProperty||!1;if(Ft)try{Ft({},"a",{value:1})}catch{Ft=!1}Ho.exports=Ft});var Mo=q((FT,Fo)=>{"use strict";Fo.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((MT,Vo)=>{"use strict";var Oo=typeof Symbol<"u"&&Symbol,KP=Mo();Vo.exports=function(){return typeof Oo!="function"||typeof Symbol!="function"||typeof Oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:KP()}});var Mt=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=Mt(),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=Mt(),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(),Fv=$r(),Mv=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=Mt(),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%":Fv,"%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%":Mv,"%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),Fi=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 Mi=function(){return Ni(gs,Oi,arguments)};Fi?Fi(jt.exports,"apply",{value:Mi}):jt.exports.apply=Mi});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,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe||!0)?Symbol.toStringTag:null,lp=Object.prototype.propertyIsEnumerable,ap=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function op(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var 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=Fe?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bs.call(t);return typeof t=="object"&&!Fe?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(FA(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(MA(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,"&quot;")}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(Fe)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 FA(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 MA(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
- `+t.prev+t.base;return n+Z.call(e,","+n)+`
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(Fe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(n&&String(Number(u))===u&&u<e.length||Fe&&i["$"+u]instanceof Symbol||(dp.call(/[^\w$]/,u)?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(),Me=ji(),$A=bp(),zA=As("%TypeError%"),tr=As("%WeakMap%",!0),rr=As("%Map%",!0),JA=Me("WeakMap.prototype.get",!0),jA=Me("WeakMap.prototype.set",!0),YA=Me("WeakMap.prototype.has",!0),ZA=Me("Map.prototype.get",!0),XA=Me("Map.prototype.set",!0),eB=Me("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,F={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,F.encoder,L,"key",R):n;v=""}if(xB(v)||Gs.isBuffer(v)){if(p){var Ne=f?n:p(n,F.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],F.encoder,L,"value",R));return[x(Ne)+(a&&ne(v)&&le.length===1?"[]":"")+"="+Ke]}return[x(Ne)+"="+x(p(v,F.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 F;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||F.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=F.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:F.addQueryPrefix,allowDots:typeof t.allowDots>"u"?F.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:F.charsetSentinel,delimiter:typeof t.delimiter>"u"?F.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:F.encode,encoder:typeof t.encoder=="function"?t.encoder:F.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:F.encodeValuesOnly,filter:o,format:s,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:F.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:F.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:F.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"}},FP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,MP=e=>e instanceof T||FP(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)}},Fr=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)}},Mr=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:Fr,LimitExceeded:Mr,BreakingChanges:Or,OperationTimeout:Vr},Nr=e=>MP(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 Mp=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 Mu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var 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}=Mp(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}=Mu(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)}},Fs=class extends C{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},Ms=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:Fs,UnsupportedMediaType:Ms,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):FB(e);function FB(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()),MB=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(MB),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 Fc=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,moduleFormat:e.moduleFormat}});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,moduleFormat:e.moduleFormat}});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 Fd=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 Fl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Ol=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,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 Fg=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}=Fc(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}=Fd(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}=Fl(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}=Fg(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 My=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}=My(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)))},Fn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Wm.default;Fn.getRandomValues||(Fn=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(Fn.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)}},Mn=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:Mn,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 Fm=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}=Fm(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)}},Fa=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)}},Ma=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:Fa,OperationTimeout:Ma},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 FR=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??M,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??M,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??M,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??M,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??M,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??M,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??M,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??M,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??M,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??M,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??M,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}=FR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,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??M,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??M,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??M,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??M,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??M,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 M(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 Fq=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 Fh=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,moduleFormat:e.moduleFormat}});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,moduleFormat:e.moduleFormat}});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 Fb=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 Mf=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 Mx=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 MI=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 Mk=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}=Fq(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}=Fh(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}=Fb(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}=Mf(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}=Mx(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}=MI(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}=Mk(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});
1
+ "use strict";var dk=Object.create;var ot=Object.defineProperty;var lk=Object.getOwnPropertyDescriptor;var gk=Object.getOwnPropertyNames;var yk=Object.getPrototypeOf,mk=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var s in t)ot(e,s,{get:t[s],enumerable:!0})},Ua=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gk(t))!mk.call(e,a)&&a!==s&&ot(e,a,{get:()=>t[a],enumerable:!(n=lk(t,a))||n.enumerable});return e};var we=(e,t,s)=>(s=e!=null?dk(yk(e)):{},Ua(t||!e||!e.__esModule?ot(s,"default",{value:e,enumerable:!0}):s,e)),Rk=e=>Ua(ot({},"__esModule",{value:!0}),e);var St=h((GC,Wa)=>{"use strict";Wa.exports=Object});var Er=h((SC,_a)=>{"use strict";_a.exports=Error});var Lr=h((EC,Ha)=>{"use strict";Ha.exports=EvalError});var Wr=h((LC,Qa)=>{"use strict";Qa.exports=RangeError});var _r=h((WC,Da)=>{"use strict";Da.exports=ReferenceError});var Et=h((_C,Fa)=>{"use strict";Fa.exports=SyntaxError});var he=h((HC,Ma)=>{"use strict";Ma.exports=TypeError});var Hr=h((QC,Oa)=>{"use strict";Oa.exports=URIError});var Qr=h((DC,Va)=>{"use strict";Va.exports=Math.abs});var Dr=h((FC,Na)=>{"use strict";Na.exports=Math.floor});var Fr=h((MC,Ka)=>{"use strict";Ka.exports=Math.max});var Mr=h((OC,$a)=>{"use strict";$a.exports=Math.min});var Or=h((VC,za)=>{"use strict";za.exports=Math.pow});var Vr=h((NC,Ja)=>{"use strict";Ja.exports=Math.round});var Ya=h((KC,ja)=>{"use strict";ja.exports=Number.isNaN||function(t){return t!==t}});var Nr=h(($C,Za)=>{"use strict";var Zk=Ya();Za.exports=function(t){return Zk(t)||t===0?t:t<0?-1:1}});var eo=h((zC,Xa)=>{"use strict";Xa.exports=Object.getOwnPropertyDescriptor});var Ue=h((JC,to)=>{"use strict";var Lt=eo();if(Lt)try{Lt([],"length")}catch{Lt=null}to.exports=Lt});var Ge=h((jC,ro)=>{"use strict";var Wt=Object.defineProperty||!1;if(Wt)try{Wt({},"a",{value:1})}catch{Wt=!1}ro.exports=Wt});var no=h((YC,so)=>{"use strict";so.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),n=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[s]=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]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==a||p.enumerable!==!0)return!1}return!0}});var Kr=h((ZC,oo)=>{"use strict";var ao=typeof Symbol<"u"&&Symbol,Xk=no();oo.exports=function(){return typeof ao!="function"||typeof Symbol!="function"||typeof ao("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Xk()}});var _t=h((XC,io)=>{"use strict";io.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ht=h((eB,po)=>{"use strict";var eP=St();po.exports=eP.getPrototypeOf||null});var lo=h((tB,co)=>{"use strict";var tP="Function.prototype.bind called on incompatible ",rP=Object.prototype.toString,sP=Math.max,nP="[object Function]",uo=function(t,s){for(var n=[],a=0;a<t.length;a+=1)n[a]=t[a];for(var o=0;o<s.length;o+=1)n[o+t.length]=s[o];return n},aP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},oP=function(e,t){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=t);return s};co.exports=function(t){var s=this;if(typeof s!="function"||rP.apply(s)!==nP)throw new TypeError(tP+s);for(var n=aP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,uo(n,arguments));return Object(y)===y?y:this}return s.apply(t,uo(n,arguments))},i=sP(0,s.length-n.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+oP(p,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var r=function(){};r.prototype=s.prototype,a.prototype=new r,r.prototype=null}return a}});var be=h((rB,go)=>{"use strict";var iP=lo();go.exports=Function.prototype.bind||iP});var Je=h((sB,yo)=>{"use strict";yo.exports=Function.prototype.call});var Qt=h((nB,mo)=>{"use strict";mo.exports=Function.prototype.apply});var qo=h((aB,Ro)=>{"use strict";Ro.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var bo=h((oB,ho)=>{"use strict";var pP=be(),uP=Qt(),cP=Je(),dP=qo();ho.exports=dP||pP.call(cP,uP)});var Io=h((iB,fo)=>{"use strict";var lP=be(),gP=he(),yP=Je(),mP=bo();fo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new gP("a function is required");return mP(lP,yP,t)}});var Co=h((pB,Ao)=>{"use strict";var RP=Io(),xo=Ue(),Po;try{Po=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var $r=!!Po&&xo&&xo(Object.prototype,"__proto__"),vo=Object,ko=vo.getPrototypeOf;Ao.exports=$r&&typeof $r.get=="function"?RP([$r.get]):typeof ko=="function"?function(t){return ko(t==null?t:vo(t))}:!1});var zr=h((uB,Uo)=>{"use strict";var Bo=_t(),To=Ht(),wo=Co();Uo.exports=Bo?function(t){return Bo(t)}:To?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return To(t)}:wo?function(t){return wo(t)}:null});var Jr=h((cB,Go)=>{"use strict";var qP=Function.prototype.call,hP=Object.prototype.hasOwnProperty,bP=be();Go.exports=bP.call(qP,hP)});var Qo=h((dB,Ho)=>{"use strict";var A,fP=St(),IP=Er(),xP=Lr(),kP=Wr(),PP=_r(),We=Et(),Le=he(),vP=Hr(),AP=Qr(),CP=Dr(),BP=Fr(),TP=Mr(),wP=Or(),UP=Vr(),GP=Nr(),Wo=Function,jr=function(e){try{return Wo('"use strict"; return ('+e+").constructor;")()}catch{}},je=Ue(),SP=Ge(),Yr=function(){throw new Le},EP=je?(function(){try{return arguments.callee,Yr}catch{try{return je(arguments,"callee").get}catch{return Yr}}})():Yr,Se=Kr()(),_=zr(),LP=Ht(),WP=_t(),_o=Qt(),Ye=Je(),Ee={},_P=typeof Uint8Array>"u"||!_?A:_(Uint8Array),fe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":Se&&_?_([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":IP,"%eval%":eval,"%EvalError%":xP,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":Wo,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Se&&_?_(_([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Se||!_?A:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fP,"%Object.getOwnPropertyDescriptor%":je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":kP,"%ReferenceError%":PP,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Se||!_?A:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Se&&_?_(""[Symbol.iterator]()):A,"%Symbol%":Se?Symbol:A,"%SyntaxError%":We,"%ThrowTypeError%":EP,"%TypedArray%":_P,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":vP,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet,"%Function.prototype.call%":Ye,"%Function.prototype.apply%":_o,"%Object.defineProperty%":SP,"%Object.getPrototypeOf%":LP,"%Math.abs%":AP,"%Math.floor%":CP,"%Math.max%":BP,"%Math.min%":TP,"%Math.pow%":wP,"%Math.round%":UP,"%Math.sign%":GP,"%Reflect.getPrototypeOf%":WP};if(_)try{null.error}catch(e){So=_(_(e)),fe["%Error.prototype%"]=So}var So,HP=function e(t){var s;if(t==="%AsyncFunction%")s=jr("async function () {}");else if(t==="%GeneratorFunction%")s=jr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=jr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(s=_(a.prototype))}return fe[t]=s,s},Eo={__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=be(),Dt=Jr(),QP=Ze.call(Ye,Array.prototype.concat),DP=Ze.call(_o,Array.prototype.splice),Lo=Ze.call(Ye,String.prototype.replace),Ft=Ze.call(Ye,String.prototype.slice),FP=Ze.call(Ye,RegExp.prototype.exec),MP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,OP=/\\(\\)?/g,VP=function(t){var s=Ft(t,0,1),n=Ft(t,-1);if(s==="%"&&n!=="%")throw new We("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new We("invalid intrinsic syntax, expected opening `%`");var a=[];return Lo(t,MP,function(o,i,p,u){a[a.length]=p?Lo(u,OP,"$1"):i||o}),a},NP=function(t,s){var n=t,a;if(Dt(Eo,n)&&(a=Eo[n],n="%"+a[0]+"%"),Dt(fe,n)){var o=fe[n];if(o===Ee&&(o=HP(n)),typeof o>"u"&&!s)throw new Le("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new We("intrinsic "+t+" does not exist!")};Ho.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(FP(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=VP(t),a=n.length>0?n[0]:"",o=NP("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],DP(n,QP([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Ft(m,0,1),P=Ft(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new We("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Dt(fe,i))p=fe[i];else if(p!=null){if(!(m in p)){if(!s)throw new Le("base intrinsic for "+t+" exists, but the property is not available.");return}if(je&&y+1>=n.length){var q=je(p,m);x=!!q,x&&"get"in q&&!("originalValue"in q.get)?p=q.get:p=p[m]}else x=Dt(p,m),p=p[m];x&&!u&&(fe[i]=p)}}return p}});var Vt=h((lB,No)=>{"use strict";var v,KP=St(),$P=Er(),zP=Lr(),JP=Wr(),jP=_r(),De=Et(),Qe=he(),YP=Hr(),ZP=Qr(),XP=Dr(),ev=Fr(),tv=Mr(),rv=Or(),sv=Vr(),nv=Nr(),Oo=Function,Zr=function(e){try{return Oo('"use strict"; return ('+e+").constructor;")()}catch{}},Xe=Ue(),av=Ge(),Xr=function(){throw new Qe},ov=Xe?(function(){try{return arguments.callee,Xr}catch{try{return Xe(arguments,"callee").get}catch{return Xr}}})():Xr,_e=Kr()(),H=zr(),iv=Ht(),pv=_t(),Vo=Qt(),et=Je(),He={},uv=typeof Uint8Array>"u"||!H?v:H(Uint8Array),Ie={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":_e&&H?H([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":He,"%AsyncGenerator%":He,"%AsyncGeneratorFunction%":He,"%AsyncIteratorPrototype%":He,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$P,"%eval%":eval,"%EvalError%":zP,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":Oo,"%GeneratorFunction%":He,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_e&&H?H(H([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_e||!H?v:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KP,"%Object.getOwnPropertyDescriptor%":Xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":JP,"%ReferenceError%":jP,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_e||!H?v:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_e&&H?H(""[Symbol.iterator]()):v,"%Symbol%":_e?Symbol:v,"%SyntaxError%":De,"%ThrowTypeError%":ov,"%TypedArray%":uv,"%TypeError%":Qe,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":YP,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":et,"%Function.prototype.apply%":Vo,"%Object.defineProperty%":av,"%Object.getPrototypeOf%":iv,"%Math.abs%":ZP,"%Math.floor%":XP,"%Math.max%":ev,"%Math.min%":tv,"%Math.pow%":rv,"%Math.round%":sv,"%Math.sign%":nv,"%Reflect.getPrototypeOf%":pv};if(H)try{null.error}catch(e){Do=H(H(e)),Ie["%Error.prototype%"]=Do}var Do,cv=function e(t){var s;if(t==="%AsyncFunction%")s=Zr("async function () {}");else if(t==="%GeneratorFunction%")s=Zr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Zr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&H&&(s=H(a.prototype))}return Ie[t]=s,s},Fo={__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=be(),Mt=Jr(),dv=tt.call(et,Array.prototype.concat),lv=tt.call(Vo,Array.prototype.splice),Mo=tt.call(et,String.prototype.replace),Ot=tt.call(et,String.prototype.slice),gv=tt.call(et,RegExp.prototype.exec),yv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mv=/\\(\\)?/g,Rv=function(t){var s=Ot(t,0,1),n=Ot(t,-1);if(s==="%"&&n!=="%")throw new De("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new De("invalid intrinsic syntax, expected opening `%`");var a=[];return Mo(t,yv,function(o,i,p,u){a[a.length]=p?Mo(u,mv,"$1"):i||o}),a},qv=function(t,s){var n=t,a;if(Mt(Fo,n)&&(a=Fo[n],n="%"+a[0]+"%"),Mt(Ie,n)){var o=Ie[n];if(o===He&&(o=cv(n)),typeof o>"u"&&!s)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new De("intrinsic "+t+" does not exist!")};No.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(gv(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Rv(t),a=n.length>0?n[0]:"",o=qv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],lv(n,dv([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Ot(m,0,1),P=Ot(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new De("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Mt(Ie,i))p=Ie[i];else if(p!=null){if(!(m in p)){if(!s)throw new Qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(Xe&&y+1>=n.length){var q=Xe(p,m);x=!!q,x&&"get"in q&&!("originalValue"in q.get)?p=q.get:p=p[m]}else x=Mt(p,m),p=p[m];x&&!u&&(Ie[i]=p)}}return p}});var Jo=h((gB,zo)=>{"use strict";var Ko=Ge(),hv=Et(),Fe=he(),$o=Ue();zo.exports=function(t,s,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Fe("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new Fe("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Fe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Fe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Fe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Fe("`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=!!$o&&$o(t,s);if(Ko)Ko(t,s,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[s]=n;else throw new hv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Zo=h((yB,Yo)=>{"use strict";var es=Ge(),jo=function(){return!!es};jo.hasArrayLengthDefineBug=function(){if(!es)return null;try{return es([],"length",{value:1}).length!==1}catch{return!0}};Yo.exports=jo});var si=h((mB,ri)=>{"use strict";var bv=Vt(),Xo=Jo(),fv=Zo()(),ei=Ue(),ti=he(),Iv=bv("%Math.floor%");ri.exports=function(t,s){if(typeof t!="function")throw new ti("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Iv(s)!==s)throw new ti("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&ei){var i=ei(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(fv?Xo(t,"length",s,!0,!0):Xo(t,"length",s)),t}});var ui=h((RB,Nt)=>{"use strict";var ts=be(),Kt=Vt(),xv=si(),kv=he(),oi=Kt("%Function.prototype.apply%"),ii=Kt("%Function.prototype.call%"),pi=Kt("%Reflect.apply%",!0)||ts.call(ii,oi),ni=Ge(),Pv=Kt("%Math.max%");Nt.exports=function(t){if(typeof t!="function")throw new kv("a function is required");var s=pi(ts,ii,arguments);return xv(s,1+Pv(0,t.length-(arguments.length-1)),!0)};var ai=function(){return pi(ts,oi,arguments)};ni?ni(Nt.exports,"apply",{value:ai}):Nt.exports.apply=ai});var gi=h((qB,li)=>{"use strict";var ci=Vt(),di=ui(),vv=di(ci("String.prototype.indexOf"));li.exports=function(t,s){var n=ci(t,!!s);return typeof n=="function"&&vv(t,".prototype.")>-1?di(n):n}});var mi=h((hB,yi)=>{yi.exports=require("util").inspect});var Wi=h((bB,Li)=>{var ds=typeof Map=="function"&&Map.prototype,rs=Object.getOwnPropertyDescriptor&&ds?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zt=ds&&rs&&typeof rs.get=="function"?rs.get:null,Ri=ds&&Map.prototype.forEach,ls=typeof Set=="function"&&Set.prototype,ss=Object.getOwnPropertyDescriptor&&ls?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Jt=ls&&ss&&typeof ss.get=="function"?ss.get:null,qi=ls&&Set.prototype.forEach,Av=typeof WeakMap=="function"&&WeakMap.prototype,st=Av?WeakMap.prototype.has:null,Cv=typeof WeakSet=="function"&&WeakSet.prototype,nt=Cv?WeakSet.prototype.has:null,Bv=typeof WeakRef=="function"&&WeakRef.prototype,hi=Bv?WeakRef.prototype.deref:null,Tv=Boolean.prototype.valueOf,wv=Object.prototype.toString,Uv=Function.prototype.toString,Gv=String.prototype.match,gs=String.prototype.slice,ue=String.prototype.replace,Sv=String.prototype.toUpperCase,bi=String.prototype.toLowerCase,Bi=RegExp.prototype.test,fi=Array.prototype.concat,X=Array.prototype.join,Ev=Array.prototype.slice,Ii=Math.floor,os=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ns=Object.getOwnPropertySymbols,is=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,Ti=Object.prototype.propertyIsEnumerable,xi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ki(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Bi.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ii(-e):Ii(e);if(n!==e){var a=String(n),o=gs.call(t,a.length+1);return ue.call(a,s,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,s,"$&_")}var ps=mi(),Pi=ps.custom,vi=Gi(Pi)?Pi:null,wi={__proto__:null,double:'"',single:"'"},Lv={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Li.exports=function e(t,s,n,a){var o=s||{};if(se(o,"quoteStyle")&&!se(wi,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 Ei(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?ki(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?ki(t,r):r}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof t=="object")return us(t)?"[Array]":"[Object]";var x=Xv(o,n);if(typeof a>"u")a=[];else if(Si(a,t)>=0)return"[Circular]";function m(Y,oe,te){if(oe&&(a=Ev.call(a),a.push(oe)),te){var $e={depth:o.depth};return se(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(Y,$e,n+1,a)}return e(Y,o,n+1,a)}if(typeof t=="function"&&!Ai(t)){var k=Vv(t),P=$t(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+X.call(P,", ")+" }":"")}if(Gi(t)){var q=Me?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):is.call(t);return typeof t=="object"&&!Me?rt(q):q}if(jv(t)){for(var L="<"+bi.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+Ui(Wv(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+bi.call(String(t.nodeName))+">",L}if(us(t)){if(t.length===0)return"[]";var J=$t(t,m);return x&&!Zv(J)?"["+cs(J,x)+"]":"[ "+X.call(J,", ")+" ]"}if(Hv(t)){var j=$t(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!Ti.call(t,"cause")?"{ ["+String(t)+"] "+X.call(fi.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+X.call(j,", ")+" }"}if(typeof t=="object"&&i){if(vi&&typeof t[vi]=="function"&&ps)return ps(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Nv(t)){var de=[];return Ri&&Ri.call(t,function(Y,oe){de.push(m(oe,t,!0)+" => "+m(Y,t))}),Ci("Map",zt.call(t),de,x)}if(zv(t)){var Ne=[];return qi&&qi.call(t,function(Y){Ne.push(m(Y,t))}),Ci("Set",Jt.call(t),Ne,x)}if(Kv(t))return as("WeakMap");if(Jv(t))return as("WeakSet");if($v(t))return as("WeakRef");if(Dv(t))return rt(m(Number(t)));if(Mv(t))return rt(m(os.call(t)));if(Fv(t))return rt(Tv.call(t));if(Qv(t))return rt(m(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(!_v(t)&&!Ai(t)){var le=$t(t,m),Ke=xi?xi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Be=!Ke&&O&&Object(t)===t&&O in t?gs.call(ce(t),8,-1):ae?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Te=ge+(Be||ae?"["+X.call(fi.call([],Be||[],ae||[]),": ")+"] ":"");return le.length===0?Te+"{}":x?Te+"{"+cs(le,x)+"}":Te+"{ "+X.call(le,", ")+" }"}return String(t)};function Ui(e,t,s){var n=s.quoteStyle||t,a=wi[n];return a+e+a}function Wv(e){return ue.call(String(e),/"/g,"&quot;")}function us(e){return ce(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function _v(e){return ce(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function Ai(e){return ce(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function Hv(e){return ce(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Qv(e){return ce(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function Dv(e){return ce(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function Fv(e){return ce(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function Gi(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!is)return!1;try{return is.call(e),!0}catch{}return!1}function Mv(e){if(!e||typeof e!="object"||!os)return!1;try{return os.call(e),!0}catch{}return!1}var Ov=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return Ov.call(e,t)}function ce(e){return wv.call(e)}function Vv(e){if(e.name)return e.name;var t=Gv.call(Uv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Si(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,n=e.length;s<n;s++)if(e[s]===t)return s;return-1}function Nv(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e);try{Jt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Kv(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 $v(e){if(!hi||!e||typeof e!="object")return!1;try{return hi.call(e),!0}catch{}return!1}function zv(e){if(!Jt||!e||typeof e!="object")return!1;try{Jt.call(e);try{zt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Jv(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 jv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ei(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Ei(gs.call(e,0,t.maxStringLength),t)+n}var a=Lv[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,Yv);return Ui(o,"single",t)}function Yv(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Sv.call(t.toString(16))}function rt(e){return"Object("+e+")"}function as(e){return e+" { ? }"}function Ci(e,t,s,n){var a=n?cs(s,n):X.call(s,", ");return e+" ("+t+") {"+a+"}"}function Zv(e){for(var t=0;t<e.length;t++)if(Si(e[t],`
2
+ `)>=0)return!1;return!0}function Xv(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=X.call(Array(e.indent+1)," ");else return null;return{base:s,prev:X.call(Array(t+1),s)}}function cs(e,t){if(e.length===0)return"";var s=`
3
+ `+t.prev+t.base;return s+X.call(e,","+s)+`
4
+ `+t.prev}function $t(e,t){var s=us(e),n=[];if(s){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=se(e,a)?t(e[a],e):""}var o=typeof ns=="function"?ns(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)&&(s&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(Bi.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof ns=="function")for(var r=0;r<o.length;r++)Ti.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Hi=h((fB,_i)=>{"use strict";var ys=Qo(),Oe=gi(),eA=Wi(),tA=ys("%TypeError%"),jt=ys("%WeakMap%",!0),Yt=ys("%Map%",!0),rA=Oe("WeakMap.prototype.get",!0),sA=Oe("WeakMap.prototype.set",!0),nA=Oe("WeakMap.prototype.has",!0),aA=Oe("Map.prototype.get",!0),oA=Oe("Map.prototype.set",!0),iA=Oe("Map.prototype.has",!0),ms=function(e,t){for(var s=e,n;(n=s.next)!==null;s=n)if(n.key===t)return s.next=n.next,n.next=e.next,e.next=n,n},pA=function(e,t){var s=ms(e,t);return s&&s.value},uA=function(e,t,s){var n=ms(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},cA=function(e,t){return!!ms(e,t)};_i.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new tA("Side channel does not contain "+eA(o))},get:function(o){if(jt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return rA(t,o)}else if(Yt){if(s)return aA(s,o)}else if(n)return pA(n,o)},has:function(o){if(jt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return nA(t,o)}else if(Yt){if(s)return iA(s,o)}else if(n)return cA(n,o);return!1},set:function(o,i){jt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new jt),sA(t,o,i)):Yt?(s||(s=new Yt),oA(s,o,i)):(n||(n={key:{},next:null}),uA(n,o,i))}};return a}});var Zt=h((IB,Qi)=>{"use strict";var dA=String.prototype.replace,lA=/%20/g,Rs={RFC1738:"RFC1738",RFC3986:"RFC3986"};Qi.exports={default:Rs.RFC3986,formatters:{RFC1738:function(e){return dA.call(e,lA,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rs.RFC1738,RFC3986:Rs.RFC3986}});var hs=h((xB,Fi)=>{"use strict";var gA=Zt(),qs=Object.prototype.hasOwnProperty,xe=Array.isArray,ee=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),yA=function(t){for(;t.length>1;){var s=t.pop(),n=s.obj[s.prop];if(xe(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);s.obj[s.prop]=a}}},Di=function(t,s){for(var n=s&&s.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},mA=function e(t,s,n){if(!s)return t;if(typeof s!="object"){if(xe(t))t.push(s);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qs.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var a=t;return xe(t)&&!xe(s)&&(a=Di(t,n)),xe(t)&&xe(s)?(s.forEach(function(o,i){if(qs.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,n):t.push(o)}else t[i]=o}),t):Object.keys(s).reduce(function(o,i){var p=s[i];return qs.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},RA=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},qA=function(e,t,s){var n=e.replace(/\+/g," ");if(s==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},hA=function(t,s,n,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)),n==="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===gA.RFC1738&&(r===40||r===41)){p+=i.charAt(u);continue}if(r<128){p=p+ee[r];continue}if(r<2048){p=p+(ee[192|r>>6]+ee[128|r&63]);continue}if(r<55296||r>=57344){p=p+(ee[224|r>>12]+ee[128|r>>6&63]+ee[128|r&63]);continue}u+=1,r=65536+((r&1023)<<10|i.charCodeAt(u)&1023),p+=ee[240|r>>18]+ee[128|r>>12&63]+ee[128|r>>6&63]+ee[128|r&63]}return p},bA=function(t){for(var s=[{obj:{o:t},prop:"o"}],n=[],a=0;a<s.length;++a)for(var o=s[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&&n.indexOf(y)===-1&&(s.push({obj:i,prop:r}),n.push(y))}return yA(s),t},fA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},IA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},xA=function(t,s){return[].concat(t,s)},kA=function(t,s){if(xe(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(s(t[a]));return n}return s(t)};Fi.exports={arrayToObject:Di,assign:RA,combine:xA,compact:bA,decode:qA,encode:hA,isBuffer:IA,isRegExp:fA,maybeMap:kA,merge:mA}});var $i=h((kB,Ki)=>{"use strict";var Vi=Hi(),fs=hs(),at=Zt(),PA=Object.prototype.hasOwnProperty,Mi={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},ne=Array.isArray,vA=String.prototype.split,AA=Array.prototype.push,Ni=function(e,t){AA.apply(e,ne(t)?t:[t])},CA=Date.prototype.toISOString,Oi=at.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fs.encode,encodeValuesOnly:!1,format:Oi,formatter:at.formatters[Oi],indices:!1,serializeDate:function(t){return CA.call(t)},skipNulls:!1,strictNullHandling:!1},BA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},bs={},TA=function e(t,s,n,a,o,i,p,u,r,y,x,m,k,P,q,L){for(var I=t,K=L,J=0,j=!1;(K=K.get(bs))!==void 0&&!j;){var de=K.get(t);if(J+=1,typeof de<"u"){if(de===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(bs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&ne(I)&&(I=fs.maybeMap(I,function(or){return or instanceof Date?x(or):or})),I===null){if(o)return p&&!P?p(s,F.encoder,q,"key",m):s;I=""}if(BA(I)||fs.isBuffer(I)){if(p){var Ne=P?s:p(s,F.encoder,q,"key",m);if(n==="comma"&&P){for(var le=vA.call(String(I),","),Ke="",ae=0;ae<le.length;++ae)Ke+=(ae===0?"":",")+k(p(le[ae],F.encoder,q,"value",m));return[k(Ne)+(a&&ne(I)&&le.length===1?"[]":"")+"="+Ke]}return[k(Ne)+"="+k(p(I,F.encoder,q,"value",m))]}return[k(s)+"="+k(String(I))]}var Be=[];if(typeof I>"u")return Be;var ge;if(n==="comma"&&ne(I))ge=[{value:I.length>0?I.join(",")||null:void 0}];else if(ne(u))ge=u;else{var Te=Object.keys(I);ge=r?Te.sort(r):Te}for(var Y=a&&ne(I)&&I.length===1?s+"[]":s,oe=0;oe<ge.length;++oe){var te=ge[oe],$e=typeof te=="object"&&typeof te.value<"u"?te.value:I[te];if(!(i&&$e===null)){var ck=ne(I)?typeof n=="function"?n(Y,te):Y:Y+(y?"."+te:"["+te+"]");L.set(t,J);var wa=Vi();wa.set(bs,L),Ni(Be,e($e,ck,n,a,o,i,p,u,r,y,x,m,k,P,q,wa))}}return Be},wA=function(t){if(!t)return F;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||F.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 n=at.default;if(typeof t.format<"u"){if(!PA.call(at.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=at.formatters[n],o=F.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:F.addQueryPrefix,allowDots:typeof t.allowDots>"u"?F.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:F.charsetSentinel,delimiter:typeof t.delimiter>"u"?F.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:F.encode,encoder:typeof t.encoder=="function"?t.encoder:F.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:F.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:F.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:F.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:F.strictNullHandling}};Ki.exports=function(e,t){var s=e,n=wA(t),a,o;typeof n.filter=="function"?(o=n.filter,s=o("",s)):ne(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Mi?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Mi[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(s)),n.sort&&a.sort(n.sort);for(var y=Vi(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Ni(i,TA(s[m],m,u,r,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,y))}var k=i.join(n.delimiter),P=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?P+="utf8=%26%2310003%3B&":P+="utf8=%E2%9C%93&"),k.length>0?P+k:""}});var ji=h((PB,Ji)=>{"use strict";var Ve=hs(),Is=Object.prototype.hasOwnProperty,UA=Array.isArray,Q={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ve.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},GA=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},zi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},SA="utf8=%26%2310003%3B",EA="utf8=%E2%9C%93",LA=function(t,s){var n={},a=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,i=a.split(s.delimiter,o),p=-1,u,r=s.charset;if(s.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===EA?r="utf-8":i[u]===SA&&(r="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],x=y.indexOf("]="),m=x===-1?y.indexOf("="):x+1,k,P;m===-1?(k=s.decoder(y,Q.decoder,r,"key"),P=s.strictNullHandling?null:""):(k=s.decoder(y.slice(0,m),Q.decoder,r,"key"),P=Ve.maybeMap(zi(y.slice(m+1),s),function(q){return s.decoder(q,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=GA(P)),y.indexOf("[]=")>-1&&(P=UA(P)?[P]:P),Is.call(n,k)?n[k]=Ve.combine(n[k],P):n[k]=P}return n},WA=function(e,t,s,n){for(var a=n?t:zi(t,s),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&s.parseArrays)i=[].concat(a);else{i=s.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,r=parseInt(u,10);!s.parseArrays&&u===""?i={0:a}:!isNaN(r)&&p!==u&&String(r)===u&&r>=0&&s.parseArrays&&r<=s.arrayLimit?(i=[],i[r]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},_A=function(t,s,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(o),r=u?o.slice(0,u.index):o,y=[];if(r){if(!n.plainObjects&&Is.call(Object.prototype,r)&&!n.allowPrototypes)return;y.push(r)}for(var x=0;n.depth>0&&(u=p.exec(o))!==null&&x<n.depth;){if(x+=1,!n.plainObjects&&Is.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),WA(y,s,n,a)}},HA=function(t){if(!t)return Q;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?Q.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Q.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Q.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Q.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Q.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Q.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Q.comma,decoder:typeof t.decoder=="function"?t.decoder:Q.decoder,delimiter:typeof t.delimiter=="string"||Ve.isRegExp(t.delimiter)?t.delimiter:Q.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Q.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Q.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Q.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Q.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Q.strictNullHandling}};Ji.exports=function(e,t){var s=HA(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?LA(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=_A(p,n[p],s,typeof e=="string");a=Ve.merge(a,u,s)}return s.allowSparse===!0?a:Ve.compact(a)}});var ke=h((vB,Yi)=>{"use strict";var QA=$i(),DA=ji(),FA=Zt();Yi.exports={formats:FA,parse:DA,stringify:QA}});var PC={};Z(PC,{AlreadyExistsError:()=>At,BreakingChangesError:()=>Ut,Client:()=>Ta,ForbiddenError:()=>ct,InternalError:()=>pt,InvalidDataFormatError:()=>qt,InvalidIdentifierError:()=>ht,InvalidJsonSchemaError:()=>Rt,InvalidPayloadError:()=>lt,InvalidQueryError:()=>Pt,LimitExceededError:()=>wt,MethodNotFoundError:()=>yt,OperationTimeoutError:()=>Gt,PayloadTooLargeError:()=>dt,PaymentRequiredError:()=>Bt,QuotaExceededError:()=>Tt,RateLimitedError:()=>Ct,ReferenceConstraintError:()=>ft,ReferenceNotFoundError:()=>kt,RelationConflictError:()=>bt,ResourceGoneError:()=>xt,ResourceLockedConflictError:()=>It,ResourceNotFoundError:()=>mt,RuntimeError:()=>vt,UnauthorizedError:()=>ut,UnknownError:()=>pe,UnsupportedMediaTypeError:()=>gt,UploadFileError:()=>re,admin:()=>Ys,billing:()=>An,errorFrom:()=>me,files:()=>ea,http:()=>W,isApiError:()=>Ea,runtime:()=>ks,tables:()=>Ba});module.exports=Rk(PC);var W={};Z(W,{HttpClient:()=>it,HttpError:()=>ie,createHttpClient:()=>fk,isHttpError:()=>ye,isNetworkError:()=>bk,isNetworkOrIdempotentRequestError:()=>Sa});var qk=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():Math.random().toString(36).substring(2,15),ie=class extends Error{constructor(s,n,a,o,i){super(s);this.config=n;this.code=a;this.response=o;this.name="HttpError",i!==void 0&&(this.cause=i)}isHttpError=!0},ye=e=>e instanceof ie||typeof e=="object"&&e!==null&&e.isHttpError===!0,hk=["get","head","options","put","delete"],bk=e=>ye(e)&&!e.response,Sa=e=>{if(!ye(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return hk.includes(t)&&e.response.status>=500&&e.response.status<=599},fk=e=>new it({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,debug:e.debug}),it=class{defaults;retry;constructor(t={}){this.defaults={headers:{},...t}}async request(t){let s=this.retry;if(!s?.retries)return this._requestOnce(t);for(let n=1;;n++)try{return await this._requestOnce(t)}catch(a){let o=t.signal?.aborted||this.defaults.signal?.aborted;if(!ye(a)||o||n>s.retries||!await(s.retryCondition??Sa)(a))throw a;let p=s.retryDelay?.(n,a)??0;p>0&&await new Promise(u=>setTimeout(u,p))}}get(t,s={}){return this.request({...s,method:"get",url:t})}delete(t,s={}){return this.request({...s,method:"delete",url:t})}post(t,s,n={}){return this.request({...n,method:"post",url:t,data:s})}put(t,s,n={}){return this.request({...n,method:"put",url:t,data:s})}async _requestOnce(t){let s=(t.method??"get").toUpperCase(),n=Ik(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;Ga(o,this.defaults.headers),Ga(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(xk(t.data)?i=t.data:(i=JSON.stringify(t.data),o.has("content-type")||o.set("content-type","application/json")));let p=t.timeout??this.defaults.timeout,u=[];t.signal&&u.push(t.signal),this.defaults.signal&&u.push(this.defaults.signal);let r=!1,y;if(p&&p>0&&Number.isFinite(p)){let q=new AbortController;y=setTimeout(()=>{r=!0,q.abort()},p),u.push(q.signal)}let x=this.defaults.debug??!1,m=x?qk():void 0,k=Date.now();x&&console.debug(Ak(a,o,m));let P=q=>{if(r)return new ie(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,q);if(t.signal?.aborted||this.defaults.signal?.aborted)return new ie("canceled",a,"ERR_CANCELED",void 0,q);let L=q?.cause,I=q?.message??"Network Error";return new ie(I,a,L?.code??"ERR_NETWORK",void 0,q)};try{let q=await fetch(n,{method:s,headers:o,body:i,signal:Pk(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};q.headers.forEach((j,de)=>{L[de]=j});let I,K=t.responseType??"json";if(!q.ok||K==="json"||K==="text"){let j=await q.text();I=!q.ok||K==="json"?kk(j):j}else K==="arraybuffer"?I=await q.arrayBuffer():I=q.body?vk(q.body):void 0;let J={data:I,status:q.status,statusText:q.statusText,headers:L,config:a};if(x&&console.debug(Ck(J,m,k)),!q.ok)throw new ie(`Request failed with status code ${q.status}`,a,void 0,J);return J}catch(q){let L=ye(q)?q:P(q);throw x&&!L.response&&console.debug(Bk(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},Ik=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,Ga=(e,t)=>{for(let[s,n]of Object.entries(t??{})){if(n===void 0){e.delete(s);continue}if(Array.isArray(n)){e.delete(s);for(let a of n)e.append(s,a)}else e.set(s,n)}},xk=e=>typeof e=="string"||e instanceof Uint8Array||e instanceof ArrayBuffer||typeof Blob<"u"&&e instanceof Blob||typeof FormData<"u"&&e instanceof FormData||typeof URLSearchParams<"u"&&e instanceof URLSearchParams,kk=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Pk=e=>{if(e.length===0)return;if(e.length===1)return e[0];if(typeof AbortSignal.any=="function")return AbortSignal.any(e);let t=new AbortController;for(let s of e){if(s.aborted){t.abort(s.reason);break}s.addEventListener("abort",()=>t.abort(s.reason),{once:!0})}return t.signal};async function*vk(e){let t=e.getReader();try{for(;;){let{done:s,value:n}=await t.read();if(s)break;n&&(yield n)}}finally{t.releaseLock()}}var Ak=(e,t,s)=>{let n={};return t.forEach((a,o)=>{n[o]=a}),"REQUEST: "+JSON.stringify({method:e.method?.toUpperCase(),url:e.url,timestamp:new Date().toISOString(),requestId:s,headers:n,body:e.data})+`
5
+ `},Ck=(e,t,s)=>"RESPONSE: "+JSON.stringify({method:e.config.method?.toUpperCase(),status:e.status,url:e.config.url,timestamp:new Date().toISOString(),requestId:t,duration:`${Date.now()-s}ms`,headers:e.headers,body:e.data})+`
6
+ `,Bk=(e,t,s)=>"ERROR: "+JSON.stringify({status:e.code,url:e.config.url,timestamp:new Date().toISOString(),requestId:t??"N/A",duration:`${Date.now()-s}ms`});var ks={};Z(ks,{Client:()=>xs});var $={};Z($,{getClientConfig:()=>_k});var ze=require("browser-or-node"),Tk="https://api.botpress.cloud",wk=6e4,Uk=!1,Gk="BP_API_URL",Sk="BP_BOT_ID",Ek="BP_INTEGRATION_ID",Lk="BP_WORKSPACE_ID",Wk="BP_TOKEN";function _k(e){let t=Hk(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.integrationAlias&&(s["x-integration-alias"]=t.integrationAlias),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let n=t.apiUrl??Tk,a=t.timeout??wk,o=t.debug??Uk;return{apiUrl:n,timeout:a,withCredentials:ze.isBrowser,headers:s,debug:o}}function Hk(e){return ze.isBrowser?e:ze.isNode?Qk(e):e}function Qk(e){let t={...e,apiUrl:e.apiUrl??process.env[Gk],botId:e.botId??process.env[Sk],integrationId:e.integrationId??process.env[Ek],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Lk]},s=t.token??process.env[Wk];return s&&(t.token=s),t}var R={};Z(R,{AsyncCollection:()=>ir});var ir=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:n}=await this._list({nextToken:t});t=n.nextToken;for(let a of s)yield a}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,n=[],a=0;for await(let o of this)if(n.push(o),a++,a>=s)break;return n}};var z={};Z(z,{toApiError:()=>Nk});var Dk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Fk=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:Dk,B=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Fk.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Mk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ea=e=>e instanceof B||Mk(e)&&e.isApiError===!0,pe=class extends B{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},pt=class extends B{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ut=class extends B{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ct=class extends B{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},dt=class extends B{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},lt=class extends B{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},gt=class extends B{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},yt=class extends B{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},mt=class extends B{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Rt=class extends B{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},qt=class extends B{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},ht=class extends B{constructor(t,s,n,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,s,n,a)}},bt=class extends B{constructor(t,s,n,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,s,n,a)}},ft=class extends B{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},It=class extends B{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},xt=class extends B{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},kt=class extends B{constructor(t,s,n,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,s,n,a)}},Pt=class extends B{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},vt=class extends B{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},At=class extends B{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Ct=class extends B{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Bt=class extends B{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Tt=class extends B{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},wt=class extends B{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},Ut=class extends B{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},Gt=class extends B{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},Ok={Unknown:pe,Internal:pt,Unauthorized:ut,Forbidden:ct,PayloadTooLarge:dt,InvalidPayload:lt,UnsupportedMediaType:gt,MethodNotFound:yt,ResourceNotFound:mt,InvalidJsonSchema:Rt,InvalidDataFormat:qt,InvalidIdentifier:ht,RelationConflict:bt,ReferenceConstraint:ft,ResourceLockedConflict:It,ResourceGone:xt,ReferenceNotFound:kt,InvalidQuery:Pt,Runtime:vt,AlreadyExists:At,RateLimited:Ct,PaymentRequired:Bt,QuotaExceeded:Tt,LimitExceeded:wt,BreakingChanges:Ut,OperationTimeout:Gt},me=e=>Ea(e)?e:e instanceof Error?new pe(e.message,e):typeof e=="string"?new pe(e):Vk(e);function Vk(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=Ok[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 re=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var Nk=e=>ye(e)&&e.response?.data?me(e.response.data):me(e);var Kk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},$k=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:Kk,T=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from($k.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},zk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Jk=e=>e instanceof T||zk(e)&&e.isApiError===!0,qe=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},pr=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ur=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},cr=class extends T{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},dr=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},lr=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},gr=class extends T{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},yr=class extends T{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},mr=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Rr=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},qr=class extends T{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},hr=class extends T{constructor(t,s,n,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,s,n,a)}},br=class extends T{constructor(t,s,n,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,s,n,a)}},fr=class extends T{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},Ir=class extends T{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},xr=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},kr=class extends T{constructor(t,s,n,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,s,n,a)}},Pr=class extends T{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},vr=class extends T{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},Ar=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Cr=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Br=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Tr=class extends T{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},wr=class extends T{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},Ur=class extends T{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},Gr=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},jk={Unknown:qe,Internal:pr,Unauthorized:ur,Forbidden:cr,PayloadTooLarge:dr,InvalidPayload:lr,UnsupportedMediaType:gr,MethodNotFound:yr,ResourceNotFound:mr,InvalidJsonSchema:Rr,InvalidDataFormat:qr,InvalidIdentifier:hr,RelationConflict:br,ReferenceConstraint:fr,ResourceLockedConflict:Ir,ResourceGone:xr,ReferenceNotFound:kr,InvalidQuery:Pr,Runtime:vr,AlreadyExists:Ar,RateLimited:Cr,PaymentRequired:Br,QuotaExceeded:Tr,LimitExceeded:wr,BreakingChanges:Ur,OperationTimeout:Gr},Sr=e=>Jk(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):Yk(e);function Yk(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=jk[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Zi=we(ke()),MA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(MA),p=Object.fromEntries(i),u=Zi.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Xi=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var tp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sp=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,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 ap=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 ip=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 up=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var mp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var bp=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 Ip=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kp=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 vp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cp=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 Tp=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 Up=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Lp=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 _p=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qp=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 Fp=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Op=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 Np=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $p=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 Jp=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 Yp=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 Xp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var su=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var au=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 iu=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 uu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var du=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var gu=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var mu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var qu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var bu=e=>({path:"/v1/chat/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 Iu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ku=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 vu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cu=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 Tu=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 Uu=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 Su=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Lu=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 Xt=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=Xi(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getConversation=async t=>{let{path:s,headers:n,query:a,body:o}=tp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:s,headers:n,query:a,body:o}=sp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=ap(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteConversation=async t=>{let{path:s,headers:n,query:a,body:o}=up(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=dp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=gp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=mp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=qp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createEvent=async t=>{let{path:s,headers:n,query:a,body:o}=bp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=async t=>{let{path:s,headers:n,query:a,body:o}=Ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listEvents=async t=>{let{path:s,headers:n,query:a,body:o}=kp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:s,headers:n,query:a,body:o}=vp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:s,headers:n,query:a,body:o}=Cp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=Tp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=async t=>{let{path:s,headers:n,query:a,body:o}=Up(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=Sp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listMessages=async t=>{let{path:s,headers:n,query:a,body:o}=Lp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteMessage=async t=>{let{path:s,headers:n,query:a,body:o}=_p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};initializeIncomingMessage=async t=>{let{path:s,headers:n,query:a,body:o}=Qp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importMessages=async t=>{let{path:s,headers:n,query:a,body:o}=Fp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:s,headers:n,query:a,body:o}=Op(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUser=async t=>{let{path:s,headers:n,query:a,body:o}=Np(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsers=async t=>{let{path:s,headers:n,query:a,body:o}=$p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=async t=>{let{path:s,headers:n,query:a,body:o}=Jp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateUser=async t=>{let{path:s,headers:n,query:a,body:o}=Yp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteUser=async t=>{let{path:s,headers:n,query:a,body:o}=Xp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setStateExpiry=async t=>{let{path:s,headers:n,query:a,body:o}=tu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=su(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:s,headers:n,query:a,body:o}=au(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrSetState=async t=>{let{path:s,headers:n,query:a,body:o}=iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:s,headers:n,query:a,body:o}=uu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"patch",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};callAction=async t=>{let{path:s,headers:n,query:a,body:o}=du(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkIntegrationIdentifier=async t=>{let{path:s,headers:n,query:a,body:o}=gu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationIdentifierAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=mu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=qu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=bu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=ku(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=vu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkflows=async t=>{let{path:s,headers:n,query:a,body:o}=Cu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Tu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Uu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Su(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=Lu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function f(e){let t=e?.response?.data;return t?Sr(t):Sr(e)}var xs=class extends Xt{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(n=>({...n,items:n.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(n=>({...n,items:n.participants}))),events:t=>new R.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(n=>({...n,items:n.events}))),messages:t=>new R.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(n=>({...n,items:n.messages}))),users:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(n=>({...n,items:n.users})))}}};var Ys={};Z(Ys,{Client:()=>js});var VA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},NA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:VA,w=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(NA.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},KA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,$A=e=>e instanceof w||KA(e)&&e.isApiError===!0,Pe=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Ps=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},vs=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},As=class extends w{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},Cs=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Bs=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ts=class extends w{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},ws=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Us=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Gs=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Ss=class extends w{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},Es=class extends w{constructor(t,s,n,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,s,n,a)}},Ls=class extends w{constructor(t,s,n,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,s,n,a)}},Ws=class extends w{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},_s=class extends w{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},Hs=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Qs=class extends w{constructor(t,s,n,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,s,n,a)}},Ds=class extends w{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},Fs=class extends w{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},Ms=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Os=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Vs=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ns=class extends w{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},Ks=class extends w{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},$s=class extends w{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},zs=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},zA={Unknown:Pe,Internal:Ps,Unauthorized:vs,Forbidden:As,PayloadTooLarge:Cs,InvalidPayload:Bs,UnsupportedMediaType:Ts,MethodNotFound:ws,ResourceNotFound:Us,InvalidJsonSchema:Gs,InvalidDataFormat:Ss,InvalidIdentifier:Es,RelationConflict:Ls,ReferenceConstraint:Ws,ResourceLockedConflict:_s,ResourceGone:Hs,ReferenceNotFound:Qs,InvalidQuery:Ds,Runtime:Fs,AlreadyExists:Ms,RateLimited:Os,PaymentRequired:Vs,QuotaExceeded:Ns,LimitExceeded:Ks,BreakingChanges:$s,OperationTimeout:zs},Js=e=>$A(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):JA(e);function JA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=zA[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 _u=we(ke()),jA=e=>e[1]!==void 0,l=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(jA),p=Object.fromEntries(i),u=_u.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Hu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Du=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Vu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Ku=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var zu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ju=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ec=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var rc=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 nc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var yc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Rc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var hc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var fc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pc=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,moduleFormat:e.moduleFormat}});var Ac=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,moduleFormat:e.moduleFormat}});var Bc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Gc=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 Ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hc=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 Dc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Vc=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 Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var ld=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 Rd=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 hd=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 fd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var xd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Pd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Bd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ed=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Hd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Dd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Kd=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 zd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var el=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 rl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var nl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var ol=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var pl=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)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var ll=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var yl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Rl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var hl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var fl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Pl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Al=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Bl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var wl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gl=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 El=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 Wl=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 Hl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Dl=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 Ml=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 Vl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var zl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var jl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var eg=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 rg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ng=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var pg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var lg=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 yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var hg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fg=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 xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Ag=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Bg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var wg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Gg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Eg=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 Wg=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 Hg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Dg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Mg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var er=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=async t=>{let{path:s,headers:n,query:a,body:o}=Hu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Du(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Mu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Vu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:n,query:a,body:o}=Ku(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:n,query:a,body:o}=zu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:n,query:a,body:o}=ju(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=Zu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=ec(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=rc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:n,query:a,body:o}=nc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=oc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicPlugins=async t=>{let{path:s,headers:n,query:a,body:o}=pc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=cc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=lc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=yc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=Rc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=async t=>{let{path:s,headers:n,query:a,body:o}=hc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterfaceById=async t=>{let{path:s,headers:n,query:a,body:o}=fc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:s,headers:n,query:a,body:o}=xc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=async t=>{let{path:s,headers:n,query:a,body:o}=Pc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=async t=>{let{path:s,headers:n,query:a,body:o}=Ac(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=Bc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:s,headers:n,query:a,body:o}=wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:s,headers:n,query:a,body:o}=Gc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBot=async t=>{let{path:s,headers:n,query:a,body:o}=Ec(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBot=async t=>{let{path:s,headers:n,query:a,body:o}=Wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=async t=>{let{path:s,headers:n,query:a,body:o}=Hc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotWebchat=async t=>{let{path:s,headers:n,query:a,body:o}=Dc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Mc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActionRuns=async t=>{let{path:s,headers:n,query:a,body:o}=Vc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=Kc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=async t=>{let{path:s,headers:n,query:a,body:o}=zc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=jc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=Zc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:s,headers:n,query:a,body:o}=ed(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=async t=>{let{path:s,headers:n,query:a,body:o}=nd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};publishFromBotJson=async t=>{let{path:s,headers:n,query:a,body:o}=od(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=cd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=ld(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=yd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=Rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=hd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=fd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=xd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAllowlist=async t=>{let{path:s,headers:n,query:a,body:o}=Ad(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=async t=>{let{path:s,headers:n,query:a,body:o}=Bd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:n,query:a,body:o}=wd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Gd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:n,query:a,body:o}=Ed(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Wd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Hd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Dd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Md(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:n,query:a,body:o}=Vd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:n,query:a,body:o}=Kd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=zd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:n,query:a,body:o}=jd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=Zd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=el(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=rl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=nl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=ol(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAuditRecords=async t=>{let{path:s,headers:n,query:a,body:o}=cl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=ll(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=yl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:n,query:a,body:o}=Rl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=hl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=fl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=xl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Al(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Bl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=wl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Gl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationCreation=async t=>{let{path:s,headers:n,query:a,body:o}=El(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Wl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=Hl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=Dl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=Ml(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Vl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=Kl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=jl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:n,query:a,body:o}=Zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:s,headers:n,query:a,body:o}=eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:s,headers:n,query:a,body:o}=rg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=async t=>{let{path:s,headers:n,query:a,body:o}=ng(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateInterface=async t=>{let{path:s,headers:n,query:a,body:o}=og(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteInterface=async t=>{let{path:s,headers:n,query:a,body:o}=pg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInterfaces=async t=>{let{path:s,headers:n,query:a,body:o}=cg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=lg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=yg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Rg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:s,headers:n,query:a,body:o}=hg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=fg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=xg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlugins=async t=>{let{path:s,headers:n,query:a,body:o}=Pg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=Ag(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUsage=async t=>{let{path:s,headers:n,query:a,body:o}=Bg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMultipleUsages=async t=>{let{path:s,headers:n,query:a,body:o}=wg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=Gg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:s,headers:n,query:a,body:o}=Eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivityDaily=async t=>{let{path:s,headers:n,query:a,body:o}=Wg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};changeAISpendQuota=async t=>{let{path:s,headers:n,query:a,body:o}=Hg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActivities=async t=>{let{path:s,headers:n,query:a,body:o}=Dg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=async t=>{let{path:s,headers:n,query:a,body:o}=Mg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function g(e){let t=e?.response?.data;return t?Js(t):Js(e)}var js=class extends er{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{publicIntegrations:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(n=>({...n,items:n.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(n=>({...n,items:n.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(n=>({...n,items:n.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(n=>({...n,items:n.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(n=>({...n,items:n.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(n=>({...n,items:n.members}))),integrations:t=>new R.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(n=>({...n,items:n.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(n=>({...n,items:n.interfaces}))),activities:t=>new R.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(n=>({...n,items:n.activities}))),usageActivity:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(n=>({...n,items:n.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(n=>({...n,items:n.data})))}}};var An={};Z(An,{Client:()=>vn});var ZA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},XA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:ZA,U=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(XA.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},eC=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tC=e=>e instanceof U||eC(e)&&e.isApiError===!0,ve=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Zs=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Xs=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},en=class extends U{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},tn=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},rn=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},sn=class extends U{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},nn=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},an=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},on=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},pn=class extends U{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},un=class extends U{constructor(t,s,n,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,s,n,a)}},cn=class extends U{constructor(t,s,n,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,s,n,a)}},dn=class extends U{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},ln=class extends U{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},gn=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},yn=class extends U{constructor(t,s,n,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,s,n,a)}},mn=class extends U{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},Rn=class extends U{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},qn=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},hn=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},bn=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},fn=class extends U{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},In=class extends U{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},xn=class extends U{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},kn=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},rC={Unknown:ve,Internal:Zs,Unauthorized:Xs,Forbidden:en,PayloadTooLarge:tn,InvalidPayload:rn,UnsupportedMediaType:sn,MethodNotFound:nn,ResourceNotFound:an,InvalidJsonSchema:on,InvalidDataFormat:pn,InvalidIdentifier:un,RelationConflict:cn,ReferenceConstraint:dn,ResourceLockedConflict:ln,ResourceGone:gn,ReferenceNotFound:yn,InvalidQuery:mn,Runtime:Rn,AlreadyExists:qn,RateLimited:hn,PaymentRequired:bn,QuotaExceeded:fn,LimitExceeded:In,BreakingChanges:xn,OperationTimeout:kn},Pn=e=>tC(e)?e:e instanceof Error?new ve(e.message,e):typeof e=="string"?new ve(e):sC(e);function sC(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=rC[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 Vg=we(ke()),nC=e=>e[1]!==void 0,C=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(nC),p=Object.fromEntries(i),u=Vg.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Ng=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var $g=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Jg=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 Yg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Xg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var ty=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var sy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var ay=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var iy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var uy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var dy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var gy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var my=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var qy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var by=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Iy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var ky=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var vy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Cy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Ty=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var Uy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Sy=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Ly=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var _y=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Qy=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Fy=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Oy=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var Ny=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var $y=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var tr=class{constructor(t,s={}){this.httpClient=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:n,query:a,body:o}=Ng(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBillingAddress=async t=>{let{path:s,headers:n,query:a,body:o}=$g(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setBillingAddress=async t=>{let{path:s,headers:n,query:a,body:o}=Jg(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getCustomer=async t=>{let{path:s,headers:n,query:a,body:o}=Yg(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setCustomer=async t=>{let{path:s,headers:n,query:a,body:o}=Xg(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"patch",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlan=async t=>{let{path:s,headers:n,query:a,body:o}=ty(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlans=async t=>{let{path:s,headers:n,query:a,body:o}=sy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAddon=async t=>{let{path:s,headers:n,query:a,body:o}=ay(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listAddons=async t=>{let{path:s,headers:n,query:a,body:o}=iy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getSubscription=async t=>{let{path:s,headers:n,query:a,body:o}=uy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};previewSubscriptionUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=dy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setPlan=async t=>{let{path:s,headers:n,query:a,body:o}=gy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAddons=async t=>{let{path:s,headers:n,query:a,body:o}=my(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"patch",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setCancelAtPeriodEnd=async t=>{let{path:s,headers:n,query:a,body:o}=qy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAutoRechargeSettings=async t=>{let{path:s,headers:n,query:a,body:o}=by(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAutoRechargeSettings=async t=>{let{path:s,headers:n,query:a,body:o}=Iy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTrials=async t=>{let{path:s,headers:n,query:a,body:o}=ky(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTrial=async t=>{let{path:s,headers:n,query:a,body:o}=vy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeTrial=async t=>{let{path:s,headers:n,query:a,body:o}=Cy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createCreditGrant=async t=>{let{path:s,headers:n,query:a,body:o}=Ty(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Uy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};payInvoice=async t=>{let{path:s,headers:n,query:a,body:o}=Sy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPaymentMethod=async t=>{let{path:s,headers:n,query:a,body:o}=Ly(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setPaymentMethod=async t=>{let{path:s,headers:n,query:a,body:o}=_y(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPaymentMethodIntent=async t=>{let{path:s,headers:n,query:a,body:o}=Qy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=Fy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceUsage=async t=>{let{path:s,headers:n,query:a,body:o}=Oy(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceUsages=async t=>{let{path:s,headers:n,query:a,body:o}=Ny(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFeatureGates=async t=>{let{path:s,headers:n,query:a,body:o}=$y(t),i=this.props.toRequest??C,p=this.props.toApiError??G,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function G(e){let t=e?.response?.data;return t?Pn(t):Pn(e)}var vn=class extends tr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{listInvoices:t=>new R.AsyncCollection(({nextToken:s})=>this.listInvoices({nextToken:s,...t}).then(n=>({...n,items:n.invoices})))}}};var ea={};Z(ea,{Client:()=>Xn});var oC={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},iC=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:oC,S=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(iC.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},pC=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uC=e=>e instanceof S||pC(e)&&e.isApiError===!0,Ae=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Cn=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Bn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Tn=class extends S{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Un=class extends S{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Gn=class extends S{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},Sn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},En=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Ln=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Wn=class extends S{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},_n=class extends S{constructor(t,s,n,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,s,n,a)}},Hn=class extends S{constructor(t,s,n,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,s,n,a)}},Qn=class extends S{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},Dn=class extends S{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},Fn=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,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,s,n,a)}},On=class extends S{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},Vn=class extends S{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},Nn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Kn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},$n=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},zn=class extends S{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},Jn=class extends S{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},jn=class extends S{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},Yn=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},cC={Unknown:Ae,Internal:Cn,Unauthorized:Bn,Forbidden:Tn,PayloadTooLarge:wn,InvalidPayload:Un,UnsupportedMediaType:Gn,MethodNotFound:Sn,ResourceNotFound:En,InvalidJsonSchema:Ln,InvalidDataFormat:Wn,InvalidIdentifier:_n,RelationConflict:Hn,ReferenceConstraint:Qn,ResourceLockedConflict:Dn,ResourceGone:Fn,ReferenceNotFound:Mn,InvalidQuery:On,Runtime:Vn,AlreadyExists:Nn,RateLimited:Kn,PaymentRequired:$n,QuotaExceeded:zn,LimitExceeded:Jn,BreakingChanges:jn,OperationTimeout:Yn},Zn=e=>uC(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):dC(e);function dC(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=cC[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 Jy=we(ke()),lC=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(lC),p=Object.fromEntries(i),u=Jy.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var jy=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 Zy=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var em=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 rm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nm=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 pm=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var cm=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 lm=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 Rm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var hm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var fm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xm=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 Pm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var rr=class{constructor(t,s={}){this.httpClient=t;this.props=s}upsertFile=async t=>{let{path:s,headers:n,query:a,body:o}=jy(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=async t=>{let{path:s,headers:n,query:a,body:o}=Zy(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFiles=async t=>{let{path:s,headers:n,query:a,body:o}=em(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getFile=async t=>{let{path:s,headers:n,query:a,body:o}=rm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateFileMetadata=async t=>{let{path:s,headers:n,query:a,body:o}=nm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=async t=>{let{path:s,headers:n,query:a,body:o}=om(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=async t=>{let{path:s,headers:n,query:a,body:o}=pm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFilePassages=async t=>{let{path:s,headers:n,query:a,body:o}=cm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setFilePassages=async t=>{let{path:s,headers:n,query:a,body:o}=lm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=async t=>{let{path:s,headers:n,query:a,body:o}=ym(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Rm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=hm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=fm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=xm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=async t=>{let{path:s,headers:n,query:a,body:o}=Pm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function N(e){let t=e?.response?.data;return t?Zn(t):Zn(e)}var sr=async(e,{key:t,index:s,tags:n,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:r,metadata:y,publicContentImmediatelyAccessible:x})=>{if(p&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await new W.HttpClient().get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new re(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new re("No content was provided for the file");let m,k;if(typeof i=="string"){let I=new TextEncoder().encode(i);m=I,k=I.byteLength}else if(i instanceof Uint8Array)m=i,k=m.byteLength;else if(i instanceof ArrayBuffer)m=i,k=m.byteLength;else if(i instanceof Blob)m=i,k=i.size;else throw new re("The provided content is not supported");let{file:P}=await e.upsertFile({key:t,tags:n,index:s,accessPolicies:o,contentType:a,metadata:y,size:k,expiresAt:r,indexing:u,publicContentImmediatelyAccessible:x}),q={"Content-Type":P.contentType};x&&(q["x-amz-tagging"]="public=true");try{await new W.HttpClient().put(P.uploadUrl,m,{headers:q})}catch(L){let I=L instanceof Error?L:new Error(String(L));throw new re(`Failed to upload file: ${I.message}`,I,P)}return{file:{...P,size:k}}};var Xn=class extends rr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{files:t=>new R.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(n=>({...n,items:n.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(n=>({...n,items:n.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(n=>({...n,items:n.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(n=>({...n,items:n.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(n=>({...n,items:n.knowledgeBases})))}}async uploadFile(t){return await sr(this,t)}};var Ba={};Z(Ba,{Client:()=>Ca});var yC={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mC=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:yC,E=class e extends Error{constructor(s,n,a,o,i,p,u){super(o);this.code=s;this.description=n;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 s=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(mC.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},RC=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,qC=e=>e instanceof E||RC(e)&&e.isApiError===!0,Ce=class extends E{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ta=class extends E{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ra=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},na=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},aa=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},oa=class extends E{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},ia=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},pa=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},ua=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ca=class extends E{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},da=class extends E{constructor(t,s,n,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,s,n,a)}},la=class extends E{constructor(t,s,n,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,s,n,a)}},ga=class extends E{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},ya=class extends E{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Ra=class extends E{constructor(t,s,n,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,s,n,a)}},qa=class extends E{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},ha=class extends E{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},ba=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},fa=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ia=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},xa=class extends E{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},ka=class extends E{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},Pa=class extends E{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},va=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},hC={Unknown:Ce,Internal:ta,Unauthorized:ra,Forbidden:sa,PayloadTooLarge:na,InvalidPayload:aa,UnsupportedMediaType:oa,MethodNotFound:ia,ResourceNotFound:pa,InvalidJsonSchema:ua,InvalidDataFormat:ca,InvalidIdentifier:da,RelationConflict:la,ReferenceConstraint:ga,ResourceLockedConflict:ya,ResourceGone:ma,ReferenceNotFound:Ra,InvalidQuery:qa,Runtime:ha,AlreadyExists:ba,RateLimited:fa,PaymentRequired:Ia,QuotaExceeded:xa,LimitExceeded:ka,BreakingChanges:Pa,OperationTimeout:va},Aa=e=>qC(e)?e:e instanceof Error?new Ce(e.message,e):typeof e=="string"?new Ce(e):bC(e);function bC(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=hC[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ce("An invalid error occurred: "+JSON.stringify(e))}var Cm=we(ke()),fC=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(fC),p=Object.fromEntries(i),u=Cm.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var Bm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var wm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Gm=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 Em=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 Wm=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 Hm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Dm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Mm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Vm=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 Km=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Zm=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 eR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var rR=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 nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var oR=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 nr=class{constructor(t,s={}){this.httpClient=t;this.props=s}listTables=async t=>{let{path:s,headers:n,query:a,body:o}=Bm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=wm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Gm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=async t=>{let{path:s,headers:n,query:a,body:o}=Em(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};duplicateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Wm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};exportTable=async t=>{let{path:s,headers:n,query:a,body:o}=Hm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableJobs=async t=>{let{path:s,headers:n,query:a,body:o}=Dm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importTable=async t=>{let{path:s,headers:n,query:a,body:o}=Mm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Vm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};renameTableColumn=async t=>{let{path:s,headers:n,query:a,body:o}=Km(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTable=async t=>{let{path:s,headers:n,query:a,body:o}=zm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableRow=async t=>{let{path:s,headers:n,query:a,body:o}=jm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};findTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=Zm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=eR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=rR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=nR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=oR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function M(e){let t=e?.response?.data;return t?Aa(t):Aa(e)}var Ca=class extends nr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}};var pR=we(ke()),xC=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(xC),p=Object.fromEntries(i),u=pR.default.stringify(n,{encode:!0,arrayFormat:"repeat",allowDots:!0}),r=u?[s,u].join("?"):s,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:r,headers:p,data:y}};var uR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var dR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gR=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,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 mR=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 qR=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 bR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var IR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var kR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var vR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var CR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var TR=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 UR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=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 LR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=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 QR=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 FR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var NR=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 $R=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var JR=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 YR=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var XR=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 tq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sq=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 aq=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 iq=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 uq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var gq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var mq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var qq=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 bq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Iq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var kq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var vq=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Cq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Tq=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 Uq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sq=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 Lq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _q=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Qq=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 Fq=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 Oq=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Nq=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 $q=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Jq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Yq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Xq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var th=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var sh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ah=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ih=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var uh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var dh=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 gh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var bh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ih=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var kh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Ch=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Th=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sh=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,moduleFormat:e.moduleFormat}});var Lh=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,moduleFormat:e.moduleFormat}});var _h=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Qh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Fh=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 Oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $h=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 Jh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Xh=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 tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Ib=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 kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Cb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Ub=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Sb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var _b=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Fb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ob=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Nb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var $b=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Jb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Yb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var tf=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 sf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var cf=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 lf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var yf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Rf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var hf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ff=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Pf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Af=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Bf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var wf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Ef=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Wf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Hf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Df=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mf=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 Vf=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 Kf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var zf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var jf=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 Zf=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 eI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rI=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 nI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var oI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var cI=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 lI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var RI=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 hI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var xI=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 PI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var BI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wI=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 GI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var EI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var WI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var HI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var DI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var MI=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 KI=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 zI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var jI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var ZI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var ex=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 rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nx=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 ox=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var px=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 cx=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 lx=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 yx=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 Rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var hx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var fx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var xx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Px=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ax=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 Bx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var wx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ex=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 Wx=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 Hx=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 Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Mx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Vx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Kx=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 zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var jx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var nk=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 ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var pk=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 ar=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=uR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getConversation=async t=>{let{path:s,headers:n,query:a,body:o}=dR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:s,headers:n,query:a,body:o}=gR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=mR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=qR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteConversation=async t=>{let{path:s,headers:n,query:a,body:o}=bR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=IR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=kR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=vR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};removeParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=CR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createEvent=async t=>{let{path:s,headers:n,query:a,body:o}=TR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=async t=>{let{path:s,headers:n,query:a,body:o}=UR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listEvents=async t=>{let{path:s,headers:n,query:a,body:o}=SR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:s,headers:n,query:a,body:o}=LR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:s,headers:n,query:a,body:o}=_R(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=QR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=async t=>{let{path:s,headers:n,query:a,body:o}=FR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=OR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listMessages=async t=>{let{path:s,headers:n,query:a,body:o}=NR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteMessage=async t=>{let{path:s,headers:n,query:a,body:o}=$R(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};initializeIncomingMessage=async t=>{let{path:s,headers:n,query:a,body:o}=JR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importMessages=async t=>{let{path:s,headers:n,query:a,body:o}=YR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:s,headers:n,query:a,body:o}=XR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUser=async t=>{let{path:s,headers:n,query:a,body:o}=tq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsers=async t=>{let{path:s,headers:n,query:a,body:o}=sq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=async t=>{let{path:s,headers:n,query:a,body:o}=aq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateUser=async t=>{let{path:s,headers:n,query:a,body:o}=iq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteUser=async t=>{let{path:s,headers:n,query:a,body:o}=uq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setStateExpiry=async t=>{let{path:s,headers:n,query:a,body:o}=dq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=gq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:s,headers:n,query:a,body:o}=mq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrSetState=async t=>{let{path:s,headers:n,query:a,body:o}=qq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:s,headers:n,query:a,body:o}=bq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};callAction=async t=>{let{path:s,headers:n,query:a,body:o}=Iq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkIntegrationIdentifier=async t=>{let{path:s,headers:n,query:a,body:o}=kq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationIdentifierAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=vq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Cq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Tq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Uq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Sq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Lq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkflows=async t=>{let{path:s,headers:n,query:a,body:o}=_q(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Qq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Fq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Oq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=Nq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};runVrl=async t=>{let{path:s,headers:n,query:a,body:o}=$q(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Jq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Yq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Xq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:n,query:a,body:o}=th(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:n,query:a,body:o}=sh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:n,query:a,body:o}=ah(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=ih(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=uh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=dh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:n,query:a,body:o}=gh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=mh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicPlugins=async t=>{let{path:s,headers:n,query:a,body:o}=qh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=bh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=Ih(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=kh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=vh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=async t=>{let{path:s,headers:n,query:a,body:o}=Ch(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterfaceById=async t=>{let{path:s,headers:n,query:a,body:o}=Th(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:s,headers:n,query:a,body:o}=Uh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=async t=>{let{path:s,headers:n,query:a,body:o}=Sh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=async t=>{let{path:s,headers:n,query:a,body:o}=Lh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=_h(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:s,headers:n,query:a,body:o}=Qh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:s,headers:n,query:a,body:o}=Fh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBot=async t=>{let{path:s,headers:n,query:a,body:o}=Oh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBot=async t=>{let{path:s,headers:n,query:a,body:o}=Nh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=async t=>{let{path:s,headers:n,query:a,body:o}=$h(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotWebchat=async t=>{let{path:s,headers:n,query:a,body:o}=Jh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Yh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActionRuns=async t=>{let{path:s,headers:n,query:a,body:o}=Xh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=tb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=async t=>{let{path:s,headers:n,query:a,body:o}=sb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=ab(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=ib(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:s,headers:n,query:a,body:o}=ub(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=db(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=async t=>{let{path:s,headers:n,query:a,body:o}=gb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};publishFromBotJson=async t=>{let{path:s,headers:n,query:a,body:o}=mb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=qb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=bb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=Ib(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=kb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=vb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=Cb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Tb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Ub(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Sb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAllowlist=async t=>{let{path:s,headers:n,query:a,body:o}=Lb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=async t=>{let{path:s,headers:n,query:a,body:o}=_b(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:n,query:a,body:o}=Qb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Fb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:n,query:a,body:o}=Ob(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Nb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=$b(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Jb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Yb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:n,query:a,body:o}=Xb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:n,query:a,body:o}=tf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=sf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:n,query:a,body:o}=af(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=pf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=cf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=lf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=yf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=Rf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=hf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAuditRecords=async t=>{let{path:s,headers:n,query:a,body:o}=ff(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=xf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=Pf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:n,query:a,body:o}=Af(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Bf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=wf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Gf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Ef(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Wf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Hf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Df(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Mf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationCreation=async t=>{let{path:s,headers:n,query:a,body:o}=Vf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Kf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=jf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=Zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=eI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=rI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=nI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=oI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:n,query:a,body:o}=pI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:s,headers:n,query:a,body:o}=cI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:s,headers:n,query:a,body:o}=lI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=async t=>{let{path:s,headers:n,query:a,body:o}=yI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateInterface=async t=>{let{path:s,headers:n,query:a,body:o}=RI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteInterface=async t=>{let{path:s,headers:n,query:a,body:o}=hI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInterfaces=async t=>{let{path:s,headers:n,query:a,body:o}=fI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=xI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=PI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=AI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:s,headers:n,query:a,body:o}=BI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=wI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=GI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlugins=async t=>{let{path:s,headers:n,query:a,body:o}=EI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=WI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUsage=async t=>{let{path:s,headers:n,query:a,body:o}=HI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMultipleUsages=async t=>{let{path:s,headers:n,query:a,body:o}=DI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=MI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:s,headers:n,query:a,body:o}=VI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivityDaily=async t=>{let{path:s,headers:n,query:a,body:o}=KI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};changeAISpendQuota=async t=>{let{path:s,headers:n,query:a,body:o}=zI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActivities=async t=>{let{path:s,headers:n,query:a,body:o}=jI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=async t=>{let{path:s,headers:n,query:a,body:o}=ZI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertFile=async t=>{let{path:s,headers:n,query:a,body:o}=ex(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=async t=>{let{path:s,headers:n,query:a,body:o}=rx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFiles=async t=>{let{path:s,headers:n,query:a,body:o}=nx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getFile=async t=>{let{path:s,headers:n,query:a,body:o}=ox(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateFileMetadata=async t=>{let{path:s,headers:n,query:a,body:o}=px(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=async t=>{let{path:s,headers:n,query:a,body:o}=cx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=async t=>{let{path:s,headers:n,query:a,body:o}=lx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFilePassages=async t=>{let{path:s,headers:n,query:a,body:o}=yx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setFilePassages=async t=>{let{path:s,headers:n,query:a,body:o}=Rx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=async t=>{let{path:s,headers:n,query:a,body:o}=hx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=fx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=xx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=Px(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=Ax(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=async t=>{let{path:s,headers:n,query:a,body:o}=Bx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTables=async t=>{let{path:s,headers:n,query:a,body:o}=wx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=Gx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Ex(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=async t=>{let{path:s,headers:n,query:a,body:o}=Wx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};duplicateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Hx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};exportTable=async t=>{let{path:s,headers:n,query:a,body:o}=Dx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableJobs=async t=>{let{path:s,headers:n,query:a,body:o}=Mx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importTable=async t=>{let{path:s,headers:n,query:a,body:o}=Vx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Kx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};renameTableColumn=async t=>{let{path:s,headers:n,query:a,body:o}=zx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTable=async t=>{let{path:s,headers:n,query:a,body:o}=jx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableRow=async t=>{let{path:s,headers:n,query:a,body:o}=Zx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};findTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=ek(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=rk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=nk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=ok(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=pk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function d(e){let t=e?.response?.data;return t?me(t):me(e)}var Ta=class extends ar{config;constructor(t={}){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(n=>({...n,items:n.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(n=>({...n,items:n.participants}))),events:t=>new R.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(n=>({...n,items:n.events}))),messages:t=>new R.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(n=>({...n,items:n.messages}))),users:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(n=>({...n,items:n.users}))),publicIntegrations:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(n=>({...n,items:n.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(n=>({...n,items:n.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(n=>({...n,items:n.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(n=>({...n,items:n.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(n=>({...n,items:n.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(n=>({...n,items:n.members}))),integrations:t=>new R.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(n=>({...n,items:n.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(n=>({...n,items:n.interfaces}))),publicInterfaces:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicInterfaces({nextToken:s,...t}).then(n=>({...n,items:n.interfaces}))),plugins:t=>new R.AsyncCollection(({nextToken:s})=>this.listPlugins({nextToken:s,...t}).then(n=>({...n,items:n.plugins}))),publicPlugins:t=>new R.AsyncCollection(({nextToken:s})=>this.listPublicPlugins({nextToken:s,...t}).then(n=>({...n,items:n.plugins}))),activities:t=>new R.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(n=>({...n,items:n.activities}))),files:t=>new R.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(n=>({...n,items:n.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(n=>({...n,items:n.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(n=>({...n,items:n.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(n=>({...n,items:n.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(n=>({...n,items:n.knowledgeBases}))),usageActivity:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(n=>({...n,items:n.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(n=>({...n,items:n.data}))),workflows:t=>new R.AsyncCollection(({nextToken:s})=>this.listWorkflows({nextToken:s,...t}).then(n=>({...n,items:n.workflows})))}}uploadFile=async t=>await sr(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,billing,errorFrom,files,http,isApiError,runtime,tables});
7
7
  //# sourceMappingURL=index.cjs.map