@botpress/client 1.48.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.mjs CHANGED
@@ -1,7 +1,7 @@
1
- var Ok=Object.create;var Dt=Object.defineProperty;var Vk=Object.getOwnPropertyDescriptor;var Nk=Object.getOwnPropertyNames;var Kk=Object.getPrototypeOf,$k=Object.prototype.hasOwnProperty;var zk=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var n in t)Dt(e,n,{get:t[n],enumerable:!0})},Jk=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Nk(t))!$k.call(e,a)&&a!==n&&Dt(e,a,{get:()=>t[a],enumerable:!(s=Vk(t,a))||s.enumerable});return e};var te=(e,t,n)=>(n=e!=null?Ok(Kk(e)):{},Jk(t||!e||!e.__esModule?Dt(n,"default",{value:e,enumerable:!0}):n,e));var Da=q((RT,Qa)=>{"use strict";var jk=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Qa.exports=e=>!jk.has(e&&e.code)});var za=q(()=>{});var Ja=q(()=>{});var dt=q((GT,po)=>{"use strict";po.exports=Object});var Or=q((ST,uo)=>{"use strict";uo.exports=Error});var Vr=q((ET,co)=>{"use strict";co.exports=EvalError});var Nr=q((LT,lo)=>{"use strict";lo.exports=RangeError});var Kr=q((_T,go)=>{"use strict";go.exports=ReferenceError});var lt=q((WT,yo)=>{"use strict";yo.exports=SyntaxError});var me=q((QT,mo)=>{"use strict";mo.exports=TypeError});var $r=q((DT,Ro)=>{"use strict";Ro.exports=URIError});var zr=q((HT,qo)=>{"use strict";qo.exports=Math.abs});var Jr=q((MT,ho)=>{"use strict";ho.exports=Math.floor});var jr=q((FT,bo)=>{"use strict";bo.exports=Math.max});var Yr=q((OT,fo)=>{"use strict";fo.exports=Math.min});var Zr=q((VT,xo)=>{"use strict";xo.exports=Math.pow});var Xr=q((NT,Io)=>{"use strict";Io.exports=Math.round});var Po=q((KT,ko)=>{"use strict";ko.exports=Number.isNaN||function(t){return t!==t}});var es=q(($T,vo)=>{"use strict";var WP=Po();vo.exports=function(t){return WP(t)||t===0?t:t<0?-1:1}});var Bo=q((zT,Ao)=>{"use strict";Ao.exports=Object.getOwnPropertyDescriptor});var we=q((JT,To)=>{"use strict";var gt=Bo();if(gt)try{gt([],"length")}catch{gt=null}To.exports=gt});var Ue=q((jT,Co)=>{"use strict";var yt=Object.defineProperty||!1;if(yt)try{yt({},"a",{value:1})}catch{yt=!1}Co.exports=yt});var Uo=q((YT,wo)=>{"use strict";wo.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 ts=q((ZT,So)=>{"use strict";var Go=typeof Symbol<"u"&&Symbol,QP=Uo();So.exports=function(){return typeof Go!="function"||typeof Symbol!="function"||typeof Go("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:QP()}});var mt=q((XT,Eo)=>{"use strict";Eo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Rt=q((eC,Lo)=>{"use strict";var DP=dt();Lo.exports=DP.getPrototypeOf||null});var Qo=q((tC,Wo)=>{"use strict";var HP="Function.prototype.bind called on incompatible ",MP=Object.prototype.toString,FP=Math.max,OP="[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},VP=function(t,n){for(var s=[],a=n||0,o=0;a<t.length;a+=1,o+=1)s[o]=t[a];return s},NP=function(e,t){for(var n="",s=0;s<e.length;s+=1)n+=e[s],s+1<e.length&&(n+=t);return n};Wo.exports=function(t){var n=this;if(typeof n!="function"||MP.apply(n)!==OP)throw new TypeError(HP+n);for(var s=VP(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=FP(0,n.length-s.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+NP(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 Re=q((rC,Do)=>{"use strict";var KP=Qo();Do.exports=Function.prototype.bind||KP});var ze=q((sC,Ho)=>{"use strict";Ho.exports=Function.prototype.call});var qt=q((nC,Mo)=>{"use strict";Mo.exports=Function.prototype.apply});var Oo=q((aC,Fo)=>{"use strict";Fo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var No=q((oC,Vo)=>{"use strict";var $P=Re(),zP=qt(),JP=ze(),jP=Oo();Vo.exports=jP||$P.call(JP,zP)});var $o=q((iC,Ko)=>{"use strict";var YP=Re(),ZP=me(),XP=ze(),ev=No();Ko.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ZP("a function is required");return ev(YP,XP,t)}});var Xo=q((pC,Zo)=>{"use strict";var tv=$o(),zo=we(),jo;try{jo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var rs=!!jo&&zo&&zo(Object.prototype,"__proto__"),Yo=Object,Jo=Yo.getPrototypeOf;Zo.exports=rs&&typeof rs.get=="function"?tv([rs.get]):typeof Jo=="function"?function(t){return Jo(t==null?t:Yo(t))}:!1});var ss=q((uC,si)=>{"use strict";var ei=mt(),ti=Rt(),ri=Xo();si.exports=ei?function(t){return ei(t)}:ti?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ti(t)}:ri?function(t){return ri(t)}:null});var ns=q((cC,ni)=>{"use strict";var rv=Function.prototype.call,sv=Object.prototype.hasOwnProperty,nv=Re();ni.exports=nv.call(rv,sv)});var di=q((dC,ci)=>{"use strict";var k,av=dt(),ov=Or(),iv=Vr(),pv=Nr(),uv=Kr(),Le=lt(),Ee=me(),cv=$r(),dv=zr(),lv=Jr(),gv=jr(),yv=Yr(),mv=Zr(),Rv=Xr(),qv=es(),pi=Function,as=function(e){try{return pi('"use strict"; return ('+e+").constructor;")()}catch{}},Je=we(),hv=Ue(),os=function(){throw new Ee},bv=Je?(function(){try{return arguments.callee,os}catch{try{return Je(arguments,"callee").get}catch{return os}}})():os,Ge=ts()(),_=ss(),fv=Rt(),xv=mt(),ui=qt(),je=ze(),Se={},Iv=typeof Uint8Array>"u"||!_?k:_(Uint8Array),qe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":Ge&&_?_([][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%":ov,"%eval%":eval,"%EvalError%":iv,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":pi,"%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&&_?_(_([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ge||!_?k:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":av,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":pv,"%ReferenceError%":uv,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ge||!_?k:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ge&&_?_(""[Symbol.iterator]()):k,"%Symbol%":Ge?Symbol:k,"%SyntaxError%":Le,"%ThrowTypeError%":bv,"%TypedArray%":Iv,"%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%":cv,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":ui,"%Object.defineProperty%":hv,"%Object.getPrototypeOf%":fv,"%Math.abs%":dv,"%Math.floor%":lv,"%Math.max%":gv,"%Math.min%":yv,"%Math.pow%":mv,"%Math.round%":Rv,"%Math.sign%":qv,"%Reflect.getPrototypeOf%":xv};if(_)try{null.error}catch(e){ai=_(_(e)),qe["%Error.prototype%"]=ai}var ai,kv=function e(t){var n;if(t==="%AsyncFunction%")n=as("async function () {}");else if(t==="%GeneratorFunction%")n=as("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=as("async function* () {}");else if(t==="%AsyncGenerator%"){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(n=_(a.prototype))}return qe[t]=n,n},oi={__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"]},Ye=Re(),ht=ns(),Pv=Ye.call(je,Array.prototype.concat),vv=Ye.call(ui,Array.prototype.splice),ii=Ye.call(je,String.prototype.replace),bt=Ye.call(je,String.prototype.slice),Av=Ye.call(je,RegExp.prototype.exec),Bv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tv=/\\(\\)?/g,Cv=function(t){var n=bt(t,0,1),s=bt(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 ii(t,Bv,function(o,i,p,u){a[a.length]=p?ii(u,Tv,"$1"):i||o}),a},wv=function(t,n){var s=t,a;if(ht(oi,s)&&(a=oi[s],s="%"+a[0]+"%"),ht(qe,s)){var o=qe[s];if(o===Se&&(o=kv(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!")};ci.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(Av(/^%?[^%]*%?$/,t)===null)throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=Cv(t),a=s.length>0?s[0]:"",o=wv("%"+a+"%",n),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],vv(s,Pv([0,1],r)));for(var y=1,P=!0;y<s.length;y+=1){var R=s[y],x=bt(R,0,1),f=bt(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+"%",ht(qe,i))p=qe[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 E=Je(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=ht(p,R),p=p[R];P&&!u&&(qe[i]=p)}}return p}});var It=q((lC,qi)=>{"use strict";var I,Uv=dt(),Gv=Or(),Sv=Vr(),Ev=Nr(),Lv=Kr(),De=lt(),Qe=me(),_v=$r(),Wv=zr(),Qv=Jr(),Dv=jr(),Hv=Yr(),Mv=Zr(),Fv=Xr(),Ov=es(),mi=Function,is=function(e){try{return mi('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=we(),Vv=Ue(),ps=function(){throw new Qe},Nv=Ze?(function(){try{return arguments.callee,ps}catch{try{return Ze(arguments,"callee").get}catch{return ps}}})():ps,_e=ts()(),W=ss(),Kv=Rt(),$v=mt(),Ri=qt(),Xe=ze(),We={},zv=typeof Uint8Array>"u"||!W?I:W(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":_e&&W?W([][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%":Gv,"%eval%":eval,"%EvalError%":Sv,"%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%":mi,"%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&&W?W(W([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_e||!W?I:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Uv,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Ev,"%ReferenceError%":Lv,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_e||!W?I:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_e&&W?W(""[Symbol.iterator]()):I,"%Symbol%":_e?Symbol:I,"%SyntaxError%":De,"%ThrowTypeError%":Nv,"%TypedArray%":zv,"%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%":_v,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Xe,"%Function.prototype.apply%":Ri,"%Object.defineProperty%":Vv,"%Object.getPrototypeOf%":Kv,"%Math.abs%":Wv,"%Math.floor%":Qv,"%Math.max%":Dv,"%Math.min%":Hv,"%Math.pow%":Mv,"%Math.round%":Fv,"%Math.sign%":Ov,"%Reflect.getPrototypeOf%":$v};if(W)try{null.error}catch(e){li=W(W(e)),he["%Error.prototype%"]=li}var li,Jv=function e(t){var n;if(t==="%AsyncFunction%")n=is("async function () {}");else if(t==="%GeneratorFunction%")n=is("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=is("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},gi={__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"]},et=Re(),ft=ns(),jv=et.call(Xe,Array.prototype.concat),Yv=et.call(Ri,Array.prototype.splice),yi=et.call(Xe,String.prototype.replace),xt=et.call(Xe,String.prototype.slice),Zv=et.call(Xe,RegExp.prototype.exec),Xv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eA=/\\(\\)?/g,tA=function(t){var n=xt(t,0,1),s=xt(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 yi(t,Xv,function(o,i,p,u){a[a.length]=p?yi(u,eA,"$1"):i||o}),a},rA=function(t,n){var s=t,a;if(ft(gi,s)&&(a=gi[s],s="%"+a[0]+"%"),ft(he,s)){var o=he[s];if(o===We&&(o=Jv(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!")};qi.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(Zv(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=tA(t),a=s.length>0?s[0]:"",o=rA("%"+a+"%",n),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],Yv(s,jv([0,1],r)));for(var y=1,P=!0;y<s.length;y+=1){var R=s[y],x=xt(R,0,1),f=xt(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+"%",ft(he,i))p=he[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(Ze&&y+1>=s.length){var E=Ze(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=ft(p,R),p=p[R];P&&!u&&(he[i]=p)}}return p}});var xi=q((gC,fi)=>{"use strict";var hi=Ue(),sA=lt(),He=me(),bi=we();fi.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=!!bi&&bi(t,n);if(hi)hi(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 sA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Pi=q((yC,ki)=>{"use strict";var us=Ue(),Ii=function(){return!!us};Ii.hasArrayLengthDefineBug=function(){if(!us)return null;try{return us([],"length",{value:1}).length!==1}catch{return!0}};ki.exports=Ii});var Ci=q((mC,Ti)=>{"use strict";var nA=It(),vi=xi(),aA=Pi()(),Ai=we(),Bi=me(),oA=nA("%Math.floor%");Ti.exports=function(t,n){if(typeof t!="function")throw new Bi("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||oA(n)!==n)throw new Bi("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Ai){var i=Ai(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!s)&&(aA?vi(t,"length",n,!0,!0):vi(t,"length",n)),t}});var Li=q((RC,kt)=>{"use strict";var cs=Re(),Pt=It(),iA=Ci(),pA=me(),Gi=Pt("%Function.prototype.apply%"),Si=Pt("%Function.prototype.call%"),Ei=Pt("%Reflect.apply%",!0)||cs.call(Si,Gi),wi=Ue(),uA=Pt("%Math.max%");kt.exports=function(t){if(typeof t!="function")throw new pA("a function is required");var n=Ei(cs,Si,arguments);return iA(n,1+uA(0,t.length-(arguments.length-1)),!0)};var Ui=function(){return Ei(cs,Gi,arguments)};wi?wi(kt.exports,"apply",{value:Ui}):kt.exports.apply=Ui});var Di=q((qC,Qi)=>{"use strict";var _i=It(),Wi=Li(),cA=Wi(_i("String.prototype.indexOf"));Qi.exports=function(t,n){var s=_i(t,!!n);return typeof s=="function"&&cA(t,".prototype.")>-1?Wi(s):s}});var Hi=q(()=>{});var ip=q((fC,op)=>{var fs=typeof Map=="function"&&Map.prototype,ds=Object.getOwnPropertyDescriptor&&fs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,At=fs&&ds&&typeof ds.get=="function"?ds.get:null,Mi=fs&&Map.prototype.forEach,xs=typeof Set=="function"&&Set.prototype,ls=Object.getOwnPropertyDescriptor&&xs?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Bt=xs&&ls&&typeof ls.get=="function"?ls.get:null,Fi=xs&&Set.prototype.forEach,dA=typeof WeakMap=="function"&&WeakMap.prototype,rt=dA?WeakMap.prototype.has:null,lA=typeof WeakSet=="function"&&WeakSet.prototype,st=lA?WeakSet.prototype.has:null,gA=typeof WeakRef=="function"&&WeakRef.prototype,Oi=gA?WeakRef.prototype.deref:null,yA=Boolean.prototype.valueOf,mA=Object.prototype.toString,RA=Function.prototype.toString,qA=String.prototype.match,Is=String.prototype.slice,ue=String.prototype.replace,hA=String.prototype.toUpperCase,Vi=String.prototype.toLowerCase,Xi=RegExp.prototype.test,Ni=Array.prototype.concat,Y=Array.prototype.join,bA=Array.prototype.slice,Ki=Math.floor,ms=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gs=Object.getOwnPropertySymbols,Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",F=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,ep=Object.prototype.propertyIsEnumerable,$i=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function zi(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Xi.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var s=e<0?-Ki(-e):Ki(e);if(s!==e){var a=String(s),o=Is.call(t,a.length+1);return ue.call(a,n,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,n,"$&_")}var qs=Hi(),Ji=qs.custom,ji=sp(Ji)?Ji:null,tp={__proto__:null,double:'"',single:"'"},fA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};op.exports=function e(t,n,s,a){var o=n||{};if(re(o,"quoteStyle")&&!re(tp,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=re(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(re(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(re(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ap(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?zi(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?zi(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 hs(t)?"[Array]":"[Object]";var P=QA(o,s);if(typeof a>"u")a=[];else if(np(a,t)>=0)return"[Circular]";function R(J,oe,ee){if(oe&&(a=bA.call(a),a.push(oe)),ee){var $e={depth:o.depth};return re(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(J,$e,s+1,a)}return e(J,o,s+1,a)}if(typeof t=="function"&&!Yi(t)){var x=CA(t),f=vt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Y.call(f,", ")+" }":"")}if(sp(t)){var E=Me?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rs.call(t);return typeof t=="object"&&!Me?tt(E):E}if(LA(t)){for(var L="<"+Vi.call(String(t.nodeName)),v=t.attributes||[],X=0;X<v.length;X++)L+=" "+v[X].name+"="+rp(xA(v[X].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+Vi.call(String(t.nodeName))+">",L}if(hs(t)){if(t.length===0)return"[]";var ne=vt(t,R);return P&&!WA(ne)?"["+bs(ne,P)+"]":"[ "+Y.call(ne,", ")+" ]"}if(kA(t)){var ve=vt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!ep.call(t,"cause")?"{ ["+String(t)+"] "+Y.call(Ni.call("[cause]: "+R(t.cause),ve),", ")+" }":ve.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Y.call(ve,", ")+" }"}if(typeof t=="object"&&i){if(ji&&typeof t[ji]=="function"&&qs)return qs(t,{depth:y-s});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wA(t)){var Ve=[];return Mi&&Mi.call(t,function(J,oe){Ve.push(R(oe,t,!0)+" => "+R(J,t))}),Zi("Map",At.call(t),Ve,P)}if(SA(t)){var Ne=[];return Fi&&Fi.call(t,function(J){Ne.push(R(J,t))}),Zi("Set",Bt.call(t),Ne,P)}if(UA(t))return ys("WeakMap");if(EA(t))return ys("WeakSet");if(GA(t))return ys("WeakRef");if(vA(t))return tt(R(Number(t)));if(BA(t))return tt(R(ms.call(t)));if(AA(t))return tt(yA.call(t));if(PA(t))return tt(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(!IA(t)&&!Yi(t)){var de=vt(t,R),Ke=$i?$i(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Ae=!Ke&&F&&Object(t)===t&&F in t?Is.call(ce(t),8,-1):ae?"Object":"",le=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=le+(Ae||ae?"["+Y.call(Ni.call([],Ae||[],ae||[]),": ")+"] ":"");return de.length===0?Be+"{}":P?Be+"{"+bs(de,P)+"}":Be+"{ "+Y.call(de,", ")+" }"}return String(t)};function rp(e,t,n){var s=n.quoteStyle||t,a=tp[s];return a+e+a}function xA(e){return ue.call(String(e),/"/g,"&quot;")}function hs(e){return ce(e)==="[object Array]"&&(!F||!(typeof e=="object"&&F in e))}function IA(e){return ce(e)==="[object Date]"&&(!F||!(typeof e=="object"&&F in e))}function Yi(e){return ce(e)==="[object RegExp]"&&(!F||!(typeof e=="object"&&F in e))}function kA(e){return ce(e)==="[object Error]"&&(!F||!(typeof e=="object"&&F in e))}function PA(e){return ce(e)==="[object String]"&&(!F||!(typeof e=="object"&&F in e))}function vA(e){return ce(e)==="[object Number]"&&(!F||!(typeof e=="object"&&F in e))}function AA(e){return ce(e)==="[object Boolean]"&&(!F||!(typeof e=="object"&&F in e))}function sp(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rs)return!1;try{return Rs.call(e),!0}catch{}return!1}function BA(e){if(!e||typeof e!="object"||!ms)return!1;try{return ms.call(e),!0}catch{}return!1}var TA=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return TA.call(e,t)}function ce(e){return mA.call(e)}function CA(e){if(e.name)return e.name;var t=qA.call(RA.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function np(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 wA(e){if(!At||!e||typeof e!="object")return!1;try{At.call(e);try{Bt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function UA(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e,rt);try{st.call(e,st)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function GA(e){if(!Oi||!e||typeof e!="object")return!1;try{return Oi.call(e),!0}catch{}return!1}function SA(e){if(!Bt||!e||typeof e!="object")return!1;try{Bt.call(e);try{At.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function EA(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{rt.call(e,rt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function LA(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ap(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,s="... "+n+" more character"+(n>1?"s":"");return ap(Is.call(e,0,t.maxStringLength),t)+s}var a=fA[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,_A);return rp(o,"single",t)}function _A(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":"")+hA.call(t.toString(16))}function tt(e){return"Object("+e+")"}function ys(e){return e+" { ? }"}function Zi(e,t,n,s){var a=s?bs(n,s):Y.call(n,", ");return e+" ("+t+") {"+a+"}"}function WA(e){for(var t=0;t<e.length;t++)if(np(e[t],`
2
- `)>=0)return!1;return!0}function QA(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Y.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Y.call(Array(t+1),n)}}function bs(e,t){if(e.length===0)return"";var n=`
3
- `+t.prev+t.base;return n+Y.call(e,","+n)+`
4
- `+t.prev}function vt(e,t){var n=hs(e),s=[];if(n){s.length=e.length;for(var a=0;a<e.length;a++)s[a]=re(e,a)?t(e[a],e):""}var o=typeof gs=="function"?gs(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(n&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(Xi.call(/[^\w$]/,u)?s.push(t(u,e)+": "+t(e[u],e)):s.push(u+": "+t(e[u],e))));if(typeof gs=="function")for(var r=0;r<o.length;r++)ep.call(e,o[r])&&s.push("["+t(o[r])+"]: "+t(e[o[r]],e));return s}});var up=q((xC,pp)=>{"use strict";var ks=di(),Fe=Di(),DA=ip(),HA=ks("%TypeError%"),Tt=ks("%WeakMap%",!0),Ct=ks("%Map%",!0),MA=Fe("WeakMap.prototype.get",!0),FA=Fe("WeakMap.prototype.set",!0),OA=Fe("WeakMap.prototype.has",!0),VA=Fe("Map.prototype.get",!0),NA=Fe("Map.prototype.set",!0),KA=Fe("Map.prototype.has",!0),Ps=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},$A=function(e,t){var n=Ps(e,t);return n&&n.value},zA=function(e,t,n){var s=Ps(e,t);s?s.value=n:e.next={key:t,next:e.next,value:n}},JA=function(e,t){return!!Ps(e,t)};pp.exports=function(){var t,n,s,a={assert:function(o){if(!a.has(o))throw new HA("Side channel does not contain "+DA(o))},get:function(o){if(Tt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return MA(t,o)}else if(Ct){if(n)return VA(n,o)}else if(s)return $A(s,o)},has:function(o){if(Tt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return OA(t,o)}else if(Ct){if(n)return KA(n,o)}else if(s)return JA(s,o);return!1},set:function(o,i){Tt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Tt),FA(t,o,i)):Ct?(n||(n=new Ct),NA(n,o,i)):(s||(s={key:{},next:null}),zA(s,o,i))}};return a}});var wt=q((IC,cp)=>{"use strict";var jA=String.prototype.replace,YA=/%20/g,vs={RFC1738:"RFC1738",RFC3986:"RFC3986"};cp.exports={default:vs.RFC3986,formatters:{RFC1738:function(e){return jA.call(e,YA,"+")},RFC3986:function(e){return String(e)}},RFC1738:vs.RFC1738,RFC3986:vs.RFC3986}});var Bs=q((kC,lp)=>{"use strict";var ZA=wt(),As=Object.prototype.hasOwnProperty,be=Array.isArray,Z=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),XA=function(t){for(;t.length>1;){var n=t.pop(),s=n.obj[n.prop];if(be(s)){for(var a=[],o=0;o<s.length;++o)typeof s[o]<"u"&&a.push(s[o]);n.obj[n.prop]=a}}},dp=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},eB=function e(t,n,s){if(!n)return t;if(typeof n!="object"){if(be(t))t.push(n);else if(t&&typeof t=="object")(s&&(s.plainObjects||s.allowPrototypes)||!As.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return be(t)&&!be(n)&&(a=dp(t,s)),be(t)&&be(n)?(n.forEach(function(o,i){if(As.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 As.call(o,i)?o[i]=e(o[i],p,s):o[i]=p,o},a)},tB=function(t,n){return Object.keys(n).reduce(function(s,a){return s[a]=n[a],s},t)},rB=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}},sB=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===ZA.RFC1738&&(r===40||r===41)){p+=i.charAt(u);continue}if(r<128){p=p+Z[r];continue}if(r<2048){p=p+(Z[192|r>>6]+Z[128|r&63]);continue}if(r<55296||r>=57344){p=p+(Z[224|r>>12]+Z[128|r>>6&63]+Z[128|r&63]);continue}u+=1,r=65536+((r&1023)<<10|i.charCodeAt(u)&1023),p+=Z[240|r>>18]+Z[128|r>>12&63]+Z[128|r>>6&63]+Z[128|r&63]}return p},nB=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 XA(n),t},aB=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oB=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},iB=function(t,n){return[].concat(t,n)},pB=function(t,n){if(be(t)){for(var s=[],a=0;a<t.length;a+=1)s.push(n(t[a]));return s}return n(t)};lp.exports={arrayToObject:dp,assign:tB,combine:iB,compact:nB,decode:rB,encode:sB,isBuffer:oB,isRegExp:aB,maybeMap:pB,merge:eB}});var hp=q((PC,qp)=>{"use strict";var mp=up(),Cs=Bs(),nt=wt(),uB=Object.prototype.hasOwnProperty,gp={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},se=Array.isArray,cB=String.prototype.split,dB=Array.prototype.push,Rp=function(e,t){dB.apply(e,se(t)?t:[t])},lB=Date.prototype.toISOString,yp=nt.default,H={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Cs.encode,encodeValuesOnly:!1,format:yp,formatter:nt.formatters[yp],indices:!1,serializeDate:function(t){return lB.call(t)},skipNulls:!1,strictNullHandling:!1},gB=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ts={},yB=function e(t,n,s,a,o,i,p,u,r,y,P,R,x,f,E,L){for(var v=t,X=L,ne=0,ve=!1;(X=X.get(Ts))!==void 0&&!ve;){var Ve=X.get(t);if(ne+=1,typeof Ve<"u"){if(Ve===ne)throw new RangeError("Cyclic object value");ve=!0}typeof X.get(Ts)>"u"&&(ne=0)}if(typeof u=="function"?v=u(n,v):v instanceof Date?v=P(v):s==="comma"&&se(v)&&(v=Cs.maybeMap(v,function(Qt){return Qt instanceof Date?P(Qt):Qt})),v===null){if(o)return p&&!f?p(n,H.encoder,E,"key",R):n;v=""}if(gB(v)||Cs.isBuffer(v)){if(p){var Ne=f?n:p(n,H.encoder,E,"key",R);if(s==="comma"&&f){for(var de=cB.call(String(v),","),Ke="",ae=0;ae<de.length;++ae)Ke+=(ae===0?"":",")+x(p(de[ae],H.encoder,E,"value",R));return[x(Ne)+(a&&se(v)&&de.length===1?"[]":"")+"="+Ke]}return[x(Ne)+"="+x(p(v,H.encoder,E,"value",R))]}return[x(n)+"="+x(String(v))]}var Ae=[];if(typeof v>"u")return Ae;var le;if(s==="comma"&&se(v))le=[{value:v.length>0?v.join(",")||null:void 0}];else if(se(u))le=u;else{var Be=Object.keys(v);le=r?Be.sort(r):Be}for(var J=a&&se(v)&&v.length===1?n+"[]":n,oe=0;oe<le.length;++oe){var ee=le[oe],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:v[ee];if(!(i&&$e===null)){var Fk=se(v)?typeof s=="function"?s(J,ee):J:J+(y?"."+ee:"["+ee+"]");L.set(t,ne);var Wa=mp();Wa.set(Ts,L),Rp(Ae,e($e,Fk,s,a,o,i,p,u,r,y,P,R,x,f,E,Wa))}}return Ae},mB=function(t){if(!t)return H;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||H.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=nt.default;if(typeof t.format<"u"){if(!uB.call(nt.formatters,t.format))throw new TypeError("Unknown format option provided.");s=t.format}var a=nt.formatters[s],o=H.filter;return(typeof t.filter=="function"||se(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:H.addQueryPrefix,allowDots:typeof t.allowDots>"u"?H.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:H.charsetSentinel,delimiter:typeof t.delimiter>"u"?H.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:H.encode,encoder:typeof t.encoder=="function"?t.encoder:H.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:H.encodeValuesOnly,filter:o,format:s,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:H.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:H.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:H.strictNullHandling}};qp.exports=function(e,t){var n=e,s=mB(t),a,o;typeof s.filter=="function"?(o=s.filter,n=o("",n)):se(s.filter)&&(o=s.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in gp?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=gp[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=mp(),P=0;P<a.length;++P){var R=a[P];s.skipNulls&&n[R]===null||Rp(i,yB(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 xp=q((vC,fp)=>{"use strict";var Oe=Bs(),ws=Object.prototype.hasOwnProperty,RB=Array.isArray,Q={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},qB=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},bp=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},hB="utf8=%26%2310003%3B",bB="utf8=%E2%9C%93",fB=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]===hB&&(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,Q.decoder,r,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,R),Q.decoder,r,"key"),f=Oe.maybeMap(bp(y.slice(R+1),n),function(E){return n.decoder(E,Q.decoder,r,"value")})),f&&n.interpretNumericEntities&&r==="iso-8859-1"&&(f=qB(f)),y.indexOf("[]=")>-1&&(f=RB(f)?[f]:f),ws.call(s,x)?s[x]=Oe.combine(s[x],f):s[x]=f}return s},xB=function(e,t,n,s){for(var a=s?t:bp(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},IB=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&&ws.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&&ws.call(Object.prototype,u[1].slice(1,-1))&&!s.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),xB(y,n,s,a)}},kB=function(t){if(!t)return Q;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Q.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Q.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Q.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Q.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Q.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Q.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Q.comma,decoder:typeof t.decoder=="function"?t.decoder:Q.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:Q.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Q.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Q.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Q.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Q.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Q.strictNullHandling}};fp.exports=function(e,t){var n=kB(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var s=typeof e=="string"?fB(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(s),i=0;i<o.length;++i){var p=o[i],u=IB(p,s[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var fe=q((AC,Ip)=>{"use strict";var PB=hp(),vB=xp(),AB=wt();Ip.exports={formats:AB,parse:vB,stringify:PB}});import*as Bw from"axios";var $a={};j($a,{DEFAULT_OPTIONS:()=>Ka,default:()=>z,exponentialDelay:()=>Va,isIdempotentRequestError:()=>Mt,isNetworkError:()=>Ht,isNetworkOrIdempotentRequestError:()=>Ft,isRetryableError:()=>ot,isSafeRequestError:()=>Oa,linearDelay:()=>Na,namespace:()=>at,retryAfter:()=>it});var Ma=te(Da(),1),at="axios-retry";function Ht(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Ma.default)(e)}var Fa=["get","head","options"],Yk=Fa.concat(["put","delete"]);function ot(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Oa(e){return e.config?.method?ot(e)&&Fa.indexOf(e.config.method)!==-1:!1}function Mt(e){return e.config?.method?ot(e)&&Yk.indexOf(e.config.method)!==-1:!1}function Ft(e){return Ht(e)||Mt(e)}function it(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 Zk(e=0,t=void 0){return Math.max(0,it(t))}function Va(e=0,t=void 0,n=100){let s=2**e*n,a=Math.max(s,it(t)),o=a*.2*Math.random();return a+o}function Na(e=100){return(t=0,n=void 0)=>{let s=t*e;return Math.max(s,it(n))}}var Ka={retries:3,retryCondition:Ft,retryDelay:Zk,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Xk(e,t){return{...Ka,...t,...e[at]}}function Ha(e,t,n=!1){let s=Xk(e,t||{});return s.retryCount=s.retryCount||0,(!s.lastRequestTime||n)&&(s.lastRequestTime=Date.now()),e[at]=s,s}function eP(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 tP(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(eP(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 sP(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ie=(e,t)=>{let n=e.interceptors.request.use(a=>(Ha(a,t,!0),a[at]?.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=Ha(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await tP(i,a)?rP(e,i,a,o):(await sP(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:s}};ie.isNetworkError=Ht;ie.isSafeRequestError=Oa;ie.isIdempotentRequestError=Mt;ie.isNetworkOrIdempotentRequestError=Ft;ie.exponentialDelay=Va;ie.linearDelay=Na;ie.isRetryableError=ot;var z=ie;var pc={};j(pc,{Client:()=>Us});var pt=te(za()),ut=te(Ja());import{isNode as ja}from"browser-or-node";var Ya=100*1024*1024,Za=Ya,Xa=Ya,eo=ja&&pt.default&&pt.default.Agent?new pt.default.Agent({keepAlive:!0}):void 0,to=ja&&ut.default&&ut.default.Agent?new ut.default.Agent({keepAlive:!0}):void 0;var N={};j(N,{getClientConfig:()=>gP});import{isBrowser as so,isNode as nP}from"browser-or-node";var aP="https://api.botpress.cloud",oP=6e4,iP=!1,pP="BP_API_URL",uP="BP_BOT_ID",cP="BP_INTEGRATION_ID",dP="BP_WORKSPACE_ID",lP="BP_TOKEN";function gP(e){let t=yP(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??aP,a=t.timeout??oP,o=t.debug??iP;return{apiUrl:s,timeout:a,withCredentials:so,headers:n,debug:o}}function yP(e){return so?e:nP?mP(e):e}function mP(e){let t={...e,apiUrl:e.apiUrl??process.env[pP],botId:e.botId??process.env[uP],integrationId:e.integrationId??process.env[cP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[dP]},n=t.token??process.env[lP];return n&&(t.token=n),t}var m={};j(m,{AsyncCollection:()=>Ot});var Ot=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 K={};j(K,{createAxiosInstance:()=>IP});import*as oo from"axios";import{isNode as RP}from"browser-or-node";var ct;RP?ct=zk("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?ct=()=>crypto.randomUUID():ct=()=>Math.random().toString(36).substring(2,15);var no=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:ct()},console.debug(qP(t)),t)),e.interceptors.response.use(t=>(console.debug(hP(t)),t),t=>(console.debug(bP(t)),Promise.reject(t)))},qP=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
- `},hP=e=>{let{config:t,status:n,headers:s,data:a}=e,o=ao(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:n,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:s,body:a})+`
6
- `},bP=e=>{let t=e?ao(e):"N/A",n=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:n,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},ao=e=>{let t=e.config.metadata?.startTime,n=new Date().getTime();return t?`${n-t}ms`:"N/A"};var xP=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Za,maxContentLength:Xa,httpAgent:eo,httpsAgent:to}),IP=e=>{let t=xP(e),n=oo.default.create(t);return e.debug&&no(n),n};var $={};j($,{toApiError:()=>wP});import CP from"axios";import kP from"crypto";var PP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Vt=typeof window<"u"&&typeof window.document<"u"?window.crypto:kP;Vt.getRandomValues||(Vt=PP);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(Vt.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"}},vP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,AP=e=>e instanceof B||vP(e)&&e.isApiError===!0,ge=class extends B{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},Nt=class extends B{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},Kt=class extends B{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},$t=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)}},zt=class extends B{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Jt=class extends B{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},jt=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)}},Yt=class extends B{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Zt=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)}},er=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)}},tr=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)}},rr=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)}},sr=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)}},nr=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)}},ar=class extends B{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},or=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)}},ir=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)}},pr=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)}},ur=class extends B{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},cr=class extends B{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},dr=class extends B{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},lr=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)}},gr=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)}},yr=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)}},mr=class extends B{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},BP={Unknown:ge,Internal:Nt,Unauthorized:Kt,Forbidden:$t,PayloadTooLarge:zt,InvalidPayload:Jt,UnsupportedMediaType:jt,MethodNotFound:Yt,ResourceNotFound:Zt,InvalidJsonSchema:Xt,InvalidDataFormat:er,InvalidIdentifier:tr,RelationConflict:rr,ReferenceConstraint:sr,ResourceLockedConflict:nr,ResourceGone:ar,ReferenceNotFound:or,InvalidQuery:ir,Runtime:pr,AlreadyExists:ur,RateLimited:cr,PaymentRequired:dr,QuotaExceeded:lr,LimitExceeded:gr,BreakingChanges:yr,OperationTimeout:mr},Te=e=>AP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):TP(e);function TP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=BP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ge(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ge("An invalid error occurred: "+JSON.stringify(e))}var pe=class extends Error{constructor(n,s,a){super(n);this.innerError=s;this.file=a;this.name="FileUploadError"}};var wP=e=>CP.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e);import TB from"axios";import UP from"crypto";var GP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Rr=typeof window<"u"&&typeof window.document<"u"?window.crypto:UP;Rr.getRandomValues||(Rr=GP);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(Rr.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"}},SP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,EP=e=>e instanceof T||SP(e)&&e.isApiError===!0,ye=class extends T{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},qr=class extends T{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},hr=class extends T{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},br=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)}},fr=class extends T{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},xr=class extends T{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},Ir=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)}},kr=class extends T{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Pr=class extends T{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},vr=class extends T{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Ar=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)}},Br=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)}},Tr=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)}},Cr=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)}},wr=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)}},Ur=class extends T{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Gr=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)}},Sr=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)}},Er=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)}},Lr=class extends T{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},_r=class extends T{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Wr=class extends T{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Qr=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)}},Dr=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)}},Hr=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)}},Mr=class extends T{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},LP={Unknown:ye,Internal:qr,Unauthorized:hr,Forbidden:br,PayloadTooLarge:fr,InvalidPayload:xr,UnsupportedMediaType:Ir,MethodNotFound:kr,ResourceNotFound:Pr,InvalidJsonSchema:vr,InvalidDataFormat:Ar,InvalidIdentifier:Br,RelationConflict:Tr,ReferenceConstraint:Cr,ResourceLockedConflict:wr,ResourceGone:Ur,ReferenceNotFound:Gr,InvalidQuery:Sr,Runtime:Er,AlreadyExists:Lr,RateLimited:_r,PaymentRequired:Wr,QuotaExceeded:Qr,LimitExceeded:Dr,BreakingChanges:Hr,OperationTimeout:Mr},Fr=e=>EP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):_P(e);function _P(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=LP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var kp=te(fe()),BB=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(BB),p=Object.fromEntries(i),u=kp.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 Pp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var Ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tp=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 wp=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 Gp=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 Ep=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _p=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Hp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Fp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Vp=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 Kp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=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 jp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zp=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 eu=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 ru=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var ou=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 pu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=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 lu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var yu=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 Ru=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=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 fu=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 Iu=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 Pu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Au=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 Tu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var wu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Gu=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 Eu=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 _u=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Qu=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Hu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Fu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Vu=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 Ku=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zu=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 ju=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zu=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 ec=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 rc=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 nc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var oc=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 Ut=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:s,query:a,body:o}=Pp(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}=Ap(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}=Tp(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}=wp(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}=Gp(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}=Ep(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}=_p(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}=Qp(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}=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)})};removeParticipant=async t=>{let{path:n,headers:s,query:a,body:o}=Fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"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}=Vp(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}=Kp(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}=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)})};cancelScheduledEvent=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:"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}=Zp(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}=eu(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}=ru(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}=nu(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}=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)})};deleteMessage=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)})};initializeIncomingMessage=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)})};importMessages=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)})};createUser=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:"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}=Ru(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}=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)})};getOrCreateUser=async t=>{let{path:n,headers:s,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateUser=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:"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}=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)})};setStateExpiry=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)})};getState=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)})};setState=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:"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}=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)})};patchState=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:"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}=_u(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}=Qu(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}=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)})};configureIntegration=async t=>{let{path:n,headers:s,query:a,body:o}=Fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=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)})};getWorkflow=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:"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}=zu(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}=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)})};listWorkflows=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)})};getOrCreateWorkflow=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)})};listTagValues=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:"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}=nc(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}=oc(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 TB.isAxiosError(e)&&e.response?.data?Fr(e.response.data):Fr(e)}var Us=class extends Ut{config;constructor(t){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(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 Ry={};j(Ry,{Client:()=>an});import WB from"axios";import wB from"crypto";var UB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Gs=typeof window<"u"&&typeof window.document<"u"?window.crypto:wB;Gs.getRandomValues||(Gs=UB);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(Gs.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"}},GB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,SB=e=>e instanceof C||GB(e)&&e.isApiError===!0,xe=class extends C{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},Ss=class extends C{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},Es=class extends C{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},Ls=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)}},_s=class extends C{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Ws=class extends C{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},Qs=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)}},Ds=class extends C{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},Hs=class extends C{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Ms=class extends C{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Fs=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)}},Os=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)}},Vs=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)}},Ns=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)}},Ks=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)}},$s=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)}},Js=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)}},js=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)}},Ys=class extends C{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Zs=class extends C{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Xs=class extends C{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},en=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)}},tn=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)}},rn=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)}},sn=class extends C{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},EB={Unknown:xe,Internal:Ss,Unauthorized:Es,Forbidden:Ls,PayloadTooLarge:_s,InvalidPayload:Ws,UnsupportedMediaType:Qs,MethodNotFound:Ds,ResourceNotFound:Hs,InvalidJsonSchema:Ms,InvalidDataFormat:Fs,InvalidIdentifier:Os,RelationConflict:Vs,ReferenceConstraint:Ns,ResourceLockedConflict:Ks,ResourceGone:$s,ReferenceNotFound:zs,InvalidQuery:Js,Runtime:js,AlreadyExists:Ys,RateLimited:Zs,PaymentRequired:Xs,QuotaExceeded:en,LimitExceeded:tn,BreakingChanges:rn,OperationTimeout:sn},nn=e=>SB(e)?e:e instanceof Error?new xe(e.message,e):typeof e=="string"?new xe(e):LB(e);function LB(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=EB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new xe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new xe("An invalid error occurred: "+JSON.stringify(e))}var uc=te(fe()),_B=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(_B),p=Object.fromEntries(i),u=uc.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 cc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var lc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var yc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Rc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var hc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var fc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ic=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ac=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Tc=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 wc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ec=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var _c=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Hc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Vc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Kc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var jc=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,maxExecutionTime:e.maxExecutionTime,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,maxExecutionTime:e.maxExecutionTime,blocked:e.blocked,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var nd=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 od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cd=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 ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Rd=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 hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Td=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var _d=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Qd=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)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Kd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var zd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var jd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var el=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var cl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var ll=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var fl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Il=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Al=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Tl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var wl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Gl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var El=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _l=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Ql=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Hl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Fl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Vl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var jl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var eg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var rg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ng=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,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 og=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,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 pg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var cg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var yg=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,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 Rg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var fg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ig=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Ag=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 Tg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var Eg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _g=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Qg=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 Hg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Vg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,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 zg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Zg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ey=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ry=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var ny=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var oy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var py=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var cy=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ly=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var yy=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Gt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=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)})};getAccount=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:"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}=yc(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}=Rc(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}=hc(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}=fc(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}=Ic(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}=Pc(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}=Ac(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}=Tc(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}=wc(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}=Gc(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}=Ec(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}=_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)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:s,query:a,body:o}=Qc(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}=Hc(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}=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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:"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}=zc(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}=jc(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}=Zc(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}=ed(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}=rd(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}=nd(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}=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)})};deleteBot=async t=>{let{path:n,headers:s,query:a,body:o}=pd(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}=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)})};getBotWebchat=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:"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}=yd(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}=Rd(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}=hd(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}=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)})};deleteBotIssue=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:"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}=Pd(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}=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)})};getBotVersion=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)})};getBotJson=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)})};publishFromBotJson=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)})};createBotVersion=async t=>{let{path:n,headers:s,query:a,body:o}=Ed(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}=_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)})};createIntegrationShareableId=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:"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}=Hd(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}=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)})};unlinkSandboxedConversations=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:"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}=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)})};createBotApiKey=async t=>{let{path:n,headers:s,query:a,body:o}=zd(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}=jd(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}=Zd(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}=el(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}=rl(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}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=pl(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}=cl(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}=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)})};getWorkspace=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:"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}=Rl(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}=hl(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}=fl(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}=Il(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}=Pl(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}=Al(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}=Tl(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}=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)})};listPublicWorkspaces=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:"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}=El(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}=_l(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}=Ql(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}=Hl(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}=Fl(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}=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)})};deleteWorkspaceMember=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:"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}=zl(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}=jl(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}=Zl(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}=eg(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}=rg(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}=ng(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}=og(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}=pg(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}=cg(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}=lg(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}=yg(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}=Rg(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}=hg(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}=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)})};deleteIntegration=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:"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}=Pg(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}=Ag(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}=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)})};getInterfaceByName=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:"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}=Gg(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}=Eg(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}=_g(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}=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)})};getPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=Hg(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}=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)})};getPluginByName=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:"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}=Kg(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}=zg(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}=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)})};getPluginCode=async t=>{let{path:n,headers:s,query:a,body:o}=Zg(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}=ey(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}=ry(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}=ny(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}=oy(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}=py(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}=cy(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}=ly(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}=yy(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 WB.isAxiosError(e)&&e.response?.data?nn(e.response.data):nn(e)}var an=class extends Gt{config;constructor(t){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(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 Im={};j(Im,{Client:()=>En});import KB from"axios";import DB from"crypto";var HB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},on=typeof window<"u"&&typeof window.document<"u"?window.crypto:DB;on.getRandomValues||(on=HB);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(on.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"}},MB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,FB=e=>e instanceof w||MB(e)&&e.isApiError===!0,Ie=class extends w{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},pn=class extends w{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},un=class extends w{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},cn=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)}},dn=class extends w{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},ln=class extends w{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},gn=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)}},yn=class extends w{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},mn=class extends w{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Rn=class extends w{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},qn=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)}},hn=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)}},bn=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)}},fn=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)}},xn=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)}},In=class extends w{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},kn=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)}},Pn=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)}},vn=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)}},An=class extends w{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Bn=class extends w{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},Tn=class extends w{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Cn=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)}},wn=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)}},Un=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)}},Gn=class extends w{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},OB={Unknown:Ie,Internal:pn,Unauthorized:un,Forbidden:cn,PayloadTooLarge:dn,InvalidPayload:ln,UnsupportedMediaType:gn,MethodNotFound:yn,ResourceNotFound:mn,InvalidJsonSchema:Rn,InvalidDataFormat:qn,InvalidIdentifier:hn,RelationConflict:bn,ReferenceConstraint:fn,ResourceLockedConflict:xn,ResourceGone:In,ReferenceNotFound:kn,InvalidQuery:Pn,Runtime:vn,AlreadyExists:An,RateLimited:Bn,PaymentRequired:Tn,QuotaExceeded:Cn,LimitExceeded:wn,BreakingChanges:Un,OperationTimeout:Gn},Sn=e=>FB(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):VB(e);function VB(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=OB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ie(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ie("An invalid error occurred: "+JSON.stringify(e))}var qy=te(fe()),NB=e=>e[1]!==void 0,A=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(NB),p=Object.fromEntries(i),u=qy.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 hy=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var fy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Iy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{lineOne:e.lineOne,lineTwo:e.lineTwo,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country}});var Py=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Ay=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 wy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Gy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var Ey=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var _y=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Qy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var Hy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var Fy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var Vy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var Ky=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var zy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var jy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Zy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var em=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 nm=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var om=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var pm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var cm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var lm=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var ym=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Rm=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var hm=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var fm=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var St=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getBillingReadonly=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:"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}=fy(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??U,u=i({method:"get",path:n,headers:{...s},query:{...a},body:o});return this.axiosInstance.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setBillingAddress=async t=>{let{path:n,headers:s,query:a,body:o}=Iy(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}=Py(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}=Ay(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}=Ty(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}=wy(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}=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)})};listAddons=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)})};getSubscription=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:"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}=Qy(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}=Hy(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}=Fy(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}=Vy(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}=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)})};setAutoRechargeSettings=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:"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}=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)})};createTrial=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)})};removeTrial=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:"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}=nm(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}=om(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}=pm(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}=cm(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}=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)})};getQuotas=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:"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}=Rm(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}=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)})};listFeatureGates=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:"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 KB.isAxiosError(e)&&e.response?.data?Sn(e.response.data):Sn(e)}var En=class extends St{config;constructor(t){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(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 rR={};j(rR,{Client:()=>pa});import tT from"axios";import zB from"crypto";var JB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:zB;Ln.getRandomValues||(Ln=JB);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(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"}},jB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,YB=e=>e instanceof G||jB(e)&&e.isApiError===!0,ke=class extends G{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},_n=class extends G{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},Wn=class extends G{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},Qn=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)}},Dn=class extends G{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},Hn=class extends G{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},Mn=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)}},Fn=class extends G{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},On=class extends G{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},Vn=class extends G{constructor(t,n,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,s,a)}},Nn=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)}},Kn=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)}},$n=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)}},zn=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)}},Jn=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)}},jn=class extends G{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},Yn=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)}},Zn=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)}},Xn=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)}},ea=class extends G{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},ta=class extends G{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},ra=class extends G{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},sa=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)}},na=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)}},aa=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)}},oa=class extends G{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},ZB={Unknown:ke,Internal:_n,Unauthorized:Wn,Forbidden:Qn,PayloadTooLarge:Dn,InvalidPayload:Hn,UnsupportedMediaType:Mn,MethodNotFound:Fn,ResourceNotFound:On,InvalidJsonSchema:Vn,InvalidDataFormat:Nn,InvalidIdentifier:Kn,RelationConflict:$n,ReferenceConstraint:zn,ResourceLockedConflict:Jn,ResourceGone:jn,ReferenceNotFound:Yn,InvalidQuery:Zn,Runtime:Xn,AlreadyExists:ea,RateLimited:ta,PaymentRequired:ra,QuotaExceeded:sa,LimitExceeded:na,BreakingChanges:aa,OperationTimeout:oa},ia=e=>YB(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):XB(e);function XB(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=ZB[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 km=te(fe()),eT=e=>e[1]!==void 0,O=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(eT),p=Object.fromEntries(i),u=km.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 Pm=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 Am=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tm=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 wm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gm=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 Em=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 _m=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 Qm=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 Hm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Fm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Vm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var Km=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var zm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jm=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 Zm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Et=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:s,query:a,body:o}=Pm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=Am(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=Tm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=wm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=Gm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=Em(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=_m(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=Qm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=Hm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=Fm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=Vm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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}=Km(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=zm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=jm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,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}=Zm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({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 V(e){return tT.isAxiosError(e)&&e.response?.data?ia(e.response.data):ia(e)}import eR from"axios";var Lt=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 pe("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await eR.get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new pe(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new pe("No content was provided for the file");let 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 pe("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}),E={"Content-Type":f.contentType};P&&(E["x-amz-tagging"]="public=true");try{await eR.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:E})}catch(L){let v=L instanceof Error?L:new Error(String(L));throw new pe(`Failed to upload file: ${v.message}`,v,f)}return{file:{...f,size:x}}};var pa=class extends Et{config;constructor(t){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(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 Lt(this,t)}};var QR={};j(QR,{Client:()=>_a});import cT from"axios";import sT from"crypto";var nT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ua=typeof window<"u"&&typeof window.document<"u"?window.crypto:sT;ua.getRandomValues||(ua=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(ua.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,Pe=class extends S{constructor(t,n,s,a){super(500,"An unknown error occurred","Unknown",t,n,s,a)}},ca=class extends S{constructor(t,n,s,a){super(500,"An internal error occurred","Internal",t,n,s,a)}},da=class extends S{constructor(t,n,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,s,a)}},la=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)}},ga=class extends S{constructor(t,n,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,s,a)}},ya=class extends S{constructor(t,n,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,s,a)}},ma=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)}},Ra=class extends S{constructor(t,n,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,s,a)}},qa=class extends S{constructor(t,n,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,s,a)}},ha=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)}},fa=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)}},xa=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)}},Ia=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)}},ka=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)}},Pa=class extends S{constructor(t,n,s,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,s,a)}},va=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)}},Aa=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)}},Ba=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)}},Ta=class extends S{constructor(t,n,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,s,a)}},Ca=class extends S{constructor(t,n,s,a){super(429,"The request has been rate limited.","RateLimited",t,n,s,a)}},wa=class extends S{constructor(t,n,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,s,a)}},Ua=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)}},Ga=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)}},Sa=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)}},Ea=class extends S{constructor(t,n,s,a){super(504,"The operation timed out.","OperationTimeout",t,n,s,a)}},iT={Unknown:Pe,Internal:ca,Unauthorized:da,Forbidden:la,PayloadTooLarge:ga,InvalidPayload:ya,UnsupportedMediaType:ma,MethodNotFound:Ra,ResourceNotFound:qa,InvalidJsonSchema:ha,InvalidDataFormat:ba,InvalidIdentifier:fa,RelationConflict:xa,ReferenceConstraint:Ia,ResourceLockedConflict:ka,ResourceGone:Pa,ReferenceNotFound:va,InvalidQuery:Aa,Runtime:Ba,AlreadyExists:Ta,RateLimited:Ca,PaymentRequired:wa,QuotaExceeded:Ua,LimitExceeded:Ga,BreakingChanges:Sa,OperationTimeout:Ea},La=e=>oT(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(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 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 sR=te(fe()),uT=e=>e[1]!==void 0,D=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(uT),p=Object.fromEntries(i),u=sR.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 nR=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var oR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pR=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 cR=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 lR=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 yR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var RR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var hR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var fR=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 IR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var PR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var AR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var TR=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 wR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var GR=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 ER=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/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var _t=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:s,query:a,body:o}=nR(t),i=this.props.toAxiosRequest??D,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}=oR(t),i=this.props.toAxiosRequest??D,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}=pR(t),i=this.props.toAxiosRequest??D,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}=cR(t),i=this.props.toAxiosRequest??D,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}=lR(t),i=this.props.toAxiosRequest??D,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}=yR(t),i=this.props.toAxiosRequest??D,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}=RR(t),i=this.props.toAxiosRequest??D,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}=hR(t),i=this.props.toAxiosRequest??D,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}=fR(t),i=this.props.toAxiosRequest??D,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}=IR(t),i=this.props.toAxiosRequest??D,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}=PR(t),i=this.props.toAxiosRequest??D,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}=AR(t),i=this.props.toAxiosRequest??D,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}=TR(t),i=this.props.toAxiosRequest??D,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}=wR(t),i=this.props.toAxiosRequest??D,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}=GR(t),i=this.props.toAxiosRequest??D,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}=ER(t),i=this.props.toAxiosRequest??D,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}=_R(t),i=this.props.toAxiosRequest??D,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 cT.isAxiosError(e)&&e.response?.data?La(e.response.data):La(e)}var _a=class extends _t{config;constructor(t){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(s,t.retry),this.config=n}};import gT from"axios";var DR=te(fe()),lT=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:s,headers:a,body:o}=e,i=Object.entries(a).filter(lT),p=Object.fromEntries(i),u=DR.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 HR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var FR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var VR=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 KR=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 zR=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 jR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ZR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var eq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var rq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var nq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var oq=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 pq=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cq=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 lq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yq=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 Rq=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 hq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Iq=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 Pq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Aq=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 Tq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var wq=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 Gq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Eq=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 _q=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 Qq=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 Hq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=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 Vq=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 Kq=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 zq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var jq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Zq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var eh=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var rh=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var nh=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var oh=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 ph=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ch=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 lh=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yh=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 Rh=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 hh=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 fh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Ih=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ph=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Ah=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Th=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var wh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Gh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Eh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var _h=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Hh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Fh=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 Vh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var jh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var eb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var rb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var nb=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var ob=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cb=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,maxExecutionTime:e.maxExecutionTime,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,maxExecutionTime:e.maxExecutionTime,blocked:e.blocked,alwaysAlive:e.alwaysAlive,tags:e.tags,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,type:e.type}});var yb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Rb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var hb=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 fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var wb=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 Gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Eb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{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 Qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Hb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var zb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Zb=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 ef=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 nf=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 of=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var uf=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var df=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var mf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var qf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var bf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var kf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var vf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Bf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Sf=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 Lf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Wf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Df=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Mf=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 Of=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Nf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var $f=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Jf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yf=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 tx=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var sx=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var ax=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 ux=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var dx=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var gx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var mx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var qx=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bx=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 xx=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 kx=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 vx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Bx=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 Cx=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 Ux=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sx=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 Lx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dx=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Mx=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 Ox=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var $x=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 Jx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yx=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Xx=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 tI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var aI=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 uI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var gI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var mI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var qI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var bI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var xI=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 vI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var BI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var CI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var UI=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 SI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var LI=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 WI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=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 MI=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 OI=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 NI=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 $I=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var JI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var YI=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var XI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var tk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sk=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 ak=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 uk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var dk=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 gk=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 mk=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 qk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var bk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var kk=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 vk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Bk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Uk=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 Sk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Lk=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 Wk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Dk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Wt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:s,query:a,body:o}=HR(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}=FR(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}=VR(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}=KR(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}=zR(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}=jR(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}=ZR(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}=eq(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}=rq(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}=nq(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}=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)})};getEvent=async t=>{let{path:n,headers:s,query:a,body:o}=pq(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}=cq(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}=lq(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}=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)})};getOrCreateMessage=async t=>{let{path:n,headers:s,query:a,body:o}=Rq(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}=hq(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}=fq(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}=Iq(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}=Pq(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}=Aq(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}=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)})};createUser=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:"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}=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)})};listUsers=async t=>{let{path:n,headers:s,query:a,body:o}=Eq(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}=_q(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}=Qq(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}=Hq(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}=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)})};getState=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)})};setState=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:"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}=zq(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}=jq(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}=Zq(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}=eh(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}=rh(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}=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)})};createWorkflow=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:"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}=ph(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}=ch(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}=lh(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}=yh(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}=Rh(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}=hh(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}=fh(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}=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)})};runVrl=async t=>{let{path:n,headers:s,query:a,body:o}=Ph(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}=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)})};updateAccount=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:"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}=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)})};listPersonalAccessTokens=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:"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}=Eh(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}=_h(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}=Qh(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}=Hh(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}=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)})};getPublicIntegrationById=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:"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}=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)})};listPublicPlugins=async t=>{let{path:n,headers:s,query:a,body:o}=zh(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}=jh(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}=Zh(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}=eb(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}=rb(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}=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)})};getPublicInterfaceById=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)})};getPublicInterface=async t=>{let{path:n,headers:s,query:a,body:o}=pb(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}=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)})};updateBot=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:"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}=yb(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}=Rb(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}=hb(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}=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)})};deleteBot=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:"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}=Pb(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}=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)})};getBotAnalytics=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)})};listActionRuns=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:"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}=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)})};listBotIssues=async t=>{let{path:n,headers:s,query:a,body:o}=Eb(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}=_b(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}=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)})};listBotVersions=async t=>{let{path:n,headers:s,query:a,body:o}=Hb(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}=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)})};getBotJson=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:"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}=Kb(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}=zb(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}=jb(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}=Zb(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}=ef(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}=rf(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}=nf(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}=of(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}=uf(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}=df(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}=gf(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}=mf(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}=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)})};listWorkspaceInvoices=async t=>{let{path:n,headers:s,query:a,body:o}=bf(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}=xf(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}=kf(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}=vf(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}=Bf(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}=Cf(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}=Uf(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}=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)})};getAllWorkspaceQuotaCompletion=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:"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}=Wf(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}=Df(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}=Mf(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}=Of(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}=Nf(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}=$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)})};deleteWorkspace=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:"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}=Yf(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}=Xf(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}=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)})};listWorkspaceMembers=async t=>{let{path:n,headers:s,query:a,body:o}=sx(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}=ax(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}=ux(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}=dx(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}=gx(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}=mx(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}=qx(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}=bx(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}=xx(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}=kx(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}=vx(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}=Bx(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}=Cx(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}=Ux(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}=Sx(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}=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)})};deleteIntegration=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:"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}=Dx(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}=Mx(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}=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)})};getInterfaceByName=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:"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}=$x(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}=Jx(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}=Yx(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}=Xx(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}=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)})};getDereferencedPlugin=async t=>{let{path:n,headers:s,query:a,body:o}=sI(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}=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)})};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}=uI(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}=dI(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}=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:n,headers:s,query:a,body:o}=bI(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}=xI(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}=kI(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}=vI(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}=BI(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}=CI(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}=UI(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}=SI(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}=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)})};getFile=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)})};updateFileMetadata=async t=>{let{path:n,headers:s,query:a,body:o}=DI(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}=MI(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}=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)})};listFilePassages=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)})};setFilePassages=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:"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}=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)})};listFileTagValues=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:"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}=XI(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}=tk(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}=sk(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}=ak(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}=uk(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}=dk(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}=gk(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}=mk(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}=qk(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}=bk(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}=xk(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}=kk(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}=vk(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}=Bk(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}=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)})};findTableRows=async t=>{let{path:n,headers:s,query:a,body:o}=Uk(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}=Sk(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}=Lk(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}=Wk(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}=Dk(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 gT.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e)}var Mk=class extends Wt{config;constructor(t={}){let n=N.getClientConfig(t),s=K.createAxiosInstance(n);super(s,{toApiError:$.toApiError}),t.retry&&z(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 Lt(this,t)};export{ur as AlreadyExistsError,yr as BreakingChangesError,Mk as Client,$t as ForbiddenError,Nt as InternalError,er as InvalidDataFormatError,tr as InvalidIdentifierError,Xt as InvalidJsonSchemaError,Jt as InvalidPayloadError,ir as InvalidQueryError,gr as LimitExceededError,Yt as MethodNotFoundError,mr as OperationTimeoutError,zt as PayloadTooLargeError,dr as PaymentRequiredError,lr as QuotaExceededError,cr as RateLimitedError,sr as ReferenceConstraintError,or as ReferenceNotFoundError,rr as RelationConflictError,ar as ResourceGoneError,nr as ResourceLockedConflictError,Zt as ResourceNotFoundError,pr as RuntimeError,Kt as UnauthorizedError,ge as UnknownError,jt as UnsupportedMediaTypeError,pe as UploadFileError,Ry as admin,Bw as axios,$a as axiosRetry,Im as billing,Te as errorFrom,rR as files,AP as isApiError,pc as runtime,QR as tables};
1
+ var pk=Object.create;var Et=Object.defineProperty;var uk=Object.getOwnPropertyDescriptor;var ck=Object.getOwnPropertyNames;var dk=Object.getPrototypeOf,lk=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),te=(e,t)=>{for(var s in t)Et(e,s,{get:t[s],enumerable:!0})},gk=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ck(t))!lk.call(e,a)&&a!==s&&Et(e,a,{get:()=>t[a],enumerable:!(n=uk(t,a))||n.enumerable});return e};var Te=(e,t,s)=>(s=e!=null?pk(dk(e)):{},gk(t||!e||!e.__esModule?Et(s,"default",{value:e,enumerable:!0}):s,e));var ot=h((UC,Ba)=>{"use strict";Ba.exports=Object});var Sr=h((GC,Ta)=>{"use strict";Ta.exports=Error});var Er=h((SC,wa)=>{"use strict";wa.exports=EvalError});var Lr=h((EC,Ua)=>{"use strict";Ua.exports=RangeError});var Wr=h((LC,Ga)=>{"use strict";Ga.exports=ReferenceError});var it=h((WC,Sa)=>{"use strict";Sa.exports=SyntaxError});var qe=h((_C,Ea)=>{"use strict";Ea.exports=TypeError});var _r=h((HC,La)=>{"use strict";La.exports=URIError});var Hr=h((QC,Wa)=>{"use strict";Wa.exports=Math.abs});var Qr=h((DC,_a)=>{"use strict";_a.exports=Math.floor});var Dr=h((FC,Ha)=>{"use strict";Ha.exports=Math.max});var Fr=h((MC,Qa)=>{"use strict";Qa.exports=Math.min});var Mr=h((OC,Da)=>{"use strict";Da.exports=Math.pow});var Or=h((VC,Fa)=>{"use strict";Fa.exports=Math.round});var Oa=h((NC,Ma)=>{"use strict";Ma.exports=Number.isNaN||function(t){return t!==t}});var Vr=h((KC,Va)=>{"use strict";var Yk=Oa();Va.exports=function(t){return Yk(t)||t===0?t:t<0?-1:1}});var Ka=h(($C,Na)=>{"use strict";Na.exports=Object.getOwnPropertyDescriptor});var Ue=h((zC,$a)=>{"use strict";var pt=Ka();if(pt)try{pt([],"length")}catch{pt=null}$a.exports=pt});var Ge=h((JC,za)=>{"use strict";var ut=Object.defineProperty||!1;if(ut)try{ut({},"a",{value:1})}catch{ut=!1}za.exports=ut});var ja=h((jC,Ja)=>{"use strict";Ja.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 Nr=h((YC,Za)=>{"use strict";var Ya=typeof Symbol<"u"&&Symbol,Zk=ja();Za.exports=function(){return typeof Ya!="function"||typeof Symbol!="function"||typeof Ya("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Zk()}});var ct=h((ZC,Xa)=>{"use strict";Xa.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dt=h((XC,eo)=>{"use strict";var Xk=ot();eo.exports=Xk.getPrototypeOf||null});var so=h((eB,ro)=>{"use strict";var eP="Function.prototype.bind called on incompatible ",tP=Object.prototype.toString,rP=Math.max,sP="[object Function]",to=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},nP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},aP=function(e,t){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=t);return s};ro.exports=function(t){var s=this;if(typeof s!="function"||tP.apply(s)!==sP)throw new TypeError(eP+s);for(var n=nP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,to(n,arguments));return Object(y)===y?y:this}return s.apply(t,to(n,arguments))},i=rP(0,s.length-n.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+aP(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 he=h((tB,no)=>{"use strict";var oP=so();no.exports=Function.prototype.bind||oP});var ze=h((rB,ao)=>{"use strict";ao.exports=Function.prototype.call});var lt=h((sB,oo)=>{"use strict";oo.exports=Function.prototype.apply});var po=h((nB,io)=>{"use strict";io.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var co=h((aB,uo)=>{"use strict";var iP=he(),pP=lt(),uP=ze(),cP=po();uo.exports=cP||iP.call(uP,pP)});var go=h((oB,lo)=>{"use strict";var dP=he(),lP=qe(),gP=ze(),yP=co();lo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new lP("a function is required");return yP(dP,gP,t)}});var bo=h((iB,ho)=>{"use strict";var mP=go(),yo=Ue(),Ro;try{Ro=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Kr=!!Ro&&yo&&yo(Object.prototype,"__proto__"),qo=Object,mo=qo.getPrototypeOf;ho.exports=Kr&&typeof Kr.get=="function"?mP([Kr.get]):typeof mo=="function"?function(t){return mo(t==null?t:qo(t))}:!1});var $r=h((pB,ko)=>{"use strict";var fo=ct(),Io=dt(),xo=bo();ko.exports=fo?function(t){return fo(t)}:Io?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Io(t)}:xo?function(t){return xo(t)}:null});var zr=h((uB,Po)=>{"use strict";var RP=Function.prototype.call,qP=Object.prototype.hasOwnProperty,hP=he();Po.exports=hP.call(RP,qP)});var Uo=h((cB,wo)=>{"use strict";var A,bP=ot(),fP=Sr(),IP=Er(),xP=Lr(),kP=Wr(),We=it(),Le=qe(),PP=_r(),vP=Hr(),AP=Qr(),CP=Dr(),BP=Fr(),TP=Mr(),wP=Or(),UP=Vr(),Bo=Function,Jr=function(e){try{return Bo('"use strict"; return ('+e+").constructor;")()}catch{}},Je=Ue(),GP=Ge(),jr=function(){throw new Le},SP=Je?(function(){try{return arguments.callee,jr}catch{try{return Je(arguments,"callee").get}catch{return jr}}})():jr,Se=Nr()(),_=$r(),EP=dt(),LP=ct(),To=lt(),je=ze(),Ee={},WP=typeof Uint8Array>"u"||!_?A:_(Uint8Array),be={__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%":fP,"%eval%":eval,"%EvalError%":IP,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":Bo,"%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%":bP,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":xP,"%ReferenceError%":kP,"%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%":SP,"%TypedArray%":WP,"%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%":PP,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":To,"%Object.defineProperty%":GP,"%Object.getPrototypeOf%":EP,"%Math.abs%":vP,"%Math.floor%":AP,"%Math.max%":CP,"%Math.min%":BP,"%Math.pow%":TP,"%Math.round%":wP,"%Math.sign%":UP,"%Reflect.getPrototypeOf%":LP};if(_)try{null.error}catch(e){vo=_(_(e)),be["%Error.prototype%"]=vo}var vo,_P=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 be[t]=s,s},Ao={__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"]},Ye=he(),gt=zr(),HP=Ye.call(je,Array.prototype.concat),QP=Ye.call(To,Array.prototype.splice),Co=Ye.call(je,String.prototype.replace),yt=Ye.call(je,String.prototype.slice),DP=Ye.call(je,RegExp.prototype.exec),FP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MP=/\\(\\)?/g,OP=function(t){var s=yt(t,0,1),n=yt(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 Co(t,FP,function(o,i,p,u){a[a.length]=p?Co(u,MP,"$1"):i||o}),a},VP=function(t,s){var n=t,a;if(gt(Ao,n)&&(a=Ao[n],n="%"+a[0]+"%"),gt(be,n)){var o=be[n];if(o===Ee&&(o=_P(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!")};wo.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(DP(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=OP(t),a=n.length>0?n[0]:"",o=VP("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],QP(n,HP([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=yt(m,0,1),P=yt(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+"%",gt(be,i))p=be[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=gt(p,m),p=p[m];x&&!u&&(be[i]=p)}}return p}});var qt=h((dB,_o)=>{"use strict";var v,NP=ot(),KP=Sr(),$P=Er(),zP=Lr(),JP=Wr(),De=it(),Qe=qe(),jP=_r(),YP=Hr(),ZP=Qr(),XP=Dr(),ev=Fr(),tv=Mr(),rv=Or(),sv=Vr(),Lo=Function,Yr=function(e){try{return Lo('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=Ue(),nv=Ge(),Zr=function(){throw new Qe},av=Ze?(function(){try{return arguments.callee,Zr}catch{try{return Ze(arguments,"callee").get}catch{return Zr}}})():Zr,_e=Nr()(),H=$r(),ov=dt(),iv=ct(),Wo=lt(),Xe=ze(),He={},pv=typeof Uint8Array>"u"||!H?v:H(Uint8Array),fe={__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%":KP,"%eval%":eval,"%EvalError%":$P,"%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%":Lo,"%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%":NP,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":zP,"%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%":av,"%TypedArray%":pv,"%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%":jP,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":Xe,"%Function.prototype.apply%":Wo,"%Object.defineProperty%":nv,"%Object.getPrototypeOf%":ov,"%Math.abs%":YP,"%Math.floor%":ZP,"%Math.max%":XP,"%Math.min%":ev,"%Math.pow%":tv,"%Math.round%":rv,"%Math.sign%":sv,"%Reflect.getPrototypeOf%":iv};if(H)try{null.error}catch(e){Go=H(H(e)),fe["%Error.prototype%"]=Go}var Go,uv=function e(t){var s;if(t==="%AsyncFunction%")s=Yr("async function () {}");else if(t==="%GeneratorFunction%")s=Yr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Yr("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 fe[t]=s,s},So={__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"]},et=he(),mt=zr(),cv=et.call(Xe,Array.prototype.concat),dv=et.call(Wo,Array.prototype.splice),Eo=et.call(Xe,String.prototype.replace),Rt=et.call(Xe,String.prototype.slice),lv=et.call(Xe,RegExp.prototype.exec),gv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yv=/\\(\\)?/g,mv=function(t){var s=Rt(t,0,1),n=Rt(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 Eo(t,gv,function(o,i,p,u){a[a.length]=p?Eo(u,yv,"$1"):i||o}),a},Rv=function(t,s){var n=t,a;if(mt(So,n)&&(a=So[n],n="%"+a[0]+"%"),mt(fe,n)){var o=fe[n];if(o===He&&(o=uv(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!")};_o.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(lv(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=mv(t),a=n.length>0?n[0]:"",o=Rv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],dv(n,cv([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Rt(m,0,1),P=Rt(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(fe,i))p=fe[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(Ze&&y+1>=n.length){var q=Ze(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&&(fe[i]=p)}}return p}});var Fo=h((lB,Do)=>{"use strict";var Ho=Ge(),qv=it(),Fe=qe(),Qo=Ue();Do.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=!!Qo&&Qo(t,s);if(Ho)Ho(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 qv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Vo=h((gB,Oo)=>{"use strict";var Xr=Ge(),Mo=function(){return!!Xr};Mo.hasArrayLengthDefineBug=function(){if(!Xr)return null;try{return Xr([],"length",{value:1}).length!==1}catch{return!0}};Oo.exports=Mo});var Jo=h((yB,zo)=>{"use strict";var hv=qt(),No=Fo(),bv=Vo()(),Ko=Ue(),$o=qe(),fv=hv("%Math.floor%");zo.exports=function(t,s){if(typeof t!="function")throw new $o("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||fv(s)!==s)throw new $o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Ko){var i=Ko(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(bv?No(t,"length",s,!0,!0):No(t,"length",s)),t}});var ti=h((mB,ht)=>{"use strict";var es=he(),bt=qt(),Iv=Jo(),xv=qe(),Zo=bt("%Function.prototype.apply%"),Xo=bt("%Function.prototype.call%"),ei=bt("%Reflect.apply%",!0)||es.call(Xo,Zo),jo=Ge(),kv=bt("%Math.max%");ht.exports=function(t){if(typeof t!="function")throw new xv("a function is required");var s=ei(es,Xo,arguments);return Iv(s,1+kv(0,t.length-(arguments.length-1)),!0)};var Yo=function(){return ei(es,Zo,arguments)};jo?jo(ht.exports,"apply",{value:Yo}):ht.exports.apply=Yo});var ai=h((RB,ni)=>{"use strict";var ri=qt(),si=ti(),Pv=si(ri("String.prototype.indexOf"));ni.exports=function(t,s){var n=ri(t,!!s);return typeof n=="function"&&Pv(t,".prototype.")>-1?si(n):n}});var oi=h(()=>{});var Ci=h((bB,Ai)=>{var cs=typeof Map=="function"&&Map.prototype,ts=Object.getOwnPropertyDescriptor&&cs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=cs&&ts&&typeof ts.get=="function"?ts.get:null,ii=cs&&Map.prototype.forEach,ds=typeof Set=="function"&&Set.prototype,rs=Object.getOwnPropertyDescriptor&&ds?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=ds&&rs&&typeof rs.get=="function"?rs.get:null,pi=ds&&Set.prototype.forEach,vv=typeof WeakMap=="function"&&WeakMap.prototype,rt=vv?WeakMap.prototype.has:null,Av=typeof WeakSet=="function"&&WeakSet.prototype,st=Av?WeakSet.prototype.has:null,Cv=typeof WeakRef=="function"&&WeakRef.prototype,ui=Cv?WeakRef.prototype.deref:null,Bv=Boolean.prototype.valueOf,Tv=Object.prototype.toString,wv=Function.prototype.toString,Uv=String.prototype.match,ls=String.prototype.slice,pe=String.prototype.replace,Gv=String.prototype.toUpperCase,ci=String.prototype.toLowerCase,bi=RegExp.prototype.test,di=Array.prototype.concat,Z=Array.prototype.join,Sv=Array.prototype.slice,li=Math.floor,as=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ss=Object.getOwnPropertySymbols,os=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,fi=Object.prototype.propertyIsEnumerable,gi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yi(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?-li(-e):li(e);if(n!==e){var a=String(n),o=ls.call(t,a.length+1);return pe.call(a,s,"$&_")+"."+pe.call(pe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return pe.call(t,s,"$&_")}var is=oi(),mi=is.custom,Ri=ki(mi)?mi:null,Ii={__proto__:null,double:'"',single:"'"},Ev={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ai.exports=function e(t,s,n,a){var o=s||{};if(re(o,"quoteStyle")&&!re(Ii,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=re(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(re(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(re(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return vi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?yi(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?yi(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 ps(t)?"[Array]":"[Object]";var x=Zv(o,n);if(typeof a>"u")a=[];else if(Pi(a,t)>=0)return"[Circular]";function m(Y,ae,ee){if(ae&&(a=Sv.call(a),a.push(ae)),ee){var $e={depth:o.depth};return re(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(Y,$e,n+1,a)}return e(Y,o,n+1,a)}if(typeof t=="function"&&!qi(t)){var k=Ov(t),P=ft(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+Z.call(P,", ")+" }":"")}if(ki(t)){var q=Me?pe.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):os.call(t);return typeof t=="object"&&!Me?tt(q):q}if(Jv(t)){for(var L="<"+ci.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+xi(Lv(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+ci.call(String(t.nodeName))+">",L}if(ps(t)){if(t.length===0)return"[]";var J=ft(t,m);return x&&!Yv(J)?"["+us(J,x)+"]":"[ "+Z.call(J,", ")+" ]"}if(_v(t)){var j=ft(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!fi.call(t,"cause")?"{ ["+String(t)+"] "+Z.call(di.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.call(j,", ")+" }"}if(typeof t=="object"&&i){if(Ri&&typeof t[Ri]=="function"&&is)return is(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Vv(t)){var ce=[];return ii&&ii.call(t,function(Y,ae){ce.push(m(ae,t,!0)+" => "+m(Y,t))}),hi("Map",It.call(t),ce,x)}if($v(t)){var Ne=[];return pi&&pi.call(t,function(Y){Ne.push(m(Y,t))}),hi("Set",xt.call(t),Ne,x)}if(Nv(t))return ns("WeakMap");if(zv(t))return ns("WeakSet");if(Kv(t))return ns("WeakRef");if(Qv(t))return tt(m(Number(t)));if(Fv(t))return tt(m(as.call(t)));if(Dv(t))return tt(Bv.call(t));if(Hv(t))return tt(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(!Wv(t)&&!qi(t)){var de=ft(t,m),Ke=gi?gi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ne=t instanceof Object?"":"null prototype",Ce=!Ke&&O&&Object(t)===t&&O in t?ls.call(ue(t),8,-1):ne?"Object":"",le=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=le+(Ce||ne?"["+Z.call(di.call([],Ce||[],ne||[]),": ")+"] ":"");return de.length===0?Be+"{}":x?Be+"{"+us(de,x)+"}":Be+"{ "+Z.call(de,", ")+" }"}return String(t)};function xi(e,t,s){var n=s.quoteStyle||t,a=Ii[n];return a+e+a}function Lv(e){return pe.call(String(e),/"/g,"&quot;")}function ps(e){return ue(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Wv(e){return ue(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function qi(e){return ue(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function _v(e){return ue(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Hv(e){return ue(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function Qv(e){return ue(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function Dv(e){return ue(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function ki(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!os)return!1;try{return os.call(e),!0}catch{}return!1}function Fv(e){if(!e||typeof e!="object"||!as)return!1;try{return as.call(e),!0}catch{}return!1}var Mv=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return Mv.call(e,t)}function ue(e){return Tv.call(e)}function Ov(e){if(e.name)return e.name;var t=Uv.call(wv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Pi(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 Vv(e){if(!It||!e||typeof e!="object")return!1;try{It.call(e);try{xt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Nv(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e,rt);try{st.call(e,st)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Kv(e){if(!ui||!e||typeof e!="object")return!1;try{return ui.call(e),!0}catch{}return!1}function $v(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e);try{It.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function zv(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{rt.call(e,rt)}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 vi(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return vi(ls.call(e,0,t.maxStringLength),t)+n}var a=Ev[t.quoteStyle||"single"];a.lastIndex=0;var o=pe.call(pe.call(e,a,"\\$1"),/[\x00-\x1f]/g,jv);return xi(o,"single",t)}function jv(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":"")+Gv.call(t.toString(16))}function tt(e){return"Object("+e+")"}function ns(e){return e+" { ? }"}function hi(e,t,s,n){var a=n?us(s,n):Z.call(s,", ");return e+" ("+t+") {"+a+"}"}function Yv(e){for(var t=0;t<e.length;t++)if(Pi(e[t],`
2
+ `)>=0)return!1;return!0}function Zv(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=Z.call(Array(e.indent+1)," ");else return null;return{base:s,prev:Z.call(Array(t+1),s)}}function us(e,t){if(e.length===0)return"";var s=`
3
+ `+t.prev+t.base;return s+Z.call(e,","+s)+`
4
+ `+t.prev}function ft(e,t){var s=ps(e),n=[];if(s){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=re(e,a)?t(e[a],e):""}var o=typeof ss=="function"?ss(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(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 ss=="function")for(var r=0;r<o.length;r++)fi.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Ti=h((fB,Bi)=>{"use strict";var gs=Uo(),Oe=ai(),Xv=Ci(),eA=gs("%TypeError%"),kt=gs("%WeakMap%",!0),Pt=gs("%Map%",!0),tA=Oe("WeakMap.prototype.get",!0),rA=Oe("WeakMap.prototype.set",!0),sA=Oe("WeakMap.prototype.has",!0),nA=Oe("Map.prototype.get",!0),aA=Oe("Map.prototype.set",!0),oA=Oe("Map.prototype.has",!0),ys=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},iA=function(e,t){var s=ys(e,t);return s&&s.value},pA=function(e,t,s){var n=ys(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},uA=function(e,t){return!!ys(e,t)};Bi.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new eA("Side channel does not contain "+Xv(o))},get:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return tA(t,o)}else if(Pt){if(s)return nA(s,o)}else if(n)return iA(n,o)},has:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return sA(t,o)}else if(Pt){if(s)return oA(s,o)}else if(n)return uA(n,o);return!1},set:function(o,i){kt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new kt),rA(t,o,i)):Pt?(s||(s=new Pt),aA(s,o,i)):(n||(n={key:{},next:null}),pA(n,o,i))}};return a}});var vt=h((IB,wi)=>{"use strict";var cA=String.prototype.replace,dA=/%20/g,ms={RFC1738:"RFC1738",RFC3986:"RFC3986"};wi.exports={default:ms.RFC3986,formatters:{RFC1738:function(e){return cA.call(e,dA,"+")},RFC3986:function(e){return String(e)}},RFC1738:ms.RFC1738,RFC3986:ms.RFC3986}});var qs=h((xB,Gi)=>{"use strict";var lA=vt(),Rs=Object.prototype.hasOwnProperty,Ie=Array.isArray,X=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),gA=function(t){for(;t.length>1;){var s=t.pop(),n=s.obj[s.prop];if(Ie(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);s.obj[s.prop]=a}}},Ui=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},yA=function e(t,s,n){if(!s)return t;if(typeof s!="object"){if(Ie(t))t.push(s);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Rs.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 Ie(t)&&!Ie(s)&&(a=Ui(t,n)),Ie(t)&&Ie(s)?(s.forEach(function(o,i){if(Rs.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 Rs.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},mA=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},RA=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}},qA=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===lA.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},hA=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 gA(s),t},bA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},fA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},IA=function(t,s){return[].concat(t,s)},xA=function(t,s){if(Ie(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(s(t[a]));return n}return s(t)};Gi.exports={arrayToObject:Ui,assign:mA,combine:IA,compact:hA,decode:RA,encode:qA,isBuffer:fA,isRegExp:bA,maybeMap:xA,merge:yA}});var Hi=h((kB,_i)=>{"use strict";var Li=Ti(),bs=qs(),nt=vt(),kA=Object.prototype.hasOwnProperty,Si={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},se=Array.isArray,PA=String.prototype.split,vA=Array.prototype.push,Wi=function(e,t){vA.apply(e,se(t)?t:[t])},AA=Date.prototype.toISOString,Ei=nt.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:bs.encode,encodeValuesOnly:!1,format:Ei,formatter:nt.formatters[Ei],indices:!1,serializeDate:function(t){return AA.call(t)},skipNulls:!1,strictNullHandling:!1},CA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},hs={},BA=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(hs))!==void 0&&!j;){var ce=K.get(t);if(J+=1,typeof ce<"u"){if(ce===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(hs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&se(I)&&(I=bs.maybeMap(I,function(St){return St instanceof Date?x(St):St})),I===null){if(o)return p&&!P?p(s,F.encoder,q,"key",m):s;I=""}if(CA(I)||bs.isBuffer(I)){if(p){var Ne=P?s:p(s,F.encoder,q,"key",m);if(n==="comma"&&P){for(var de=PA.call(String(I),","),Ke="",ne=0;ne<de.length;++ne)Ke+=(ne===0?"":",")+k(p(de[ne],F.encoder,q,"value",m));return[k(Ne)+(a&&se(I)&&de.length===1?"[]":"")+"="+Ke]}return[k(Ne)+"="+k(p(I,F.encoder,q,"value",m))]}return[k(s)+"="+k(String(I))]}var Ce=[];if(typeof I>"u")return Ce;var le;if(n==="comma"&&se(I))le=[{value:I.length>0?I.join(",")||null:void 0}];else if(se(u))le=u;else{var Be=Object.keys(I);le=r?Be.sort(r):Be}for(var Y=a&&se(I)&&I.length===1?s+"[]":s,ae=0;ae<le.length;++ae){var ee=le[ae],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:I[ee];if(!(i&&$e===null)){var ik=se(I)?typeof n=="function"?n(Y,ee):Y:Y+(y?"."+ee:"["+ee+"]");L.set(t,J);var ka=Li();ka.set(hs,L),Wi(Ce,e($e,ik,n,a,o,i,p,u,r,y,x,m,k,P,q,ka))}}return Ce},TA=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=nt.default;if(typeof t.format<"u"){if(!kA.call(nt.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=nt.formatters[n],o=F.filter;return(typeof t.filter=="function"||se(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}};_i.exports=function(e,t){var s=e,n=TA(t),a,o;typeof n.filter=="function"?(o=n.filter,s=o("",s)):se(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Si?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Si[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(s)),n.sort&&a.sort(n.sort);for(var y=Li(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Wi(i,BA(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 Fi=h((PB,Di)=>{"use strict";var Ve=qs(),fs=Object.prototype.hasOwnProperty,wA=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},UA=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Qi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},GA="utf8=%26%2310003%3B",SA="utf8=%E2%9C%93",EA=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]===SA?r="utf-8":i[u]===GA&&(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(Qi(y.slice(m+1),s),function(q){return s.decoder(q,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=UA(P)),y.indexOf("[]=")>-1&&(P=wA(P)?[P]:P),fs.call(n,k)?n[k]=Ve.combine(n[k],P):n[k]=P}return n},LA=function(e,t,s,n){for(var a=n?t:Qi(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},WA=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&&fs.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&&fs.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),LA(y,s,n,a)}},_A=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}};Di.exports=function(e,t){var s=_A(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?EA(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=WA(p,n[p],s,typeof e=="string");a=Ve.merge(a,u,s)}return s.allowSparse===!0?a:Ve.compact(a)}});var xe=h((vB,Mi)=>{"use strict";var HA=Hi(),QA=Fi(),DA=vt();Mi.exports={formats:DA,parse:QA,stringify:HA}});var W={};te(W,{HttpClient:()=>at,HttpError:()=>oe,createHttpClient:()=>qk,isHttpError:()=>ge,isNetworkError:()=>Rk,isNetworkOrIdempotentRequestError:()=>va});var yk=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():Math.random().toString(36).substring(2,15),oe=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},ge=e=>e instanceof oe||typeof e=="object"&&e!==null&&e.isHttpError===!0,mk=["get","head","options","put","delete"],Rk=e=>ge(e)&&!e.response,va=e=>{if(!ge(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return mk.includes(t)&&e.response.status>=500&&e.response.status<=599},qk=e=>new at({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,debug:e.debug}),at=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(!ge(a)||o||n>s.retries||!await(s.retryCondition??va)(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=hk(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;Pa(o,this.defaults.headers),Pa(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(bk(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?yk():void 0,k=Date.now();x&&console.debug(kk(a,o,m));let P=q=>{if(r)return new oe(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,q);if(t.signal?.aborted||this.defaults.signal?.aborted)return new oe("canceled",a,"ERR_CANCELED",void 0,q);let L=q?.cause,I=q?.message??"Network Error";return new oe(I,a,L?.code??"ERR_NETWORK",void 0,q)};try{let q=await fetch(n,{method:s,headers:o,body:i,signal:Ik(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};q.headers.forEach((j,ce)=>{L[ce]=j});let I,K=t.responseType??"json";if(!q.ok||K==="json"||K==="text"){let j=await q.text();I=!q.ok||K==="json"?fk(j):j}else K==="arraybuffer"?I=await q.arrayBuffer():I=q.body?xk(q.body):void 0;let J={data:I,status:q.status,statusText:q.statusText,headers:L,config:a};if(x&&console.debug(Pk(J,m,k)),!q.ok)throw new oe(`Request failed with status code ${q.status}`,a,void 0,J);return J}catch(q){let L=ge(q)?q:P(q);throw x&&!L.response&&console.debug(vk(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},hk=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,Pa=(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)}},bk=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,fk=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Ik=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*xk(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 kk=(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
+ `},Pk=(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
+ `,vk=(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 Bu={};te(Bu,{Client:()=>Is});var $={};te($,{getClientConfig:()=>Lk});import{isBrowser as Aa,isNode as Ak}from"browser-or-node";var Ck="https://api.botpress.cloud",Bk=6e4,Tk=!1,wk="BP_API_URL",Uk="BP_BOT_ID",Gk="BP_INTEGRATION_ID",Sk="BP_WORKSPACE_ID",Ek="BP_TOKEN";function Lk(e){let t=Wk(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??Ck,a=t.timeout??Bk,o=t.debug??Tk;return{apiUrl:n,timeout:a,withCredentials:Aa,headers:s,debug:o}}function Wk(e){return Aa?e:Ak?_k(e):e}function _k(e){let t={...e,apiUrl:e.apiUrl??process.env[wk],botId:e.botId??process.env[Uk],integrationId:e.integrationId??process.env[Gk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Sk]},s=t.token??process.env[Ek];return s&&(t.token=s),t}var R={};te(R,{AsyncCollection:()=>Lt});var Lt=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={};te(z,{toApiError:()=>Vk});var Hk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Qk=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:Hk,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(Qk.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"}},Dk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Fk=e=>e instanceof B||Dk(e)&&e.isApiError===!0,ye=class extends B{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Wt=class extends B{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},_t=class extends B{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Ht=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)}},Qt=class extends B{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Dt=class extends B{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ft=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)}},Mt=class extends B{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Ot=class extends B{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Vt=class extends B{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Nt=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)}},Kt=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)}},$t=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)}},zt=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)}},Jt=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)}},jt=class extends B{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Yt=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)}},Zt=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)}},Xt=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)}},er=class extends B{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},tr=class extends B{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},rr=class extends B{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},sr=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)}},nr=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)}},ar=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)}},or=class extends B{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},Mk={Unknown:ye,Internal:Wt,Unauthorized:_t,Forbidden:Ht,PayloadTooLarge:Qt,InvalidPayload:Dt,UnsupportedMediaType:Ft,MethodNotFound:Mt,ResourceNotFound:Ot,InvalidJsonSchema:Vt,InvalidDataFormat:Nt,InvalidIdentifier:Kt,RelationConflict:$t,ReferenceConstraint:zt,ResourceLockedConflict:Jt,ResourceGone:jt,ReferenceNotFound:Yt,InvalidQuery:Zt,Runtime:Xt,AlreadyExists:er,RateLimited:tr,PaymentRequired:rr,QuotaExceeded:sr,LimitExceeded:nr,BreakingChanges:ar,OperationTimeout:or},we=e=>Fk(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):Ok(e);function Ok(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=Mk[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var ie=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var Vk=e=>ge(e)&&e.response?.data?we(e.response.data):we(e);var Nk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Kk=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:Nk,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(Kk.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"}},$k=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,zk=e=>e instanceof T||$k(e)&&e.isApiError===!0,Re=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ir=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},pr=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ur=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)}},cr=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},dr=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},lr=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)}},gr=class extends T{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},yr=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},mr=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Rr=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)}},qr=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)}},hr=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)}},br=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)}},fr=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)}},Ir=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},xr=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)}},kr=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)}},Pr=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)}},vr=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Ar=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Cr=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Br=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)}},Tr=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)}},wr=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)}},Ur=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},Jk={Unknown:Re,Internal:ir,Unauthorized:pr,Forbidden:ur,PayloadTooLarge:cr,InvalidPayload:dr,UnsupportedMediaType:lr,MethodNotFound:gr,ResourceNotFound:yr,InvalidJsonSchema:mr,InvalidDataFormat:Rr,InvalidIdentifier:qr,RelationConflict:hr,ReferenceConstraint:br,ResourceLockedConflict:fr,ResourceGone:Ir,ReferenceNotFound:xr,InvalidQuery:kr,Runtime:Pr,AlreadyExists:vr,RateLimited:Ar,PaymentRequired:Cr,QuotaExceeded:Br,LimitExceeded:Tr,BreakingChanges:wr,OperationTimeout:Ur},Gr=e=>zk(e)?e:e instanceof Error?new Re(e.message,e):typeof e=="string"?new Re(e):jk(e);function jk(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 Re(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Re("An invalid error occurred: "+JSON.stringify(e))}var Oi=Te(xe()),FA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(FA),p=Object.fromEntries(i),u=Oi.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 Vi=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var Ki=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zi=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,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 ji=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 Zi=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 ep=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var pp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cp=e=>({path:"/v1/chat/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 lp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yp=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 Rp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hp=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 fp=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 xp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Ap=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 Bp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wp=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 Gp=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Ep=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 Wp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hp=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 Dp=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 Mp=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 Vp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kp=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 zp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var jp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Zp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var eu=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 ru=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var nu=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var ou=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var pu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var cu=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 lu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yu=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 Ru=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=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 fu=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 xu=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 Pu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Au=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 At=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=Vi(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}=Ki(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}=zi(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}=ji(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}=Zi(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}=ep(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}=rp(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}=np(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}=op(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}=pp(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}=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)})};getEvent=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)})};listEvents=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:"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}=Rp(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}=hp(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}=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)})};getMessage=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:"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}=Pp(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}=Ap(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}=Bp(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}=wp(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}=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)})};createUser=async t=>{let{path:s,headers:n,query:a,body:o}=Ep(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}=Wp(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}=Hp(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}=Dp(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}=Mp(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}=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)})};setStateExpiry=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:"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}=zp(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}=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)})};getOrSetState=async t=>{let{path:s,headers:n,query:a,body:o}=Zp(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}=eu(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}=ru(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}=nu(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}=ou(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}=pu(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}=cu(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}=lu(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}=yu(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}=Ru(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}=hu(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}=fu(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}=xu(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}=Pu(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}=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)})}};function f(e){let t=e?.response?.data;return t?Gr(t):Gr(e)}var Is=class extends At{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 Wg={};te(Wg,{Client:()=>zs});var OA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},VA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:OA,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(VA.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"}},NA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KA=e=>e instanceof w||NA(e)&&e.isApiError===!0,ke=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},xs=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ks=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Ps=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)}},vs=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},As=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Cs=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)}},Bs=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Ts=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},ws=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Us=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)}},Gs=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)}},Ss=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)}},Es=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)}},Ls=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)}},Ws=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},_s=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)}},Hs=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)}},Qs=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)}},Ds=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Fs=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ms=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Os=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)}},Vs=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)}},Ns=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)}},Ks=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},$A={Unknown:ke,Internal:xs,Unauthorized:ks,Forbidden:Ps,PayloadTooLarge:vs,InvalidPayload:As,UnsupportedMediaType:Cs,MethodNotFound:Bs,ResourceNotFound:Ts,InvalidJsonSchema:ws,InvalidDataFormat:Us,InvalidIdentifier:Gs,RelationConflict:Ss,ReferenceConstraint:Es,ResourceLockedConflict:Ls,ResourceGone:Ws,ReferenceNotFound:_s,InvalidQuery:Hs,Runtime:Qs,AlreadyExists:Ds,RateLimited:Fs,PaymentRequired:Ms,QuotaExceeded:Os,LimitExceeded:Vs,BreakingChanges:Ns,OperationTimeout:Ks},$s=e=>KA(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):zA(e);function zA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$A[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new 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 Tu=Te(xe()),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=Tu.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 wu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Gu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Eu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Wu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Du=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Mu=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ku=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var zu=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,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 ju=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ec=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var rc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var oc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var cc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var lc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Rc=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 hc=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 fc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var xc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Pc=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,integrationNames:e.integrationNames,pluginNames:e.pluginNames,nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Ac=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Dc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Rd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var xd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Pd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ad=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Ed=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hd=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 Dd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Kd=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 zd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var jd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Zd=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var el=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var nl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ol=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var pl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var cl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var ll=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Rl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var hl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var fl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var xl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pl=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 Al=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 Bl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,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 wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Gl=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 El=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 Wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hl=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 Dl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ml=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Kl=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 zl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zl=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 eg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var ng=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 og=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lg=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 yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var hg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var fg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Pg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ag=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 Bg=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 wg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Gg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Eg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Ct=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=async t=>{let{path:s,headers:n,query:a,body:o}=wu(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}=Gu(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}=Eu(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}=Wu(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}=Hu(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}=Du(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}=Mu(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}=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)})};getAccountPreference=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)})};listPublicIntegrations=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:"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}=ju(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}=Zu(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}=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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:"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}=hc(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}=fc(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}=xc(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}=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)})};getBot=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:"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}=Bc(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}=wc(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}=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)})};getBotAnalytics=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)})};listActionRuns=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:"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}=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=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)})};listBotVersions=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)})};getBotVersion=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)})};getBotJson=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:"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}=Zc(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}=ed(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}=rd(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}=nd(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}=od(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}=pd(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}=cd(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}=ld(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}=yd(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}=Rd(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}=hd(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}=fd(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}=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)})};listWorkspaceInvoices=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:"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}=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=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)})};getPublicWorkspace=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)})};getWorkspace=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)})};listWorkspaceUsages=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:"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}=Hd(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}=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=zd(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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=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)})};setWorkspacePreference=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:"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}=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)})};listWorkspaceMembers=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:"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}=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)})};deleteWorkspaceMember=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:"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}=yl(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}=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)})};listIntegrationApiKeys=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)})};createIntegrationApiKey=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:"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}=xl(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}=Pl(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}=Al(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}=Bl(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}=wl(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}=Gl(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}=El(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}=Wl(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}=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)})};getIntegrationByName=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:"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}=Ml(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}=Vl(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}=Kl(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}=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)})};getInterfaceByName=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:"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}=Zl(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}=eg(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}=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)})};createPlugin=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:"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}=og(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}=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)})};getPluginByName=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)})};updatePlugin=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:"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}=yg(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}=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)})};getPluginCode=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)})};getUsage=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:"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}=xg(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}=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=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)})};introspect=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)})}};function g(e){let t=e?.response?.data;return t?$s(t):$s(e)}var zs=class extends Ct{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 My={};te(My,{Client:()=>xn});var YA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ZA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:YA,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(ZA.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"}},XA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,eC=e=>e instanceof U||XA(e)&&e.isApiError===!0,Pe=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Js=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},js=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Ys=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)}},Zs=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Xs=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},en=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)}},tn=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},rn=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},sn=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},nn=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)}},an=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)}},on=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)}},pn=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)}},un=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)}},cn=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},dn=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)}},ln=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)}},gn=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)}},yn=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},mn=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Rn=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},qn=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)}},hn=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)}},bn=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)}},fn=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},tC={Unknown:Pe,Internal:Js,Unauthorized:js,Forbidden:Ys,PayloadTooLarge:Zs,InvalidPayload:Xs,UnsupportedMediaType:en,MethodNotFound:tn,ResourceNotFound:rn,InvalidJsonSchema:sn,InvalidDataFormat:nn,InvalidIdentifier:an,RelationConflict:on,ReferenceConstraint:pn,ResourceLockedConflict:un,ResourceGone:cn,ReferenceNotFound:dn,InvalidQuery:ln,Runtime:gn,AlreadyExists:yn,RateLimited:mn,PaymentRequired:Rn,QuotaExceeded:qn,LimitExceeded:hn,BreakingChanges:bn,OperationTimeout:fn},In=e=>eC(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):rC(e);function rC(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=tC[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 _g=Te(xe()),sC=e=>e[1]!==void 0,C=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(sC),p=Object.fromEntries(i),u=_g.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 Hg=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var Dg=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Mg=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 Vg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Kg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var zg=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var jg=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Zg=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var ey=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var ry=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var ny=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var oy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var py=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var cy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var ly=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var yy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Ry=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var hy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var fy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var xy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var Py=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Ay=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var By=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var wy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Gy=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Ey=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Wy=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var Hy=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var Dy=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var Bt=class{constructor(t,s={}){this.httpClient=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:n,query:a,body:o}=Hg(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}=Dg(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}=Mg(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}=Vg(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}=Kg(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}=zg(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}=jg(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}=Zg(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}=ey(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}=ry(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}=ny(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}=oy(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}=py(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}=cy(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}=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)})};setAutoRechargeSettings=async t=>{let{path:s,headers:n,query:a,body:o}=yy(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}=Ry(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}=hy(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}=fy(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}=xy(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}=Py(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}=Ay(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}=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)})};setPaymentMethod=async t=>{let{path:s,headers:n,query:a,body:o}=wy(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}=Gy(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}=Ey(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}=Wy(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}=Hy(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}=Dy(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?In(t):In(e)}var xn=class extends Bt{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 Im={};te(Im,{Client:()=>Jn});var aC={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},oC=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:aC,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(oC.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"}},iC=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,pC=e=>e instanceof S||iC(e)&&e.isApiError===!0,ve=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},kn=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Pn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},vn=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)}},An=class extends S{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Cn=class extends S{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Bn=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)}},Tn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Un=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Gn=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)}},Sn=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)}},En=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)}},Ln=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)}},Wn=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)}},_n=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Hn=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)}},Qn=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)}},Dn=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)}},Fn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},On=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Vn=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)}},Nn=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)}},Kn=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)}},$n=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},uC={Unknown:ve,Internal:kn,Unauthorized:Pn,Forbidden:vn,PayloadTooLarge:An,InvalidPayload:Cn,UnsupportedMediaType:Bn,MethodNotFound:Tn,ResourceNotFound:wn,InvalidJsonSchema:Un,InvalidDataFormat:Gn,InvalidIdentifier:Sn,RelationConflict:En,ReferenceConstraint:Ln,ResourceLockedConflict:Wn,ResourceGone:_n,ReferenceNotFound:Hn,InvalidQuery:Qn,Runtime:Dn,AlreadyExists:Fn,RateLimited:Mn,PaymentRequired:On,QuotaExceeded:Vn,LimitExceeded:Nn,BreakingChanges:Kn,OperationTimeout:$n},zn=e=>pC(e)?e:e instanceof Error?new ve(e.message,e):typeof e=="string"?new ve(e):cC(e);function cC(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=uC[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 Oy=Te(xe()),dC=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(dC),p=Object.fromEntries(i),u=Oy.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 Vy=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 Ky=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zy=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 jy=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zy=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 em=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 rm=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 nm=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 om=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var pm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var cm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var lm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var ym=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rm=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 hm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Tt=class{constructor(t,s={}){this.httpClient=t;this.props=s}upsertFile=async t=>{let{path:s,headers:n,query:a,body:o}=Vy(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}=Ky(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}=zy(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}=jy(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}=Zy(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}=em(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}=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)})};listFilePassages=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:"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}=om(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}=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)})};listFileTagValues=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)})};createKnowledgeBase=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:"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}=ym(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}=Rm(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}=hm(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 wt=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 ie("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 ie(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new ie("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 ie("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 ie(`Failed to upload file: ${I.message}`,I,P)}return{file:{...P,size:k}}};var Jn=class extends Tt{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 wt(this,t)}};var sR={};te(sR,{Client:()=>xa});var gC={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},yC=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:gC,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(yC.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"}},mC=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,RC=e=>e instanceof E||mC(e)&&e.isApiError===!0,Ae=class extends E{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},jn=class extends E{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Yn=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Zn=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)}},Xn=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},ea=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},ta=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)}},ra=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},na=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},aa=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)}},oa=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)}},ia=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)}},pa=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)}},ua=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)}},ca=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},da=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)}},la=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)}},ga=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)}},ya=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ra=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},qa=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)}},ha=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)}},ba=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)}},fa=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},qC={Unknown:Ae,Internal:jn,Unauthorized:Yn,Forbidden:Zn,PayloadTooLarge:Xn,InvalidPayload:ea,UnsupportedMediaType:ta,MethodNotFound:ra,ResourceNotFound:sa,InvalidJsonSchema:na,InvalidDataFormat:aa,InvalidIdentifier:oa,RelationConflict:ia,ReferenceConstraint:pa,ResourceLockedConflict:ua,ResourceGone:ca,ReferenceNotFound:da,InvalidQuery:la,Runtime:ga,AlreadyExists:ya,RateLimited:ma,PaymentRequired:Ra,QuotaExceeded:qa,LimitExceeded:ha,BreakingChanges:ba,OperationTimeout:fa},Ia=e=>RC(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):hC(e);function hC(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=qC[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 xm=Te(xe()),bC=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(bC),p=Object.fromEntries(i),u=xm.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 km=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var vm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Cm=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 Tm=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 Um=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 Sm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Lm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var _m=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Qm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var Fm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Om=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Nm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var $m=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 Jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ym=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 Xm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var tR=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 Ut=class{constructor(t,s={}){this.httpClient=t;this.props=s}listTables=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:"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}=vm(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}=Cm(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}=Tm(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}=Um(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}=Sm(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}=Lm(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}=_m(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}=Qm(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}=Fm(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}=Om(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}=Nm(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}=$m(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}=Jm(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}=Ym(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}=Xm(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}=tR(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?Ia(t):Ia(e)}var xa=class extends Ut{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 nR=Te(xe()),IC=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(IC),p=Object.fromEntries(i),u=nR.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 aR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var iR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uR=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 dR=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 gR=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 mR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var bR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var IR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var kR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var vR=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 CR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var TR=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 UR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=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 LR=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 _R=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var QR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var FR=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 OR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var NR=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 $R=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var JR=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 YR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=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 tq=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 sq=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 aq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=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 uq=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 dq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var gq=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 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/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var bq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Iq=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var kq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var vq=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 Cq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tq=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 Uq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sq=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 Lq=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 _q=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 Qq=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Fq=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 Oq=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Nq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var $q=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Jq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Yq=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Xq=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var th=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ah=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ih=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 uh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var gh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var mh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var bh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ih=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var kh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var vh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ch=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Th=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 Uh=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 Sh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _h=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 Qh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oh=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 Nh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $h=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Jh=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 Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{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/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var qb=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 bb=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 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)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Cb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Tb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Lb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var _b=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Qb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Fb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Ob=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Nb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var $b=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Yb=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 Xb=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var af=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 pf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var cf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var lf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var hf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ff=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var xf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Pf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Af=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var wf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ef=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Wf=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hf=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 Df=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 Mf=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 Vf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Kf=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 jf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zf=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 eI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var rI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var oI=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 pI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lI=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 yI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var hI=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 fI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var PI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var AI=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 BI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var GI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var EI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var WI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var HI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var DI=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 MI=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 VI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var KI=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 jI=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 ex=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 rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nx=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 ox=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 px=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 cx=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 lx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var yx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Rx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var hx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var fx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xx=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 Px=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Ax=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Bx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var wx=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 Gx=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 Ex=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 Wx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Hx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Mx=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 Vx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Kx=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 jx=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 Zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ek=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 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/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Gt=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=aR(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}=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)})};listConversations=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)})};getOrCreateConversation=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:"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}=gR(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}=mR(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}=qR(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}=bR(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}=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)})};removeParticipant=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:"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}=vR(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}=CR(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}=TR(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}=UR(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}=SR(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}=LR(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}=_R(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}=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)})};listMessages=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)})};deleteMessage=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:"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}=NR(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}=$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)})};createUser=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)})};getUser=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:"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}=XR(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}=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)})};updateUser=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)})};deleteUser=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:"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}=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)})};getState=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)})};setState=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)})};getOrSetState=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:"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}=mq(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}=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)})};unlinkIntegrationIdentifier=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:"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}=Iq(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}=kq(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}=vq(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}=Cq(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}=Tq(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}=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)})};listWorkflows=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)})};getOrCreateWorkflow=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:"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}=_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)})};trackAnalytics=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)})};captureObservation=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:"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}=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)})};getAccount=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:"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}=$q(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}=Jq(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}=Yq(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}=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)})};deletePersonalAccessToken=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:"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}=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)})};getAccountPreference=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:"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}=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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:"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}=Uh(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}=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)})};transferBot=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:"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}=_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)})};getBot=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)})};deleteBot=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:"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}=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)})};getBotWebchat=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:"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}=$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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=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)})};listBotVersions=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:"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}=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)})};getBotJson=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)})};publishFromBotJson=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:"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}=gb(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}=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)})};createIntegrationShareableId=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)})};deleteIntegrationShareableId=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:"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}=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)})};unlinkSandboxedConversations=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)})};listBotApiKeys=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)})};createBotApiKey=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:"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}=Tb(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}=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)})};updateBotAllowlist=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:"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}=Lb(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}=_b(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}=Qb(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}=Fb(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}=Ob(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}=Nb(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}=$b(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}=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=pf(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}=cf(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}=lf(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}=yf(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}=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)})};setWorkspacePreference=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)})};getWorkspacePreference=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)})};listWorkspaceMembers=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:"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}=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)})};deleteWorkspaceMember=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:"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}=Bf(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}=wf(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}=Gf(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}=Ef(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}=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)})};createIntegration=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)})};validateIntegrationCreation=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:"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}=Mf(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}=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)})};validateIntegrationUpdate=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)})};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}=jf(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}=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=nI(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}=oI(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}=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)})};getInterfaceByName=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:"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}=lI(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}=yI(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}=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=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:"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}=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)})};updatePlugin=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:"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}=BI(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}=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)})};getPluginCode=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:"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}=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=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)})};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}=jI(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}=ZI(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}=ex(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}=rx(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}=nx(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}=ox(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}=px(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}=cx(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}=lx(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}=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)})};listFileTagValues=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:"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}=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)})};deleteKnowledgeBase=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:"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}=xx(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}=Px(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}=Ax(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}=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)})};getOrCreateTable=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)})};createTable=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:"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}=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)})};exportTable=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)})};getTableJobs=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)})};importTable=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:"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}=Mx(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}=Vx(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}=Kx(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}=jx(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}=Zx(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}=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)})};updateTableRows=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:"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}=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)})}};function d(e){let t=e?.response?.data;return t?we(t):we(e)}var ok=class extends Gt{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 wt(this,t)};export{er as AlreadyExistsError,ar as BreakingChangesError,ok as Client,Ht as ForbiddenError,Wt as InternalError,Nt as InvalidDataFormatError,Kt as InvalidIdentifierError,Vt as InvalidJsonSchemaError,Dt as InvalidPayloadError,Zt as InvalidQueryError,nr as LimitExceededError,Mt as MethodNotFoundError,or as OperationTimeoutError,Qt as PayloadTooLargeError,rr as PaymentRequiredError,sr as QuotaExceededError,tr as RateLimitedError,zt as ReferenceConstraintError,Yt as ReferenceNotFoundError,$t as RelationConflictError,jt as ResourceGoneError,Jt as ResourceLockedConflictError,Ot as ResourceNotFoundError,Xt as RuntimeError,_t as UnauthorizedError,ye as UnknownError,Ft as UnsupportedMediaTypeError,ie as UploadFileError,Wg as admin,My as billing,we as errorFrom,Im as files,W as http,Fk as isApiError,Bu as runtime,sR as tables};
7
7
  //# sourceMappingURL=index.mjs.map