@botpress/client 2.6.0 → 2.7.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 fk=Object.create;var Et=Object.defineProperty;var Ik=Object.getOwnPropertyDescriptor;var xk=Object.getOwnPropertyNames;var kk=Object.getPrototypeOf,Pk=Object.prototype.hasOwnProperty;var q=(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})},vk=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xk(t))!Pk.call(e,a)&&a!==s&&Et(e,a,{get:()=>t[a],enumerable:!(n=Ik(t,a))||n.enumerable});return e};var Te=(e,t,s)=>(s=e!=null?fk(kk(e)):{},vk(t||!e||!e.__esModule?Et(s,"default",{value:e,enumerable:!0}):s,e));var ot=q((KA,Aa)=>{"use strict";Aa.exports=Object});var Sr=q(($A,Ba)=>{"use strict";Ba.exports=Error});var Er=q((zA,Ta)=>{"use strict";Ta.exports=EvalError});var Lr=q((JA,wa)=>{"use strict";wa.exports=RangeError});var Wr=q((jA,Ua)=>{"use strict";Ua.exports=ReferenceError});var it=q((YA,Ga)=>{"use strict";Ga.exports=SyntaxError});var he=q((ZA,Sa)=>{"use strict";Sa.exports=TypeError});var _r=q((XA,Ea)=>{"use strict";Ea.exports=URIError});var Hr=q((eB,La)=>{"use strict";La.exports=Math.abs});var Qr=q((tB,Wa)=>{"use strict";Wa.exports=Math.floor});var Dr=q((rB,_a)=>{"use strict";_a.exports=Math.max});var Fr=q((sB,Ha)=>{"use strict";Ha.exports=Math.min});var Mr=q((nB,Qa)=>{"use strict";Qa.exports=Math.pow});var Or=q((aB,Da)=>{"use strict";Da.exports=Math.round});var Ma=q((oB,Fa)=>{"use strict";Fa.exports=Number.isNaN||function(t){return t!==t}});var Vr=q((iB,Oa)=>{"use strict";var uP=Ma();Oa.exports=function(t){return uP(t)||t===0?t:t<0?-1:1}});var Na=q((pB,Va)=>{"use strict";Va.exports=Object.getOwnPropertyDescriptor});var Ue=q((uB,Ka)=>{"use strict";var pt=Na();if(pt)try{pt([],"length")}catch{pt=null}Ka.exports=pt});var Ge=q((cB,$a)=>{"use strict";var ut=Object.defineProperty||!1;if(ut)try{ut({},"a",{value:1})}catch{ut=!1}$a.exports=ut});var Ja=q((dB,za)=>{"use strict";za.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=q((lB,Ya)=>{"use strict";var ja=typeof Symbol<"u"&&Symbol,cP=Ja();Ya.exports=function(){return typeof ja!="function"||typeof Symbol!="function"||typeof ja("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cP()}});var ct=q((gB,Za)=>{"use strict";Za.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dt=q((yB,Xa)=>{"use strict";var dP=ot();Xa.exports=dP.getPrototypeOf||null});var ro=q((mB,to)=>{"use strict";var lP="Function.prototype.bind called on incompatible ",gP=Object.prototype.toString,yP=Math.max,mP="[object Function]",eo=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},RP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},qP=function(e,t){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=t);return s};to.exports=function(t){var s=this;if(typeof s!="function"||gP.apply(s)!==mP)throw new TypeError(lP+s);for(var n=RP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,eo(n,arguments));return Object(y)===y?y:this}return s.apply(t,eo(n,arguments))},i=yP(0,s.length-n.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+qP(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 pe=q((RB,so)=>{"use strict";var hP=ro();so.exports=Function.prototype.bind||hP});var ze=q((qB,no)=>{"use strict";no.exports=Function.prototype.call});var lt=q((hB,ao)=>{"use strict";ao.exports=Function.prototype.apply});var io=q((bB,oo)=>{"use strict";oo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var uo=q((fB,po)=>{"use strict";var bP=pe(),fP=lt(),IP=ze(),xP=io();po.exports=xP||bP.call(IP,fP)});var lo=q((IB,co)=>{"use strict";var kP=pe(),PP=he(),vP=ze(),CP=uo();co.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new PP("a function is required");return CP(kP,vP,t)}});var ho=q((xB,qo)=>{"use strict";var AP=lo(),go=Ue(),mo;try{mo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Kr=!!mo&&go&&go(Object.prototype,"__proto__"),Ro=Object,yo=Ro.getPrototypeOf;qo.exports=Kr&&typeof Kr.get=="function"?AP([Kr.get]):typeof yo=="function"?function(t){return yo(t==null?t:Ro(t))}:!1});var $r=q((kB,xo)=>{"use strict";var bo=ct(),fo=dt(),Io=ho();xo.exports=bo?function(t){return bo(t)}:fo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return fo(t)}:Io?function(t){return Io(t)}:null});var Po=q((PB,ko)=>{"use strict";var BP=Function.prototype.call,TP=Object.prototype.hasOwnProperty,wP=pe();ko.exports=wP.call(BP,TP)});var Uo=q((vB,wo)=>{"use strict";var C,UP=ot(),GP=Sr(),SP=Er(),EP=Lr(),LP=Wr(),We=it(),Le=he(),WP=_r(),_P=Hr(),HP=Qr(),QP=Dr(),DP=Fr(),FP=Mr(),MP=Or(),OP=Vr(),Bo=Function,zr=function(e){try{return Bo('"use strict"; return ('+e+").constructor;")()}catch{}},Je=Ue(),VP=Ge(),Jr=function(){throw new Le},NP=Je?(function(){try{return arguments.callee,Jr}catch{try{return Je(arguments,"callee").get}catch{return Jr}}})():Jr,Se=Nr()(),_=$r(),KP=dt(),$P=ct(),To=lt(),je=ze(),Ee={},zP=typeof Uint8Array>"u"||!_?C:_(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?C:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?C:ArrayBuffer,"%ArrayIteratorPrototype%":Se&&_?_([][Symbol.iterator]()):C,"%AsyncFromSyncIteratorPrototype%":C,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%Atomics%":typeof Atomics>"u"?C:Atomics,"%BigInt%":typeof BigInt>"u"?C:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?C:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?C:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?C:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":GP,"%eval%":eval,"%EvalError%":SP,"%Float32Array%":typeof Float32Array>"u"?C:Float32Array,"%Float64Array%":typeof Float64Array>"u"?C:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?C:FinalizationRegistry,"%Function%":Bo,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?C:Int8Array,"%Int16Array%":typeof Int16Array>"u"?C:Int16Array,"%Int32Array%":typeof Int32Array>"u"?C:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Se&&_?_(_([][Symbol.iterator]())):C,"%JSON%":typeof JSON=="object"?JSON:C,"%Map%":typeof Map>"u"?C:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Se||!_?C:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":UP,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?C:Promise,"%Proxy%":typeof Proxy>"u"?C:Proxy,"%RangeError%":EP,"%ReferenceError%":LP,"%Reflect%":typeof Reflect>"u"?C:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?C:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Se||!_?C:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?C:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Se&&_?_(""[Symbol.iterator]()):C,"%Symbol%":Se?Symbol:C,"%SyntaxError%":We,"%ThrowTypeError%":NP,"%TypedArray%":zP,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?C:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?C:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?C:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?C:Uint32Array,"%URIError%":WP,"%WeakMap%":typeof WeakMap>"u"?C:WeakMap,"%WeakRef%":typeof WeakRef>"u"?C:WeakRef,"%WeakSet%":typeof WeakSet>"u"?C:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":To,"%Object.defineProperty%":VP,"%Object.getPrototypeOf%":KP,"%Math.abs%":_P,"%Math.floor%":HP,"%Math.max%":QP,"%Math.min%":DP,"%Math.pow%":FP,"%Math.round%":MP,"%Math.sign%":OP,"%Reflect.getPrototypeOf%":$P};if(_)try{null.error}catch(e){vo=_(_(e)),be["%Error.prototype%"]=vo}var vo,JP=function e(t){var s;if(t==="%AsyncFunction%")s=zr("async function () {}");else if(t==="%GeneratorFunction%")s=zr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=zr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(s=_(a.prototype))}return be[t]=s,s},Co={__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=pe(),gt=Po(),jP=Ye.call(je,Array.prototype.concat),YP=Ye.call(To,Array.prototype.splice),Ao=Ye.call(je,String.prototype.replace),yt=Ye.call(je,String.prototype.slice),ZP=Ye.call(je,RegExp.prototype.exec),XP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ev=/\\(\\)?/g,tv=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 Ao(t,XP,function(o,i,p,u){a[a.length]=p?Ao(u,ev,"$1"):i||o}),a},rv=function(t,s){var n=t,a;if(gt(Co,n)&&(a=Co[n],n="%"+a[0]+"%"),gt(be,n)){var o=be[n];if(o===Ee&&(o=JP(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(ZP(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=tv(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],YP(n,jP([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 h=Je(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=gt(p,m),p=p[m];x&&!u&&(be[i]=p)}}return p}});var So=q((CB,Go)=>{"use strict";var sv=Function.prototype.call,nv=Object.prototype.hasOwnProperty,av=pe();Go.exports=av.call(sv,nv)});var qt=q((AB,Qo)=>{"use strict";var v,ov=ot(),iv=Sr(),pv=Er(),uv=Lr(),cv=Wr(),De=it(),Qe=he(),dv=_r(),lv=Hr(),gv=Qr(),yv=Dr(),mv=Fr(),Rv=Mr(),qv=Or(),hv=Vr(),_o=Function,jr=function(e){try{return _o('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=Ue(),bv=Ge(),Yr=function(){throw new Qe},fv=Ze?(function(){try{return arguments.callee,Yr}catch{try{return Ze(arguments,"callee").get}catch{return Yr}}})():Yr,_e=Nr()(),H=$r(),Iv=dt(),xv=ct(),Ho=lt(),Xe=ze(),He={},kv=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%":iv,"%eval%":eval,"%EvalError%":pv,"%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%":_o,"%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%":ov,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":uv,"%ReferenceError%":cv,"%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%":fv,"%TypedArray%":kv,"%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%":dv,"%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%":Ho,"%Object.defineProperty%":bv,"%Object.getPrototypeOf%":Iv,"%Math.abs%":lv,"%Math.floor%":gv,"%Math.max%":yv,"%Math.min%":mv,"%Math.pow%":Rv,"%Math.round%":qv,"%Math.sign%":hv,"%Reflect.getPrototypeOf%":xv};if(H)try{null.error}catch(e){Eo=H(H(e)),fe["%Error.prototype%"]=Eo}var Eo,Pv=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&&H&&(s=H(a.prototype))}return fe[t]=s,s},Lo={__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=pe(),mt=So(),vv=et.call(Xe,Array.prototype.concat),Cv=et.call(Ho,Array.prototype.splice),Wo=et.call(Xe,String.prototype.replace),Rt=et.call(Xe,String.prototype.slice),Av=et.call(Xe,RegExp.prototype.exec),Bv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tv=/\\(\\)?/g,wv=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 Wo(t,Bv,function(o,i,p,u){a[a.length]=p?Wo(u,Tv,"$1"):i||o}),a},Uv=function(t,s){var n=t,a;if(mt(Lo,n)&&(a=Lo[n],n="%"+a[0]+"%"),mt(fe,n)){var o=fe[n];if(o===He&&(o=Pv(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!")};Qo.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(Av(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=wv(t),a=n.length>0?n[0]:"",o=Uv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],Cv(n,vv([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 h=Ze(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=mt(p,m),p=p[m];x&&!u&&(fe[i]=p)}}return p}});var Oo=q((BB,Mo)=>{"use strict";var Do=Ge(),Gv=it(),Fe=he(),Fo=Ue();Mo.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=!!Fo&&Fo(t,s);if(Do)Do(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 Gv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ko=q((TB,No)=>{"use strict";var Zr=Ge(),Vo=function(){return!!Zr};Vo.hasArrayLengthDefineBug=function(){if(!Zr)return null;try{return Zr([],"length",{value:1}).length!==1}catch{return!0}};No.exports=Vo});var Yo=q((wB,jo)=>{"use strict";var Sv=qt(),$o=Oo(),Ev=Ko()(),zo=Ue(),Jo=he(),Lv=Sv("%Math.floor%");jo.exports=function(t,s){if(typeof t!="function")throw new Jo("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Lv(s)!==s)throw new Jo("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&zo){var i=zo(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(Ev?$o(t,"length",s,!0,!0):$o(t,"length",s)),t}});var si=q((UB,ht)=>{"use strict";var Xr=pe(),bt=qt(),Wv=Yo(),_v=he(),ei=bt("%Function.prototype.apply%"),ti=bt("%Function.prototype.call%"),ri=bt("%Reflect.apply%",!0)||Xr.call(ti,ei),Zo=Ge(),Hv=bt("%Math.max%");ht.exports=function(t){if(typeof t!="function")throw new _v("a function is required");var s=ri(Xr,ti,arguments);return Wv(s,1+Hv(0,t.length-(arguments.length-1)),!0)};var Xo=function(){return ri(Xr,ei,arguments)};Zo?Zo(ht.exports,"apply",{value:Xo}):ht.exports.apply=Xo});var ii=q((GB,oi)=>{"use strict";var ni=qt(),ai=si(),Qv=ai(ni("String.prototype.indexOf"));oi.exports=function(t,s){var n=ni(t,!!s);return typeof n=="function"&&Qv(t,".prototype.")>-1?ai(n):n}});var pi=q(()=>{});var Ti=q((LB,Bi)=>{var us=typeof Map=="function"&&Map.prototype,es=Object.getOwnPropertyDescriptor&&us?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=us&&es&&typeof es.get=="function"?es.get:null,ui=us&&Map.prototype.forEach,cs=typeof Set=="function"&&Set.prototype,ts=Object.getOwnPropertyDescriptor&&cs?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=cs&&ts&&typeof ts.get=="function"?ts.get:null,ci=cs&&Set.prototype.forEach,Dv=typeof WeakMap=="function"&&WeakMap.prototype,rt=Dv?WeakMap.prototype.has:null,Fv=typeof WeakSet=="function"&&WeakSet.prototype,st=Fv?WeakSet.prototype.has:null,Mv=typeof WeakRef=="function"&&WeakRef.prototype,di=Mv?WeakRef.prototype.deref:null,Ov=Boolean.prototype.valueOf,Vv=Object.prototype.toString,Nv=Function.prototype.toString,Kv=String.prototype.match,ds=String.prototype.slice,ue=String.prototype.replace,$v=String.prototype.toUpperCase,li=String.prototype.toLowerCase,Ii=RegExp.prototype.test,gi=Array.prototype.concat,Z=Array.prototype.join,zv=Array.prototype.slice,yi=Math.floor,ns=typeof BigInt=="function"?BigInt.prototype.valueOf:null,rs=Object.getOwnPropertySymbols,as=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,xi=Object.prototype.propertyIsEnumerable,mi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ri(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ii.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yi(-e):yi(e);if(n!==e){var a=String(n),o=ds.call(t,a.length+1);return ue.call(a,s,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,s,"$&_")}var os=pi(),qi=os.custom,hi=vi(qi)?qi:null,ki={__proto__:null,double:'"',single:"'"},Jv={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Bi.exports=function e(t,s,n,a){var o=s||{};if(re(o,"quoteStyle")&&!re(ki,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 Ai(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Ri(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?Ri(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 is(t)?"[Array]":"[Object]";var x=gC(o,n);if(typeof a>"u")a=[];else if(Ci(a,t)>=0)return"[Circular]";function m(Y,ae,ee){if(ae&&(a=zv.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"&&!bi(t)){var k=nC(t),P=ft(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+Z.call(P,", ")+" }":"")}if(vi(t)){var h=Me?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):as.call(t);return typeof t=="object"&&!Me?tt(h):h}if(cC(t)){for(var L="<"+li.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+Pi(jv(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+li.call(String(t.nodeName))+">",L}if(is(t)){if(t.length===0)return"[]";var J=ft(t,m);return x&&!lC(J)?"["+ps(J,x)+"]":"[ "+Z.call(J,", ")+" ]"}if(Zv(t)){var j=ft(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!xi.call(t,"cause")?"{ ["+String(t)+"] "+Z.call(gi.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.call(j,", ")+" }"}if(typeof t=="object"&&i){if(hi&&typeof t[hi]=="function"&&os)return os(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(aC(t)){var de=[];return ui&&ui.call(t,function(Y,ae){de.push(m(ae,t,!0)+" => "+m(Y,t))}),fi("Map",It.call(t),de,x)}if(pC(t)){var Ne=[];return ci&&ci.call(t,function(Y){Ne.push(m(Y,t))}),fi("Set",xt.call(t),Ne,x)}if(oC(t))return ss("WeakMap");if(uC(t))return ss("WeakSet");if(iC(t))return ss("WeakRef");if(eC(t))return tt(m(Number(t)));if(rC(t))return tt(m(ns.call(t)));if(tC(t))return tt(Ov.call(t));if(Xv(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(!Yv(t)&&!bi(t)){var le=ft(t,m),Ke=mi?mi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ne=t instanceof Object?"":"null prototype",Ae=!Ke&&O&&Object(t)===t&&O in t?ds.call(ce(t),8,-1):ne?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=ge+(Ae||ne?"["+Z.call(gi.call([],Ae||[],ne||[]),": ")+"] ":"");return le.length===0?Be+"{}":x?Be+"{"+ps(le,x)+"}":Be+"{ "+Z.call(le,", ")+" }"}return String(t)};function Pi(e,t,s){var n=s.quoteStyle||t,a=ki[n];return a+e+a}function jv(e){return ue.call(String(e),/"/g,"&quot;")}function is(e){return ce(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Yv(e){return ce(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function bi(e){return ce(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function Zv(e){return ce(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Xv(e){return ce(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function eC(e){return ce(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function tC(e){return ce(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function vi(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!as)return!1;try{return as.call(e),!0}catch{}return!1}function rC(e){if(!e||typeof e!="object"||!ns)return!1;try{return ns.call(e),!0}catch{}return!1}var sC=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return sC.call(e,t)}function ce(e){return Vv.call(e)}function nC(e){if(e.name)return e.name;var t=Kv.call(Nv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ci(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 aC(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 oC(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 iC(e){if(!di||!e||typeof e!="object")return!1;try{return di.call(e),!0}catch{}return!1}function pC(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 uC(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 cC(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ai(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Ai(ds.call(e,0,t.maxStringLength),t)+n}var a=Jv[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,dC);return Pi(o,"single",t)}function dC(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":"")+$v.call(t.toString(16))}function tt(e){return"Object("+e+")"}function ss(e){return e+" { ? }"}function fi(e,t,s,n){var a=n?ps(s,n):Z.call(s,", ");return e+" ("+t+") {"+a+"}"}function lC(e){for(var t=0;t<e.length;t++)if(Ci(e[t],`
2
- `)>=0)return!1;return!0}function gC(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 ps(e,t){if(e.length===0)return"";var s=`
1
+ var xk=Object.create;var Et=Object.defineProperty;var kk=Object.getOwnPropertyDescriptor;var Pk=Object.getOwnPropertyNames;var vk=Object.getPrototypeOf,Ck=Object.prototype.hasOwnProperty;var q=(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})},Ak=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Pk(t))!Ck.call(e,a)&&a!==s&&Et(e,a,{get:()=>t[a],enumerable:!(n=kk(t,a))||n.enumerable});return e};var Te=(e,t,s)=>(s=e!=null?xk(vk(e)):{},Ak(t||!e||!e.__esModule?Et(s,"default",{value:e,enumerable:!0}):s,e));var ot=q((zA,Aa)=>{"use strict";Aa.exports=Object});var Sr=q((JA,Ba)=>{"use strict";Ba.exports=Error});var Er=q((jA,Ta)=>{"use strict";Ta.exports=EvalError});var Lr=q((YA,wa)=>{"use strict";wa.exports=RangeError});var Wr=q((ZA,Ua)=>{"use strict";Ua.exports=ReferenceError});var it=q((XA,Ga)=>{"use strict";Ga.exports=SyntaxError});var he=q((eB,Sa)=>{"use strict";Sa.exports=TypeError});var _r=q((tB,Ea)=>{"use strict";Ea.exports=URIError});var Hr=q((rB,La)=>{"use strict";La.exports=Math.abs});var Qr=q((sB,Wa)=>{"use strict";Wa.exports=Math.floor});var Dr=q((nB,_a)=>{"use strict";_a.exports=Math.max});var Fr=q((aB,Ha)=>{"use strict";Ha.exports=Math.min});var Mr=q((oB,Qa)=>{"use strict";Qa.exports=Math.pow});var Or=q((iB,Da)=>{"use strict";Da.exports=Math.round});var Ma=q((pB,Fa)=>{"use strict";Fa.exports=Number.isNaN||function(t){return t!==t}});var Vr=q((uB,Oa)=>{"use strict";var dP=Ma();Oa.exports=function(t){return dP(t)||t===0?t:t<0?-1:1}});var Na=q((cB,Va)=>{"use strict";Va.exports=Object.getOwnPropertyDescriptor});var Ue=q((dB,Ka)=>{"use strict";var pt=Na();if(pt)try{pt([],"length")}catch{pt=null}Ka.exports=pt});var Ge=q((lB,$a)=>{"use strict";var ut=Object.defineProperty||!1;if(ut)try{ut({},"a",{value:1})}catch{ut=!1}$a.exports=ut});var Ja=q((gB,za)=>{"use strict";za.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=q((yB,Ya)=>{"use strict";var ja=typeof Symbol<"u"&&Symbol,lP=Ja();Ya.exports=function(){return typeof ja!="function"||typeof Symbol!="function"||typeof ja("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lP()}});var ct=q((mB,Za)=>{"use strict";Za.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dt=q((RB,Xa)=>{"use strict";var gP=ot();Xa.exports=gP.getPrototypeOf||null});var ro=q((qB,to)=>{"use strict";var yP="Function.prototype.bind called on incompatible ",mP=Object.prototype.toString,RP=Math.max,qP="[object Function]",eo=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},hP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},bP=function(e,t){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=t);return s};to.exports=function(t){var s=this;if(typeof s!="function"||mP.apply(s)!==qP)throw new TypeError(yP+s);for(var n=hP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,eo(n,arguments));return Object(y)===y?y:this}return s.apply(t,eo(n,arguments))},i=RP(0,s.length-n.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+bP(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 pe=q((hB,so)=>{"use strict";var fP=ro();so.exports=Function.prototype.bind||fP});var ze=q((bB,no)=>{"use strict";no.exports=Function.prototype.call});var lt=q((fB,ao)=>{"use strict";ao.exports=Function.prototype.apply});var io=q((IB,oo)=>{"use strict";oo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var uo=q((xB,po)=>{"use strict";var IP=pe(),xP=lt(),kP=ze(),PP=io();po.exports=PP||IP.call(kP,xP)});var lo=q((kB,co)=>{"use strict";var vP=pe(),CP=he(),AP=ze(),BP=uo();co.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new CP("a function is required");return BP(vP,AP,t)}});var ho=q((PB,qo)=>{"use strict";var TP=lo(),go=Ue(),mo;try{mo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Kr=!!mo&&go&&go(Object.prototype,"__proto__"),Ro=Object,yo=Ro.getPrototypeOf;qo.exports=Kr&&typeof Kr.get=="function"?TP([Kr.get]):typeof yo=="function"?function(t){return yo(t==null?t:Ro(t))}:!1});var $r=q((vB,xo)=>{"use strict";var bo=ct(),fo=dt(),Io=ho();xo.exports=bo?function(t){return bo(t)}:fo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return fo(t)}:Io?function(t){return Io(t)}:null});var Po=q((CB,ko)=>{"use strict";var wP=Function.prototype.call,UP=Object.prototype.hasOwnProperty,GP=pe();ko.exports=GP.call(wP,UP)});var Uo=q((AB,wo)=>{"use strict";var C,SP=ot(),EP=Sr(),LP=Er(),WP=Lr(),_P=Wr(),We=it(),Le=he(),HP=_r(),QP=Hr(),DP=Qr(),FP=Dr(),MP=Fr(),OP=Mr(),VP=Or(),NP=Vr(),Bo=Function,zr=function(e){try{return Bo('"use strict"; return ('+e+").constructor;")()}catch{}},Je=Ue(),KP=Ge(),Jr=function(){throw new Le},$P=Je?(function(){try{return arguments.callee,Jr}catch{try{return Je(arguments,"callee").get}catch{return Jr}}})():Jr,Se=Nr()(),_=$r(),zP=dt(),JP=ct(),To=lt(),je=ze(),Ee={},jP=typeof Uint8Array>"u"||!_?C:_(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?C:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?C:ArrayBuffer,"%ArrayIteratorPrototype%":Se&&_?_([][Symbol.iterator]()):C,"%AsyncFromSyncIteratorPrototype%":C,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%Atomics%":typeof Atomics>"u"?C:Atomics,"%BigInt%":typeof BigInt>"u"?C:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?C:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?C:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?C:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":EP,"%eval%":eval,"%EvalError%":LP,"%Float32Array%":typeof Float32Array>"u"?C:Float32Array,"%Float64Array%":typeof Float64Array>"u"?C:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?C:FinalizationRegistry,"%Function%":Bo,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?C:Int8Array,"%Int16Array%":typeof Int16Array>"u"?C:Int16Array,"%Int32Array%":typeof Int32Array>"u"?C:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Se&&_?_(_([][Symbol.iterator]())):C,"%JSON%":typeof JSON=="object"?JSON:C,"%Map%":typeof Map>"u"?C:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Se||!_?C:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":SP,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?C:Promise,"%Proxy%":typeof Proxy>"u"?C:Proxy,"%RangeError%":WP,"%ReferenceError%":_P,"%Reflect%":typeof Reflect>"u"?C:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?C:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Se||!_?C:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?C:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Se&&_?_(""[Symbol.iterator]()):C,"%Symbol%":Se?Symbol:C,"%SyntaxError%":We,"%ThrowTypeError%":$P,"%TypedArray%":jP,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?C:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?C:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?C:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?C:Uint32Array,"%URIError%":HP,"%WeakMap%":typeof WeakMap>"u"?C:WeakMap,"%WeakRef%":typeof WeakRef>"u"?C:WeakRef,"%WeakSet%":typeof WeakSet>"u"?C:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":To,"%Object.defineProperty%":KP,"%Object.getPrototypeOf%":zP,"%Math.abs%":QP,"%Math.floor%":DP,"%Math.max%":FP,"%Math.min%":MP,"%Math.pow%":OP,"%Math.round%":VP,"%Math.sign%":NP,"%Reflect.getPrototypeOf%":JP};if(_)try{null.error}catch(e){vo=_(_(e)),be["%Error.prototype%"]=vo}var vo,YP=function e(t){var s;if(t==="%AsyncFunction%")s=zr("async function () {}");else if(t==="%GeneratorFunction%")s=zr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=zr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(s=_(a.prototype))}return be[t]=s,s},Co={__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=pe(),gt=Po(),ZP=Ye.call(je,Array.prototype.concat),XP=Ye.call(To,Array.prototype.splice),Ao=Ye.call(je,String.prototype.replace),yt=Ye.call(je,String.prototype.slice),ev=Ye.call(je,RegExp.prototype.exec),tv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rv=/\\(\\)?/g,sv=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 Ao(t,tv,function(o,i,p,u){a[a.length]=p?Ao(u,rv,"$1"):i||o}),a},nv=function(t,s){var n=t,a;if(gt(Co,n)&&(a=Co[n],n="%"+a[0]+"%"),gt(be,n)){var o=be[n];if(o===Ee&&(o=YP(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(ev(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sv(t),a=n.length>0?n[0]:"",o=nv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],XP(n,ZP([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 h=Je(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=gt(p,m),p=p[m];x&&!u&&(be[i]=p)}}return p}});var So=q((BB,Go)=>{"use strict";var av=Function.prototype.call,ov=Object.prototype.hasOwnProperty,iv=pe();Go.exports=iv.call(av,ov)});var qt=q((TB,Qo)=>{"use strict";var v,pv=ot(),uv=Sr(),cv=Er(),dv=Lr(),lv=Wr(),De=it(),Qe=he(),gv=_r(),yv=Hr(),mv=Qr(),Rv=Dr(),qv=Fr(),hv=Mr(),bv=Or(),fv=Vr(),_o=Function,jr=function(e){try{return _o('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=Ue(),Iv=Ge(),Yr=function(){throw new Qe},xv=Ze?(function(){try{return arguments.callee,Yr}catch{try{return Ze(arguments,"callee").get}catch{return Yr}}})():Yr,_e=Nr()(),H=$r(),kv=dt(),Pv=ct(),Ho=lt(),Xe=ze(),He={},vv=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%":uv,"%eval%":eval,"%EvalError%":cv,"%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%":_o,"%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%":pv,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":dv,"%ReferenceError%":lv,"%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%":xv,"%TypedArray%":vv,"%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%":gv,"%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%":Ho,"%Object.defineProperty%":Iv,"%Object.getPrototypeOf%":kv,"%Math.abs%":yv,"%Math.floor%":mv,"%Math.max%":Rv,"%Math.min%":qv,"%Math.pow%":hv,"%Math.round%":bv,"%Math.sign%":fv,"%Reflect.getPrototypeOf%":Pv};if(H)try{null.error}catch(e){Eo=H(H(e)),fe["%Error.prototype%"]=Eo}var Eo,Cv=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&&H&&(s=H(a.prototype))}return fe[t]=s,s},Lo={__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=pe(),mt=So(),Av=et.call(Xe,Array.prototype.concat),Bv=et.call(Ho,Array.prototype.splice),Wo=et.call(Xe,String.prototype.replace),Rt=et.call(Xe,String.prototype.slice),Tv=et.call(Xe,RegExp.prototype.exec),wv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uv=/\\(\\)?/g,Gv=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 Wo(t,wv,function(o,i,p,u){a[a.length]=p?Wo(u,Uv,"$1"):i||o}),a},Sv=function(t,s){var n=t,a;if(mt(Lo,n)&&(a=Lo[n],n="%"+a[0]+"%"),mt(fe,n)){var o=fe[n];if(o===He&&(o=Cv(n)),typeof o>"u"&&!s)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new De("intrinsic "+t+" does not exist!")};Qo.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(Tv(/^%?[^%]*%?$/,t)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Gv(t),a=n.length>0?n[0]:"",o=Sv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],Bv(n,Av([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 h=Ze(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=mt(p,m),p=p[m];x&&!u&&(fe[i]=p)}}return p}});var Oo=q((wB,Mo)=>{"use strict";var Do=Ge(),Ev=it(),Fe=he(),Fo=Ue();Mo.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=!!Fo&&Fo(t,s);if(Do)Do(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 Ev("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ko=q((UB,No)=>{"use strict";var Zr=Ge(),Vo=function(){return!!Zr};Vo.hasArrayLengthDefineBug=function(){if(!Zr)return null;try{return Zr([],"length",{value:1}).length!==1}catch{return!0}};No.exports=Vo});var Yo=q((GB,jo)=>{"use strict";var Lv=qt(),$o=Oo(),Wv=Ko()(),zo=Ue(),Jo=he(),_v=Lv("%Math.floor%");jo.exports=function(t,s){if(typeof t!="function")throw new Jo("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||_v(s)!==s)throw new Jo("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&zo){var i=zo(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(Wv?$o(t,"length",s,!0,!0):$o(t,"length",s)),t}});var si=q((SB,ht)=>{"use strict";var Xr=pe(),bt=qt(),Hv=Yo(),Qv=he(),ei=bt("%Function.prototype.apply%"),ti=bt("%Function.prototype.call%"),ri=bt("%Reflect.apply%",!0)||Xr.call(ti,ei),Zo=Ge(),Dv=bt("%Math.max%");ht.exports=function(t){if(typeof t!="function")throw new Qv("a function is required");var s=ri(Xr,ti,arguments);return Hv(s,1+Dv(0,t.length-(arguments.length-1)),!0)};var Xo=function(){return ri(Xr,ei,arguments)};Zo?Zo(ht.exports,"apply",{value:Xo}):ht.exports.apply=Xo});var ii=q((EB,oi)=>{"use strict";var ni=qt(),ai=si(),Fv=ai(ni("String.prototype.indexOf"));oi.exports=function(t,s){var n=ni(t,!!s);return typeof n=="function"&&Fv(t,".prototype.")>-1?ai(n):n}});var pi=q(()=>{});var Ti=q((_B,Bi)=>{var us=typeof Map=="function"&&Map.prototype,es=Object.getOwnPropertyDescriptor&&us?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=us&&es&&typeof es.get=="function"?es.get:null,ui=us&&Map.prototype.forEach,cs=typeof Set=="function"&&Set.prototype,ts=Object.getOwnPropertyDescriptor&&cs?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=cs&&ts&&typeof ts.get=="function"?ts.get:null,ci=cs&&Set.prototype.forEach,Mv=typeof WeakMap=="function"&&WeakMap.prototype,rt=Mv?WeakMap.prototype.has:null,Ov=typeof WeakSet=="function"&&WeakSet.prototype,st=Ov?WeakSet.prototype.has:null,Vv=typeof WeakRef=="function"&&WeakRef.prototype,di=Vv?WeakRef.prototype.deref:null,Nv=Boolean.prototype.valueOf,Kv=Object.prototype.toString,$v=Function.prototype.toString,zv=String.prototype.match,ds=String.prototype.slice,ue=String.prototype.replace,Jv=String.prototype.toUpperCase,li=String.prototype.toLowerCase,Ii=RegExp.prototype.test,gi=Array.prototype.concat,Z=Array.prototype.join,jv=Array.prototype.slice,yi=Math.floor,ns=typeof BigInt=="function"?BigInt.prototype.valueOf:null,rs=Object.getOwnPropertySymbols,as=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,xi=Object.prototype.propertyIsEnumerable,mi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ri(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ii.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yi(-e):yi(e);if(n!==e){var a=String(n),o=ds.call(t,a.length+1);return ue.call(a,s,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,s,"$&_")}var os=pi(),qi=os.custom,hi=vi(qi)?qi:null,ki={__proto__:null,double:'"',single:"'"},Yv={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Bi.exports=function e(t,s,n,a){var o=s||{};if(re(o,"quoteStyle")&&!re(ki,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 Ai(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Ri(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?Ri(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 is(t)?"[Array]":"[Object]";var x=mC(o,n);if(typeof a>"u")a=[];else if(Ci(a,t)>=0)return"[Circular]";function m(Y,ae,ee){if(ae&&(a=jv.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"&&!bi(t)){var k=oC(t),P=ft(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+Z.call(P,", ")+" }":"")}if(vi(t)){var h=Me?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):as.call(t);return typeof t=="object"&&!Me?tt(h):h}if(lC(t)){for(var L="<"+li.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+Pi(Zv(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+li.call(String(t.nodeName))+">",L}if(is(t)){if(t.length===0)return"[]";var J=ft(t,m);return x&&!yC(J)?"["+ps(J,x)+"]":"[ "+Z.call(J,", ")+" ]"}if(eC(t)){var j=ft(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!xi.call(t,"cause")?"{ ["+String(t)+"] "+Z.call(gi.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Z.call(j,", ")+" }"}if(typeof t=="object"&&i){if(hi&&typeof t[hi]=="function"&&os)return os(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(iC(t)){var de=[];return ui&&ui.call(t,function(Y,ae){de.push(m(ae,t,!0)+" => "+m(Y,t))}),fi("Map",It.call(t),de,x)}if(cC(t)){var Ne=[];return ci&&ci.call(t,function(Y){Ne.push(m(Y,t))}),fi("Set",xt.call(t),Ne,x)}if(pC(t))return ss("WeakMap");if(dC(t))return ss("WeakSet");if(uC(t))return ss("WeakRef");if(rC(t))return tt(m(Number(t)));if(nC(t))return tt(m(ns.call(t)));if(sC(t))return tt(Nv.call(t));if(tC(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(!Xv(t)&&!bi(t)){var le=ft(t,m),Ke=mi?mi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ne=t instanceof Object?"":"null prototype",Ae=!Ke&&O&&Object(t)===t&&O in t?ds.call(ce(t),8,-1):ne?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=ge+(Ae||ne?"["+Z.call(gi.call([],Ae||[],ne||[]),": ")+"] ":"");return le.length===0?Be+"{}":x?Be+"{"+ps(le,x)+"}":Be+"{ "+Z.call(le,", ")+" }"}return String(t)};function Pi(e,t,s){var n=s.quoteStyle||t,a=ki[n];return a+e+a}function Zv(e){return ue.call(String(e),/"/g,"&quot;")}function is(e){return ce(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Xv(e){return ce(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function bi(e){return ce(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function eC(e){return ce(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function tC(e){return ce(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function rC(e){return ce(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function sC(e){return ce(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function vi(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!as)return!1;try{return as.call(e),!0}catch{}return!1}function nC(e){if(!e||typeof e!="object"||!ns)return!1;try{return ns.call(e),!0}catch{}return!1}var aC=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return aC.call(e,t)}function ce(e){return Kv.call(e)}function oC(e){if(e.name)return e.name;var t=zv.call($v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ci(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 iC(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 pC(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 uC(e){if(!di||!e||typeof e!="object")return!1;try{return di.call(e),!0}catch{}return!1}function cC(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 dC(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 lC(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ai(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Ai(ds.call(e,0,t.maxStringLength),t)+n}var a=Yv[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,gC);return Pi(o,"single",t)}function gC(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":"")+Jv.call(t.toString(16))}function tt(e){return"Object("+e+")"}function ss(e){return e+" { ? }"}function fi(e,t,s,n){var a=n?ps(s,n):Z.call(s,", ");return e+" ("+t+") {"+a+"}"}function yC(e){for(var t=0;t<e.length;t++)if(Ci(e[t],`
2
+ `)>=0)return!1;return!0}function mC(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 ps(e,t){if(e.length===0)return"";var s=`
3
3
  `+t.prev+t.base;return s+Z.call(e,","+s)+`
4
- `+t.prev}function ft(e,t){var s=is(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 rs=="function"?rs(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(s&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(Ii.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof rs=="function")for(var r=0;r<o.length;r++)xi.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Ui=q((WB,wi)=>{"use strict";var ls=Uo(),Oe=ii(),yC=Ti(),mC=ls("%TypeError%"),kt=ls("%WeakMap%",!0),Pt=ls("%Map%",!0),RC=Oe("WeakMap.prototype.get",!0),qC=Oe("WeakMap.prototype.set",!0),hC=Oe("WeakMap.prototype.has",!0),bC=Oe("Map.prototype.get",!0),fC=Oe("Map.prototype.set",!0),IC=Oe("Map.prototype.has",!0),gs=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},xC=function(e,t){var s=gs(e,t);return s&&s.value},kC=function(e,t,s){var n=gs(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},PC=function(e,t){return!!gs(e,t)};wi.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new mC("Side channel does not contain "+yC(o))},get:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return RC(t,o)}else if(Pt){if(s)return bC(s,o)}else if(n)return xC(n,o)},has:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return hC(t,o)}else if(Pt){if(s)return IC(s,o)}else if(n)return PC(n,o);return!1},set:function(o,i){kt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new kt),qC(t,o,i)):Pt?(s||(s=new Pt),fC(s,o,i)):(n||(n={key:{},next:null}),kC(n,o,i))}};return a}});var vt=q((_B,Gi)=>{"use strict";var vC=String.prototype.replace,CC=/%20/g,ys={RFC1738:"RFC1738",RFC3986:"RFC3986"};Gi.exports={default:ys.RFC3986,formatters:{RFC1738:function(e){return vC.call(e,CC,"+")},RFC3986:function(e){return String(e)}},RFC1738:ys.RFC1738,RFC3986:ys.RFC3986}});var Rs=q((HB,Ei)=>{"use strict";var AC=vt(),ms=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})(),BC=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}}},Si=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},TC=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)||!ms.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=Si(t,n)),Ie(t)&&Ie(s)?(s.forEach(function(o,i){if(ms.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 ms.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},wC=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},UC=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}},GC=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===AC.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},SC=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 BC(s),t},EC=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},LC=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},WC=function(t,s){return[].concat(t,s)},_C=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)};Ei.exports={arrayToObject:Si,assign:wC,combine:WC,compact:SC,decode:UC,encode:GC,isBuffer:LC,isRegExp:EC,maybeMap:_C,merge:TC}});var Di=q((QB,Qi)=>{"use strict";var _i=Ui(),hs=Rs(),nt=vt(),HC=Object.prototype.hasOwnProperty,Li={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},se=Array.isArray,QC=String.prototype.split,DC=Array.prototype.push,Hi=function(e,t){DC.apply(e,se(t)?t:[t])},FC=Date.prototype.toISOString,Wi=nt.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hs.encode,encodeValuesOnly:!1,format:Wi,formatter:nt.formatters[Wi],indices:!1,serializeDate:function(t){return FC.call(t)},skipNulls:!1,strictNullHandling:!1},MC=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},qs={},OC=function e(t,s,n,a,o,i,p,u,r,y,x,m,k,P,h,L){for(var I=t,K=L,J=0,j=!1;(K=K.get(qs))!==void 0&&!j;){var de=K.get(t);if(J+=1,typeof de<"u"){if(de===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(qs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&se(I)&&(I=hs.maybeMap(I,function(St){return St instanceof Date?x(St):St})),I===null){if(o)return p&&!P?p(s,F.encoder,h,"key",m):s;I=""}if(MC(I)||hs.isBuffer(I)){if(p){var Ne=P?s:p(s,F.encoder,h,"key",m);if(n==="comma"&&P){for(var le=QC.call(String(I),","),Ke="",ne=0;ne<le.length;++ne)Ke+=(ne===0?"":",")+k(p(le[ne],F.encoder,h,"value",m));return[k(Ne)+(a&&se(I)&&le.length===1?"[]":"")+"="+Ke]}return[k(Ne)+"="+k(p(I,F.encoder,h,"value",m))]}return[k(s)+"="+k(String(I))]}var Ae=[];if(typeof I>"u")return Ae;var ge;if(n==="comma"&&se(I))ge=[{value:I.length>0?I.join(",")||null:void 0}];else if(se(u))ge=u;else{var Be=Object.keys(I);ge=r?Be.sort(r):Be}for(var Y=a&&se(I)&&I.length===1?s+"[]":s,ae=0;ae<ge.length;++ae){var ee=ge[ae],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:I[ee];if(!(i&&$e===null)){var bk=se(I)?typeof n=="function"?n(Y,ee):Y:Y+(y?"."+ee:"["+ee+"]");L.set(t,J);var xa=_i();xa.set(qs,L),Hi(Ae,e($e,bk,n,a,o,i,p,u,r,y,x,m,k,P,h,xa))}}return Ae},VC=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(!HC.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}};Qi.exports=function(e,t){var s=e,n=VC(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 Li?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Li[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=_i(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Hi(i,OC(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 Oi=q((DB,Mi)=>{"use strict";var Ve=Rs(),bs=Object.prototype.hasOwnProperty,NC=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},KC=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Fi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},$C="utf8=%26%2310003%3B",zC="utf8=%E2%9C%93",JC=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]===zC?r="utf-8":i[u]===$C&&(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(Fi(y.slice(m+1),s),function(h){return s.decoder(h,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=KC(P)),y.indexOf("[]=")>-1&&(P=NC(P)?[P]:P),bs.call(n,k)?n[k]=Ve.combine(n[k],P):n[k]=P}return n},jC=function(e,t,s,n){for(var a=n?t:Fi(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},YC=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&&bs.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&&bs.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),jC(y,s,n,a)}},ZC=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}};Mi.exports=function(e,t){var s=ZC(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?JC(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=YC(p,n[p],s,typeof e=="string");a=Ve.merge(a,u,s)}return s.allowSparse===!0?a:Ve.compact(a)}});var xe=q((FB,Vi)=>{"use strict";var XC=Di(),eA=Oi(),tA=vt();Vi.exports={formats:tA,parse:eA,stringify:XC}});var W={};te(W,{HttpClient:()=>at,HttpError:()=>oe,createHttpClient:()=>Tk,isHttpError:()=>ye,isNetworkError:()=>Bk,isNetworkOrIdempotentRequestError:()=>Pa});var Ck=()=>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},ye=e=>e instanceof oe||typeof e=="object"&&e!==null&&e.isHttpError===!0,Ak=["get","head","options","put","delete"],Bk=e=>ye(e)&&!e.response,Pa=e=>{if(!ye(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return Ak.includes(t)&&e.response.status>=500&&e.response.status<=599},Tk=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(!ye(a)||o||n>s.retries||!await(s.retryCondition??Pa)(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=wk(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;ka(o,this.defaults.headers),ka(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(Uk(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 h=new AbortController;y=setTimeout(()=>{r=!0,h.abort()},p),u.push(h.signal)}let x=this.defaults.debug??!1,m=x?Ck():void 0,k=Date.now();x&&console.debug(Lk(a,o,m));let P=h=>{if(r)return new oe(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,h);if(t.signal?.aborted||this.defaults.signal?.aborted)return new oe("canceled",a,"ERR_CANCELED",void 0,h);let L=h?.cause,I=h?.message??"Network Error";return new oe(I,a,L?.code??"ERR_NETWORK",void 0,h)};try{let h=await fetch(n,{method:s,headers:o,body:i,signal:Sk(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};h.headers.forEach((j,de)=>{L[de]=j});let I,K=t.responseType??"json";if(!h.ok||K==="json"||K==="text"){let j=await h.text();I=!h.ok||K==="json"?Gk(j):j}else K==="arraybuffer"?I=await h.arrayBuffer():I=h.body?Ek(h.body):void 0;let J={data:I,status:h.status,statusText:h.statusText,headers:L,config:a};if(x&&console.debug(Wk(J,m,k)),!h.ok)throw new oe(`Request failed with status code ${h.status}`,a,void 0,J);return J}catch(h){let L=ye(h)?h:P(h);throw x&&!L.response&&console.debug(_k(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},wk=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,ka=(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)}},Uk=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,Gk=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Sk=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*Ek(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 Lk=(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
- `},Wk=(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
- `,_k=(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 Gu={};te(Gu,{Client:()=>fs});var $={};te($,{getClientConfig:()=>$k});import{isBrowser as va,isNode as Hk}from"browser-or-node";var Qk="https://api.botpress.cloud",Dk=6e4,Fk=!1,Mk="BP_API_URL",Ok="BP_BOT_ID",Vk="BP_INTEGRATION_ID",Nk="BP_WORKSPACE_ID",Kk="BP_TOKEN";function $k(e){let t=zk(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??Qk,a=t.timeout??Dk,o=t.debug??Fk;return{apiUrl:n,timeout:a,withCredentials:va,headers:s,debug:o}}function zk(e){return va?e:Hk?Jk(e):e}function Jk(e){let t={...e,apiUrl:e.apiUrl??process.env[Mk],botId:e.botId??process.env[Ok],integrationId:e.integrationId??process.env[Vk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Nk]},s=t.token??process.env[Kk];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:()=>rP});var jk={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},Yk=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:jk,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(Yk.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Zk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Xk=e=>e instanceof T||Zk(e)&&e.isApiError===!0,me=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Wt=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},_t=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Ht=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)}},Qt=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Dt=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ft=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)}},Mt=class extends T{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Ot=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Vt=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Nt=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)}},Kt=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)}},$t=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)}},zt=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)}},Jt=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)}},jt=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Yt=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)}},Zt=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)}},Xt=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)}},er=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},tr=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},rr=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},sr=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)}},nr=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)}},ar=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)}},or=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},eP={Unknown:me,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=>Xk(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(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=eP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var ie=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var rP=e=>ye(e)&&e.response?.data?we(e.response.data):we(e);var sP={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},nP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:sP,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(nP.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"}},aP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,oP=e=>e instanceof w||aP(e)&&e.isApiError===!0,qe=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ir=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},pr=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ur=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)}},cr=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},dr=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},lr=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)}},gr=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},yr=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},mr=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Rr=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)}},qr=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)}},hr=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)}},br=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)}},fr=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)}},Ir=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},xr=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)}},kr=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)}},Pr=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)}},vr=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Cr=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ar=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Br=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)}},Tr=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)}},wr=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)}},Ur=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},iP={Unknown:qe,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:Cr,PaymentRequired:Ar,QuotaExceeded:Br,LimitExceeded:Tr,BreakingChanges:wr,OperationTimeout:Ur},Gr=e=>oP(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):pP(e);function pP(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=iP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Ni=Te(xe()),rA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(rA),p=Object.fromEntries(i),u=Ni.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 Ki=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var zi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ji=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 Zi=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 ep=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 rp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});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/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var lp=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 yp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rp=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 hp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=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 xp=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 Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Bp=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 wp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gp=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 Ep=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Wp=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 Hp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dp=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 Mp=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 Vp=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 Kp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=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 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:{}});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:{payload:e.payload,expiry:e.expiry}});var eu=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 ru=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 nu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ou=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var pu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var cu=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var lu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var yu=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 Ru=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=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 fu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xu=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 Pu=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 Cu=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 Bu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var wu=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ct=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=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:"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}=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)})};listConversations=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:"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}=Zi(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}=ep(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}=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)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=np(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=op(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=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:"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}=cp(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}=lp(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}=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)})};listEvents=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)})};cancelScheduledEvent=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:"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}=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)})};getOrCreateMessage=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:"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}=Pp(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}=Cp(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}=Bp(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}=wp(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}=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)})};importMessages=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)})};createUser=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)})};getUser=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)})};listUsers=async t=>{let{path:s,headers:n,query:a,body:o}=Dp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=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:"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}=Vp(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}=Kp(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}=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)})};getState=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:"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}=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)})};getOrSetState=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:"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}=ru(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}=nu(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}=ou(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}=pu(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)})};getIntegrationInstanceIdentifiers=async t=>{let{path:s,headers:n,query:a,body:o}=cu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=lu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=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:"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}=Ru(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}=hu(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}=fu(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}=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)})};getOrCreateWorkflow=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)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Cu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Bu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=wu(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 fs=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{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 Mg={};te(Mg,{Client:()=>$s});var nA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},aA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:nA,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(aA.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"}},oA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,iA=e=>e instanceof U||oA(e)&&e.isApiError===!0,ke=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Is=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},xs=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ks=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)}},Ps=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},vs=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Cs=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)}},As=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Bs=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Ts=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ws=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)}},Us=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)}},Gs=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)}},Ss=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)}},Es=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)}},Ls=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Ws=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)}},_s=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)}},Hs=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)}},Qs=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Ds=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Fs=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ms=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)}},Os=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)}},Vs=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)}},Ns=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},pA={Unknown:ke,Internal:Is,Unauthorized:xs,Forbidden:ks,PayloadTooLarge:Ps,InvalidPayload:vs,UnsupportedMediaType:Cs,MethodNotFound:As,ResourceNotFound:Bs,InvalidJsonSchema:Ts,InvalidDataFormat:ws,InvalidIdentifier:Us,RelationConflict:Gs,ReferenceConstraint:Ss,ResourceLockedConflict:Es,ResourceGone:Ls,ReferenceNotFound:Ws,InvalidQuery:_s,Runtime:Hs,AlreadyExists:Qs,RateLimited:Ds,PaymentRequired:Fs,QuotaExceeded:Ms,LimitExceeded:Os,BreakingChanges:Vs,OperationTimeout:Ns},Ks=e=>iA(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):uA(e);function uA(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=pA[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 Su=Te(xe()),cA=e=>e[1]!==void 0,l=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(cA),p=Object.fromEntries(i),u=Su.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 Eu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Du=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ku=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ju=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 ec=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var nc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var oc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var yc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Rc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fc=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 xc=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 Pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Cc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Bc=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 wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ec=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 Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Dc=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 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`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jc=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 ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});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)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Rd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var hd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var fd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Cd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Ed=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/cancellation-reason`,headers:{},query:{},params:{id:e.id},body:{reasons:e.reasons,comment:e.comment}});var Wd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Hd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vd=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 Kd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Zd=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 el=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var rl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var nl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ll=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var yl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Rl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var hl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var xl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Pl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Cl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Bl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=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 Gl=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 El=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 Hl=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 Dl=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 Ml=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vl=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 Kl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Zl=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 eg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ng=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var cg=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 lg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Rg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hg=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 fg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Cg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Bg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var wg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Gg=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 Eg=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 Hg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Dg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var At=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=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:"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}=Wu(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}=Hu(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}=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)})};listPersonalAccessTokens=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:"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}=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)})};deletePersonalAccessToken=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=zu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};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}=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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)})};updateBot=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:"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}=Pc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=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:"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}=Bc(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}=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)})};deleteBot=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:"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}=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=Mc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=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)})};deleteBotIssue=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=zc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};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}=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)})};publishFromBotJson=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)})};createBotVersion=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)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=od(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=yd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=hd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=xd(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}=Pd(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}=Cd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=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:"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}=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)})};chargeWorkspaceUnpaidInvoices=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:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};saveWorkspaceCancellationReasons=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)})};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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=Kd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=el(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=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)})};listPublicWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=nl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=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:"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}=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)})};setWorkspacePreference=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:"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}=ll(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}=yl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=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:"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}=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)})};createIntegrationApiKey=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:"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}=Bl(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}=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)})};validateIntegrationCreation=async t=>{let{path:s,headers:n,query:a,body:o}=Gl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=El(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=Hl(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}=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)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Ml(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=Vl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=Kl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=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:"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}=jl(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}=Zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:s,headers:n,query:a,body:o}=eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=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)})};updateInterface=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:"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}=og(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}=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)})};createPlugin=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:"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}=lg(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}=yg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=hg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=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:"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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=wg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=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)})};listUsageActivityDaily=async t=>{let{path:s,headers:n,query:a,body:o}=Eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=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)})};introspect=async t=>{let{path:s,headers:n,query:a,body:o}=Dg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"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?Ks(t):Ks(e)}var $s=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{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 jy={};te(jy,{Client:()=>In});var lA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},gA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:lA,G=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(gA.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"}},yA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,mA=e=>e instanceof G||yA(e)&&e.isApiError===!0,Pe=class extends G{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},zs=class extends G{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Js=class extends G{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},js=class extends G{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},Ys=class extends G{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Zs=class extends G{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Xs=class extends G{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},en=class extends G{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},tn=class extends G{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},rn=class extends G{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},sn=class extends G{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},nn=class extends G{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)}},an=class extends G{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)}},on=class extends G{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},pn=class extends G{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)}},un=class extends G{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},cn=class extends G{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)}},dn=class extends G{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)}},ln=class extends G{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},gn=class extends G{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},yn=class extends G{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},mn=class extends G{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Rn=class extends G{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)}},qn=class extends G{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)}},hn=class extends G{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)}},bn=class extends G{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},RA={Unknown:Pe,Internal:zs,Unauthorized:Js,Forbidden:js,PayloadTooLarge:Ys,InvalidPayload:Zs,UnsupportedMediaType:Xs,MethodNotFound:en,ResourceNotFound:tn,InvalidJsonSchema:rn,InvalidDataFormat:sn,InvalidIdentifier:nn,RelationConflict:an,ReferenceConstraint:on,ResourceLockedConflict:pn,ResourceGone:un,ReferenceNotFound:cn,InvalidQuery:dn,Runtime:ln,AlreadyExists:gn,RateLimited:yn,PaymentRequired:mn,QuotaExceeded:Rn,LimitExceeded:qn,BreakingChanges:hn,OperationTimeout:bn},fn=e=>mA(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):qA(e);function qA(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=RA[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 Og=Te(xe()),hA=e=>e[1]!==void 0,A=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(hA),p=Object.fromEntries(i),u=Og.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 Vg=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var Kg=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var zg=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 jg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Zg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var ey=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var ry=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var ny=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var oy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var py=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var cy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var ly=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var yy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var Ry=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var hy=e=>({path:"/v2/billing/subscriptions/pending-subscription-upgrade/cancel",headers:{},query:{},params:{},body:{}});var fy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var xy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Py=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Cy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var By=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var wy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var Gy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Ey=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Wy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Hy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Dy=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var My=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Vy=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var Ky=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var zy=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}=Vg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Kg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=zg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=jg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Zg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=ey(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=ry(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=ny(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=oy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=py(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=cy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=ly(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=yy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Ry(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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)})};cancelPendingSubscriptionUpgrade=async t=>{let{path:s,headers:n,query:a,body:o}=hy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=fy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=xy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Py(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Cy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=By(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=wy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Gy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Ey(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Wy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Hy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Dy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=My(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Vy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Ky(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=zy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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 B(e){let t=e?.response?.data;return t?fn(t):fn(e)}var In=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 Tm={};te(Tm,{Client:()=>zn});var fA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},IA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:fA,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(IA.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,kA=e=>e instanceof S||xA(e)&&e.isApiError===!0,ve=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},xn=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},kn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Pn=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)}},vn=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)}},An=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)}},Bn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Tn=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Un=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)}},Gn=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)}},Sn=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)}},En=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)}},Ln=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)}},Wn=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},_n=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)}},Hn=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)}},Qn=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)}},Dn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Fn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},On=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)}},Vn=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)}},Nn=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)}},Kn=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},PA={Unknown:ve,Internal:xn,Unauthorized:kn,Forbidden:Pn,PayloadTooLarge:vn,InvalidPayload:Cn,UnsupportedMediaType:An,MethodNotFound:Bn,ResourceNotFound:Tn,InvalidJsonSchema:wn,InvalidDataFormat:Un,InvalidIdentifier:Gn,RelationConflict:Sn,ReferenceConstraint:En,ResourceLockedConflict:Ln,ResourceGone:Wn,ReferenceNotFound:_n,InvalidQuery:Hn,Runtime:Qn,AlreadyExists:Dn,RateLimited:Fn,PaymentRequired:Mn,QuotaExceeded:On,LimitExceeded:Vn,BreakingChanges:Nn,OperationTimeout:Kn},$n=e=>kA(e)?e:e instanceof Error?new ve(e.message,e):typeof e=="string"?new ve(e):vA(e);function vA(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=PA[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 Yy=Te(xe()),CA=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(CA),p=Object.fromEntries(i),u=Yy.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 Zy=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 em=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rm=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var nm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var om=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var pm=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var cm=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 lm=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 ym=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Rm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var hm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var fm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var xm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pm=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 Cm=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}=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)})};deleteFile=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:"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}=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)})};getFile=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)})};updateFileMetadata=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)})};copyFile=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:"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}=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)})};listFilePassages=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:"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}=ym(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}=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)})};listFileTagValues=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)})};createKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=fm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"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}=xm(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}=Pm(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}=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)})}};function N(e){let t=e?.response?.data;return t?$n(t):$n(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}),h={"Content-Type":P.contentType};x&&(h["x-amz-tagging"]="public=true");try{await new W.HttpClient().put(P.uploadUrl,m,{headers:h})}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 zn=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 dR={};te(dR,{Client:()=>Ia});var BA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},TA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:BA,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(TA.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"}},wA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,UA=e=>e instanceof E||wA(e)&&e.isApiError===!0,Ce=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)}},jn=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Yn=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)}},Zn=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Xn=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},ea=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)}},ta=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},ra=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},na=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)}},aa=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)}},oa=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)}},ia=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)}},pa=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)}},ua=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},ca=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)}},da=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)}},la=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)}},ga=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},ya=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ra=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)}},qa=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)}},ha=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)}},ba=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},GA={Unknown:Ce,Internal:Jn,Unauthorized:jn,Forbidden:Yn,PayloadTooLarge:Zn,InvalidPayload:Xn,UnsupportedMediaType:ea,MethodNotFound:ta,ResourceNotFound:ra,InvalidJsonSchema:sa,InvalidDataFormat:na,InvalidIdentifier:aa,RelationConflict:oa,ReferenceConstraint:ia,ResourceLockedConflict:pa,ResourceGone:ua,ReferenceNotFound:ca,InvalidQuery:da,Runtime:la,AlreadyExists:ga,RateLimited:ya,PaymentRequired:ma,QuotaExceeded:Ra,LimitExceeded:qa,BreakingChanges:ha,OperationTimeout:ba},fa=e=>UA(e)?e:e instanceof Error?new Ce(e.message,e):typeof e=="string"?new Ce(e):SA(e);function SA(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=GA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ce("An invalid error occurred: "+JSON.stringify(e))}var wm=Te(xe()),EA=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(EA),p=Object.fromEntries(i),u=wm.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 Um=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Sm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Lm=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 _m=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 Qm=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 Fm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Om=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Nm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var $m=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 Jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ym=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Xm=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 sR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var aR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var iR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var uR=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}=Um(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}=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)})};getOrCreateTable=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:"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}=_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)})};duplicateTable=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:"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}=Fm(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}=Om(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}=Nm(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}=$m(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}=Jm(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}=Ym(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}=Xm(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}=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)})};createTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=sR(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}=aR(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}=iR(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}=uR(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?fa(t):fa(e)}var Ia=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 lR=Te(xe()),WA=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(WA),p=Object.fromEntries(i),u=lR.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 gR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,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",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 bR=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 IR=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 kR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var AR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var TR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var SR=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 LR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=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 QR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var FR=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 OR=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 NR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var JR=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 YR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=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 sq=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 aq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,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 uq=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 dq=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 gq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mq=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 qq=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 bq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Iq=e=>({path:`/v1/chat/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 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 vq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Aq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Tq=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Uq=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var Sq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Lq=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 _q=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qq=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 Fq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oq=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 Nq=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 Jq=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Yq=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 Xq=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var th=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var sh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ah=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ih=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var uh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var dh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var mh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var qh=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 bh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ih=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var kh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var vh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ah=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Uh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Sh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Lh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _h=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Qh=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 Fh=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 Oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Nh=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 Jh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xh=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 tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ab=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 ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Ab=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 Tb=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 Ub=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 Sb=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 Lb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var _b=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Qb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Nb=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 Jb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Yb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/cancellation-reason`,headers:{},query:{},params:{id:e.id},body:{reasons:e.reasons,comment:e.comment}});var tf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var cf=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 yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var hf=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 ff=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var xf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Pf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var wf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Gf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ef=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Wf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Hf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Df=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Mf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Vf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Kf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var zf=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jf=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 Zf=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 eI=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 rI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var nI=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 oI=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 pI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cI=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 lI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var hI=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 fI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var PI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var CI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var BI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var wI=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 GI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var EI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var WI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var HI=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 DI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var VI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var KI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var zI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var jI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ZI=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 ex=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 rx=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var nx=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var ox=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var px=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 cx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lx=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 yx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rx=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 hx=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 fx=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 xx=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 Px=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Cx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Bx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var wx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Gx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ex=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 Wx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Hx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Mx=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 Vx=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 Kx=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 zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var jx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var ek=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 rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var pk=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 ck=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 yk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Rk=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}=gR(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}=mR(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}=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)})};getOrCreateConversation=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)})};updateConversation=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:"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}=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)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=vR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=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)})};getParticipant=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)})};removeParticipant=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)})};createEvent=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)})};getEvent=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:"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}=_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)})};cancelScheduledEvent=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:"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}=FR(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}=OR(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}=NR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=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:"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}=JR(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}=YR(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}=XR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importMessages=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)})};createUser=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:"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}=aq(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}=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)})};getOrCreateUser=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:"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}=dq(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}=gq(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}=mq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=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:"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}=bq(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}=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)})};patchState=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:"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}=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)})};unlinkIntegrationIdentifier=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)})};getIntegrationIdentifierAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=Tq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationInstanceIdentifiers=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)})};configureIntegration=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:"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}=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)})};getWorkflow=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)})};updateWorkflow=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:"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}=Fq(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}=Oq(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}=Nq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=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)})};captureObservation=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:"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}=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)})};getAccount=async t=>{let{path:s,headers:n,query:a,body:o}=th(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=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:"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}=ah(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}=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)})};createPersonalAccessToken=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:"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}=dh(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}=gh(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}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Th(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=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)})};listPublicInterfaces=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:"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}=Lh(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}=_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)})};createBot=async t=>{let{path:s,headers:n,query:a,body:o}=Qh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=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:"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}=Oh(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}=Nh(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}=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)})};deleteBot=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:"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}=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)})};getBotWebchat=async t=>{let{path:s,headers:n,query:a,body:o}=tb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=gb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=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:"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}=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)})};getBotJson=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:"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}=Ib(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=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:"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}=vb(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}=Ab(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}=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=Sb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Lb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=_b(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=Fb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=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:"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}=Nb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=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)})};chargeWorkspaceUnpaidInvoices=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:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};saveWorkspaceCancellationReasons=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:"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}=tf(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}=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)})};getWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=af(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=async t=>{let{path:s,headers:n,query:a,body:o}=yf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=ff(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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=Bf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=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:"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}=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)})};listWorkspaceMembers=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:"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}=Wf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Hf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=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)})};updateWorkspaceMember=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)})};listIntegrationApiKeys=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:"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}=Kf(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}=zf(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}=jf(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}=Zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=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:"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}=rI(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}=nI(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}=oI(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}=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)})};getIntegrationLogs=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)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=lI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=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)})};requestIntegrationVerification=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:"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}=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)})};getInterface=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=CI(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}=BI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=DI(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}=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)})};getPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=VI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUsage=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)})};getMultipleUsages=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:"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}=jI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=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:"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}=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)})};changeAISpendQuota=async t=>{let{path:s,headers:n,query:a,body:o}=rx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listActivities=async t=>{let{path:s,headers:n,query:a,body:o}=nx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=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)})};upsertFile=async t=>{let{path:s,headers:n,query:a,body:o}=px(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=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:"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}=lx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getFile=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)})};updateFileMetadata=async t=>{let{path:s,headers:n,query:a,body:o}=Rx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=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)})};searchFiles=async t=>{let{path:s,headers:n,query:a,body:o}=fx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFilePassages=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:"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}=Px(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=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)})};listFileTagValues=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)})};createKnowledgeBase=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)})};deleteKnowledgeBase=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:"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}=Ex(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=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)})};listTables=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)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=Dx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=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:"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}=Vx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};duplicateTable=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:"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}=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)})};getTableJobs=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:"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}=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)})};updateTable=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:"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}=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)})};deleteTable=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:"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}=ok(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}=pk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=ck(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}=lk(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}=yk(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}=Rk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function d(e){let t=e?.response?.data;return t?we(t):we(e)}var hk=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,hk 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,me as UnknownError,Ft as UnsupportedMediaTypeError,ie as UploadFileError,Mg as admin,jy as billing,we as errorFrom,Tm as files,W as http,Xk as isApiError,Gu as runtime,dR as tables};
4
+ `+t.prev}function ft(e,t){var s=is(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 rs=="function"?rs(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(s&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(Ii.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof rs=="function")for(var r=0;r<o.length;r++)xi.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Ui=q((HB,wi)=>{"use strict";var ls=Uo(),Oe=ii(),RC=Ti(),qC=ls("%TypeError%"),kt=ls("%WeakMap%",!0),Pt=ls("%Map%",!0),hC=Oe("WeakMap.prototype.get",!0),bC=Oe("WeakMap.prototype.set",!0),fC=Oe("WeakMap.prototype.has",!0),IC=Oe("Map.prototype.get",!0),xC=Oe("Map.prototype.set",!0),kC=Oe("Map.prototype.has",!0),gs=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},PC=function(e,t){var s=gs(e,t);return s&&s.value},vC=function(e,t,s){var n=gs(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},CC=function(e,t){return!!gs(e,t)};wi.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new qC("Side channel does not contain "+RC(o))},get:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return hC(t,o)}else if(Pt){if(s)return IC(s,o)}else if(n)return PC(n,o)},has:function(o){if(kt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return fC(t,o)}else if(Pt){if(s)return kC(s,o)}else if(n)return CC(n,o);return!1},set:function(o,i){kt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new kt),bC(t,o,i)):Pt?(s||(s=new Pt),xC(s,o,i)):(n||(n={key:{},next:null}),vC(n,o,i))}};return a}});var vt=q((QB,Gi)=>{"use strict";var AC=String.prototype.replace,BC=/%20/g,ys={RFC1738:"RFC1738",RFC3986:"RFC3986"};Gi.exports={default:ys.RFC3986,formatters:{RFC1738:function(e){return AC.call(e,BC,"+")},RFC3986:function(e){return String(e)}},RFC1738:ys.RFC1738,RFC3986:ys.RFC3986}});var Rs=q((DB,Ei)=>{"use strict";var TC=vt(),ms=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})(),wC=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}}},Si=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},UC=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)||!ms.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=Si(t,n)),Ie(t)&&Ie(s)?(s.forEach(function(o,i){if(ms.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 ms.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},GC=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},SC=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}},EC=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===TC.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},LC=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 wC(s),t},WC=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},_C=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},HC=function(t,s){return[].concat(t,s)},QC=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)};Ei.exports={arrayToObject:Si,assign:GC,combine:HC,compact:LC,decode:SC,encode:EC,isBuffer:_C,isRegExp:WC,maybeMap:QC,merge:UC}});var Di=q((FB,Qi)=>{"use strict";var _i=Ui(),hs=Rs(),nt=vt(),DC=Object.prototype.hasOwnProperty,Li={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},se=Array.isArray,FC=String.prototype.split,MC=Array.prototype.push,Hi=function(e,t){MC.apply(e,se(t)?t:[t])},OC=Date.prototype.toISOString,Wi=nt.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hs.encode,encodeValuesOnly:!1,format:Wi,formatter:nt.formatters[Wi],indices:!1,serializeDate:function(t){return OC.call(t)},skipNulls:!1,strictNullHandling:!1},VC=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},qs={},NC=function e(t,s,n,a,o,i,p,u,r,y,x,m,k,P,h,L){for(var I=t,K=L,J=0,j=!1;(K=K.get(qs))!==void 0&&!j;){var de=K.get(t);if(J+=1,typeof de<"u"){if(de===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(qs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&se(I)&&(I=hs.maybeMap(I,function(St){return St instanceof Date?x(St):St})),I===null){if(o)return p&&!P?p(s,F.encoder,h,"key",m):s;I=""}if(VC(I)||hs.isBuffer(I)){if(p){var Ne=P?s:p(s,F.encoder,h,"key",m);if(n==="comma"&&P){for(var le=FC.call(String(I),","),Ke="",ne=0;ne<le.length;++ne)Ke+=(ne===0?"":",")+k(p(le[ne],F.encoder,h,"value",m));return[k(Ne)+(a&&se(I)&&le.length===1?"[]":"")+"="+Ke]}return[k(Ne)+"="+k(p(I,F.encoder,h,"value",m))]}return[k(s)+"="+k(String(I))]}var Ae=[];if(typeof I>"u")return Ae;var ge;if(n==="comma"&&se(I))ge=[{value:I.length>0?I.join(",")||null:void 0}];else if(se(u))ge=u;else{var Be=Object.keys(I);ge=r?Be.sort(r):Be}for(var Y=a&&se(I)&&I.length===1?s+"[]":s,ae=0;ae<ge.length;++ae){var ee=ge[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 xa=_i();xa.set(qs,L),Hi(Ae,e($e,Ik,n,a,o,i,p,u,r,y,x,m,k,P,h,xa))}}return Ae},KC=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(!DC.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}};Qi.exports=function(e,t){var s=e,n=KC(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 Li?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Li[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=_i(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Hi(i,NC(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 Oi=q((MB,Mi)=>{"use strict";var Ve=Rs(),bs=Object.prototype.hasOwnProperty,$C=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},zC=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Fi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},JC="utf8=%26%2310003%3B",jC="utf8=%E2%9C%93",YC=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]===jC?r="utf-8":i[u]===JC&&(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(Fi(y.slice(m+1),s),function(h){return s.decoder(h,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=zC(P)),y.indexOf("[]=")>-1&&(P=$C(P)?[P]:P),bs.call(n,k)?n[k]=Ve.combine(n[k],P):n[k]=P}return n},ZC=function(e,t,s,n){for(var a=n?t:Fi(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},XC=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&&bs.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&&bs.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),ZC(y,s,n,a)}},eA=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}};Mi.exports=function(e,t){var s=eA(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?YC(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=XC(p,n[p],s,typeof e=="string");a=Ve.merge(a,u,s)}return s.allowSparse===!0?a:Ve.compact(a)}});var xe=q((OB,Vi)=>{"use strict";var tA=Di(),rA=Oi(),sA=vt();Vi.exports={formats:sA,parse:rA,stringify:tA}});var W={};te(W,{HttpClient:()=>at,HttpError:()=>oe,createHttpClient:()=>Uk,isHttpError:()=>ye,isNetworkError:()=>wk,isNetworkOrIdempotentRequestError:()=>Pa});var Bk=()=>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},ye=e=>e instanceof oe||typeof e=="object"&&e!==null&&e.isHttpError===!0,Tk=["get","head","options","put","delete"],wk=e=>ye(e)&&!e.response,Pa=e=>{if(!ye(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return Tk.includes(t)&&e.response.status>=500&&e.response.status<=599},Uk=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(!ye(a)||o||n>s.retries||!await(s.retryCondition??Pa)(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=Gk(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;ka(o,this.defaults.headers),ka(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(Sk(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 h=new AbortController;y=setTimeout(()=>{r=!0,h.abort()},p),u.push(h.signal)}let x=this.defaults.debug??!1,m=x?Bk():void 0,k=Date.now();x&&console.debug(_k(a,o,m));let P=h=>{if(r)return new oe(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,h);if(t.signal?.aborted||this.defaults.signal?.aborted)return new oe("canceled",a,"ERR_CANCELED",void 0,h);let L=h?.cause,I=h?.message??"Network Error";return new oe(I,a,L?.code??"ERR_NETWORK",void 0,h)};try{let h=await fetch(n,{method:s,headers:o,body:i,signal:Lk(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};h.headers.forEach((j,de)=>{L[de]=j});let I,K=t.responseType??"json";if(!h.ok||K==="json"||K==="text"){let j=await h.text();I=!h.ok||K==="json"?Ek(j):j}else K==="arraybuffer"?I=await h.arrayBuffer():I=h.body?Wk(h.body):void 0;let J={data:I,status:h.status,statusText:h.statusText,headers:L,config:a};if(x&&console.debug(Hk(J,m,k)),!h.ok)throw new oe(`Request failed with status code ${h.status}`,a,void 0,J);return J}catch(h){let L=ye(h)?h:P(h);throw x&&!L.response&&console.debug(Qk(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},Gk=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,ka=(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)}},Sk=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,Ek=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Lk=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*Wk(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 _k=(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
+ `},Hk=(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
+ `,Qk=(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 Gu={};te(Gu,{Client:()=>fs});var $={};te($,{getClientConfig:()=>Jk});import{isBrowser as va,isNode as Dk}from"browser-or-node";var Fk="https://api.botpress.cloud",Mk=6e4,Ok=!1,Vk="BP_API_URL",Nk="BP_BOT_ID",Kk="BP_INTEGRATION_ID",$k="BP_WORKSPACE_ID",zk="BP_TOKEN";function Jk(e){let t=jk(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??Fk,a=t.timeout??Mk,o=t.debug??Ok;return{apiUrl:n,timeout:a,withCredentials:va,headers:s,debug:o}}function jk(e){return va?e:Dk?Yk(e):e}function Yk(e){let t={...e,apiUrl:e.apiUrl??process.env[Vk],botId:e.botId??process.env[Nk],integrationId:e.integrationId??process.env[Kk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[$k]},s=t.token??process.env[zk];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:()=>nP});var Zk={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},Xk=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:Zk,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(Xk.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"}},eP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tP=e=>e instanceof T||eP(e)&&e.isApiError===!0,me=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Wt=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},_t=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Ht=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)}},Qt=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Dt=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ft=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)}},Mt=class extends T{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Ot=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Vt=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Nt=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)}},Kt=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)}},$t=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)}},zt=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)}},Jt=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)}},jt=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Yt=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)}},Zt=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)}},Xt=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)}},er=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},tr=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},rr=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},sr=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)}},nr=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)}},ar=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)}},or=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},rP={Unknown:me,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=>tP(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(e):sP(e);function sP(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=rP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var ie=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var nP=e=>ye(e)&&e.response?.data?we(e.response.data):we(e);var aP={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},oP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:aP,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(oP.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"}},iP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,pP=e=>e instanceof w||iP(e)&&e.isApiError===!0,qe=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ir=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},pr=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ur=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)}},cr=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},dr=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},lr=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)}},gr=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},yr=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},mr=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Rr=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)}},qr=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)}},hr=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)}},br=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)}},fr=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)}},Ir=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},xr=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)}},kr=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)}},Pr=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)}},vr=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Cr=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ar=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Br=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)}},Tr=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)}},wr=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)}},Ur=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},uP={Unknown:qe,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:Cr,PaymentRequired:Ar,QuotaExceeded:Br,LimitExceeded:Tr,BreakingChanges:wr,OperationTimeout:Ur},Gr=e=>pP(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):cP(e);function cP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=uP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Ni=Te(xe()),nA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(nA),p=Object.fromEntries(i),u=Ni.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 Ki=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var zi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ji=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 Zi=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 ep=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 rp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});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/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var lp=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 yp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rp=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 hp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=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 xp=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 Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Bp=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 wp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gp=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 Ep=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Wp=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 Hp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dp=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 Mp=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 Vp=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 Kp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zp=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 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:{}});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:{payload:e.payload,expiry:e.expiry}});var eu=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 ru=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 nu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ou=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var pu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var cu=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var lu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var yu=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 Ru=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=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 fu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xu=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 Pu=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 Cu=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 Bu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var wu=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ct=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=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:"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}=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)})};listConversations=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:"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}=Zi(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}=ep(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}=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)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=np(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=op(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=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:"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}=cp(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}=lp(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}=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)})};listEvents=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)})};cancelScheduledEvent=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:"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}=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)})};getOrCreateMessage=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:"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}=Pp(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}=Cp(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}=Bp(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}=wp(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}=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)})};importMessages=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)})};createUser=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)})};getUser=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)})};listUsers=async t=>{let{path:s,headers:n,query:a,body:o}=Dp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=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:"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}=Vp(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}=Kp(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}=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)})};getState=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:"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}=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)})};getOrSetState=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:"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}=ru(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}=nu(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}=ou(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}=pu(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)})};getIntegrationInstanceIdentifiers=async t=>{let{path:s,headers:n,query:a,body:o}=cu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=lu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=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:"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}=Ru(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}=hu(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}=fu(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}=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)})};getOrCreateWorkflow=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)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Cu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=Bu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=wu(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 fs=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{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 Mg={};te(Mg,{Client:()=>$s});var oA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},iA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:oA,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(iA.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"}},pA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uA=e=>e instanceof U||pA(e)&&e.isApiError===!0,ke=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Is=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},xs=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},ks=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)}},Ps=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},vs=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Cs=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)}},As=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Bs=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Ts=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ws=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)}},Us=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)}},Gs=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)}},Ss=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)}},Es=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)}},Ls=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Ws=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)}},_s=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)}},Hs=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)}},Qs=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Ds=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Fs=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ms=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)}},Os=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)}},Vs=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)}},Ns=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},cA={Unknown:ke,Internal:Is,Unauthorized:xs,Forbidden:ks,PayloadTooLarge:Ps,InvalidPayload:vs,UnsupportedMediaType:Cs,MethodNotFound:As,ResourceNotFound:Bs,InvalidJsonSchema:Ts,InvalidDataFormat:ws,InvalidIdentifier:Us,RelationConflict:Gs,ReferenceConstraint:Ss,ResourceLockedConflict:Es,ResourceGone:Ls,ReferenceNotFound:Ws,InvalidQuery:_s,Runtime:Hs,AlreadyExists:Qs,RateLimited:Ds,PaymentRequired:Fs,QuotaExceeded:Ms,LimitExceeded:Os,BreakingChanges:Vs,OperationTimeout:Ns},Ks=e=>uA(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):dA(e);function dA(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=cA[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 Su=Te(xe()),lA=e=>e[1]!==void 0,l=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(lA),p=Object.fromEntries(i),u=Su.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 Eu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Du=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ku=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ju=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 ec=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var nc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var oc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var yc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Rc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fc=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 xc=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 Pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Cc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Bc=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 wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ec=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 Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Dc=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 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`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jc=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 ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});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)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Rd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var hd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var fd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Cd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Ed=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/cancellation-reason`,headers:{},query:{},params:{id:e.id},body:{reasons:e.reasons,comment:e.comment}});var Wd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var Hd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vd=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 Kd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Zd=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 el=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var rl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var nl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ll=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var yl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Rl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var hl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var xl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Pl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Cl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Bl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=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 Gl=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 El=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 Hl=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 Dl=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 Ml=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vl=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 Kl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Zl=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 eg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ng=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var cg=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 lg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Rg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hg=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 fg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Cg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Bg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var wg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Gg=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 Eg=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 Hg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Dg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var At=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=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:"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}=Wu(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}=Hu(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}=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)})};listPersonalAccessTokens=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:"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}=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)})};deletePersonalAccessToken=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=zu(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};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}=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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)})};updateBot=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:"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}=Pc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=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:"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}=Bc(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}=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)})};deleteBot=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:"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}=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=Mc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssues=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)})};deleteBotIssue=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=zc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};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}=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)})};publishFromBotJson=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)})};createBotVersion=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)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=od(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=yd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=hd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=xd(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}=Pd(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}=Cd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=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:"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}=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)})};chargeWorkspaceUnpaidInvoices=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:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};saveWorkspaceCancellationReasons=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)})};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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=Kd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=el(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=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)})};listPublicWorkspaces=async t=>{let{path:s,headers:n,query:a,body:o}=nl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspace=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:"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}=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)})};setWorkspacePreference=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:"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}=ll(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}=yl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=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:"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}=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)})};createIntegrationApiKey=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:"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}=Bl(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}=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)})};validateIntegrationCreation=async t=>{let{path:s,headers:n,query:a,body:o}=Gl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=El(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=Hl(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}=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)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Ml(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=Vl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=Kl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegration=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:"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}=jl(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}=Zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:s,headers:n,query:a,body:o}=eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterfaceByName=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)})};updateInterface=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:"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}=og(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}=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)})};createPlugin=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:"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}=lg(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}=yg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=hg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=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:"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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=wg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=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)})};listUsageActivityDaily=async t=>{let{path:s,headers:n,query:a,body:o}=Eg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=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)})};introspect=async t=>{let{path:s,headers:n,query:a,body:o}=Dg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"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?Ks(t):Ks(e)}var $s=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{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 Zy={};te(Zy,{Client:()=>In});var yA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},mA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:yA,G=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(mA.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"}},RA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,qA=e=>e instanceof G||RA(e)&&e.isApiError===!0,Pe=class extends G{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},zs=class extends G{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Js=class extends G{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},js=class extends G{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},Ys=class extends G{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Zs=class extends G{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Xs=class extends G{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},en=class extends G{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},tn=class extends G{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},rn=class extends G{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},sn=class extends G{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},nn=class extends G{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)}},an=class extends G{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)}},on=class extends G{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},pn=class extends G{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)}},un=class extends G{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},cn=class extends G{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)}},dn=class extends G{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)}},ln=class extends G{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},gn=class extends G{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},yn=class extends G{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},mn=class extends G{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Rn=class extends G{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)}},qn=class extends G{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)}},hn=class extends G{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)}},bn=class extends G{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},hA={Unknown:Pe,Internal:zs,Unauthorized:Js,Forbidden:js,PayloadTooLarge:Ys,InvalidPayload:Zs,UnsupportedMediaType:Xs,MethodNotFound:en,ResourceNotFound:tn,InvalidJsonSchema:rn,InvalidDataFormat:sn,InvalidIdentifier:nn,RelationConflict:an,ReferenceConstraint:on,ResourceLockedConflict:pn,ResourceGone:un,ReferenceNotFound:cn,InvalidQuery:dn,Runtime:ln,AlreadyExists:gn,RateLimited:yn,PaymentRequired:mn,QuotaExceeded:Rn,LimitExceeded:qn,BreakingChanges:hn,OperationTimeout:bn},fn=e=>qA(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):bA(e);function bA(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=hA[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 Og=Te(xe()),fA=e=>e[1]!==void 0,A=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(fA),p=Object.fromEntries(i),u=Og.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 Vg=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var Kg=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var zg=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 jg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var Zg=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var ey=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var ry=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var ny=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var oy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var py=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var cy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var ly=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var yy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var Ry=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var hy=e=>({path:"/v2/billing/subscriptions/pending-subscription-upgrade/cancel",headers:{},query:{},params:{},body:{}});var fy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var xy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Py=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Cy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var By=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var wy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var Gy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Ey=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Wy=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Hy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Dy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var My=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Vy=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Ky=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var zy=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var jy=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}=Vg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Kg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=zg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=jg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Zg(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=ey(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=ry(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=ny(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=oy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=py(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=cy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=ly(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=yy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Ry(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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)})};cancelPendingSubscriptionUpgrade=async t=>{let{path:s,headers:n,query:a,body:o}=hy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=fy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=xy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Py(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Cy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=By(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=wy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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)})};listCreditGrants=async t=>{let{path:s,headers:n,query:a,body:o}=Gy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({method:"get",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}=Ey(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Wy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Hy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Dy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=My(t),i=this.props.toRequest??A,p=this.props.toApiError??B,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}=Vy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=Ky(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=zy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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}=jy(t),i=this.props.toRequest??A,p=this.props.toApiError??B,u=i({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 B(e){let t=e?.response?.data;return t?fn(t):fn(e)}var In=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 Um={};te(Um,{Client:()=>zn});var xA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},kA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:xA,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(kA.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"}},PA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,vA=e=>e instanceof S||PA(e)&&e.isApiError===!0,ve=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},xn=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},kn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Pn=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)}},vn=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)}},An=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)}},Bn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Tn=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Un=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)}},Gn=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)}},Sn=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)}},En=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)}},Ln=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)}},Wn=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},_n=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)}},Hn=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)}},Qn=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)}},Dn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Fn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},On=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)}},Vn=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)}},Nn=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)}},Kn=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},CA={Unknown:ve,Internal:xn,Unauthorized:kn,Forbidden:Pn,PayloadTooLarge:vn,InvalidPayload:Cn,UnsupportedMediaType:An,MethodNotFound:Bn,ResourceNotFound:Tn,InvalidJsonSchema:wn,InvalidDataFormat:Un,InvalidIdentifier:Gn,RelationConflict:Sn,ReferenceConstraint:En,ResourceLockedConflict:Ln,ResourceGone:Wn,ReferenceNotFound:_n,InvalidQuery:Hn,Runtime:Qn,AlreadyExists:Dn,RateLimited:Fn,PaymentRequired:Mn,QuotaExceeded:On,LimitExceeded:Vn,BreakingChanges:Nn,OperationTimeout:Kn},$n=e=>vA(e)?e:e instanceof Error?new ve(e.message,e):typeof e=="string"?new ve(e):AA(e);function AA(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=CA[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 Xy=Te(xe()),BA=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(BA),p=Object.fromEntries(i),u=Xy.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 em=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var rm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nm=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 om=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pm=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 cm=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 lm=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 ym=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 Rm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var hm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var fm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var xm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Pm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cm=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 Bm=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}=em(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}=rm(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}=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)})};getFile=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:"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}=pm(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}=cm(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}=lm(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}=ym(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setFilePassages=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)})};listFileTags=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)})};listFileTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=fm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"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}=xm(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}=Pm(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}=Cm(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}=Bm(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?$n(t):$n(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}),h={"Content-Type":P.contentType};x&&(h["x-amz-tagging"]="public=true");try{await new W.HttpClient().put(P.uploadUrl,m,{headers:h})}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 zn=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 gR={};te(gR,{Client:()=>Ia});var wA={getRandomValues:e=>{if(e===null)throw new TypeError("getRandomValues polyfill requires a non-null typed array");let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let s=0;s<t.length;s++)t[s]=Math.floor(Math.random()*256);return e}},UA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:wA,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(UA.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"}},GA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,SA=e=>e instanceof E||GA(e)&&e.isApiError===!0,Ce=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)}},jn=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Yn=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)}},Zn=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Xn=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},ea=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)}},ta=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},ra=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},na=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)}},aa=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)}},oa=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)}},ia=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)}},pa=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)}},ua=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},ca=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)}},da=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)}},la=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)}},ga=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},ya=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ra=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)}},qa=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)}},ha=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)}},ba=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},EA={Unknown:Ce,Internal:Jn,Unauthorized:jn,Forbidden:Yn,PayloadTooLarge:Zn,InvalidPayload:Xn,UnsupportedMediaType:ea,MethodNotFound:ta,ResourceNotFound:ra,InvalidJsonSchema:sa,InvalidDataFormat:na,InvalidIdentifier:aa,RelationConflict:oa,ReferenceConstraint:ia,ResourceLockedConflict:pa,ResourceGone:ua,ReferenceNotFound:ca,InvalidQuery:da,Runtime:la,AlreadyExists:ga,RateLimited:ya,PaymentRequired:ma,QuotaExceeded:Ra,LimitExceeded:qa,BreakingChanges:ha,OperationTimeout:ba},fa=e=>SA(e)?e:e instanceof Error?new Ce(e.message,e):typeof e=="string"?new Ce(e):LA(e);function LA(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=EA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ce("An invalid error occurred: "+JSON.stringify(e))}var Gm=Te(xe()),WA=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(WA),p=Object.fromEntries(i),u=Gm.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 Sm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Lm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var _m=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 Qm=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 Fm=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 Om=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Nm=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 Jm=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 Ym=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Xm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var tR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var sR=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 aR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var iR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var uR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var dR=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}=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)})};getTable=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)})};getOrCreateTable=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)})};createTable=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:"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}=Fm(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}=Om(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}=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)})};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}=Jm(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}=Ym(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}=Xm(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}=tR(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}=sR(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}=aR(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}=iR(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}=uR(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}=dR(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?fa(t):fa(e)}var Ia=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 yR=Te(xe()),HA=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(HA),p=Object.fromEntries(i),u=yR.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 mR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var qR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bR=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 IR=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 kR=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 vR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var TR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var SR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var LR=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 _R=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var QR=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 FR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=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 NR=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 JR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var YR=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 XR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tq=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 sq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var aq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var iq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uq=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 dq=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 gq=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 mq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qq=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 bq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Iq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var kq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var 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:{payload:e.payload,expiry:e.expiry}});var Aq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Tq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Uq=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Sq=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var Lq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var _q=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 Qq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=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 Oq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nq=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 $q=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 Jq=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 Yq=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Xq=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 th=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var sh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ah=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ih=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var uh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var dh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var gh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var qh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var bh=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 Ih=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 vh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Ah=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Uh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Lh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var _h=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fh=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 Oh=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 Nh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var $h=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Jh=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 Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tb=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 sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ib=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 ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ib=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 vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Tb=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 Ub=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 Sb=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 Lb=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 _b=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Qb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Fb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Nb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var $b=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Yb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/cancellation-reason`,headers:{},query:{},params:{id:e.id},body:{reasons:e.reasons,comment:e.comment}});var sf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var yf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var ff=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 xf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Pf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Cf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Bf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var Gf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ef=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Wf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Hf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Df=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Vf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Kf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var zf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var jf=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zf=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 eI=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 rI=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 nI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var oI=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 pI=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 cI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lI=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 yI=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 hI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var fI=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 xI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var CI=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 BI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var GI=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 EI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var WI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var HI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var DI=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 MI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var VI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var KI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var zI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var ZI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ex=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 rx=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 nx=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ox=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var px=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var cx=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 lx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yx=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 hx=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 fx=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 xx=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 Px=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 Cx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Bx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var wx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var Gx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Ex=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wx=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 Hx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Dx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Mx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vx=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 Kx=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 zx=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 jx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var rk=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 nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var lk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var yk=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 hk=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}=mR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getConversation=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)})};listConversations=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:"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}=IR(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}=kR(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}=vR(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}=AR(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}=TR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=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)})};removeParticipant=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:"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}=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)})};getEvent=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)})};listEvents=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)})};cancelScheduledEvent=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:"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}=OR(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}=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)})};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}=JR(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}=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)})};deleteMessage=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:"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}=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)})};importMessages=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:"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}=aq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUser=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)})};listUsers=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)})};getOrCreateUser=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)})};updateUser=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:"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}=mq(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}=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)})};getState=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:"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}=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)})};getOrSetState=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)})};patchState=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:"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}=Aq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};unlinkIntegrationIdentifier=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:"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}=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)})};getIntegrationInstanceIdentifiers=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)})};configureIntegration=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)})};createWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=_q(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=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:"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}=Fq(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}=Oq(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}=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)})};getOrCreateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=$q(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Jq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};trackAnalytics=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:"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}=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)})};runVrl=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)})};getAccount=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:"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}=ah(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}=ih(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPersonalAccessTokens=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)})};createPersonalAccessToken=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:"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}=gh(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}=mh(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}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=Th(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPlugin=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)})};getPublicPluginCode=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:"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}=Lh(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}=_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)})};getPublicInterface=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)})};createBot=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:"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}=Oh(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}=Nh(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}=$h(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=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)})};getBot=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)})};deleteBot=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:"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}=tb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=async t=>{let{path:s,headers:n,query:a,body:o}=db(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotIssue=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:"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}=mb(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}=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)})};getBotVersion=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:"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}=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)})};publishFromBotJson=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:"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}=vb(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}=Ab(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}=Tb(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}=Ub(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}=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)})};unlinkSandboxedConversations=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:"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}=_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)})};createBotApiKey=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)})};deleteBotApiKey=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:"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}=Ob(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=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:"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}=$b(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};saveWorkspaceCancellationReasons=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:"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}=sf(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}=af(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=yf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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:"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}=ff(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}=xf(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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=wf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=Gf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=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:"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}=Wf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=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:"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}=Df(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Mf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspaceMember=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:"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}=Kf(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}=zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationApiKey=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:"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}=Zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationCreation=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:"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}=rI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};rotateIntegrationSigningSecrets=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)})};validateIntegrationUpdate=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:"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}=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)})};getIntegration=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)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=lI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=yI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=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)})};createInterface=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:"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}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=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)})};listInterfaces=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=MI(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}=VI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginCode=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)})};getUsage=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:"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}=jI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageHistory=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:"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}=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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)})};listActivities=async t=>{let{path:s,headers:n,query:a,body:o}=ox(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};introspect=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:"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}=cx(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}=lx(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}=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)})};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}=hx(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}=fx(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}=xx(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}=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)})};setFilePassages=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:"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}=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)})};listFileTagValues=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)})};createKnowledgeBase=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)})};deleteKnowledgeBase=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:"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}=Wx(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}=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)})};listTables=async t=>{let{path:s,headers:n,query:a,body:o}=Dx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=Mx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Vx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=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:"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}=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)})};exportTable=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:"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}=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)})};importTable=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)})};updateTable=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)})};renameTableColumn=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:"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}=ok(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}=pk(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}=ck(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}=lk(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}=yk(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}=hk(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 fk=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,fk 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,me as UnknownError,Ft as UnsupportedMediaTypeError,ie as UploadFileError,Mg as admin,Zy as billing,we as errorFrom,Um as files,W as http,tP as isApiError,Gu as runtime,gR as tables};
7
7
  //# sourceMappingURL=index.mjs.map