@botpress/client 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +5 -5
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +53 -3
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/bundle.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var vk=Object.create;var it=Object.defineProperty;var Ck=Object.getOwnPropertyDescriptor;var Ak=Object.getOwnPropertyNames;var Bk=Object.getPrototypeOf,Tk=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var s in t)it(e,s,{get:t[s],enumerable:!0})},Ua=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ak(t))!Tk.call(e,a)&&a!==s&&it(e,a,{get:()=>t[a],enumerable:!(n=Ck(t,a))||n.enumerable});return e};var me=(e,t,s)=>(s=e!=null?vk(Bk(e)):{},Ua(t||!e||!e.__esModule?it(s,"default",{value:e,enumerable:!0}):s,e)),wk=e=>Ua(it({},"__esModule",{value:!0}),e);var Ea=q(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var Ok=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vk=typeof window<"u"&&typeof window.document<"u",Nk=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Kk=(typeof self>"u"?"undefined":Ok(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",$k=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),zk=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";qe.isBrowser=Vk;qe.isWebWorker=Kk;qe.isNode=Nk;qe.isJsDom=$k;qe.isDeno=zk});var Et=q((rB,_a)=>{"use strict";_a.exports=Object});var Lr=q((sB,Ha)=>{"use strict";Ha.exports=Error});var Wr=q((nB,Qa)=>{"use strict";Qa.exports=EvalError});var _r=q((aB,Da)=>{"use strict";Da.exports=RangeError});var Hr=q((oB,Fa)=>{"use strict";Fa.exports=ReferenceError});var Lt=q((iB,Ma)=>{"use strict";Ma.exports=SyntaxError});var Ie=q((pB,Oa)=>{"use strict";Oa.exports=TypeError});var Qr=q((uB,Va)=>{"use strict";Va.exports=URIError});var Dr=q((cB,Na)=>{"use strict";Na.exports=Math.abs});var Fr=q((dB,Ka)=>{"use strict";Ka.exports=Math.floor});var Mr=q((lB,$a)=>{"use strict";$a.exports=Math.max});var Or=q((gB,za)=>{"use strict";za.exports=Math.min});var Vr=q((yB,Ja)=>{"use strict";Ja.exports=Math.pow});var Nr=q((mB,ja)=>{"use strict";ja.exports=Math.round});var Za=q((RB,Ya)=>{"use strict";Ya.exports=Number.isNaN||function(t){return t!==t}});var Kr=q((qB,Xa)=>{"use strict";var hP=Za();Xa.exports=function(t){return hP(t)||t===0?t:t<0?-1:1}});var to=q((hB,eo)=>{"use strict";eo.exports=Object.getOwnPropertyDescriptor});var Ge=q((bB,ro)=>{"use strict";var Wt=to();if(Wt)try{Wt([],"length")}catch{Wt=null}ro.exports=Wt});var Se=q((fB,so)=>{"use strict";var _t=Object.defineProperty||!1;if(_t)try{_t({},"a",{value:1})}catch{_t=!1}so.exports=_t});var ao=q((IB,no)=>{"use strict";no.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 $r=q((xB,io)=>{"use strict";var oo=typeof Symbol<"u"&&Symbol,bP=ao();io.exports=function(){return typeof oo!="function"||typeof Symbol!="function"||typeof oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bP()}});var Ht=q((kB,po)=>{"use strict";po.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Qt=q((PB,uo)=>{"use strict";var fP=Et();uo.exports=fP.getPrototypeOf||null});var go=q((vB,lo)=>{"use strict";var IP="Function.prototype.bind called on incompatible ",xP=Object.prototype.toString,kP=Math.max,PP="[object Function]",co=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},vP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},CP=function(e,t){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=t);return s};lo.exports=function(t){var s=this;if(typeof s!="function"||xP.apply(s)!==PP)throw new TypeError(IP+s);for(var n=vP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,co(n,arguments));return Object(y)===y?y:this}return s.apply(t,co(n,arguments))},i=kP(0,s.length-n.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+CP(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 ue=q((CB,yo)=>{"use strict";var AP=go();yo.exports=Function.prototype.bind||AP});var je=q((AB,mo)=>{"use strict";mo.exports=Function.prototype.call});var Dt=q((BB,Ro)=>{"use strict";Ro.exports=Function.prototype.apply});var ho=q((TB,qo)=>{"use strict";qo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var fo=q((wB,bo)=>{"use strict";var BP=ue(),TP=Dt(),wP=je(),UP=ho();bo.exports=UP||BP.call(wP,TP)});var xo=q((UB,Io)=>{"use strict";var GP=ue(),SP=Ie(),EP=je(),LP=fo();Io.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new SP("a function is required");return LP(GP,EP,t)}});var Bo=q((GB,Ao)=>{"use strict";var WP=xo(),ko=Ge(),vo;try{vo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var zr=!!vo&&ko&&ko(Object.prototype,"__proto__"),Co=Object,Po=Co.getPrototypeOf;Ao.exports=zr&&typeof zr.get=="function"?WP([zr.get]):typeof Po=="function"?function(t){return Po(t==null?t:Co(t))}:!1});var Jr=q((SB,Go)=>{"use strict";var To=Ht(),wo=Qt(),Uo=Bo();Go.exports=To?function(t){return To(t)}:wo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return wo(t)}:Uo?function(t){return Uo(t)}:null});var Eo=q((EB,So)=>{"use strict";var _P=Function.prototype.call,HP=Object.prototype.hasOwnProperty,QP=ue();So.exports=QP.call(_P,HP)});var Fo=q((LB,Do)=>{"use strict";var C,DP=Et(),FP=Lr(),MP=Wr(),OP=_r(),VP=Hr(),_e=Lt(),We=Ie(),NP=Qr(),KP=Dr(),$P=Fr(),zP=Mr(),JP=Or(),jP=Vr(),YP=Nr(),ZP=Kr(),Ho=Function,jr=function(e){try{return Ho('"use strict"; return ('+e+").constructor;")()}catch{}},Ye=Ge(),XP=Se(),Yr=function(){throw new We},ev=Ye?(function(){try{return arguments.callee,Yr}catch{try{return Ye(arguments,"callee").get}catch{return Yr}}})():Yr,Ee=$r()(),_=Jr(),tv=Qt(),rv=Ht(),Qo=Dt(),Ze=je(),Le={},sv=typeof Uint8Array>"u"||!_?C:_(Uint8Array),xe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?C:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?C:ArrayBuffer,"%ArrayIteratorPrototype%":Ee&&_?_([][Symbol.iterator]()):C,"%AsyncFromSyncIteratorPrototype%":C,"%AsyncFunction%":Le,"%AsyncGenerator%":Le,"%AsyncGeneratorFunction%":Le,"%AsyncIteratorPrototype%":Le,"%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%":FP,"%eval%":eval,"%EvalError%":MP,"%Float32Array%":typeof Float32Array>"u"?C:Float32Array,"%Float64Array%":typeof Float64Array>"u"?C:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?C:FinalizationRegistry,"%Function%":Ho,"%GeneratorFunction%":Le,"%Int8Array%":typeof Int8Array>"u"?C:Int8Array,"%Int16Array%":typeof Int16Array>"u"?C:Int16Array,"%Int32Array%":typeof Int32Array>"u"?C:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ee&&_?_(_([][Symbol.iterator]())):C,"%JSON%":typeof JSON=="object"?JSON:C,"%Map%":typeof Map>"u"?C:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ee||!_?C:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":DP,"%Object.getOwnPropertyDescriptor%":Ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?C:Promise,"%Proxy%":typeof Proxy>"u"?C:Proxy,"%RangeError%":OP,"%ReferenceError%":VP,"%Reflect%":typeof Reflect>"u"?C:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?C:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ee||!_?C:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?C:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ee&&_?_(""[Symbol.iterator]()):C,"%Symbol%":Ee?Symbol:C,"%SyntaxError%":_e,"%ThrowTypeError%":ev,"%TypedArray%":sv,"%TypeError%":We,"%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%":NP,"%WeakMap%":typeof WeakMap>"u"?C:WeakMap,"%WeakRef%":typeof WeakRef>"u"?C:WeakRef,"%WeakSet%":typeof WeakSet>"u"?C:WeakSet,"%Function.prototype.call%":Ze,"%Function.prototype.apply%":Qo,"%Object.defineProperty%":XP,"%Object.getPrototypeOf%":tv,"%Math.abs%":KP,"%Math.floor%":$P,"%Math.max%":zP,"%Math.min%":JP,"%Math.pow%":jP,"%Math.round%":YP,"%Math.sign%":ZP,"%Reflect.getPrototypeOf%":rv};if(_)try{null.error}catch(e){Lo=_(_(e)),xe["%Error.prototype%"]=Lo}var Lo,nv=function e(t){var s;if(t==="%AsyncFunction%")s=jr("async function () {}");else if(t==="%GeneratorFunction%")s=jr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=jr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(s=_(a.prototype))}return xe[t]=s,s},Wo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xe=ue(),Ft=Eo(),av=Xe.call(Ze,Array.prototype.concat),ov=Xe.call(Qo,Array.prototype.splice),_o=Xe.call(Ze,String.prototype.replace),Mt=Xe.call(Ze,String.prototype.slice),iv=Xe.call(Ze,RegExp.prototype.exec),pv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uv=/\\(\\)?/g,cv=function(t){var s=Mt(t,0,1),n=Mt(t,-1);if(s==="%"&&n!=="%")throw new _e("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new _e("invalid intrinsic syntax, expected opening `%`");var a=[];return _o(t,pv,function(o,i,p,u){a[a.length]=p?_o(u,uv,"$1"):i||o}),a},dv=function(t,s){var n=t,a;if(Ft(Wo,n)&&(a=Wo[n],n="%"+a[0]+"%"),Ft(xe,n)){var o=xe[n];if(o===Le&&(o=nv(n)),typeof o>"u"&&!s)throw new We("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new _e("intrinsic "+t+" does not exist!")};Do.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new We("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new We('"allowMissing" argument must be a boolean');if(iv(/^%?[^%]*%?$/,t)===null)throw new _e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=cv(t),a=n.length>0?n[0]:"",o=dv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],ov(n,av([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Mt(m,0,1),P=Mt(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new _e("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Ft(xe,i))p=xe[i];else if(p!=null){if(!(m in p)){if(!s)throw new We("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ye&&y+1>=n.length){var h=Ye(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=Ft(p,m),p=p[m];x&&!u&&(xe[i]=p)}}return p}});var Oo=q((WB,Mo)=>{"use strict";var lv=Function.prototype.call,gv=Object.prototype.hasOwnProperty,yv=ue();Mo.exports=yv.call(lv,gv)});var Nt=q((_B,Jo)=>{"use strict";var v,mv=Et(),Rv=Lr(),qv=Wr(),hv=_r(),bv=Hr(),Fe=Lt(),De=Ie(),fv=Qr(),Iv=Dr(),xv=Fr(),kv=Mr(),Pv=Or(),vv=Vr(),Cv=Nr(),Av=Kr(),$o=Function,Zr=function(e){try{return $o('"use strict"; return ('+e+").constructor;")()}catch{}},et=Ge(),Bv=Se(),Xr=function(){throw new De},Tv=et?(function(){try{return arguments.callee,Xr}catch{try{return et(arguments,"callee").get}catch{return Xr}}})():Xr,He=$r()(),H=Jr(),wv=Qt(),Uv=Ht(),zo=Dt(),tt=je(),Qe={},Gv=typeof Uint8Array>"u"||!H?v:H(Uint8Array),ke={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":He&&H?H([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Qe,"%AsyncGenerator%":Qe,"%AsyncGeneratorFunction%":Qe,"%AsyncIteratorPrototype%":Qe,"%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%":Rv,"%eval%":eval,"%EvalError%":qv,"%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%":Qe,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":He&&H?H(H([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!He||!H?v:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":mv,"%Object.getOwnPropertyDescriptor%":et,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":hv,"%ReferenceError%":bv,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!He||!H?v:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":He&&H?H(""[Symbol.iterator]()):v,"%Symbol%":He?Symbol:v,"%SyntaxError%":Fe,"%ThrowTypeError%":Tv,"%TypedArray%":Gv,"%TypeError%":De,"%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%":fv,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":tt,"%Function.prototype.apply%":zo,"%Object.defineProperty%":Bv,"%Object.getPrototypeOf%":wv,"%Math.abs%":Iv,"%Math.floor%":xv,"%Math.max%":kv,"%Math.min%":Pv,"%Math.pow%":vv,"%Math.round%":Cv,"%Math.sign%":Av,"%Reflect.getPrototypeOf%":Uv};if(H)try{null.error}catch(e){Vo=H(H(e)),ke["%Error.prototype%"]=Vo}var Vo,Sv=function e(t){var s;if(t==="%AsyncFunction%")s=Zr("async function () {}");else if(t==="%GeneratorFunction%")s=Zr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Zr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&H&&(s=H(a.prototype))}return ke[t]=s,s},No={__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"]},rt=ue(),Ot=Oo(),Ev=rt.call(tt,Array.prototype.concat),Lv=rt.call(zo,Array.prototype.splice),Ko=rt.call(tt,String.prototype.replace),Vt=rt.call(tt,String.prototype.slice),Wv=rt.call(tt,RegExp.prototype.exec),_v=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Hv=/\\(\\)?/g,Qv=function(t){var s=Vt(t,0,1),n=Vt(t,-1);if(s==="%"&&n!=="%")throw new Fe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new Fe("invalid intrinsic syntax, expected opening `%`");var a=[];return Ko(t,_v,function(o,i,p,u){a[a.length]=p?Ko(u,Hv,"$1"):i||o}),a},Dv=function(t,s){var n=t,a;if(Ot(No,n)&&(a=No[n],n="%"+a[0]+"%"),Ot(ke,n)){var o=ke[n];if(o===Qe&&(o=Sv(n)),typeof o>"u"&&!s)throw new De("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Fe("intrinsic "+t+" does not exist!")};Jo.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new De("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new De('"allowMissing" argument must be a boolean');if(Wv(/^%?[^%]*%?$/,t)===null)throw new Fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Qv(t),a=n.length>0?n[0]:"",o=Dv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],Lv(n,Ev([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Vt(m,0,1),P=Vt(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new Fe("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Ot(ke,i))p=ke[i];else if(p!=null){if(!(m in p)){if(!s)throw new De("base intrinsic for "+t+" exists, but the property is not available.");return}if(et&&y+1>=n.length){var h=et(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=Ot(p,m),p=p[m];x&&!u&&(ke[i]=p)}}return p}});var Xo=q((HB,Zo)=>{"use strict";var jo=Se(),Fv=Lt(),Me=Ie(),Yo=Ge();Zo.exports=function(t,s,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Me("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new Me("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Me("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Me("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Me("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Me("`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=!!Yo&&Yo(t,s);if(jo)jo(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 Fv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ri=q((QB,ti)=>{"use strict";var es=Se(),ei=function(){return!!es};ei.hasArrayLengthDefineBug=function(){if(!es)return null;try{return es([],"length",{value:1}).length!==1}catch{return!0}};ti.exports=ei});var ii=q((DB,oi)=>{"use strict";var Mv=Nt(),si=Xo(),Ov=ri()(),ni=Ge(),ai=Ie(),Vv=Mv("%Math.floor%");oi.exports=function(t,s){if(typeof t!="function")throw new ai("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Vv(s)!==s)throw new ai("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&ni){var i=ni(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(Ov?si(t,"length",s,!0,!0):si(t,"length",s)),t}});var gi=q((FB,Kt)=>{"use strict";var ts=ue(),$t=Nt(),Nv=ii(),Kv=Ie(),ci=$t("%Function.prototype.apply%"),di=$t("%Function.prototype.call%"),li=$t("%Reflect.apply%",!0)||ts.call(di,ci),pi=Se(),$v=$t("%Math.max%");Kt.exports=function(t){if(typeof t!="function")throw new Kv("a function is required");var s=li(ts,di,arguments);return Nv(s,1+$v(0,t.length-(arguments.length-1)),!0)};var ui=function(){return li(ts,ci,arguments)};pi?pi(Kt.exports,"apply",{value:ui}):Kt.exports.apply=ui});var qi=q((MB,Ri)=>{"use strict";var yi=Nt(),mi=gi(),zv=mi(yi("String.prototype.indexOf"));Ri.exports=function(t,s){var n=yi(t,!!s);return typeof n=="function"&&zv(t,".prototype.")>-1?mi(n):n}});var bi=q((OB,hi)=>{hi.exports=require("util").inspect});var Di=q((VB,Qi)=>{var ds=typeof Map=="function"&&Map.prototype,rs=Object.getOwnPropertyDescriptor&&ds?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jt=ds&&rs&&typeof rs.get=="function"?rs.get:null,fi=ds&&Map.prototype.forEach,ls=typeof Set=="function"&&Set.prototype,ss=Object.getOwnPropertyDescriptor&&ls?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,jt=ls&&ss&&typeof ss.get=="function"?ss.get:null,Ii=ls&&Set.prototype.forEach,Jv=typeof WeakMap=="function"&&WeakMap.prototype,nt=Jv?WeakMap.prototype.has:null,jv=typeof WeakSet=="function"&&WeakSet.prototype,at=jv?WeakSet.prototype.has:null,Yv=typeof WeakRef=="function"&&WeakRef.prototype,xi=Yv?WeakRef.prototype.deref:null,Zv=Boolean.prototype.valueOf,Xv=Object.prototype.toString,eC=Function.prototype.toString,tC=String.prototype.match,gs=String.prototype.slice,ce=String.prototype.replace,rC=String.prototype.toUpperCase,ki=String.prototype.toLowerCase,Gi=RegExp.prototype.test,Pi=Array.prototype.concat,X=Array.prototype.join,sC=Array.prototype.slice,vi=Math.floor,os=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ns=Object.getOwnPropertySymbols,is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||!0)?Symbol.toStringTag:null,Si=Object.prototype.propertyIsEnumerable,Ci=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ai(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Gi.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-vi(-e):vi(e);if(n!==e){var a=String(n),o=gs.call(t,a.length+1);return ce.call(a,s,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,s,"$&_")}var ps=bi(),Bi=ps.custom,Ti=Wi(Bi)?Bi:null,Ei={__proto__:null,double:'"',single:"'"},nC={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Qi.exports=function e(t,s,n,a){var o=s||{};if(se(o,"quoteStyle")&&!se(Ei,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=se(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(se(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(se(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Hi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Ai(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?Ai(t,r):r}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof t=="object")return us(t)?"[Array]":"[Object]";var x=xC(o,n);if(typeof a>"u")a=[];else if(_i(a,t)>=0)return"[Circular]";function m(Y,oe,te){if(oe&&(a=sC.call(a),a.push(oe)),te){var ze={depth:o.depth};return se(o,"quoteStyle")&&(ze.quoteStyle=o.quoteStyle),e(Y,ze,n+1,a)}return e(Y,o,n+1,a)}if(typeof t=="function"&&!wi(t)){var k=gC(t),P=zt(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+X.call(P,", ")+" }":"")}if(Wi(t)){var h=Oe?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):is.call(t);return typeof t=="object"&&!Oe?st(h):h}if(bC(t)){for(var L="<"+ki.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+Li(aC(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+ki.call(String(t.nodeName))+">",L}if(us(t)){if(t.length===0)return"[]";var J=zt(t,m);return x&&!IC(J)?"["+cs(J,x)+"]":"[ "+X.call(J,", ")+" ]"}if(iC(t)){var j=zt(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!Si.call(t,"cause")?"{ ["+String(t)+"] "+X.call(Pi.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+X.call(j,", ")+" }"}if(typeof t=="object"&&i){if(Ti&&typeof t[Ti]=="function"&&ps)return ps(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yC(t)){var le=[];return fi&&fi.call(t,function(Y,oe){le.push(m(oe,t,!0)+" => "+m(Y,t))}),Ui("Map",Jt.call(t),le,x)}if(qC(t)){var Ke=[];return Ii&&Ii.call(t,function(Y){Ke.push(m(Y,t))}),Ui("Set",jt.call(t),Ke,x)}if(mC(t))return as("WeakMap");if(hC(t))return as("WeakSet");if(RC(t))return as("WeakRef");if(uC(t))return st(m(Number(t)));if(dC(t))return st(m(os.call(t)));if(cC(t))return st(Zv.call(t));if(pC(t))return st(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(!oC(t)&&!wi(t)){var ge=zt(t,m),$e=Ci?Ci(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",we=!$e&&O&&Object(t)===t&&O in t?gs.call(de(t),8,-1):ae?"Object":"",ye=$e||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ue=ye+(we||ae?"["+X.call(Pi.call([],we||[],ae||[]),": ")+"] ":"");return ge.length===0?Ue+"{}":x?Ue+"{"+cs(ge,x)+"}":Ue+"{ "+X.call(ge,", ")+" }"}return String(t)};function Li(e,t,s){var n=s.quoteStyle||t,a=Ei[n];return a+e+a}function aC(e){return ce.call(String(e),/"/g,""")}function us(e){return de(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function oC(e){return de(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function wi(e){return de(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function iC(e){return de(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function pC(e){return de(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function uC(e){return de(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function cC(e){return de(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function Wi(e){if(Oe)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!is)return!1;try{return is.call(e),!0}catch{}return!1}function dC(e){if(!e||typeof e!="object"||!os)return!1;try{return os.call(e),!0}catch{}return!1}var lC=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return lC.call(e,t)}function de(e){return Xv.call(e)}function gC(e){if(e.name)return e.name;var t=tC.call(eC.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _i(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 yC(e){if(!Jt||!e||typeof e!="object")return!1;try{Jt.call(e);try{jt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function mC(e){if(!nt||!e||typeof e!="object")return!1;try{nt.call(e,nt);try{at.call(e,at)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function RC(e){if(!xi||!e||typeof e!="object")return!1;try{return xi.call(e),!0}catch{}return!1}function qC(e){if(!jt||!e||typeof e!="object")return!1;try{jt.call(e);try{Jt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hC(e){if(!at||!e||typeof e!="object")return!1;try{at.call(e,at);try{nt.call(e,nt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function bC(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Hi(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Hi(gs.call(e,0,t.maxStringLength),t)+n}var a=nC[t.quoteStyle||"single"];a.lastIndex=0;var o=ce.call(ce.call(e,a,"\\$1"),/[\x00-\x1f]/g,fC);return Li(o,"single",t)}function fC(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":"")+rC.call(t.toString(16))}function st(e){return"Object("+e+")"}function as(e){return e+" { ? }"}function Ui(e,t,s,n){var a=n?cs(s,n):X.call(s,", ");return e+" ("+t+") {"+a+"}"}function IC(e){for(var t=0;t<e.length;t++)if(_i(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";var Ak=Object.create;var it=Object.defineProperty;var Bk=Object.getOwnPropertyDescriptor;var Tk=Object.getOwnPropertyNames;var wk=Object.getPrototypeOf,Uk=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var s in t)it(e,s,{get:t[s],enumerable:!0})},Ua=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Tk(t))!Uk.call(e,a)&&a!==s&&it(e,a,{get:()=>t[a],enumerable:!(n=Bk(t,a))||n.enumerable});return e};var me=(e,t,s)=>(s=e!=null?Ak(wk(e)):{},Ua(t||!e||!e.__esModule?it(s,"default",{value:e,enumerable:!0}):s,e)),Gk=e=>Ua(it({},"__esModule",{value:!0}),e);var Ea=q(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var Nk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kk=typeof window<"u"&&typeof window.document<"u",$k=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,zk=(typeof self>"u"?"undefined":Nk(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Jk=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),jk=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";qe.isBrowser=Kk;qe.isWebWorker=zk;qe.isNode=$k;qe.isJsDom=Jk;qe.isDeno=jk});var Et=q((nB,_a)=>{"use strict";_a.exports=Object});var Lr=q((aB,Ha)=>{"use strict";Ha.exports=Error});var Wr=q((oB,Qa)=>{"use strict";Qa.exports=EvalError});var _r=q((iB,Da)=>{"use strict";Da.exports=RangeError});var Hr=q((pB,Fa)=>{"use strict";Fa.exports=ReferenceError});var Lt=q((uB,Ma)=>{"use strict";Ma.exports=SyntaxError});var Ie=q((cB,Oa)=>{"use strict";Oa.exports=TypeError});var Qr=q((dB,Va)=>{"use strict";Va.exports=URIError});var Dr=q((lB,Na)=>{"use strict";Na.exports=Math.abs});var Fr=q((gB,Ka)=>{"use strict";Ka.exports=Math.floor});var Mr=q((yB,$a)=>{"use strict";$a.exports=Math.max});var Or=q((mB,za)=>{"use strict";za.exports=Math.min});var Vr=q((RB,Ja)=>{"use strict";Ja.exports=Math.pow});var Nr=q((qB,ja)=>{"use strict";ja.exports=Math.round});var Za=q((hB,Ya)=>{"use strict";Ya.exports=Number.isNaN||function(t){return t!==t}});var Kr=q((bB,Xa)=>{"use strict";var fP=Za();Xa.exports=function(t){return fP(t)||t===0?t:t<0?-1:1}});var to=q((fB,eo)=>{"use strict";eo.exports=Object.getOwnPropertyDescriptor});var Ge=q((IB,ro)=>{"use strict";var Wt=to();if(Wt)try{Wt([],"length")}catch{Wt=null}ro.exports=Wt});var Se=q((xB,so)=>{"use strict";var _t=Object.defineProperty||!1;if(_t)try{_t({},"a",{value:1})}catch{_t=!1}so.exports=_t});var ao=q((kB,no)=>{"use strict";no.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 $r=q((PB,io)=>{"use strict";var oo=typeof Symbol<"u"&&Symbol,IP=ao();io.exports=function(){return typeof oo!="function"||typeof Symbol!="function"||typeof oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IP()}});var Ht=q((vB,po)=>{"use strict";po.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Qt=q((CB,uo)=>{"use strict";var xP=Et();uo.exports=xP.getPrototypeOf||null});var go=q((AB,lo)=>{"use strict";var kP="Function.prototype.bind called on incompatible ",PP=Object.prototype.toString,vP=Math.max,CP="[object Function]",co=function(t,s){for(var n=[],a=0;a<t.length;a+=1)n[a]=t[a];for(var o=0;o<s.length;o+=1)n[o+t.length]=s[o];return n},AP=function(t,s){for(var n=[],a=s||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},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};lo.exports=function(t){var s=this;if(typeof s!="function"||PP.apply(s)!==CP)throw new TypeError(kP+s);for(var n=AP(arguments,1),a,o=function(){if(this instanceof a){var y=s.apply(this,co(n,arguments));return Object(y)===y?y:this}return s.apply(t,co(n,arguments))},i=vP(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 ue=q((BB,yo)=>{"use strict";var TP=go();yo.exports=Function.prototype.bind||TP});var je=q((TB,mo)=>{"use strict";mo.exports=Function.prototype.call});var Dt=q((wB,Ro)=>{"use strict";Ro.exports=Function.prototype.apply});var ho=q((UB,qo)=>{"use strict";qo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var fo=q((GB,bo)=>{"use strict";var wP=ue(),UP=Dt(),GP=je(),SP=ho();bo.exports=SP||wP.call(GP,UP)});var xo=q((SB,Io)=>{"use strict";var EP=ue(),LP=Ie(),WP=je(),_P=fo();Io.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new LP("a function is required");return _P(EP,WP,t)}});var Bo=q((EB,Ao)=>{"use strict";var HP=xo(),ko=Ge(),vo;try{vo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var zr=!!vo&&ko&&ko(Object.prototype,"__proto__"),Co=Object,Po=Co.getPrototypeOf;Ao.exports=zr&&typeof zr.get=="function"?HP([zr.get]):typeof Po=="function"?function(t){return Po(t==null?t:Co(t))}:!1});var Jr=q((LB,Go)=>{"use strict";var To=Ht(),wo=Qt(),Uo=Bo();Go.exports=To?function(t){return To(t)}:wo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return wo(t)}:Uo?function(t){return Uo(t)}:null});var Eo=q((WB,So)=>{"use strict";var QP=Function.prototype.call,DP=Object.prototype.hasOwnProperty,FP=ue();So.exports=FP.call(QP,DP)});var Fo=q((_B,Do)=>{"use strict";var C,MP=Et(),OP=Lr(),VP=Wr(),NP=_r(),KP=Hr(),_e=Lt(),We=Ie(),$P=Qr(),zP=Dr(),JP=Fr(),jP=Mr(),YP=Or(),ZP=Vr(),XP=Nr(),ev=Kr(),Ho=Function,jr=function(e){try{return Ho('"use strict"; return ('+e+").constructor;")()}catch{}},Ye=Ge(),tv=Se(),Yr=function(){throw new We},rv=Ye?(function(){try{return arguments.callee,Yr}catch{try{return Ye(arguments,"callee").get}catch{return Yr}}})():Yr,Ee=$r()(),_=Jr(),sv=Qt(),nv=Ht(),Qo=Dt(),Ze=je(),Le={},av=typeof Uint8Array>"u"||!_?C:_(Uint8Array),xe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?C:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?C:ArrayBuffer,"%ArrayIteratorPrototype%":Ee&&_?_([][Symbol.iterator]()):C,"%AsyncFromSyncIteratorPrototype%":C,"%AsyncFunction%":Le,"%AsyncGenerator%":Le,"%AsyncGeneratorFunction%":Le,"%AsyncIteratorPrototype%":Le,"%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%":OP,"%eval%":eval,"%EvalError%":VP,"%Float32Array%":typeof Float32Array>"u"?C:Float32Array,"%Float64Array%":typeof Float64Array>"u"?C:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?C:FinalizationRegistry,"%Function%":Ho,"%GeneratorFunction%":Le,"%Int8Array%":typeof Int8Array>"u"?C:Int8Array,"%Int16Array%":typeof Int16Array>"u"?C:Int16Array,"%Int32Array%":typeof Int32Array>"u"?C:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ee&&_?_(_([][Symbol.iterator]())):C,"%JSON%":typeof JSON=="object"?JSON:C,"%Map%":typeof Map>"u"?C:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ee||!_?C:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":MP,"%Object.getOwnPropertyDescriptor%":Ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?C:Promise,"%Proxy%":typeof Proxy>"u"?C:Proxy,"%RangeError%":NP,"%ReferenceError%":KP,"%Reflect%":typeof Reflect>"u"?C:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?C:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ee||!_?C:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?C:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ee&&_?_(""[Symbol.iterator]()):C,"%Symbol%":Ee?Symbol:C,"%SyntaxError%":_e,"%ThrowTypeError%":rv,"%TypedArray%":av,"%TypeError%":We,"%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%":$P,"%WeakMap%":typeof WeakMap>"u"?C:WeakMap,"%WeakRef%":typeof WeakRef>"u"?C:WeakRef,"%WeakSet%":typeof WeakSet>"u"?C:WeakSet,"%Function.prototype.call%":Ze,"%Function.prototype.apply%":Qo,"%Object.defineProperty%":tv,"%Object.getPrototypeOf%":sv,"%Math.abs%":zP,"%Math.floor%":JP,"%Math.max%":jP,"%Math.min%":YP,"%Math.pow%":ZP,"%Math.round%":XP,"%Math.sign%":ev,"%Reflect.getPrototypeOf%":nv};if(_)try{null.error}catch(e){Lo=_(_(e)),xe["%Error.prototype%"]=Lo}var Lo,ov=function e(t){var s;if(t==="%AsyncFunction%")s=jr("async function () {}");else if(t==="%GeneratorFunction%")s=jr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=jr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&_&&(s=_(a.prototype))}return xe[t]=s,s},Wo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xe=ue(),Ft=Eo(),iv=Xe.call(Ze,Array.prototype.concat),pv=Xe.call(Qo,Array.prototype.splice),_o=Xe.call(Ze,String.prototype.replace),Mt=Xe.call(Ze,String.prototype.slice),uv=Xe.call(Ze,RegExp.prototype.exec),cv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dv=/\\(\\)?/g,lv=function(t){var s=Mt(t,0,1),n=Mt(t,-1);if(s==="%"&&n!=="%")throw new _e("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new _e("invalid intrinsic syntax, expected opening `%`");var a=[];return _o(t,cv,function(o,i,p,u){a[a.length]=p?_o(u,dv,"$1"):i||o}),a},gv=function(t,s){var n=t,a;if(Ft(Wo,n)&&(a=Wo[n],n="%"+a[0]+"%"),Ft(xe,n)){var o=xe[n];if(o===Le&&(o=ov(n)),typeof o>"u"&&!s)throw new We("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new _e("intrinsic "+t+" does not exist!")};Do.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new We("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new We('"allowMissing" argument must be a boolean');if(uv(/^%?[^%]*%?$/,t)===null)throw new _e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=lv(t),a=n.length>0?n[0]:"",o=gv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],pv(n,iv([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Mt(m,0,1),P=Mt(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new _e("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Ft(xe,i))p=xe[i];else if(p!=null){if(!(m in p)){if(!s)throw new We("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ye&&y+1>=n.length){var h=Ye(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=Ft(p,m),p=p[m];x&&!u&&(xe[i]=p)}}return p}});var Oo=q((HB,Mo)=>{"use strict";var yv=Function.prototype.call,mv=Object.prototype.hasOwnProperty,Rv=ue();Mo.exports=Rv.call(yv,mv)});var Nt=q((QB,Jo)=>{"use strict";var v,qv=Et(),hv=Lr(),bv=Wr(),fv=_r(),Iv=Hr(),Fe=Lt(),De=Ie(),xv=Qr(),kv=Dr(),Pv=Fr(),vv=Mr(),Cv=Or(),Av=Vr(),Bv=Nr(),Tv=Kr(),$o=Function,Zr=function(e){try{return $o('"use strict"; return ('+e+").constructor;")()}catch{}},et=Ge(),wv=Se(),Xr=function(){throw new De},Uv=et?(function(){try{return arguments.callee,Xr}catch{try{return et(arguments,"callee").get}catch{return Xr}}})():Xr,He=$r()(),H=Jr(),Gv=Qt(),Sv=Ht(),zo=Dt(),tt=je(),Qe={},Ev=typeof Uint8Array>"u"||!H?v:H(Uint8Array),ke={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":He&&H?H([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Qe,"%AsyncGenerator%":Qe,"%AsyncGeneratorFunction%":Qe,"%AsyncIteratorPrototype%":Qe,"%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%":hv,"%eval%":eval,"%EvalError%":bv,"%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%":Qe,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":He&&H?H(H([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!He||!H?v:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qv,"%Object.getOwnPropertyDescriptor%":et,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":fv,"%ReferenceError%":Iv,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!He||!H?v:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":He&&H?H(""[Symbol.iterator]()):v,"%Symbol%":He?Symbol:v,"%SyntaxError%":Fe,"%ThrowTypeError%":Uv,"%TypedArray%":Ev,"%TypeError%":De,"%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%":xv,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":tt,"%Function.prototype.apply%":zo,"%Object.defineProperty%":wv,"%Object.getPrototypeOf%":Gv,"%Math.abs%":kv,"%Math.floor%":Pv,"%Math.max%":vv,"%Math.min%":Cv,"%Math.pow%":Av,"%Math.round%":Bv,"%Math.sign%":Tv,"%Reflect.getPrototypeOf%":Sv};if(H)try{null.error}catch(e){Vo=H(H(e)),ke["%Error.prototype%"]=Vo}var Vo,Lv=function e(t){var s;if(t==="%AsyncFunction%")s=Zr("async function () {}");else if(t==="%GeneratorFunction%")s=Zr("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Zr("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&H&&(s=H(a.prototype))}return ke[t]=s,s},No={__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"]},rt=ue(),Ot=Oo(),Wv=rt.call(tt,Array.prototype.concat),_v=rt.call(zo,Array.prototype.splice),Ko=rt.call(tt,String.prototype.replace),Vt=rt.call(tt,String.prototype.slice),Hv=rt.call(tt,RegExp.prototype.exec),Qv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dv=/\\(\\)?/g,Fv=function(t){var s=Vt(t,0,1),n=Vt(t,-1);if(s==="%"&&n!=="%")throw new Fe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new Fe("invalid intrinsic syntax, expected opening `%`");var a=[];return Ko(t,Qv,function(o,i,p,u){a[a.length]=p?Ko(u,Dv,"$1"):i||o}),a},Mv=function(t,s){var n=t,a;if(Ot(No,n)&&(a=No[n],n="%"+a[0]+"%"),Ot(ke,n)){var o=ke[n];if(o===Qe&&(o=Lv(n)),typeof o>"u"&&!s)throw new De("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Fe("intrinsic "+t+" does not exist!")};Jo.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new De("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new De('"allowMissing" argument must be a boolean');if(Hv(/^%?[^%]*%?$/,t)===null)throw new Fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Fv(t),a=n.length>0?n[0]:"",o=Mv("%"+a+"%",s),i=o.name,p=o.value,u=!1,r=o.alias;r&&(a=r[0],_v(n,Wv([0,1],r)));for(var y=1,x=!0;y<n.length;y+=1){var m=n[y],k=Vt(m,0,1),P=Vt(m,-1);if((k==='"'||k==="'"||k==="`"||P==='"'||P==="'"||P==="`")&&k!==P)throw new Fe("property names with quotes must have matching quotes");if((m==="constructor"||!x)&&(u=!0),a+="."+m,i="%"+a+"%",Ot(ke,i))p=ke[i];else if(p!=null){if(!(m in p)){if(!s)throw new De("base intrinsic for "+t+" exists, but the property is not available.");return}if(et&&y+1>=n.length){var h=et(p,m);x=!!h,x&&"get"in h&&!("originalValue"in h.get)?p=h.get:p=p[m]}else x=Ot(p,m),p=p[m];x&&!u&&(ke[i]=p)}}return p}});var Xo=q((DB,Zo)=>{"use strict";var jo=Se(),Ov=Lt(),Me=Ie(),Yo=Ge();Zo.exports=function(t,s,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Me("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new Me("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Me("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Me("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Me("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Me("`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=!!Yo&&Yo(t,s);if(jo)jo(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 Ov("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ri=q((FB,ti)=>{"use strict";var es=Se(),ei=function(){return!!es};ei.hasArrayLengthDefineBug=function(){if(!es)return null;try{return es([],"length",{value:1}).length!==1}catch{return!0}};ti.exports=ei});var ii=q((MB,oi)=>{"use strict";var Vv=Nt(),si=Xo(),Nv=ri()(),ni=Ge(),ai=Ie(),Kv=Vv("%Math.floor%");oi.exports=function(t,s){if(typeof t!="function")throw new ai("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Kv(s)!==s)throw new ai("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&ni){var i=ni(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(Nv?si(t,"length",s,!0,!0):si(t,"length",s)),t}});var gi=q((OB,Kt)=>{"use strict";var ts=ue(),$t=Nt(),$v=ii(),zv=Ie(),ci=$t("%Function.prototype.apply%"),di=$t("%Function.prototype.call%"),li=$t("%Reflect.apply%",!0)||ts.call(di,ci),pi=Se(),Jv=$t("%Math.max%");Kt.exports=function(t){if(typeof t!="function")throw new zv("a function is required");var s=li(ts,di,arguments);return $v(s,1+Jv(0,t.length-(arguments.length-1)),!0)};var ui=function(){return li(ts,ci,arguments)};pi?pi(Kt.exports,"apply",{value:ui}):Kt.exports.apply=ui});var qi=q((VB,Ri)=>{"use strict";var yi=Nt(),mi=gi(),jv=mi(yi("String.prototype.indexOf"));Ri.exports=function(t,s){var n=yi(t,!!s);return typeof n=="function"&&jv(t,".prototype.")>-1?mi(n):n}});var bi=q((NB,hi)=>{hi.exports=require("util").inspect});var Di=q((KB,Qi)=>{var ds=typeof Map=="function"&&Map.prototype,rs=Object.getOwnPropertyDescriptor&&ds?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jt=ds&&rs&&typeof rs.get=="function"?rs.get:null,fi=ds&&Map.prototype.forEach,ls=typeof Set=="function"&&Set.prototype,ss=Object.getOwnPropertyDescriptor&&ls?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,jt=ls&&ss&&typeof ss.get=="function"?ss.get:null,Ii=ls&&Set.prototype.forEach,Yv=typeof WeakMap=="function"&&WeakMap.prototype,nt=Yv?WeakMap.prototype.has:null,Zv=typeof WeakSet=="function"&&WeakSet.prototype,at=Zv?WeakSet.prototype.has:null,Xv=typeof WeakRef=="function"&&WeakRef.prototype,xi=Xv?WeakRef.prototype.deref:null,eC=Boolean.prototype.valueOf,tC=Object.prototype.toString,rC=Function.prototype.toString,sC=String.prototype.match,gs=String.prototype.slice,ce=String.prototype.replace,nC=String.prototype.toUpperCase,ki=String.prototype.toLowerCase,Gi=RegExp.prototype.test,Pi=Array.prototype.concat,X=Array.prototype.join,aC=Array.prototype.slice,vi=Math.floor,os=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ns=Object.getOwnPropertySymbols,is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||!0)?Symbol.toStringTag:null,Si=Object.prototype.propertyIsEnumerable,Ci=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ai(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Gi.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-vi(-e):vi(e);if(n!==e){var a=String(n),o=gs.call(t,a.length+1);return ce.call(a,s,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,s,"$&_")}var ps=bi(),Bi=ps.custom,Ti=Wi(Bi)?Bi:null,Ei={__proto__:null,double:'"',single:"'"},oC={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Qi.exports=function e(t,s,n,a){var o=s||{};if(se(o,"quoteStyle")&&!se(Ei,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=se(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(se(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(se(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Hi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Ai(t,u):u}if(typeof t=="bigint"){var r=String(t)+"n";return p?Ai(t,r):r}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof t=="object")return us(t)?"[Array]":"[Object]";var x=PC(o,n);if(typeof a>"u")a=[];else if(_i(a,t)>=0)return"[Circular]";function m(Y,oe,te){if(oe&&(a=aC.call(a),a.push(oe)),te){var ze={depth:o.depth};return se(o,"quoteStyle")&&(ze.quoteStyle=o.quoteStyle),e(Y,ze,n+1,a)}return e(Y,o,n+1,a)}if(typeof t=="function"&&!wi(t)){var k=mC(t),P=zt(t,m);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(P.length>0?" { "+X.call(P,", ")+" }":"")}if(Wi(t)){var h=Oe?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):is.call(t);return typeof t=="object"&&!Oe?st(h):h}if(IC(t)){for(var L="<"+ki.call(String(t.nodeName)),I=t.attributes||[],K=0;K<I.length;K++)L+=" "+I[K].name+"="+Li(iC(I[K].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+ki.call(String(t.nodeName))+">",L}if(us(t)){if(t.length===0)return"[]";var J=zt(t,m);return x&&!kC(J)?"["+cs(J,x)+"]":"[ "+X.call(J,", ")+" ]"}if(uC(t)){var j=zt(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!Si.call(t,"cause")?"{ ["+String(t)+"] "+X.call(Pi.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+X.call(j,", ")+" }"}if(typeof t=="object"&&i){if(Ti&&typeof t[Ti]=="function"&&ps)return ps(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(RC(t)){var le=[];return fi&&fi.call(t,function(Y,oe){le.push(m(oe,t,!0)+" => "+m(Y,t))}),Ui("Map",Jt.call(t),le,x)}if(bC(t)){var Ke=[];return Ii&&Ii.call(t,function(Y){Ke.push(m(Y,t))}),Ui("Set",jt.call(t),Ke,x)}if(qC(t))return as("WeakMap");if(fC(t))return as("WeakSet");if(hC(t))return as("WeakRef");if(dC(t))return st(m(Number(t)));if(gC(t))return st(m(os.call(t)));if(lC(t))return st(eC.call(t));if(cC(t))return st(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(!pC(t)&&!wi(t)){var ge=zt(t,m),$e=Ci?Ci(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",we=!$e&&O&&Object(t)===t&&O in t?gs.call(de(t),8,-1):ae?"Object":"",ye=$e||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ue=ye+(we||ae?"["+X.call(Pi.call([],we||[],ae||[]),": ")+"] ":"");return ge.length===0?Ue+"{}":x?Ue+"{"+cs(ge,x)+"}":Ue+"{ "+X.call(ge,", ")+" }"}return String(t)};function Li(e,t,s){var n=s.quoteStyle||t,a=Ei[n];return a+e+a}function iC(e){return ce.call(String(e),/"/g,""")}function us(e){return de(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function pC(e){return de(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function wi(e){return de(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function uC(e){return de(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function cC(e){return de(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function dC(e){return de(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function lC(e){return de(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function Wi(e){if(Oe)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!is)return!1;try{return is.call(e),!0}catch{}return!1}function gC(e){if(!e||typeof e!="object"||!os)return!1;try{return os.call(e),!0}catch{}return!1}var yC=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return yC.call(e,t)}function de(e){return tC.call(e)}function mC(e){if(e.name)return e.name;var t=sC.call(rC.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _i(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 RC(e){if(!Jt||!e||typeof e!="object")return!1;try{Jt.call(e);try{jt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function qC(e){if(!nt||!e||typeof e!="object")return!1;try{nt.call(e,nt);try{at.call(e,at)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hC(e){if(!xi||!e||typeof e!="object")return!1;try{return xi.call(e),!0}catch{}return!1}function bC(e){if(!jt||!e||typeof e!="object")return!1;try{jt.call(e);try{Jt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function fC(e){if(!at||!e||typeof e!="object")return!1;try{at.call(e,at);try{nt.call(e,nt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function IC(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Hi(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Hi(gs.call(e,0,t.maxStringLength),t)+n}var a=oC[t.quoteStyle||"single"];a.lastIndex=0;var o=ce.call(ce.call(e,a,"\\$1"),/[\x00-\x1f]/g,xC);return Li(o,"single",t)}function xC(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":"")+nC.call(t.toString(16))}function st(e){return"Object("+e+")"}function as(e){return e+" { ? }"}function Ui(e,t,s,n){var a=n?cs(s,n):X.call(s,", ");return e+" ("+t+") {"+a+"}"}function kC(e){for(var t=0;t<e.length;t++)if(_i(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function PC(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=X.call(Array(e.indent+1)," ");else return null;return{base:s,prev:X.call(Array(t+1),s)}}function cs(e,t){if(e.length===0)return"";var s=`
|
|
3
3
|
`+t.prev+t.base;return s+X.call(e,","+s)+`
|
|
4
|
-
`+t.prev}function zt(e,t){var s=us(e),n=[];if(s){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=se(e,a)?t(e[a],e):""}var o=typeof ns=="function"?ns(e):[],i;if(Oe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(s&&String(Number(u))===u&&u<e.length||Oe&&i["$"+u]instanceof Symbol||(Gi.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof ns=="function")for(var r=0;r<o.length;r++)Si.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Mi=q((NB,Fi)=>{"use strict";var ys=Fo(),Ve=qi(),kC=Di(),PC=ys("%TypeError%"),Yt=ys("%WeakMap%",!0),Zt=ys("%Map%",!0),vC=Ve("WeakMap.prototype.get",!0),CC=Ve("WeakMap.prototype.set",!0),AC=Ve("WeakMap.prototype.has",!0),BC=Ve("Map.prototype.get",!0),TC=Ve("Map.prototype.set",!0),wC=Ve("Map.prototype.has",!0),ms=function(e,t){for(var s=e,n;(n=s.next)!==null;s=n)if(n.key===t)return s.next=n.next,n.next=e.next,e.next=n,n},UC=function(e,t){var s=ms(e,t);return s&&s.value},GC=function(e,t,s){var n=ms(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},SC=function(e,t){return!!ms(e,t)};Fi.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new PC("Side channel does not contain "+kC(o))},get:function(o){if(Yt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return vC(t,o)}else if(Zt){if(s)return BC(s,o)}else if(n)return UC(n,o)},has:function(o){if(Yt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return AC(t,o)}else if(Zt){if(s)return wC(s,o)}else if(n)return SC(n,o);return!1},set:function(o,i){Yt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Yt),CC(t,o,i)):Zt?(s||(s=new Zt),TC(s,o,i)):(n||(n={key:{},next:null}),GC(n,o,i))}};return a}});var Xt=q((KB,Oi)=>{"use strict";var EC=String.prototype.replace,LC=/%20/g,Rs={RFC1738:"RFC1738",RFC3986:"RFC3986"};Oi.exports={default:Rs.RFC3986,formatters:{RFC1738:function(e){return EC.call(e,LC,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rs.RFC1738,RFC3986:Rs.RFC3986}});var hs=q(($B,Ni)=>{"use strict";var WC=Xt(),qs=Object.prototype.hasOwnProperty,Pe=Array.isArray,ee=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),_C=function(t){for(;t.length>1;){var s=t.pop(),n=s.obj[s.prop];if(Pe(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);s.obj[s.prop]=a}}},Vi=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},HC=function e(t,s,n){if(!s)return t;if(typeof s!="object"){if(Pe(t))t.push(s);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qs.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var a=t;return Pe(t)&&!Pe(s)&&(a=Vi(t,n)),Pe(t)&&Pe(s)?(s.forEach(function(o,i){if(qs.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,n):t.push(o)}else t[i]=o}),t):Object.keys(s).reduce(function(o,i){var p=s[i];return qs.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},QC=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},DC=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}},FC=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===WC.RFC1738&&(r===40||r===41)){p+=i.charAt(u);continue}if(r<128){p=p+ee[r];continue}if(r<2048){p=p+(ee[192|r>>6]+ee[128|r&63]);continue}if(r<55296||r>=57344){p=p+(ee[224|r>>12]+ee[128|r>>6&63]+ee[128|r&63]);continue}u+=1,r=65536+((r&1023)<<10|i.charCodeAt(u)&1023),p+=ee[240|r>>18]+ee[128|r>>12&63]+ee[128|r>>6&63]+ee[128|r&63]}return p},MC=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 _C(s),t},OC=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},VC=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},NC=function(t,s){return[].concat(t,s)},KC=function(t,s){if(Pe(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(s(t[a]));return n}return s(t)};Ni.exports={arrayToObject:Vi,assign:QC,combine:NC,compact:MC,decode:DC,encode:FC,isBuffer:VC,isRegExp:OC,maybeMap:KC,merge:HC}});var Yi=q((zB,ji)=>{"use strict";var zi=Mi(),fs=hs(),ot=Xt(),$C=Object.prototype.hasOwnProperty,Ki={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},ne=Array.isArray,zC=String.prototype.split,JC=Array.prototype.push,Ji=function(e,t){JC.apply(e,ne(t)?t:[t])},jC=Date.prototype.toISOString,$i=ot.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fs.encode,encodeValuesOnly:!1,format:$i,formatter:ot.formatters[$i],indices:!1,serializeDate:function(t){return jC.call(t)},skipNulls:!1,strictNullHandling:!1},YC=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},bs={},ZC=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(bs))!==void 0&&!j;){var le=K.get(t);if(J+=1,typeof le<"u"){if(le===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(bs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&ne(I)&&(I=fs.maybeMap(I,function(ir){return ir instanceof Date?x(ir):ir})),I===null){if(o)return p&&!P?p(s,F.encoder,h,"key",m):s;I=""}if(YC(I)||fs.isBuffer(I)){if(p){var Ke=P?s:p(s,F.encoder,h,"key",m);if(n==="comma"&&P){for(var ge=zC.call(String(I),","),$e="",ae=0;ae<ge.length;++ae)$e+=(ae===0?"":",")+k(p(ge[ae],F.encoder,h,"value",m));return[k(Ke)+(a&&ne(I)&&ge.length===1?"[]":"")+"="+$e]}return[k(Ke)+"="+k(p(I,F.encoder,h,"value",m))]}return[k(s)+"="+k(String(I))]}var we=[];if(typeof I>"u")return we;var ye;if(n==="comma"&&ne(I))ye=[{value:I.length>0?I.join(",")||null:void 0}];else if(ne(u))ye=u;else{var Ue=Object.keys(I);ye=r?Ue.sort(r):Ue}for(var Y=a&&ne(I)&&I.length===1?s+"[]":s,oe=0;oe<ye.length;++oe){var te=ye[oe],ze=typeof te=="object"&&typeof te.value<"u"?te.value:I[te];if(!(i&&ze===null)){var Pk=ne(I)?typeof n=="function"?n(Y,te):Y:Y+(y?"."+te:"["+te+"]");L.set(t,J);var wa=zi();wa.set(bs,L),Ji(we,e(ze,Pk,n,a,o,i,p,u,r,y,x,m,k,P,h,wa))}}return we},XC=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=ot.default;if(typeof t.format<"u"){if(!$C.call(ot.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=ot.formatters[n],o=F.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:F.addQueryPrefix,allowDots:typeof t.allowDots>"u"?F.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:F.charsetSentinel,delimiter:typeof t.delimiter>"u"?F.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:F.encode,encoder:typeof t.encoder=="function"?t.encoder:F.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:F.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:F.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:F.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:F.strictNullHandling}};ji.exports=function(e,t){var s=e,n=XC(t),a,o;typeof n.filter=="function"?(o=n.filter,s=o("",s)):ne(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Ki?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Ki[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=zi(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Ji(i,ZC(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 ep=q((JB,Xi)=>{"use strict";var Ne=hs(),Is=Object.prototype.hasOwnProperty,eA=Array.isArray,Q={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ne.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tA=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Zi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},rA="utf8=%26%2310003%3B",sA="utf8=%E2%9C%93",nA=function(t,s){var n={},a=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,i=a.split(s.delimiter,o),p=-1,u,r=s.charset;if(s.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===sA?r="utf-8":i[u]===rA&&(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=Ne.maybeMap(Zi(y.slice(m+1),s),function(h){return s.decoder(h,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=tA(P)),y.indexOf("[]=")>-1&&(P=eA(P)?[P]:P),Is.call(n,k)?n[k]=Ne.combine(n[k],P):n[k]=P}return n},aA=function(e,t,s,n){for(var a=n?t:Zi(t,s),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&s.parseArrays)i=[].concat(a);else{i=s.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,r=parseInt(u,10);!s.parseArrays&&u===""?i={0:a}:!isNaN(r)&&p!==u&&String(r)===u&&r>=0&&s.parseArrays&&r<=s.arrayLimit?(i=[],i[r]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},oA=function(t,s,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(o),r=u?o.slice(0,u.index):o,y=[];if(r){if(!n.plainObjects&&Is.call(Object.prototype,r)&&!n.allowPrototypes)return;y.push(r)}for(var x=0;n.depth>0&&(u=p.exec(o))!==null&&x<n.depth;){if(x+=1,!n.plainObjects&&Is.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),aA(y,s,n,a)}},iA=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"||Ne.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}};Xi.exports=function(e,t){var s=iA(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?nA(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=oA(p,n[p],s,typeof e=="string");a=Ne.merge(a,u,s)}return s.allowSparse===!0?a:Ne.compact(a)}});var ve=q((jB,tp)=>{"use strict";var pA=Yi(),uA=ep(),cA=Xt();tp.exports={formats:cA,parse:uA,stringify:pA}});var $A={};Z($A,{AlreadyExistsError:()=>At,BreakingChangesError:()=>Gt,Client:()=>Ta,ForbiddenError:()=>dt,InternalError:()=>ut,InvalidDataFormatError:()=>ht,InvalidIdentifierError:()=>bt,InvalidJsonSchemaError:()=>qt,InvalidPayloadError:()=>gt,InvalidQueryError:()=>vt,LimitExceededError:()=>Ut,MethodNotFoundError:()=>mt,OperationTimeoutError:()=>St,PayloadTooLargeError:()=>lt,PaymentRequiredError:()=>Tt,QuotaExceededError:()=>wt,RateLimitedError:()=>Bt,ReferenceConstraintError:()=>It,ReferenceNotFoundError:()=>Pt,RelationConflictError:()=>ft,ResourceGoneError:()=>kt,ResourceLockedConflictError:()=>xt,ResourceNotFoundError:()=>Rt,RuntimeError:()=>Ct,UnauthorizedError:()=>ct,UnknownError:()=>pe,UnsupportedMediaTypeError:()=>yt,UploadFileError:()=>re,admin:()=>Ys,billing:()=>Cn,errorFrom:()=>he,files:()=>ea,http:()=>W,isApiError:()=>La,runtime:()=>ks,tables:()=>Ba});module.exports=wk($A);var W={};Z(W,{HttpClient:()=>pt,HttpError:()=>ie,createHttpClient:()=>Ek,isHttpError:()=>Re,isNetworkError:()=>Sk,isNetworkOrIdempotentRequestError:()=>Sa});var Uk=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():Math.random().toString(36).substring(2,15),ie=class extends Error{constructor(s,n,a,o,i){super(s);this.config=n;this.code=a;this.response=o;this.name="HttpError",i!==void 0&&(this.cause=i)}isHttpError=!0},Re=e=>e instanceof ie||typeof e=="object"&&e!==null&&e.isHttpError===!0,Gk=["get","head","options","put","delete"],Sk=e=>Re(e)&&!e.response,Sa=e=>{if(!Re(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return Gk.includes(t)&&e.response.status>=500&&e.response.status<=599},Ek=e=>new pt({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,debug:e.debug}),pt=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(!Re(a)||o||n>s.retries||!await(s.retryCondition??Sa)(a))throw a;let p=s.retryDelay?.(n,a)??0;p>0&&await new Promise(u=>setTimeout(u,p))}}get(t,s={}){return this.request({...s,method:"get",url:t})}delete(t,s={}){return this.request({...s,method:"delete",url:t})}post(t,s,n={}){return this.request({...n,method:"post",url:t,data:s})}put(t,s,n={}){return this.request({...n,method:"put",url:t,data:s})}async _requestOnce(t){let s=(t.method??"get").toUpperCase(),n=Lk(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;Ga(o,this.defaults.headers),Ga(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(Wk(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?Uk():void 0,k=Date.now();x&&console.debug(Dk(a,o,m));let P=h=>{if(r)return new ie(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,h);if(t.signal?.aborted||this.defaults.signal?.aborted)return new ie("canceled",a,"ERR_CANCELED",void 0,h);let L=h?.cause,I=h?.message??"Network Error";return new ie(I,a,L?.code??"ERR_NETWORK",void 0,h)};try{let h=await fetch(n,{method:s,headers:o,body:i,signal:Hk(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};h.headers.forEach((j,le)=>{L[le]=j});let I,K=t.responseType??"json";if(!h.ok||K==="json"||K==="text"){let j=await h.text();I=!h.ok||K==="json"?_k(j):j}else K==="arraybuffer"?I=await h.arrayBuffer():I=h.body?Qk(h.body):void 0;let J={data:I,status:h.status,statusText:h.statusText,headers:L,config:a};if(x&&console.debug(Fk(J,m,k)),!h.ok)throw new ie(`Request failed with status code ${h.status}`,a,void 0,J);return J}catch(h){let L=Re(h)?h:P(h);throw x&&!L.response&&console.debug(Mk(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},Lk=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,Ga=(e,t)=>{for(let[s,n]of Object.entries(t??{})){if(n===void 0){e.delete(s);continue}if(Array.isArray(n)){e.delete(s);for(let a of n)e.append(s,a)}else e.set(s,n)}},Wk=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,_k=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Hk=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*Qk(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 Dk=(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
|
-
`},
|
|
6
|
-
`,Mk=(e,t,s)=>"ERROR: "+JSON.stringify({status:e.code,url:e.config.url,timestamp:new Date().toISOString(),requestId:t??"N/A",duration:`${Date.now()-s}ms`});var ks={};Z(ks,{Client:()=>xs});var $={};Z($,{getClientConfig:()=>sP});var Je=me(Ea()),Jk="https://api.botpress.cloud",jk=6e4,Yk=!1,Zk="BP_API_URL",Xk="BP_BOT_ID",eP="BP_INTEGRATION_ID",tP="BP_WORKSPACE_ID",rP="BP_TOKEN";function sP(e){let t=nP(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??Jk,a=t.timeout??jk,o=t.debug??Yk;return{apiUrl:n,timeout:a,withCredentials:Je.isBrowser,headers:s,debug:o}}function nP(e){return Je.isBrowser?e:Je.isNode?aP(e):e}function aP(e){let t={...e,apiUrl:e.apiUrl??process.env[Zk],botId:e.botId??process.env[Xk],integrationId:e.integrationId??process.env[eP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[tP]},s=t.token??process.env[rP];return s&&(t.token=s),t}var R={};Z(R,{AsyncCollection:()=>pr});var pr=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:n}=await this._list({nextToken:t});t=n.nextToken;for(let a of s)yield a}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,n=[],a=0;for await(let o of this)if(n.push(o),a++,a>=s)break;return n}};var z={};Z(z,{toApiError:()=>dP});var oP={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}},iP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:oP,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(iP.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"}},pP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,La=e=>e instanceof T||pP(e)&&e.isApiError===!0,pe=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ut=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ct=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},dt=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)}},lt=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},gt=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},yt=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)}},Rt=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},qt=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ht=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)}},bt=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)}},ft=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)}},It=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)}},xt=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)}},kt=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Pt=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)}},vt=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)}},Ct=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)}},At=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Bt=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Tt=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},wt=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)}},Ut=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)}},Gt=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)}},St=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},uP={Unknown:pe,Internal:ut,Unauthorized:ct,Forbidden:dt,PayloadTooLarge:lt,InvalidPayload:gt,UnsupportedMediaType:yt,MethodNotFound:mt,ResourceNotFound:Rt,InvalidJsonSchema:qt,InvalidDataFormat:ht,InvalidIdentifier:bt,RelationConflict:ft,ReferenceConstraint:It,ResourceLockedConflict:xt,ResourceGone:kt,ReferenceNotFound:Pt,InvalidQuery:vt,Runtime:Ct,AlreadyExists:At,RateLimited:Bt,PaymentRequired:Tt,QuotaExceeded:wt,LimitExceeded:Ut,BreakingChanges:Gt,OperationTimeout:St},he=e=>La(e)?e:e instanceof Error?new pe(e.message,e):typeof e=="string"?new pe(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 pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pe("An invalid error occurred: "+JSON.stringify(e))}var re=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var dP=e=>Re(e)&&e.response?.data?he(e.response.data):he(e);var lP={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}},gP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:lP,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(gP.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"}},yP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,mP=e=>e instanceof w||yP(e)&&e.isApiError===!0,fe=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ur=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},cr=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},dr=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)}},lr=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},gr=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},yr=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)}},mr=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Rr=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},qr=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},hr=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)}},br=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)}},fr=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)}},Ir=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)}},xr=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)}},kr=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Pr=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)}},vr=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)}},Cr=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)}},Ar=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Br=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Tr=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},wr=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)}},Ur=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)}},Gr=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)}},Sr=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},RP={Unknown:fe,Internal:ur,Unauthorized:cr,Forbidden:dr,PayloadTooLarge:lr,InvalidPayload:gr,UnsupportedMediaType:yr,MethodNotFound:mr,ResourceNotFound:Rr,InvalidJsonSchema:qr,InvalidDataFormat:hr,InvalidIdentifier:br,RelationConflict:fr,ReferenceConstraint:Ir,ResourceLockedConflict:xr,ResourceGone:kr,ReferenceNotFound:Pr,InvalidQuery:vr,Runtime:Cr,AlreadyExists:Ar,RateLimited:Br,PaymentRequired:Tr,QuotaExceeded:wr,LimitExceeded:Ur,BreakingChanges:Gr,OperationTimeout:Sr},Er=e=>mP(e)?e:e instanceof Error?new fe(e.message,e):typeof e=="string"?new fe(e):qP(e);function qP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=RP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new fe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new fe("An invalid error occurred: "+JSON.stringify(e))}var rp=me(ve()),dA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(dA),p=Object.fromEntries(i),u=rp.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 sp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ip=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 up=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 dp=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 gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var bp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Ip=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var kp=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 vp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ap=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 Tp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Up=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 Sp=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 Lp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _p=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Qp=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 Fp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Op=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 Np=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var $p=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 Jp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yp=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 Xp=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var su=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var au=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var iu=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 uu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var du=e=>({path:`/v1/chat/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 gu=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 mu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var qu=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var bu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Iu=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var ku=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var vu=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Au=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tu=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 Uu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Su=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 Lu=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 _u=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 Qu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Fu=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 er=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=sp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=ap(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:s,headers:n,query:a,body:o}=ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=up(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=dp(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}=gp(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}=mp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=qp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=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)})};removeParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=Ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=kp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=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:"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}=Ap(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:s,headers:n,query:a,body:o}=Tp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=Up(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}=Sp(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}=Lp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=_p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=Qp(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}=Fp(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}=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)})};importMessages=async t=>{let{path:s,headers:n,query:a,body:o}=Np(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:s,headers:n,query:a,body:o}=$p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=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)})};listUsers=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)})};getOrCreateUser=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)})};updateUser=async t=>{let{path:s,headers:n,query:a,body:o}=tu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=su(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}=au(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:s,headers:n,query:a,body:o}=uu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=du(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:s,headers:n,query:a,body:o}=gu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=mu(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}=qu(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}=bu(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}=Iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=ku(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=vu(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}=Au(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}=Tu(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}=Uu(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}=Su(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=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)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=_u(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}=Qu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=Fu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function f(e){let t=e?.response?.data;return t?Er(t):Er(e)}var xs=class extends er{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(n=>({...n,items:n.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(n=>({...n,items:n.participants}))),events:t=>new R.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(n=>({...n,items:n.events}))),messages:t=>new R.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(n=>({...n,items:n.messages}))),users:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(n=>({...n,items:n.users})))}}};var Ys={};Z(Ys,{Client:()=>js});var gA={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}},yA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:gA,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(yA.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"}},mA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,RA=e=>e instanceof U||mA(e)&&e.isApiError===!0,Ce=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Ps=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},vs=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Cs=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)}},As=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Bs=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ts=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)}},ws=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Us=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Gs=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Ss=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)}},Es=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)}},Ls=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)}},Ws=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)}},_s=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)}},Hs=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Qs=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)}},Ds=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)}},Fs=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)}},Ms=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Os=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Vs=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ns=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)}},Ks=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)}},$s=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)}},zs=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},qA={Unknown:Ce,Internal:Ps,Unauthorized:vs,Forbidden:Cs,PayloadTooLarge:As,InvalidPayload:Bs,UnsupportedMediaType:Ts,MethodNotFound:ws,ResourceNotFound:Us,InvalidJsonSchema:Gs,InvalidDataFormat:Ss,InvalidIdentifier:Es,RelationConflict:Ls,ReferenceConstraint:Ws,ResourceLockedConflict:_s,ResourceGone:Hs,ReferenceNotFound:Qs,InvalidQuery:Ds,Runtime:Fs,AlreadyExists:Ms,RateLimited:Os,PaymentRequired:Vs,QuotaExceeded:Ns,LimitExceeded:Ks,BreakingChanges:$s,OperationTimeout:zs},Js=e=>RA(e)?e:e instanceof Error?new Ce(e.message,e):typeof e=="string"?new Ce(e):hA(e);function hA(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=qA[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 Ou=me(ve()),bA=e=>e[1]!==void 0,l=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(bA),p=Object.fromEntries(i),u=Ou.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 Vu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Ku=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var zu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ju=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Zu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ec=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var rc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var oc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var pc=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 cc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Rc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var fc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Pc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Cc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wc=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 Gc=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 Ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Hc=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 Dc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vc=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 Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var jc=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 Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pd=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 Cd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Bd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var wd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Hd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vd=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 Kd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var el=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 rl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var pl=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 cl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ll=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var yl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var fl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Pl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Cl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Bl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Gl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var El=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Wl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Hl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dl=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 Ml=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 Vl=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 Kl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var zl=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 jl=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 Zl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eg=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 rg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ng=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var og=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var pg=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 cg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yg=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 Rg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var fg=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies,attributes:e.attributes}});var xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Bg=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 wg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Eg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Wg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Dg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Mg=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 Vg=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 Kg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var zg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var jg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var tr=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=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)})};getAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Ku(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=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:"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}=ju(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}=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)})};createPersonalAccessToken=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:"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}=rc(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}=nc(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}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=Rc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getPublicPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=fc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=xc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=async t=>{let{path:s,headers:n,query:a,body:o}=wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=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:"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}=Ec(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:s,headers:n,query:a,body:o}=Wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getBot=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)})};deleteBot=async t=>{let{path:s,headers:n,query:a,body:o}=Mc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=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)})};getBotWebchat=async t=>{let{path:s,headers:n,query:a,body:o}=Kc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=nd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=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:"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}=pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=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:"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}=ld(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=yd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=Rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};deleteIntegrationShareableId=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=Pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=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:"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}=Bd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=Gd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=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:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:n,query:a,body:o}=Wd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=Vd(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}=Kd(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:n,query:a,body:o}=el(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=ol(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=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:"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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=hl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=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)})};getWorkspacePreference=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:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:n,query:a,body:o}=Pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Cl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};createWorkspaceMember=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)})};updateWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Gl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=El(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=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)})};deleteIntegrationApiKey=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)})};createIntegration=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:"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}=Ml(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}=Vl(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}=Kl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=jl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=og(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}=pg(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}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=Rg(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}=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Pg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:s,headers:n,query:a,body:o}=Cg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Bg(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}=wg(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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=Dg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:s,headers:n,query:a,body:o}=Mg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Vg(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}=Kg(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}=zg(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}=jg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function g(e){let t=e?.response?.data;return t?Js(t):Js(e)}var js=class extends tr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{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 Cn={};Z(Cn,{Client:()=>vn});var IA={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}},xA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:IA,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(xA.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${n}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},kA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,PA=e=>e instanceof G||kA(e)&&e.isApiError===!0,Ae=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)}},Xs=class extends G{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},en=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)}},tn=class extends G{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},rn=class extends G{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},sn=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)}},nn=class extends G{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},an=class extends G{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},on=class extends G{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},pn=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)}},un=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)}},cn=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)}},dn=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)}},ln=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)}},gn=class extends G{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},yn=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)}},mn=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)}},Rn=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)}},qn=class extends G{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},hn=class extends G{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},bn=class extends G{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},fn=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)}},In=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)}},xn=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)}},kn=class extends G{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},vA={Unknown:Ae,Internal:Zs,Unauthorized:Xs,Forbidden:en,PayloadTooLarge:tn,InvalidPayload:rn,UnsupportedMediaType:sn,MethodNotFound:nn,ResourceNotFound:an,InvalidJsonSchema:on,InvalidDataFormat:pn,InvalidIdentifier:un,RelationConflict:cn,ReferenceConstraint:dn,ResourceLockedConflict:ln,ResourceGone:gn,ReferenceNotFound:yn,InvalidQuery:mn,Runtime:Rn,AlreadyExists:qn,RateLimited:hn,PaymentRequired:bn,QuotaExceeded:fn,LimitExceeded:In,BreakingChanges:xn,OperationTimeout:kn},Pn=e=>PA(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):CA(e);function CA(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=vA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ae(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ae("An invalid error occurred: "+JSON.stringify(e))}var Zg=me(ve()),AA=e=>e[1]!==void 0,A=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(AA),p=Object.fromEntries(i),u=Zg.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 Xg=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var ty=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var sy=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 ay=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var iy=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var uy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var dy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var gy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var my=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var qy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var by=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var Iy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var ky=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var vy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var Ay=e=>({path:"/v2/billing/subscriptions/pending-subscription-upgrade/cancel",headers:{},query:{},params:{},body:{}});var Ty=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Uy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Sy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Ly=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var _y=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Qy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature}});var Fy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Oy=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Ny=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var $y=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Jy=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Yy=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Xy=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var tm=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var sm=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var rr=class{constructor(t,s={}){this.httpClient=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:n,query:a,body:o}=Xg(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}=ty(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}=sy(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}=ay(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}=iy(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}=uy(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}=dy(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}=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)})};listAddons=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)})};getSubscription=async t=>{let{path:s,headers:n,query:a,body:o}=qy(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}=by(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}=Iy(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}=ky(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}=vy(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}=Ay(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}=Ty(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}=Uy(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}=Sy(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}=Ly(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}=_y(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}=Qy(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}=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)})};payInvoice=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:"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}=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)})};setPaymentMethod=async t=>{let{path:s,headers:n,query:a,body:o}=$y(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}=Jy(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}=Yy(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}=Xy(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}=tm(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}=sm(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?Pn(t):Pn(e)}var vn=class extends rr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{listInvoices:t=>new R.AsyncCollection(({nextToken:s})=>this.listInvoices({nextToken:s,...t}).then(n=>({...n,items:n.invoices})))}}};var ea={};Z(ea,{Client:()=>Xn});var TA={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}},wA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:TA,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(wA.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"}},UA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,GA=e=>e instanceof S||UA(e)&&e.isApiError===!0,Be=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},An=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Bn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Tn=class extends S{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Un=class extends S{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Gn=class extends S{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},Sn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},En=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Ln=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Wn=class extends S{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},_n=class extends S{constructor(t,s,n,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,n,a)}},Hn=class extends S{constructor(t,s,n,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,n,a)}},Qn=class extends S{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},Dn=class extends S{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},Fn=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,n,a)}},On=class extends S{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},Vn=class extends S{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},Nn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Kn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},$n=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},zn=class extends S{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},Jn=class extends S{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},jn=class extends S{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},Yn=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},SA={Unknown:Be,Internal:An,Unauthorized:Bn,Forbidden:Tn,PayloadTooLarge:wn,InvalidPayload:Un,UnsupportedMediaType:Gn,MethodNotFound:Sn,ResourceNotFound:En,InvalidJsonSchema:Ln,InvalidDataFormat:Wn,InvalidIdentifier:_n,RelationConflict:Hn,ReferenceConstraint:Qn,ResourceLockedConflict:Dn,ResourceGone:Fn,ReferenceNotFound:Mn,InvalidQuery:On,Runtime:Vn,AlreadyExists:Nn,RateLimited:Kn,PaymentRequired:$n,QuotaExceeded:zn,LimitExceeded:Jn,BreakingChanges:jn,OperationTimeout:Yn},Zn=e=>GA(e)?e:e instanceof Error?new Be(e.message,e):typeof e=="string"?new Be(e):EA(e);function EA(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=SA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Be("An invalid error occurred: "+JSON.stringify(e))}var am=me(ve()),LA=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(LA),p=Object.fromEntries(i),u=am.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 om=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 pm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cm=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 lm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ym=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 Rm=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 hm=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 fm=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 xm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Pm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Cm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var Bm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var wm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gm=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 Em=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var sr=class{constructor(t,s={}){this.httpClient=t;this.props=s}upsertFile=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)})};deleteFile=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)})};listFiles=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)})};getFile=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)})};updateFileMetadata=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)})};copyFile=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:"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}=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)})};listFilePassages=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)})};setFilePassages=async t=>{let{path:s,headers:n,query:a,body:o}=xm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTags=async t=>{let{path:s,headers:n,query:a,body:o}=Pm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=Cm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=Bm(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}=wm(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}=Gm(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}=Em(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function N(e){let t=e?.response?.data;return t?Zn(t):Zn(e)}var nr=async(e,{key:t,index:s,tags:n,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:r,metadata:y,publicContentImmediatelyAccessible:x})=>{if(p&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await new W.HttpClient().get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new re(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new re("No content was provided for the file");let m,k;if(typeof i=="string"){let I=new TextEncoder().encode(i);m=I,k=I.byteLength}else if(i instanceof Uint8Array)m=i,k=m.byteLength;else if(i instanceof ArrayBuffer)m=i,k=m.byteLength;else if(i instanceof Blob)m=i,k=i.size;else throw new re("The provided content is not supported");let{file:P}=await e.upsertFile({key:t,tags:n,index:s,accessPolicies:o,contentType:a,metadata:y,size:k,expiresAt:r,indexing:u,publicContentImmediatelyAccessible:x}),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 re(`Failed to upload file: ${I.message}`,I,P)}return{file:{...P,size:k}}};var Xn=class extends sr{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 nr(this,t)}};var Ba={};Z(Ba,{Client:()=>Aa});var _A={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}},HA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:_A,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(HA.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"}},QA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DA=e=>e instanceof E||QA(e)&&e.isApiError===!0,Te=class extends E{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ta=class extends E{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ra=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},na=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},aa=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},oa=class extends E{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},ia=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},pa=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},ua=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ca=class extends E{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},da=class extends E{constructor(t,s,n,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,n,a)}},la=class extends E{constructor(t,s,n,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,n,a)}},ga=class extends E{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},ya=class extends E{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Ra=class extends E{constructor(t,s,n,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,n,a)}},qa=class extends E{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},ha=class extends E{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},ba=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},fa=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ia=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},xa=class extends E{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},ka=class extends E{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},Pa=class extends E{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},va=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},FA={Unknown:Te,Internal:ta,Unauthorized:ra,Forbidden:sa,PayloadTooLarge:na,InvalidPayload:aa,UnsupportedMediaType:oa,MethodNotFound:ia,ResourceNotFound:pa,InvalidJsonSchema:ua,InvalidDataFormat:ca,InvalidIdentifier:da,RelationConflict:la,ReferenceConstraint:ga,ResourceLockedConflict:ya,ResourceGone:ma,ReferenceNotFound:Ra,InvalidQuery:qa,Runtime:ha,AlreadyExists:ba,RateLimited:fa,PaymentRequired:Ia,QuotaExceeded:xa,LimitExceeded:ka,BreakingChanges:Pa,OperationTimeout:va},Ca=e=>DA(e)?e:e instanceof Error?new Te(e.message,e):typeof e=="string"?new Te(e):MA(e);function MA(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=FA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Te(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Te("An invalid error occurred: "+JSON.stringify(e))}var _m=me(ve()),OA=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(OA),p=Object.fromEntries(i),u=_m.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 Hm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Dm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Mm=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 Vm=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 Km=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 zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var eR=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 rR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var oR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var pR=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 cR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var lR=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 yR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var RR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ar=class{constructor(t,s={}){this.httpClient=t;this.props=s}listTables=async t=>{let{path:s,headers:n,query:a,body:o}=Hm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=Dm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateTable=async t=>{let{path:s,headers:n,query:a,body:o}=Mm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=async t=>{let{path:s,headers:n,query:a,body:o}=Vm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=Km(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}=zm(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}=jm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};importTable=async t=>{let{path:s,headers:n,query:a,body:o}=Zm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:s,headers:n,query:a,body:o}=eR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=rR(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}=nR(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}=oR(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}=pR(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}=cR(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}=lR(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}=yR(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}=RR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function M(e){let t=e?.response?.data;return t?Ca(t):Ca(e)}var Aa=class extends ar{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}};var hR=me(ve()),NA=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(NA),p=Object.fromEntries(i),u=hR.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 bR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var IR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kR=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 vR=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 AR=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 TR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var SR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var LR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var _R=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var QR=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 FR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=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 NR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var JR=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 YR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var tq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var sq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aq=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var iq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var uq=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 dq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,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 mq=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var qq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var bq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var 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:{}});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/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 Tq=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 Uq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Sq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var Lq=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var _q=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var Qq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Fq=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 Oq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nq=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 $q=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jq=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 Yq=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 Xq=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 th=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var sh=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 ah=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ih=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var uh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var dh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var gh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var mh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var qh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ih=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var kh=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var vh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ah=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Th=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Uh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _h=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Qh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Fh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Nh=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 $h=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 Jh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Xh=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 tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ab=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 ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});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)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var _b=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 Qb=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 Fb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Ob=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Nb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $b=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Yb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var af=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 pf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var ff=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Pf=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 Cf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Bf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var wf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Gf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ef=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,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 Hf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Df=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Mf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Vf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var zf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var jf=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 eI=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rI=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 nI=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 oI=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 pI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var cI=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 lI=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 yI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var hI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var PI=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 CI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var BI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wI=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 GI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var EI=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 HI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var MI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var VI=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 KI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var jI=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 ex=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var rx=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var nx=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 ox=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 px=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var cx=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var lx=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var yx=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hx=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 fx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xx=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 Px=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 Cx=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 Bx=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 wx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Gx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Ex=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 Hx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dx=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 Mx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Vx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Kx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,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 jx=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 ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var ok=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 pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var lk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var yk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var hk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var fk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var or=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=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)})};getConversation=async t=>{let{path:s,headers:n,query:a,body:o}=IR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:s,headers:n,query:a,body:o}=kR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=vR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateConversation=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:"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}=TR(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}=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)})};addParticipant=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)})};getParticipant=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)})};removeParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=_R(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createEvent=async t=>{let{path:s,headers:n,query:a,body:o}=QR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=async t=>{let{path:s,headers:n,query:a,body:o}=FR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listEvents=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:"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}=NR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:s,headers:n,query:a,body:o}=$R(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=JR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=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)})};updateMessage=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:"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}=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)})};deleteMessage=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:"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}=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)})};importMessages=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)})};createUser=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)})};getUser=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:"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}=gq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateUser=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)})};updateUser=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)})};deleteUser=async t=>{let{path:s,headers:n,query:a,body:o}=bq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setStateExpiry=async t=>{let{path:s,headers:n,query:a,body:o}=Iq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=kq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};getOrSetState=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)})};patchState=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:"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}=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)})};unlinkIntegrationIdentifier=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:"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}=Lq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=_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)})};configureIntegration=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)})};createWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Fq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=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)})};updateWorkflow=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:"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}=$q(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}=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)})};getOrCreateWorkflow=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)})};listTagValues=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:"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}=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)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=sh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};runVrl=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)})};getAccount=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)})};updateAccount=async t=>{let{path:s,headers:n,query:a,body:o}=uh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteAccount=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)})};listPersonalAccessTokens=async t=>{let{path:s,headers:n,query:a,body:o}=gh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createPersonalAccessToken=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)})};deletePersonalAccessToken=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:"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}=bh(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}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=async t=>{let{path:s,headers:n,query:a,body:o}=Fh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:s,headers:n,query:a,body:o}=Oh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=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)})};updateBot=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:"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}=Jh(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}=Yh(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}=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)})};getBot=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)})};deleteBot=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)})};getBotLogs=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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)})};listBotIssueEvents=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)})};listBotVersions=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)})};getBotVersion=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:"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}=vb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};publishFromBotJson=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)})};createBotVersion=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)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=Ub(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=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:"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}=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=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)})};listBotApiKeys=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)})};createBotApiKey=async t=>{let{path:s,headers:n,query:a,body:o}=Ob(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=$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)})};updateBotAllowlist=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:"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}=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)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=Xb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:n,query:a,body:o}=tf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};chargeWorkspaceUnpaidInvoices=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)})};saveWorkspaceCancellationReasons=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:"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}=pf(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=async t=>{let{path:s,headers:n,query:a,body:o}=ff(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceQuotas=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)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Pf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=Cf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaces=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=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)})};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}=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)})};listWorkspaceMembers=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:"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}=Mf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=Vf(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}=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)})};updateWorkspaceMember=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:"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}=jf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=eI(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}=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)})};validateIntegrationCreation=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)})};updateIntegration=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)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=pI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=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)})};listIntegrations=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)})};getIntegration=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)})};getIntegrationLogs=async t=>{let{path:s,headers:n,query:a,body:o}=RI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationByName=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};deleteIntegration=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:"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}=xI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:s,headers:n,query:a,body:o}=PI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=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)})};getInterfaceByName=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)})};updateInterface=async t=>{let{path:s,headers:n,query:a,body:o}=wI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteInterface=async t=>{let{path:s,headers:n,query:a,body:o}=GI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listInterfaces=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)})};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}=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)})};getDereferencedPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=DI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=VI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deletePlugin=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:"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}=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)})};getPluginCode=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)})};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}=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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)})};listActivities=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)})};introspect=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:"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}=yx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteFile=async t=>{let{path:s,headers:n,query:a,body:o}=Rx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFiles=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getFile=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)})};updateFileMetadata=async t=>{let{path:s,headers:n,query:a,body:o}=xx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=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)})};searchFiles=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)})};listFilePassages=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)})};setFilePassages=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)})};listFileTags=async t=>{let{path:s,headers:n,query:a,body:o}=Gx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listFileTagValues=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)})};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}=Hx(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}=Dx(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}=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)})};listTables=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:"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}=Kx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};createTable=async t=>{let{path:s,headers:n,query:a,body:o}=jx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};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}=ek(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=rk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=nk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:s,headers:n,query:a,body:o}=ok(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};renameTableColumn=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:"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}=ck(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}=lk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};createTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=Rk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};updateTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=fk(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}=xk(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?he(t):he(e)}var Ta=class extends or{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 nr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,billing,errorFrom,files,http,isApiError,runtime,tables});
|
|
4
|
+
`+t.prev}function zt(e,t){var s=us(e),n=[];if(s){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=se(e,a)?t(e[a],e):""}var o=typeof ns=="function"?ns(e):[],i;if(Oe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(s&&String(Number(u))===u&&u<e.length||Oe&&i["$"+u]instanceof Symbol||(Gi.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof ns=="function")for(var r=0;r<o.length;r++)Si.call(e,o[r])&&n.push("["+t(o[r])+"]: "+t(e[o[r]],e));return n}});var Mi=q(($B,Fi)=>{"use strict";var ys=Fo(),Ve=qi(),vC=Di(),CC=ys("%TypeError%"),Yt=ys("%WeakMap%",!0),Zt=ys("%Map%",!0),AC=Ve("WeakMap.prototype.get",!0),BC=Ve("WeakMap.prototype.set",!0),TC=Ve("WeakMap.prototype.has",!0),wC=Ve("Map.prototype.get",!0),UC=Ve("Map.prototype.set",!0),GC=Ve("Map.prototype.has",!0),ms=function(e,t){for(var s=e,n;(n=s.next)!==null;s=n)if(n.key===t)return s.next=n.next,n.next=e.next,e.next=n,n},SC=function(e,t){var s=ms(e,t);return s&&s.value},EC=function(e,t,s){var n=ms(e,t);n?n.value=s:e.next={key:t,next:e.next,value:s}},LC=function(e,t){return!!ms(e,t)};Fi.exports=function(){var t,s,n,a={assert:function(o){if(!a.has(o))throw new CC("Side channel does not contain "+vC(o))},get:function(o){if(Yt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return AC(t,o)}else if(Zt){if(s)return wC(s,o)}else if(n)return SC(n,o)},has:function(o){if(Yt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return TC(t,o)}else if(Zt){if(s)return GC(s,o)}else if(n)return LC(n,o);return!1},set:function(o,i){Yt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Yt),BC(t,o,i)):Zt?(s||(s=new Zt),UC(s,o,i)):(n||(n={key:{},next:null}),EC(n,o,i))}};return a}});var Xt=q((zB,Oi)=>{"use strict";var WC=String.prototype.replace,_C=/%20/g,Rs={RFC1738:"RFC1738",RFC3986:"RFC3986"};Oi.exports={default:Rs.RFC3986,formatters:{RFC1738:function(e){return WC.call(e,_C,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rs.RFC1738,RFC3986:Rs.RFC3986}});var hs=q((JB,Ni)=>{"use strict";var HC=Xt(),qs=Object.prototype.hasOwnProperty,Pe=Array.isArray,ee=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),QC=function(t){for(;t.length>1;){var s=t.pop(),n=s.obj[s.prop];if(Pe(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);s.obj[s.prop]=a}}},Vi=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},DC=function e(t,s,n){if(!s)return t;if(typeof s!="object"){if(Pe(t))t.push(s);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qs.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var a=t;return Pe(t)&&!Pe(s)&&(a=Vi(t,n)),Pe(t)&&Pe(s)?(s.forEach(function(o,i){if(qs.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,n):t.push(o)}else t[i]=o}),t):Object.keys(s).reduce(function(o,i){var p=s[i];return qs.call(o,i)?o[i]=e(o[i],p,n):o[i]=p,o},a)},FC=function(t,s){return Object.keys(s).reduce(function(n,a){return n[a]=s[a],n},t)},MC=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}},OC=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===HC.RFC1738&&(r===40||r===41)){p+=i.charAt(u);continue}if(r<128){p=p+ee[r];continue}if(r<2048){p=p+(ee[192|r>>6]+ee[128|r&63]);continue}if(r<55296||r>=57344){p=p+(ee[224|r>>12]+ee[128|r>>6&63]+ee[128|r&63]);continue}u+=1,r=65536+((r&1023)<<10|i.charCodeAt(u)&1023),p+=ee[240|r>>18]+ee[128|r>>12&63]+ee[128|r>>6&63]+ee[128|r&63]}return p},VC=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 QC(s),t},NC=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},KC=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},$C=function(t,s){return[].concat(t,s)},zC=function(t,s){if(Pe(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(s(t[a]));return n}return s(t)};Ni.exports={arrayToObject:Vi,assign:FC,combine:$C,compact:VC,decode:MC,encode:OC,isBuffer:KC,isRegExp:NC,maybeMap:zC,merge:DC}});var Yi=q((jB,ji)=>{"use strict";var zi=Mi(),fs=hs(),ot=Xt(),JC=Object.prototype.hasOwnProperty,Ki={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},ne=Array.isArray,jC=String.prototype.split,YC=Array.prototype.push,Ji=function(e,t){YC.apply(e,ne(t)?t:[t])},ZC=Date.prototype.toISOString,$i=ot.default,F={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fs.encode,encodeValuesOnly:!1,format:$i,formatter:ot.formatters[$i],indices:!1,serializeDate:function(t){return ZC.call(t)},skipNulls:!1,strictNullHandling:!1},XC=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},bs={},eA=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(bs))!==void 0&&!j;){var le=K.get(t);if(J+=1,typeof le<"u"){if(le===J)throw new RangeError("Cyclic object value");j=!0}typeof K.get(bs)>"u"&&(J=0)}if(typeof u=="function"?I=u(s,I):I instanceof Date?I=x(I):n==="comma"&&ne(I)&&(I=fs.maybeMap(I,function(ir){return ir instanceof Date?x(ir):ir})),I===null){if(o)return p&&!P?p(s,F.encoder,h,"key",m):s;I=""}if(XC(I)||fs.isBuffer(I)){if(p){var Ke=P?s:p(s,F.encoder,h,"key",m);if(n==="comma"&&P){for(var ge=jC.call(String(I),","),$e="",ae=0;ae<ge.length;++ae)$e+=(ae===0?"":",")+k(p(ge[ae],F.encoder,h,"value",m));return[k(Ke)+(a&&ne(I)&&ge.length===1?"[]":"")+"="+$e]}return[k(Ke)+"="+k(p(I,F.encoder,h,"value",m))]}return[k(s)+"="+k(String(I))]}var we=[];if(typeof I>"u")return we;var ye;if(n==="comma"&&ne(I))ye=[{value:I.length>0?I.join(",")||null:void 0}];else if(ne(u))ye=u;else{var Ue=Object.keys(I);ye=r?Ue.sort(r):Ue}for(var Y=a&&ne(I)&&I.length===1?s+"[]":s,oe=0;oe<ye.length;++oe){var te=ye[oe],ze=typeof te=="object"&&typeof te.value<"u"?te.value:I[te];if(!(i&&ze===null)){var Ck=ne(I)?typeof n=="function"?n(Y,te):Y:Y+(y?"."+te:"["+te+"]");L.set(t,J);var wa=zi();wa.set(bs,L),Ji(we,e(ze,Ck,n,a,o,i,p,u,r,y,x,m,k,P,h,wa))}}return we},tA=function(t){if(!t)return F;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||F.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ot.default;if(typeof t.format<"u"){if(!JC.call(ot.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=ot.formatters[n],o=F.filter;return(typeof t.filter=="function"||ne(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:F.addQueryPrefix,allowDots:typeof t.allowDots>"u"?F.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:F.charsetSentinel,delimiter:typeof t.delimiter>"u"?F.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:F.encode,encoder:typeof t.encoder=="function"?t.encoder:F.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:F.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:F.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:F.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:F.strictNullHandling}};ji.exports=function(e,t){var s=e,n=tA(t),a,o;typeof n.filter=="function"?(o=n.filter,s=o("",s)):ne(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Ki?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Ki[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=zi(),x=0;x<a.length;++x){var m=a[x];n.skipNulls&&s[m]===null||Ji(i,eA(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 ep=q((YB,Xi)=>{"use strict";var Ne=hs(),Is=Object.prototype.hasOwnProperty,rA=Array.isArray,Q={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ne.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},sA=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Zi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},nA="utf8=%26%2310003%3B",aA="utf8=%E2%9C%93",oA=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]===aA?r="utf-8":i[u]===nA&&(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=Ne.maybeMap(Zi(y.slice(m+1),s),function(h){return s.decoder(h,Q.decoder,r,"value")})),P&&s.interpretNumericEntities&&r==="iso-8859-1"&&(P=sA(P)),y.indexOf("[]=")>-1&&(P=rA(P)?[P]:P),Is.call(n,k)?n[k]=Ne.combine(n[k],P):n[k]=P}return n},iA=function(e,t,s,n){for(var a=n?t:Zi(t,s),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&s.parseArrays)i=[].concat(a);else{i=s.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,r=parseInt(u,10);!s.parseArrays&&u===""?i={0:a}:!isNaN(r)&&p!==u&&String(r)===u&&r>=0&&s.parseArrays&&r<=s.arrayLimit?(i=[],i[r]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},pA=function(t,s,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(o),r=u?o.slice(0,u.index):o,y=[];if(r){if(!n.plainObjects&&Is.call(Object.prototype,r)&&!n.allowPrototypes)return;y.push(r)}for(var x=0;n.depth>0&&(u=p.exec(o))!==null&&x<n.depth;){if(x+=1,!n.plainObjects&&Is.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),iA(y,s,n,a)}},uA=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"||Ne.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}};Xi.exports=function(e,t){var s=uA(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?oA(e,s):e,a=s.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var p=o[i],u=pA(p,n[p],s,typeof e=="string");a=Ne.merge(a,u,s)}return s.allowSparse===!0?a:Ne.compact(a)}});var ve=q((ZB,tp)=>{"use strict";var cA=Yi(),dA=ep(),lA=Xt();tp.exports={formats:lA,parse:dA,stringify:cA}});var JA={};Z(JA,{AlreadyExistsError:()=>At,BreakingChangesError:()=>Gt,Client:()=>Ta,ForbiddenError:()=>dt,InternalError:()=>ut,InvalidDataFormatError:()=>ht,InvalidIdentifierError:()=>bt,InvalidJsonSchemaError:()=>qt,InvalidPayloadError:()=>gt,InvalidQueryError:()=>vt,LimitExceededError:()=>Ut,MethodNotFoundError:()=>mt,OperationTimeoutError:()=>St,PayloadTooLargeError:()=>lt,PaymentRequiredError:()=>Tt,QuotaExceededError:()=>wt,RateLimitedError:()=>Bt,ReferenceConstraintError:()=>It,ReferenceNotFoundError:()=>Pt,RelationConflictError:()=>ft,ResourceGoneError:()=>kt,ResourceLockedConflictError:()=>xt,ResourceNotFoundError:()=>Rt,RuntimeError:()=>Ct,UnauthorizedError:()=>ct,UnknownError:()=>pe,UnsupportedMediaTypeError:()=>yt,UploadFileError:()=>re,admin:()=>Ys,billing:()=>Cn,errorFrom:()=>he,files:()=>ea,http:()=>W,isApiError:()=>La,runtime:()=>ks,tables:()=>Ba});module.exports=Gk(JA);var W={};Z(W,{HttpClient:()=>pt,HttpError:()=>ie,createHttpClient:()=>Wk,isHttpError:()=>Re,isNetworkError:()=>Lk,isNetworkOrIdempotentRequestError:()=>Sa});var Sk=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():Math.random().toString(36).substring(2,15),ie=class extends Error{constructor(s,n,a,o,i){super(s);this.config=n;this.code=a;this.response=o;this.name="HttpError",i!==void 0&&(this.cause=i)}isHttpError=!0},Re=e=>e instanceof ie||typeof e=="object"&&e!==null&&e.isHttpError===!0,Ek=["get","head","options","put","delete"],Lk=e=>Re(e)&&!e.response,Sa=e=>{if(!Re(e))return!1;if(!e.response)return!0;let t=e.config.method?.toLowerCase()??"";return Ek.includes(t)&&e.response.status>=500&&e.response.status<=599},Wk=e=>new pt({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,debug:e.debug}),pt=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(!Re(a)||o||n>s.retries||!await(s.retryCondition??Sa)(a))throw a;let p=s.retryDelay?.(n,a)??0;p>0&&await new Promise(u=>setTimeout(u,p))}}get(t,s={}){return this.request({...s,method:"get",url:t})}delete(t,s={}){return this.request({...s,method:"delete",url:t})}post(t,s,n={}){return this.request({...n,method:"post",url:t,data:s})}put(t,s,n={}){return this.request({...n,method:"put",url:t,data:s})}async _requestOnce(t){let s=(t.method??"get").toUpperCase(),n=_k(t.baseURL??this.defaults.baseURL,t.url??""),a={...t,method:s,url:n},o=new Headers;Ga(o,this.defaults.headers),Ga(o,t.headers);let i;t.data!==void 0&&t.data!==null&&(Hk(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?Sk():void 0,k=Date.now();x&&console.debug(Mk(a,o,m));let P=h=>{if(r)return new ie(`timeout of ${p}ms exceeded`,a,"ECONNABORTED",void 0,h);if(t.signal?.aborted||this.defaults.signal?.aborted)return new ie("canceled",a,"ERR_CANCELED",void 0,h);let L=h?.cause,I=h?.message??"Network Error";return new ie(I,a,L?.code??"ERR_NETWORK",void 0,h)};try{let h=await fetch(n,{method:s,headers:o,body:i,signal:Dk(u),credentials:t.withCredentials??this.defaults.withCredentials?"include":void 0}),L={};h.headers.forEach((j,le)=>{L[le]=j});let I,K=t.responseType??"json";if(!h.ok||K==="json"||K==="text"){let j=await h.text();I=!h.ok||K==="json"?Qk(j):j}else K==="arraybuffer"?I=await h.arrayBuffer():I=h.body?Fk(h.body):void 0;let J={data:I,status:h.status,statusText:h.statusText,headers:L,config:a};if(x&&console.debug(Ok(J,m,k)),!h.ok)throw new ie(`Request failed with status code ${h.status}`,a,void 0,J);return J}catch(h){let L=Re(h)?h:P(h);throw x&&!L.response&&console.debug(Vk(L,m,k)),L}finally{y!==void 0&&clearTimeout(y)}}},_k=(e,t)=>!e||/^https?:\/\//i.test(t)?t:t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e,Ga=(e,t)=>{for(let[s,n]of Object.entries(t??{})){if(n===void 0){e.delete(s);continue}if(Array.isArray(n)){e.delete(s);for(let a of n)e.append(s,a)}else e.set(s,n)}},Hk=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,Qk=e=>{if(e)try{return JSON.parse(e)}catch{return e}},Dk=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*Fk(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 Mk=(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
|
+
`},Ok=(e,t,s)=>"RESPONSE: "+JSON.stringify({method:e.config.method?.toUpperCase(),status:e.status,url:e.config.url,timestamp:new Date().toISOString(),requestId:t,duration:`${Date.now()-s}ms`,headers:e.headers,body:e.data})+`
|
|
6
|
+
`,Vk=(e,t,s)=>"ERROR: "+JSON.stringify({status:e.code,url:e.config.url,timestamp:new Date().toISOString(),requestId:t??"N/A",duration:`${Date.now()-s}ms`});var ks={};Z(ks,{Client:()=>xs});var $={};Z($,{getClientConfig:()=>aP});var Je=me(Ea()),Yk="https://api.botpress.cloud",Zk=6e4,Xk=!1,eP="BP_API_URL",tP="BP_BOT_ID",rP="BP_INTEGRATION_ID",sP="BP_WORKSPACE_ID",nP="BP_TOKEN";function aP(e){let t=oP(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??Yk,a=t.timeout??Zk,o=t.debug??Xk;return{apiUrl:n,timeout:a,withCredentials:Je.isBrowser,headers:s,debug:o}}function oP(e){return Je.isBrowser?e:Je.isNode?iP(e):e}function iP(e){let t={...e,apiUrl:e.apiUrl??process.env[eP],botId:e.botId??process.env[tP],integrationId:e.integrationId??process.env[rP],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[sP]},s=t.token??process.env[nP];return s&&(t.token=s),t}var R={};Z(R,{AsyncCollection:()=>pr});var pr=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:n}=await this._list({nextToken:t});t=n.nextToken;for(let a of s)yield a}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,n=[],a=0;for await(let o of this)if(n.push(o),a++,a>=s)break;return n}};var z={};Z(z,{toApiError:()=>gP});var pP={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}},uP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:pP,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(uP.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"}},cP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,La=e=>e instanceof T||cP(e)&&e.isApiError===!0,pe=class extends T{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ut=class extends T{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ct=class extends T{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},dt=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)}},lt=class extends T{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},gt=class extends T{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},yt=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)}},Rt=class extends T{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},qt=class extends T{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ht=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)}},bt=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)}},ft=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)}},It=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)}},xt=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)}},kt=class extends T{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Pt=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)}},vt=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)}},Ct=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)}},At=class extends T{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Bt=class extends T{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Tt=class extends T{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},wt=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)}},Ut=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)}},Gt=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)}},St=class extends T{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},dP={Unknown:pe,Internal:ut,Unauthorized:ct,Forbidden:dt,PayloadTooLarge:lt,InvalidPayload:gt,UnsupportedMediaType:yt,MethodNotFound:mt,ResourceNotFound:Rt,InvalidJsonSchema:qt,InvalidDataFormat:ht,InvalidIdentifier:bt,RelationConflict:ft,ReferenceConstraint:It,ResourceLockedConflict:xt,ResourceGone:kt,ReferenceNotFound:Pt,InvalidQuery:vt,Runtime:Ct,AlreadyExists:At,RateLimited:Bt,PaymentRequired:Tt,QuotaExceeded:wt,LimitExceeded:Ut,BreakingChanges:Gt,OperationTimeout:St},he=e=>La(e)?e:e instanceof Error?new pe(e.message,e):typeof e=="string"?new pe(e):lP(e);function lP(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=dP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pe("An invalid error occurred: "+JSON.stringify(e))}var re=class extends Error{constructor(s,n,a){super(s);this.innerError=n;this.file=a;this.name="FileUploadError"}};var gP=e=>Re(e)&&e.response?.data?he(e.response.data):he(e);var yP={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}},mP=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:yP,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(mP.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"}},RP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,qP=e=>e instanceof w||RP(e)&&e.isApiError===!0,fe=class extends w{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ur=class extends w{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},cr=class extends w{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},dr=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)}},lr=class extends w{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},gr=class extends w{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},yr=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)}},mr=class extends w{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Rr=class extends w{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},qr=class extends w{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},hr=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)}},br=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)}},fr=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)}},Ir=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)}},xr=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)}},kr=class extends w{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Pr=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)}},vr=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)}},Cr=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)}},Ar=class extends w{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Br=class extends w{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Tr=class extends w{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},wr=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)}},Ur=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)}},Gr=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)}},Sr=class extends w{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},hP={Unknown:fe,Internal:ur,Unauthorized:cr,Forbidden:dr,PayloadTooLarge:lr,InvalidPayload:gr,UnsupportedMediaType:yr,MethodNotFound:mr,ResourceNotFound:Rr,InvalidJsonSchema:qr,InvalidDataFormat:hr,InvalidIdentifier:br,RelationConflict:fr,ReferenceConstraint:Ir,ResourceLockedConflict:xr,ResourceGone:kr,ReferenceNotFound:Pr,InvalidQuery:vr,Runtime:Cr,AlreadyExists:Ar,RateLimited:Br,PaymentRequired:Tr,QuotaExceeded:wr,LimitExceeded:Ur,BreakingChanges:Gr,OperationTimeout:Sr},Er=e=>qP(e)?e:e instanceof Error?new fe(e.message,e):typeof e=="string"?new fe(e):bP(e);function bP(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=hP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new fe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new fe("An invalid error occurred: "+JSON.stringify(e))}var rp=me(ve()),gA=e=>e[1]!==void 0,b=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(gA),p=Object.fromEntries(i),u=rp.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 sp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,properties:e.properties}});var ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ip=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 up=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 dp=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 gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var bp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Ip=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var kp=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 vp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ap=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 Tp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Up=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 Sp=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 Lp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _p=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Qp=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 Fp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Op=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 Np=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var $p=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 Jp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yp=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 Xp=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var su=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var au=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var iu=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 uu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var du=e=>({path:`/v1/chat/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 gu=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 mu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var qu=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var bu=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Iu=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var ku=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var vu=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Au=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tu=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 Uu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Su=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 Lu=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 _u=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 Qu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Fu=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 er=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=async t=>{let{path:s,headers:n,query:a,body:o}=sp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=ap(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listConversations=async t=>{let{path:s,headers:n,query:a,body:o}=ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateConversation=async t=>{let{path:s,headers:n,query:a,body:o}=up(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=dp(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}=gp(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}=mp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=qp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getParticipant=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)})};removeParticipant=async t=>{let{path:s,headers:n,query:a,body:o}=Ip(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=kp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getEvent=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:"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}=Ap(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};cancelScheduledEvent=async t=>{let{path:s,headers:n,query:a,body:o}=Tp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=Up(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}=Sp(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}=Lp(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=_p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=Qp(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}=Fp(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}=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)})};importMessages=async t=>{let{path:s,headers:n,query:a,body:o}=Np(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createUser=async t=>{let{path:s,headers:n,query:a,body:o}=$p(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=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)})};listUsers=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)})};getOrCreateUser=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)})};updateUser=async t=>{let{path:s,headers:n,query:a,body:o}=tu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=su(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}=au(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=async t=>{let{path:s,headers:n,query:a,body:o}=uu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=du(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};patchState=async t=>{let{path:s,headers:n,query:a,body:o}=gu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=mu(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}=qu(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}=bu(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}=Iu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=ku(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"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}=vu(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}=Au(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}=Tu(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}=Uu(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}=Su(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=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)})};listTagValues=async t=>{let{path:s,headers:n,query:a,body:o}=_u(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}=Qu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=async t=>{let{path:s,headers:n,query:a,body:o}=Fu(t),i=this.props.toRequest??b,p=this.props.toApiError??f,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function f(e){let t=e?.response?.data;return t?Er(t):Er(e)}var xs=class extends er{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(n=>({...n,items:n.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(n=>({...n,items:n.participants}))),events:t=>new R.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(n=>({...n,items:n.events}))),messages:t=>new R.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(n=>({...n,items:n.messages}))),users:t=>new R.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(n=>({...n,items:n.users})))}}};var Ys={};Z(Ys,{Client:()=>js});var mA={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}},RA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:mA,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(RA.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"}},qA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,hA=e=>e instanceof U||qA(e)&&e.isApiError===!0,Ce=class extends U{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},Ps=class extends U{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},vs=class extends U{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Cs=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)}},As=class extends U{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Bs=class extends U{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Ts=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)}},ws=class extends U{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},Us=class extends U{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Gs=class extends U{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Ss=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)}},Es=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)}},Ls=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)}},Ws=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)}},_s=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)}},Hs=class extends U{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Qs=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)}},Ds=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)}},Fs=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)}},Ms=class extends U{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Os=class extends U{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Vs=class extends U{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},Ns=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)}},Ks=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)}},$s=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)}},zs=class extends U{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},bA={Unknown:Ce,Internal:Ps,Unauthorized:vs,Forbidden:Cs,PayloadTooLarge:As,InvalidPayload:Bs,UnsupportedMediaType:Ts,MethodNotFound:ws,ResourceNotFound:Us,InvalidJsonSchema:Gs,InvalidDataFormat:Ss,InvalidIdentifier:Es,RelationConflict:Ls,ReferenceConstraint:Ws,ResourceLockedConflict:_s,ResourceGone:Hs,ReferenceNotFound:Qs,InvalidQuery:Ds,Runtime:Fs,AlreadyExists:Ms,RateLimited:Os,PaymentRequired:Vs,QuotaExceeded:Ns,LimitExceeded:Ks,BreakingChanges:$s,OperationTimeout:zs},Js=e=>hA(e)?e:e instanceof Error?new Ce(e.message,e):typeof e=="string"?new Ce(e):fA(e);function fA(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=bA[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 Ou=me(ve()),IA=e=>e[1]!==void 0,l=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(IA),p=Object.fromEntries(i),u=Ou.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 Vu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Ku=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var zu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ju=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Zu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ec=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var rc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var oc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var pc=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 cc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Rc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var fc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Pc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Cc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wc=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 Gc=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 Ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Hc=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 Dc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vc=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 Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var jc=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 Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pd=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 Cd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Bd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var wd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Hd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vd=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 Kd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var el=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 rl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var pl=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 cl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ll=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var yl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var fl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Pl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Cl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Bl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var Gl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var El=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Wl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Hl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dl=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 Ml=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 Vl=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 Kl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var zl=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 jl=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 Zl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eg=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 rg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ng=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var og=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var pg=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 cg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yg=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 Rg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var fg=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies,attributes:e.attributes}});var xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Bg=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 wg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Eg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Wg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Dg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Mg=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 Vg=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 Kg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var zg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var jg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var tr=class{constructor(t,s={}){this.httpClient=t;this.props=s}runVrl=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)})};getAccount=async t=>{let{path:s,headers:n,query:a,body:o}=Ku(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateAccount=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:"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}=ju(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}=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)})};createPersonalAccessToken=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:"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}=rc(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}=nc(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}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=Rc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getPublicPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=fc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicPluginCode=async t=>{let{path:s,headers:n,query:a,body:o}=xc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=async t=>{let{path:s,headers:n,query:a,body:o}=wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBot=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:"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}=Ec(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};transferBot=async t=>{let{path:s,headers:n,query:a,body:o}=Wc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBots=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getBot=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)})};deleteBot=async t=>{let{path:s,headers:n,query:a,body:o}=Mc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=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)})};getBotWebchat=async t=>{let{path:s,headers:n,query:a,body:o}=Kc(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=nd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=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:"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}=pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=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:"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}=ld(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=yd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=Rd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationShareableId=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};deleteIntegrationShareableId=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:n,query:a,body:o}=Pd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotApiKeys=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:"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}=Bd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteBotApiKey=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:"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}=Gd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateBotAllowlist=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:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:n,query:a,body:o}=Wd(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=Vd(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}=Kd(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:n,query:a,body:o}=el(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=ol(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=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:"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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=hl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setWorkspacePreference=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)})};getWorkspacePreference=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:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:n,query:a,body:o}=Pl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Cl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};createWorkspaceMember=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)})};updateWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=Gl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=El(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=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)})};deleteIntegrationApiKey=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)})};createIntegration=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:"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}=Ml(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}=Vl(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}=Kl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=async t=>{let{path:s,headers:n,query:a,body:o}=jl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Zl(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=og(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}=pg(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}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=Rg(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}=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)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Pg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPluginByName=async t=>{let{path:s,headers:n,query:a,body:o}=Cg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updatePlugin=async t=>{let{path:s,headers:n,query:a,body:o}=Bg(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}=wg(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}=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=async t=>{let{path:s,headers:n,query:a,body:o}=Dg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsageActivity=async t=>{let{path:s,headers:n,query:a,body:o}=Mg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Vg(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}=Kg(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}=zg(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}=jg(t),i=this.props.toRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function g(e){let t=e?.response?.data;return t?Js(t):Js(e)}var js=class extends tr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{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 Cn={};Z(Cn,{Client:()=>vn});var kA={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}},PA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:kA,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(PA.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"}},vA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,CA=e=>e instanceof G||vA(e)&&e.isApiError===!0,Ae=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)}},Xs=class extends G{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},en=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)}},tn=class extends G{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},rn=class extends G{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},sn=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)}},nn=class extends G{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},an=class extends G{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},on=class extends G{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},pn=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)}},un=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)}},cn=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)}},dn=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)}},ln=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)}},gn=class extends G{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},yn=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)}},mn=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)}},Rn=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)}},qn=class extends G{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},hn=class extends G{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},bn=class extends G{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},fn=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)}},In=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)}},xn=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)}},kn=class extends G{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},AA={Unknown:Ae,Internal:Zs,Unauthorized:Xs,Forbidden:en,PayloadTooLarge:tn,InvalidPayload:rn,UnsupportedMediaType:sn,MethodNotFound:nn,ResourceNotFound:an,InvalidJsonSchema:on,InvalidDataFormat:pn,InvalidIdentifier:un,RelationConflict:cn,ReferenceConstraint:dn,ResourceLockedConflict:ln,ResourceGone:gn,ReferenceNotFound:yn,InvalidQuery:mn,Runtime:Rn,AlreadyExists:qn,RateLimited:hn,PaymentRequired:bn,QuotaExceeded:fn,LimitExceeded:In,BreakingChanges:xn,OperationTimeout:kn},Pn=e=>CA(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(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=AA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ae(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ae("An invalid error occurred: "+JSON.stringify(e))}var Zg=me(ve()),TA=e=>e[1]!==void 0,A=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(TA),p=Object.fromEntries(i),u=Zg.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 Xg=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var ty=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var sy=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 ay=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{}});var iy=e=>({path:"/v2/billing/customer",headers:{},query:{},params:{},body:{address:e.address,name:e.name,taxIds:e.taxIds}});var uy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var dy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var gy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var my=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var qy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var by=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var Iy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var ky=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var vy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var Ay=e=>({path:"/v2/billing/subscriptions/pending-subscription-upgrade/cancel",headers:{},query:{},params:{},body:{}});var Ty=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Uy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Sy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Ly=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var _y=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Qy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{},params:{},body:{amount:e.amount,feature:e.feature,idempotencyKey:e.idempotencyKey}});var Fy=e=>({path:"/v2/billing/credit-grants",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Oy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Ny=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var $y=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Jy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Yy=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Xy=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var tm=e=>({path:"/v2/usage/workspace-usage",headers:{},query:{feature:e.feature,period:e.period},params:{},body:{}});var sm=e=>({path:"/v2/usage/workspace-usages",headers:{},query:{period:e.period},params:{},body:{}});var am=e=>({path:"/v2/feature-gate/list",headers:{},query:{},params:{},body:{}});var rr=class{constructor(t,s={}){this.httpClient=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:n,query:a,body:o}=Xg(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}=ty(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}=sy(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}=ay(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}=iy(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}=uy(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}=dy(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}=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)})};listAddons=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)})};getSubscription=async t=>{let{path:s,headers:n,query:a,body:o}=qy(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}=by(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}=Iy(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}=ky(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}=vy(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}=Ay(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}=Ty(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}=Uy(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}=Sy(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}=Ly(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}=_y(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}=Qy(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}=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)})};listInvoices=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)})};payInvoice=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:"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}=$y(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}=Jy(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}=Yy(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}=Xy(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}=tm(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}=sm(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}=am(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?Pn(t):Pn(e)}var vn=class extends rr{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}get list(){return{listInvoices:t=>new R.AsyncCollection(({nextToken:s})=>this.listInvoices({nextToken:s,...t}).then(n=>({...n,items:n.invoices})))}}};var ea={};Z(ea,{Client:()=>Xn});var UA={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:UA,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(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"}},SA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,EA=e=>e instanceof S||SA(e)&&e.isApiError===!0,Be=class extends S{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},An=class extends S{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},Bn=class extends S{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},Tn=class extends S{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},wn=class extends S{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},Un=class extends S{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},Gn=class extends S{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},Sn=class extends S{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},En=class extends S{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},Ln=class extends S{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},Wn=class extends S{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},_n=class extends S{constructor(t,s,n,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,n,a)}},Hn=class extends S{constructor(t,s,n,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,n,a)}},Qn=class extends S{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},Dn=class extends S{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},Fn=class extends S{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Mn=class extends S{constructor(t,s,n,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,n,a)}},On=class extends S{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},Vn=class extends S{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},Nn=class extends S{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},Kn=class extends S{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},$n=class extends S{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},zn=class extends S{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},Jn=class extends S{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},jn=class extends S{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},Yn=class extends S{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},LA={Unknown:Be,Internal:An,Unauthorized:Bn,Forbidden:Tn,PayloadTooLarge:wn,InvalidPayload:Un,UnsupportedMediaType:Gn,MethodNotFound:Sn,ResourceNotFound:En,InvalidJsonSchema:Ln,InvalidDataFormat:Wn,InvalidIdentifier:_n,RelationConflict:Hn,ReferenceConstraint:Qn,ResourceLockedConflict:Dn,ResourceGone:Fn,ReferenceNotFound:Mn,InvalidQuery:On,Runtime:Vn,AlreadyExists:Nn,RateLimited:Kn,PaymentRequired:$n,QuotaExceeded:zn,LimitExceeded:Jn,BreakingChanges:jn,OperationTimeout:Yn},Zn=e=>EA(e)?e:e instanceof Error?new Be(e.message,e):typeof e=="string"?new Be(e):WA(e);function WA(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=LA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Be("An invalid error occurred: "+JSON.stringify(e))}var im=me(ve()),_A=e=>e[1]!==void 0,V=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(_A),p=Object.fromEntries(i),u=im.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 pm=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var cm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lm=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 ym=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rm=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 hm=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 fm=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var xm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,limit:e.limit},params:{id:e.id},body:{}});var Pm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Cm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Bm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{tag:e.tag},body:{}});var wm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Gm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Em=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 Wm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var sr=class{constructor(t,s={}){this.httpClient=t;this.props=s}upsertFile=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)})};deleteFile=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:"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}=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)})};getFile=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)})};updateFileMetadata=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)})};copyFile=async t=>{let{path:s,headers:n,query:a,body:o}=hm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=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)})};listFilePassages=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:"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}=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)})};listFileTags=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)})};listFileTagValues=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)})};createKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=wm(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}=Gm(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}=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)})};listKnowledgeBases=async t=>{let{path:s,headers:n,query:a,body:o}=Wm(t),i=this.props.toRequest??V,p=this.props.toApiError??N,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function N(e){let t=e?.response?.data;return t?Zn(t):Zn(e)}var nr=async(e,{key:t,index:s,tags:n,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:r,metadata:y,publicContentImmediatelyAccessible:x})=>{if(p&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await new W.HttpClient().get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new re(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new re("No content was provided for the file");let m,k;if(typeof i=="string"){let I=new TextEncoder().encode(i);m=I,k=I.byteLength}else if(i instanceof Uint8Array)m=i,k=m.byteLength;else if(i instanceof ArrayBuffer)m=i,k=m.byteLength;else if(i instanceof Blob)m=i,k=i.size;else throw new re("The provided content is not supported");let{file:P}=await e.upsertFile({key:t,tags:n,index:s,accessPolicies:o,contentType:a,metadata:y,size:k,expiresAt:r,indexing:u,publicContentImmediatelyAccessible:x}),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 re(`Failed to upload file: ${I.message}`,I,P)}return{file:{...P,size:k}}};var Xn=class extends sr{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 nr(this,t)}};var Ba={};Z(Ba,{Client:()=>Aa});var QA={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}},DA=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues=="function"?globalThis.crypto:QA,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(DA.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"}},FA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,MA=e=>e instanceof E||FA(e)&&e.isApiError===!0,Te=class extends E{constructor(t,s,n,a){super(500,"An unknown error occurred","Unknown",t,s,n,a)}},ta=class extends E{constructor(t,s,n,a){super(500,"An internal error occurred","Internal",t,s,n,a)}},ra=class extends E{constructor(t,s,n,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,n,a)}},sa=class extends E{constructor(t,s,n,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,n,a)}},na=class extends E{constructor(t,s,n,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,n,a)}},aa=class extends E{constructor(t,s,n,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,n,a)}},oa=class extends E{constructor(t,s,n,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,n,a)}},ia=class extends E{constructor(t,s,n,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,n,a)}},pa=class extends E{constructor(t,s,n,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,n,a)}},ua=class extends E{constructor(t,s,n,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,n,a)}},ca=class extends E{constructor(t,s,n,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,n,a)}},da=class extends E{constructor(t,s,n,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,n,a)}},la=class extends E{constructor(t,s,n,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,n,a)}},ga=class extends E{constructor(t,s,n,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,n,a)}},ya=class extends E{constructor(t,s,n,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,n,a)}},ma=class extends E{constructor(t,s,n,a){super(410,"The requested resource is no longer available.","ResourceGone",t,s,n,a)}},Ra=class extends E{constructor(t,s,n,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,n,a)}},qa=class extends E{constructor(t,s,n,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,n,a)}},ha=class extends E{constructor(t,s,n,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,n,a)}},ba=class extends E{constructor(t,s,n,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,n,a)}},fa=class extends E{constructor(t,s,n,a){super(429,"The request has been rate limited.","RateLimited",t,s,n,a)}},Ia=class extends E{constructor(t,s,n,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,n,a)}},xa=class extends E{constructor(t,s,n,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,n,a)}},ka=class extends E{constructor(t,s,n,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,n,a)}},Pa=class extends E{constructor(t,s,n,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,n,a)}},va=class extends E{constructor(t,s,n,a){super(504,"The operation timed out.","OperationTimeout",t,s,n,a)}},OA={Unknown:Te,Internal:ta,Unauthorized:ra,Forbidden:sa,PayloadTooLarge:na,InvalidPayload:aa,UnsupportedMediaType:oa,MethodNotFound:ia,ResourceNotFound:pa,InvalidJsonSchema:ua,InvalidDataFormat:ca,InvalidIdentifier:da,RelationConflict:la,ReferenceConstraint:ga,ResourceLockedConflict:ya,ResourceGone:ma,ReferenceNotFound:Ra,InvalidQuery:qa,Runtime:ha,AlreadyExists:ba,RateLimited:fa,PaymentRequired:Ia,QuotaExceeded:xa,LimitExceeded:ka,BreakingChanges:Pa,OperationTimeout:va},Ca=e=>MA(e)?e:e instanceof Error?new Te(e.message,e):typeof e=="string"?new Te(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=OA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Te(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Te("An invalid error occurred: "+JSON.stringify(e))}var Qm=me(ve()),NA=e=>e[1]!==void 0,D=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter(NA),p=Object.fromEntries(i),u=Qm.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 Dm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Mm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vm=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 Km=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 zm=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 jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var eR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var rR=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 nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var oR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var cR=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 lR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var yR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var RR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var hR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ar=class{constructor(t,s={}){this.httpClient=t;this.props=s}listTables=async t=>{let{path:s,headers:n,query:a,body:o}=Dm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTable=async t=>{let{path:s,headers:n,query:a,body:o}=Mm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=Vm(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}=Km(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}=zm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};exportTable=async t=>{let{path:s,headers:n,query:a,body:o}=jm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getTableJobs=async t=>{let{path:s,headers:n,query:a,body:o}=Zm(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=eR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateTable=async t=>{let{path:s,headers:n,query:a,body:o}=rR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=nR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteTable=async t=>{let{path:s,headers:n,query:a,body:o}=oR(t),i=this.props.toRequest??D,p=this.props.toApiError??M,u=i({method:"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}=pR(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}=cR(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}=lR(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}=yR(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}=RR(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}=hR(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?Ca(t):Ca(e)}var Aa=class extends ar{config;constructor(t){let s=$.getClientConfig(t),n=W.createHttpClient(s);super(n,{toApiError:z.toApiError}),t.retry&&(n.retry=t.retry),this.config=s}};var fR=me(ve()),$A=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:n,headers:a,body:o}=e,i=Object.entries(a).filter($A),p=Object.fromEntries(i),u=fR.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 IR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,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",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 AR=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 TR=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 UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var LR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var _R=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var QR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var FR=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 OR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var NR=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 $R=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var JR=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 YR=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 XR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var sq=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 aq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=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 uq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var dq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var gq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mq=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 qq=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 bq=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 Iq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var vq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Aq=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 Tq=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 Uq=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Sq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Lq=e=>({path:"/v1/chat/integration/identifiers",headers:{},query:{value:e.value},params:{},body:{}});var _q=e=>({path:"/v1/chat/integration/identifiers/availability",headers:{},query:{value:e.value},params:{},body:{}});var Qq=e=>({path:"/v1/chat/integration-instance/identifiers",headers:{},query:{},params:{},body:{}});var Fq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,identifiers:e.identifiers,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Oq=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 Nq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $q=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Jq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yq=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 Xq=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 th=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 sh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ah=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 ih=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var uh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var dh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var gh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var mh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var qh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var bh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ih=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var kh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var vh=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,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 Ah=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Uh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Sh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var _h=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Qh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Fh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var Oh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var $h=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 Jh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,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 Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Xh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var tb=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 sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var gb=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 mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{id:e.id},body:{}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Lb=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 _b=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 Qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Fb=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 Ob=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Nb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var $b=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Yb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var pf=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 cf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name,billingVersion:e.billingVersion}});var lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hf=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 ff=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Bf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var wf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,handle:e.handle},params:{},body:{}});var Gf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Ef=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 Hf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Df=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Mf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize},params:{},body:{}});var Vf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role,sendEmail:e.sendEmail}});var jf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var eI=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var rI=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nI=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 oI=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 pI=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 cI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var lI=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 yI=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 RI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hI=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 fI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xI=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PI=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var CI=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var BI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var GI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,attributes:e.attributes}});var EI=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var WI=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var HI=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies,attributes:e.attributes}});var DI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var VI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var KI=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 zI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jI=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,name:e.name,version:e.version},params:{},body:{}});var ZI=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ex=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var rx=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var nx=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ox=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 px=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 cx=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var lx=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,taskId:e.taskId,botId:e.botId},params:{},body:{}});var yx=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Rx=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 hx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fx=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 xx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Px=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Cx=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Bx=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 wx=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 Gx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Ex=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 Hx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,description:e.description,tags:e.tags}});var Dx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mx=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 Vx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,pageSize:e.pageSize,tags:e.tags},params:{},body:{}});var Kx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var jx=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 Zx=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 ek=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 rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var pk=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 ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var lk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var yk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Rk=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 hk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var fk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var or=class{constructor(t,s={}){this.httpClient=t;this.props=s}createConversation=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)})};getConversation=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:"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}=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)})};getOrCreateConversation=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)})};updateConversation=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:"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}=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)})};listParticipants=async t=>{let{path:s,headers:n,query:a,body:o}=SR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};addParticipant=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)})};getParticipant=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)})};removeParticipant=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)})};createEvent=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)})};getEvent=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:"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}=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)})};cancelScheduledEvent=async t=>{let{path:s,headers:n,query:a,body:o}=$R(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createMessage=async t=>{let{path:s,headers:n,query:a,body:o}=JR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=YR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getMessage=async t=>{let{path:s,headers:n,query:a,body:o}=XR(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateMessage=async t=>{let{path:s,headers:n,query:a,body:o}=tq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listMessages=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)})};deleteMessage=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)})};initializeIncomingMessage=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)})};importMessages=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)})};createUser=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)})};getUser=async t=>{let{path:s,headers:n,query:a,body:o}=gq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listUsers=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:"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}=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)})};updateUser=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:"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}=Iq(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}=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)})};getState=async t=>{let{path:s,headers:n,query:a,body:o}=vq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setState=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)})};getOrSetState=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)})};patchState=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:"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}=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)})};unlinkIntegrationIdentifier=async t=>{let{path:s,headers:n,query:a,body:o}=Lq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationIdentifierAvailability=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)})};getIntegrationInstanceIdentifiers=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)})};configureIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=Fq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=Oq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkflow=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)})};updateWorkflow=async t=>{let{path:s,headers:n,query:a,body:o}=$q(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteWorkflow=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:"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}=Yq(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getOrCreateWorkflow=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)})};listTagValues=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)})};trackAnalytics=async t=>{let{path:s,headers:n,query:a,body:o}=sh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};captureObservation=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)})};runVrl=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)})};getAccount=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)})};updateAccount=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:"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}=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)})};listPersonalAccessTokens=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)})};createPersonalAccessToken=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)})};deletePersonalAccessToken=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};setAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=Ih(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getAccountPreference=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};listPublicIntegrations=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=async t=>{let{path:s,headers:n,query:a,body:o}=Fh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterfaceById=async t=>{let{path:s,headers:n,query:a,body:o}=Oh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPublicInterface=async t=>{let{path:s,headers:n,query:a,body:o}=Nh(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createBot=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)})};updateBot=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:"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}=Yh(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}=Xh(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}=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)})};getBot=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)})};deleteBot=async t=>{let{path:s,headers:n,query:a,body:o}=ab(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotLogs=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=async t=>{let{path:s,headers:n,query:a,body:o}=bb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotIssueEvents=async t=>{let{path:s,headers:n,query:a,body:o}=Ib(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listBotVersions=async t=>{let{path:s,headers:n,query:a,body:o}=kb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=vb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getBotJson=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)})};publishFromBotJson=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)})};createBotVersion=async t=>{let{path:s,headers:n,query:a,body:o}=Ub(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deployBotVersion=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:"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}=Lb(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteIntegrationShareableId=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:"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}=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)})};unlinkSandboxedConversations=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)})};listBotApiKeys=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)})};createBotApiKey=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)})};deleteBotApiKey=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:"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}=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)})};updateBotAllowlist=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:"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}=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)})};listWorkspaceInvoices=async t=>{let{path:s,headers:n,query:a,body:o}=tf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=pf(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}=cf(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}=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)})};getWorkspace=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:n,query:a,body:o}=ff(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=async t=>{let{path:s,headers:n,query:a,body:o}=Pf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateWorkspace=async t=>{let{path:s,headers:n,query:a,body:o}=Cf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};checkHandleAvailability=async t=>{let{path:s,headers:n,query:a,body:o}=Bf(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}=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=Hf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getWorkspacePreference=async t=>{let{path:s,headers:n,query:a,body:o}=Df(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=Mf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=async t=>{let{path:s,headers:n,query:a,body:o}=jf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:n,query:a,body:o}=Zf(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createIntegrationApiKey=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)})};deleteIntegrationApiKey=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)})};createIntegration=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)})};validateIntegrationCreation=async t=>{let{path:s,headers:n,query:a,body:o}=oI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};updateIntegration=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)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:n,query:a,body:o}=cI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};validateIntegrationUpdate=async t=>{let{path:s,headers:n,query:a,body:o}=lI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listIntegrations=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)})};getIntegration=async t=>{let{path:s,headers:n,query:a,body:o}=RI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:n,query:a,body:o}=PI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createInterface=async t=>{let{path:s,headers:n,query:a,body:o}=CI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getInterface=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=EI(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}=HI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getPlugin=async t=>{let{path:s,headers:n,query:a,body:o}=DI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=zI(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listPlugins=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)})};getPluginCode=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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)})};listActivities=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)})};introspect=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:"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}=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)})};deleteFile=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:"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}=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)})};getFile=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)})};updateFileMetadata=async t=>{let{path:s,headers:n,query:a,body:o}=Px(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};copyFile=async t=>{let{path:s,headers:n,query:a,body:o}=Cx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};searchFiles=async t=>{let{path:s,headers:n,query:a,body:o}=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)})};listFilePassages=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)})};setFilePassages=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:"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}=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)})};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}=Hx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};deleteKnowledgeBase=async t=>{let{path:s,headers:n,query:a,body:o}=Dx(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}=Mx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};listKnowledgeBases=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:"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}=Kx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};getOrCreateTable=async t=>{let{path:s,headers:n,query:a,body:o}=jx(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};createTable=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)})};duplicateTable=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)})};exportTable=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:"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}=nk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=ok(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}=pk(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}=ck(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}=lk(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}=yk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};createTableRows=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)})};deleteTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=fk(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}=xk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})};upsertTableRows=async t=>{let{path:s,headers:n,query:a,body:o}=Pk(t),i=this.props.toRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:s,headers:{...n},query:{...a},body:o});return this.httpClient.request(u).then(r=>r.data).catch(r=>{throw p(r)})}};function d(e){let t=e?.response?.data;return t?he(t):he(e)}var Ta=class extends or{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 nr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,billing,errorFrom,files,http,isApiError,runtime,tables});
|
|
7
7
|
//# sourceMappingURL=bundle.cjs.map
|