@botpress/client 0.20.0 → 0.20.1
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/client.d.ts +10 -0
- package/dist/config.d.ts +2 -18
- package/dist/errors.d.ts +39 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -67
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/dist/types.d.ts +50 -0
- package/package.json +1 -1
- package/readme.md +2 -2
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as gen from './gen';
|
|
2
|
+
import * as types from './types';
|
|
3
|
+
export declare class Client extends gen.Client implements types.IClient {
|
|
4
|
+
readonly config: Readonly<types.ClientConfig>;
|
|
5
|
+
constructor(clientProps?: types.ClientProps);
|
|
6
|
+
/**
|
|
7
|
+
* Creates and uploads a new file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
|
|
8
|
+
*/
|
|
9
|
+
readonly createAndUploadFile: ({ name, index, tags, contentType, accessPolicies, content, url, }: types.ClientInputs['createAndUploadFile']) => Promise<types.ClientOutputs['createAndUploadFile']>;
|
|
10
|
+
}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
integrationId?: string;
|
|
4
|
-
workspaceId?: string;
|
|
5
|
-
botId?: string;
|
|
6
|
-
token?: string;
|
|
7
|
-
apiUrl?: string;
|
|
8
|
-
timeout?: number;
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
};
|
|
11
|
-
export type ClientConfig = {
|
|
12
|
-
apiUrl: string;
|
|
13
|
-
headers: Headers;
|
|
14
|
-
withCredentials: boolean;
|
|
15
|
-
timeout: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function getClientConfig(clientProps: ClientProps): ClientConfig;
|
|
18
|
-
export {};
|
|
1
|
+
import * as types from './types';
|
|
2
|
+
export declare function getClientConfig(clientProps: types.ClientProps): types.ClientConfig;
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
export * from './gen/errors';
|
|
3
|
+
export declare class CreateAndUploadFileError extends Error {
|
|
4
|
+
readonly innerError?: AxiosError<unknown, any> | undefined;
|
|
5
|
+
readonly file?: {
|
|
6
|
+
id: string;
|
|
7
|
+
botId: string;
|
|
8
|
+
name: string | null;
|
|
9
|
+
size: number | null;
|
|
10
|
+
contentType: string;
|
|
11
|
+
tags: {
|
|
12
|
+
[k: string]: string;
|
|
13
|
+
};
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
accessPolicies: ("integrations" | "public_content")[];
|
|
17
|
+
index: boolean;
|
|
18
|
+
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
19
|
+
failedStatusReason?: string | undefined;
|
|
20
|
+
uploadUrl: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
23
|
+
id: string;
|
|
24
|
+
botId: string;
|
|
25
|
+
name: string | null;
|
|
26
|
+
size: number | null;
|
|
27
|
+
contentType: string;
|
|
28
|
+
tags: {
|
|
29
|
+
[k: string]: string;
|
|
30
|
+
};
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
accessPolicies: ("integrations" | "public_content")[];
|
|
34
|
+
index: boolean;
|
|
35
|
+
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
36
|
+
failedStatusReason?: string | undefined;
|
|
37
|
+
uploadUrl: string;
|
|
38
|
+
} | undefined);
|
|
39
|
+
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var qi=Object.create;var me=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ii=(e,t)=>{for(var s in t)me(e,s,{get:t[s],enumerable:!0})},Ct=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fi(t))!xi.call(e,o)&&o!==s&&me(e,o,{get:()=>t[o],enumerable:!(a=hi(t,o))||a.enumerable});return e};var O=(e,t,s)=>(s=e!=null?qi(bi(e)):{},Ct(t||!e||!e.__esModule?me(s,"default",{value:e,enumerable:!0}):s,e)),ki=e=>Ct(me({},"__esModule",{value:!0}),e);var wt=I((Tu,Gt)=>{"use strict";Gt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;t[s]=o;for(s 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 n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var St=I((Cu,Lt)=>{"use strict";var Wt=typeof Symbol<"u"&&Symbol,Hi=wt();Lt.exports=function(){return typeof Wt!="function"||typeof Symbol!="function"||typeof Wt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Hi()}});var Dt=I((Bu,Ht)=>{"use strict";var Qt={foo:{}},Di=Object;Ht.exports=function(){return{__proto__:Qt}.foo===Qt.foo&&!({__proto__:null}instanceof Di)}});var Et=I((Uu,Mt)=>{"use strict";var Mi="Function.prototype.bind called on incompatible ",tt=Array.prototype.slice,Ei=Object.prototype.toString,_i="[object Function]";Mt.exports=function(t){var s=this;if(typeof s!="function"||Ei.call(s)!==_i)throw new TypeError(Mi+s);for(var a=tt.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(tt.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(tt.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var Me=I((Gu,_t)=>{"use strict";var Oi=Et();_t.exports=Function.prototype.bind||Oi});var Ft=I((wu,Ot)=>{"use strict";var Fi=Me();Ot.exports=Fi.call(Function.call,Object.prototype.hasOwnProperty)});var Oe=I((Wu,zt)=>{"use strict";var g,ee=SyntaxError,Vt=Function,X=TypeError,rt=function(e){try{return Vt('"use strict"; return ('+e+").constructor;")()}catch{}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch{F=null}var st=function(){throw new X},Ni=F?function(){try{return arguments.callee,st}catch{try{return F(arguments,"callee").get}catch{return st}}}():st,Y=St()(),$i=Dt()(),b=Object.getPrototypeOf||($i?function(e){return e.__proto__}:null),Z={},Ki=typeof Uint8Array>"u"||!b?g:b(Uint8Array),N={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&b?b([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":Vt,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&b?b(b([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!b?g:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!b?g:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&b?b(""[Symbol.iterator]()):g,"%Symbol%":Y?Symbol:g,"%SyntaxError%":ee,"%ThrowTypeError%":Ni,"%TypedArray%":Ki,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(b)try{null.error}catch(e){Nt=b(b(e)),N["%Error.prototype%"]=Nt}var Nt,Vi=function e(t){var s;if(t==="%AsyncFunction%")s=rt("async function () {}");else if(t==="%GeneratorFunction%")s=rt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=rt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&b&&(s=b(o.prototype))}return N[t]=s,s},$t={"%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"]},ce=Me(),Ee=Ft(),zi=ce.call(Function.call,Array.prototype.concat),ji=ce.call(Function.apply,Array.prototype.splice),Kt=ce.call(Function.call,String.prototype.replace),_e=ce.call(Function.call,String.prototype.slice),Ji=ce.call(Function.call,RegExp.prototype.exec),Yi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zi=/\\(\\)?/g,Xi=function(t){var s=_e(t,0,1),a=_e(t,-1);if(s==="%"&&a!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Kt(t,Yi,function(n,p,i,r){o[o.length]=i?Kt(r,Zi,"$1"):p||n}),o},ep=function(t,s){var a=t,o;if(Ee($t,a)&&(o=$t[a],a="%"+o[0]+"%"),Ee(N,a)){var n=N[a];if(n===Z&&(n=Vi(a)),typeof n>"u"&&!s)throw new X("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new ee("intrinsic "+t+" does not exist!")};zt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new X('"allowMissing" argument must be a boolean');if(Ji(/^%?[^%]*%?$/,t)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Xi(t),o=a.length>0?a[0]:"",n=ep("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],ji(a,zi([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=_e(y,0,1),R=_e(y,-1);if((f==='"'||f==="'"||f==="`"||R==='"'||R==="'"||R==="`")&&f!==R)throw new ee("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",Ee(N,p))i=N[p];else if(i!=null){if(!(y in i)){if(!s)throw new X("base intrinsic for "+t+" exists, but the property is not available.");return}if(F&&l+1>=a.length){var P=F(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=Ee(i,y),i=i[y];h&&!r&&(N[p]=i)}}return i}});var er=I((Lu,Fe)=>{"use strict";var at=Me(),te=Oe(),Yt=te("%Function.prototype.apply%"),Zt=te("%Function.prototype.call%"),Xt=te("%Reflect.apply%",!0)||at.call(Zt,Yt),jt=te("%Object.getOwnPropertyDescriptor%",!0),$=te("%Object.defineProperty%",!0),tp=te("%Math.max%");if($)try{$({},"a",{value:1})}catch{$=null}Fe.exports=function(t){var s=Xt(at,Zt,arguments);if(jt&&$){var a=jt(s,"length");a.configurable&&$(s,"length",{value:1+tp(0,t.length-(arguments.length-1))})}return s};var Jt=function(){return Xt(at,Yt,arguments)};$?$(Fe.exports,"apply",{value:Jt}):Fe.exports.apply=Jt});var ar=I((Su,sr)=>{"use strict";var tr=Oe(),rr=er(),rp=rr(tr("String.prototype.indexOf"));sr.exports=function(t,s){var a=tr(t,!!s);return typeof a=="function"&&rp(t,".prototype.")>-1?rr(a):a}});var or=I((Qu,nr)=>{nr.exports=require("util").inspect});var Ar=I((Hu,Pr)=>{var yt=typeof Map=="function"&&Map.prototype,nt=Object.getOwnPropertyDescriptor&&yt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$e=yt&&nt&&typeof nt.get=="function"?nt.get:null,ir=yt&&Map.prototype.forEach,mt=typeof Set=="function"&&Set.prototype,ot=Object.getOwnPropertyDescriptor&&mt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ke=mt&&ot&&typeof ot.get=="function"?ot.get:null,pr=mt&&Set.prototype.forEach,sp=typeof WeakMap=="function"&&WeakMap.prototype,le=sp?WeakMap.prototype.has:null,ap=typeof WeakSet=="function"&&WeakSet.prototype,ge=ap?WeakSet.prototype.has:null,np=typeof WeakRef=="function"&&WeakRef.prototype,ur=np?WeakRef.prototype.deref:null,op=Boolean.prototype.valueOf,ip=Object.prototype.toString,pp=Function.prototype.toString,up=String.prototype.match,Rt=String.prototype.slice,D=String.prototype.replace,cp=String.prototype.toUpperCase,cr=String.prototype.toLowerCase,fr=RegExp.prototype.test,dr=Array.prototype.concat,T=Array.prototype.join,dp=Array.prototype.slice,lr=Math.floor,ut=typeof BigInt=="function"?BigInt.prototype.valueOf:null,it=Object.getOwnPropertySymbols,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||"symbol")?Symbol.toStringTag:null,br=Object.prototype.propertyIsEnumerable,gr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||fr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-lr(-e):lr(e);if(a!==e){var o=String(a),n=Rt.call(t,o.length+1);return D.call(o,s,"$&_")+"."+D.call(D.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(t,s,"$&_")}var dt=or(),mr=dt.custom,Rr=Ir(mr)?mr:null;Pr.exports=function e(t,s,a,o){var n=s||{};if(H(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=H(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 vr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?yr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?yr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return lt(t)?"[Array]":"[Object]";var h=Bp(n,a);if(typeof o>"u")o=[];else if(kr(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=dp.call(o),o.push(S)),G){var pe={depth:n.depth};return H(n,"quoteStyle")&&(pe.quoteStyle=n.quoteStyle),e(A,pe,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!qr(t)){var f=bp(t),R=Ne(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(R.length>0?" { "+T.call(R,", ")+" }":"")}if(Ir(t)){var P=re?D.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ct.call(t);return typeof t=="object"&&!re?de(P):P}if(Ap(t)){for(var B="<"+cr.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)B+=" "+m[U].name+"="+xr(lp(m[U].value),"double",n);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+cr.call(String(t.nodeName))+">",B}if(lt(t)){if(t.length===0)return"[]";var W=Ne(t,y);return h&&!Cp(W)?"["+gt(W,h)+"]":"[ "+T.call(W,", ")+" ]"}if(yp(t)){var z=Ne(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!br.call(t,"cause")?"{ ["+String(t)+"] "+T.call(dr.call("[cause]: "+y(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(z,", ")+" }"}if(typeof t=="object"&&p){if(Rr&&typeof t[Rr]=="function"&&dt)return dt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(xp(t)){var ne=[];return ir&&ir.call(t,function(A,S){ne.push(y(S,t,!0)+" => "+y(A,t))}),hr("Map",$e.call(t),ne,h)}if(vp(t)){var oe=[];return pr&&pr.call(t,function(A){oe.push(y(A,t))}),hr("Set",Ke.call(t),oe,h)}if(Ip(t))return pt("WeakMap");if(Pp(t))return pt("WeakSet");if(kp(t))return pt("WeakRef");if(Rp(t))return de(y(Number(t)));if(hp(t))return de(y(ut.call(t)));if(qp(t))return de(op.call(t));if(mp(t))return de(y(String(t)));if(!gp(t)&&!qr(t)){var E=Ne(t,y),ie=gr?gr(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",j=!ie&&v&&Object(t)===t&&v in t?Rt.call(M(t),8,-1):L?"Object":"",_=ie||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",J=_+(j||L?"["+T.call(dr.call([],j||[],L||[]),": ")+"] ":"");return E.length===0?J+"{}":h?J+"{"+gt(E,h)+"}":J+"{ "+T.call(E,", ")+" }"}return String(t)};function xr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function lp(e){return D.call(String(e),/"/g,""")}function lt(e){return M(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function gp(e){return M(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function qr(e){return M(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function yp(e){return M(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function mp(e){return M(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function Rp(e){return M(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function qp(e){return M(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function Ir(e){if(re)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ct)return!1;try{return ct.call(e),!0}catch{}return!1}function hp(e){if(!e||typeof e!="object"||!ut)return!1;try{return ut.call(e),!0}catch{}return!1}var fp=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return fp.call(e,t)}function M(e){return ip.call(e)}function bp(e){if(e.name)return e.name;var t=up.call(pp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function kr(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function xp(e){if(!$e||!e||typeof e!="object")return!1;try{$e.call(e);try{Ke.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ip(e){if(!le||!e||typeof e!="object")return!1;try{le.call(e,le);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function kp(e){if(!ur||!e||typeof e!="object")return!1;try{return ur.call(e),!0}catch{}return!1}function vp(e){if(!Ke||!e||typeof e!="object")return!1;try{Ke.call(e);try{$e.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Pp(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{le.call(e,le)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ap(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function vr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return vr(Rt.call(e,0,t.maxStringLength),t)+a}var o=D.call(D.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Tp);return xr(o,"single",t)}function Tp(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":"")+cp.call(t.toString(16))}function de(e){return"Object("+e+")"}function pt(e){return e+" { ? }"}function hr(e,t,s,a){var o=a?gt(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Cp(e){for(var t=0;t<e.length;t++)if(kr(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";var qi=Object.create;var me=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ii=(e,t)=>{for(var s in t)me(e,s,{get:t[s],enumerable:!0})},Tt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fi(t))!xi.call(e,o)&&o!==s&&me(e,o,{get:()=>t[o],enumerable:!(a=hi(t,o))||a.enumerable});return e};var F=(e,t,s)=>(s=e!=null?qi(bi(e)):{},Tt(t||!e||!e.__esModule?me(s,"default",{value:e,enumerable:!0}):s,e)),ki=e=>Tt(me({},"__esModule",{value:!0}),e);var wt=I((Bu,Gt)=>{"use strict";Gt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;t[s]=o;for(s 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 n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var St=I((Uu,Lt)=>{"use strict";var Wt=typeof Symbol<"u"&&Symbol,Mi=wt();Lt.exports=function(){return typeof Wt!="function"||typeof Symbol!="function"||typeof Wt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Mi()}});var Dt=I((Gu,Ht)=>{"use strict";var Qt={foo:{}},Ei=Object;Ht.exports=function(){return{__proto__:Qt}.foo===Qt.foo&&!({__proto__:null}instanceof Ei)}});var Et=I((wu,Mt)=>{"use strict";var _i="Function.prototype.bind called on incompatible ",et=Array.prototype.slice,Oi=Object.prototype.toString,Fi="[object Function]";Mt.exports=function(t){var s=this;if(typeof s!="function"||Oi.call(s)!==Fi)throw new TypeError(_i+s);for(var a=et.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(et.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(et.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var Me=I((Wu,_t)=>{"use strict";var Ni=Et();_t.exports=Function.prototype.bind||Ni});var Ft=I((Lu,Ot)=>{"use strict";var $i=Me();Ot.exports=$i.call(Function.call,Object.prototype.hasOwnProperty)});var Oe=I((Su,zt)=>{"use strict";var g,ee=SyntaxError,Vt=Function,X=TypeError,tt=function(e){try{return Vt('"use strict"; return ('+e+").constructor;")()}catch{}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch{N=null}var rt=function(){throw new X},Ki=N?function(){try{return arguments.callee,rt}catch{try{return N(arguments,"callee").get}catch{return rt}}}():rt,Y=St()(),Vi=Dt()(),b=Object.getPrototypeOf||(Vi?function(e){return e.__proto__}:null),Z={},zi=typeof Uint8Array>"u"||!b?g:b(Uint8Array),$={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&b?b([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":Vt,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&b?b(b([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!b?g:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!b?g:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&b?b(""[Symbol.iterator]()):g,"%Symbol%":Y?Symbol:g,"%SyntaxError%":ee,"%ThrowTypeError%":Ki,"%TypedArray%":zi,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(b)try{null.error}catch(e){Nt=b(b(e)),$["%Error.prototype%"]=Nt}var Nt,ji=function e(t){var s;if(t==="%AsyncFunction%")s=tt("async function () {}");else if(t==="%GeneratorFunction%")s=tt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=tt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&b&&(s=b(o.prototype))}return $[t]=s,s},$t={"%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"]},ce=Me(),Ee=Ft(),Ji=ce.call(Function.call,Array.prototype.concat),Yi=ce.call(Function.apply,Array.prototype.splice),Kt=ce.call(Function.call,String.prototype.replace),_e=ce.call(Function.call,String.prototype.slice),Zi=ce.call(Function.call,RegExp.prototype.exec),Xi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ep=/\\(\\)?/g,tp=function(t){var s=_e(t,0,1),a=_e(t,-1);if(s==="%"&&a!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Kt(t,Xi,function(n,p,i,r){o[o.length]=i?Kt(r,ep,"$1"):p||n}),o},rp=function(t,s){var a=t,o;if(Ee($t,a)&&(o=$t[a],a="%"+o[0]+"%"),Ee($,a)){var n=$[a];if(n===Z&&(n=ji(a)),typeof n>"u"&&!s)throw new X("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new ee("intrinsic "+t+" does not exist!")};zt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new X('"allowMissing" argument must be a boolean');if(Zi(/^%?[^%]*%?$/,t)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=tp(t),o=a.length>0?a[0]:"",n=rp("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],Yi(a,Ji([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=_e(y,0,1),R=_e(y,-1);if((f==='"'||f==="'"||f==="`"||R==='"'||R==="'"||R==="`")&&f!==R)throw new ee("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",Ee($,p))i=$[p];else if(i!=null){if(!(y in i)){if(!s)throw new X("base intrinsic for "+t+" exists, but the property is not available.");return}if(N&&l+1>=a.length){var P=N(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=Ee(i,y),i=i[y];h&&!r&&($[p]=i)}}return i}});var er=I((Qu,Fe)=>{"use strict";var st=Me(),te=Oe(),Yt=te("%Function.prototype.apply%"),Zt=te("%Function.prototype.call%"),Xt=te("%Reflect.apply%",!0)||st.call(Zt,Yt),jt=te("%Object.getOwnPropertyDescriptor%",!0),K=te("%Object.defineProperty%",!0),sp=te("%Math.max%");if(K)try{K({},"a",{value:1})}catch{K=null}Fe.exports=function(t){var s=Xt(st,Zt,arguments);if(jt&&K){var a=jt(s,"length");a.configurable&&K(s,"length",{value:1+sp(0,t.length-(arguments.length-1))})}return s};var Jt=function(){return Xt(st,Yt,arguments)};K?K(Fe.exports,"apply",{value:Jt}):Fe.exports.apply=Jt});var ar=I((Hu,sr)=>{"use strict";var tr=Oe(),rr=er(),ap=rr(tr("String.prototype.indexOf"));sr.exports=function(t,s){var a=tr(t,!!s);return typeof a=="function"&&ap(t,".prototype.")>-1?rr(a):a}});var or=I((Du,nr)=>{nr.exports=require("util").inspect});var Ar=I((Mu,Pr)=>{var gt=typeof Map=="function"&&Map.prototype,at=Object.getOwnPropertyDescriptor&>?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$e=gt&&at&&typeof at.get=="function"?at.get:null,ir=gt&&Map.prototype.forEach,yt=typeof Set=="function"&&Set.prototype,nt=Object.getOwnPropertyDescriptor&&yt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ke=yt&&nt&&typeof nt.get=="function"?nt.get:null,pr=yt&&Set.prototype.forEach,np=typeof WeakMap=="function"&&WeakMap.prototype,le=np?WeakMap.prototype.has:null,op=typeof WeakSet=="function"&&WeakSet.prototype,ge=op?WeakSet.prototype.has:null,ip=typeof WeakRef=="function"&&WeakRef.prototype,ur=ip?WeakRef.prototype.deref:null,pp=Boolean.prototype.valueOf,up=Object.prototype.toString,cp=Function.prototype.toString,dp=String.prototype.match,mt=String.prototype.slice,M=String.prototype.replace,lp=String.prototype.toUpperCase,cr=String.prototype.toLowerCase,fr=RegExp.prototype.test,dr=Array.prototype.concat,T=Array.prototype.join,gp=Array.prototype.slice,lr=Math.floor,pt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ot=Object.getOwnPropertySymbols,ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||"symbol")?Symbol.toStringTag:null,br=Object.prototype.propertyIsEnumerable,gr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||fr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-lr(-e):lr(e);if(a!==e){var o=String(a),n=mt.call(t,o.length+1);return M.call(o,s,"$&_")+"."+M.call(M.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(t,s,"$&_")}var ct=or(),mr=ct.custom,Rr=Ir(mr)?mr:null;Pr.exports=function e(t,s,a,o){var n=s||{};if(D(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=D(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 vr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?yr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?yr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return dt(t)?"[Array]":"[Object]";var h=Gp(n,a);if(typeof o>"u")o=[];else if(kr(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=gp.call(o),o.push(S)),G){var pe={depth:n.depth};return D(n,"quoteStyle")&&(pe.quoteStyle=n.quoteStyle),e(A,pe,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!qr(t)){var f=Ip(t),R=Ne(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(R.length>0?" { "+T.call(R,", ")+" }":"")}if(Ir(t)){var P=re?M.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ut.call(t);return typeof t=="object"&&!re?de(P):P}if(Cp(t)){for(var B="<"+cr.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)B+=" "+m[U].name+"="+xr(yp(m[U].value),"double",n);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+cr.call(String(t.nodeName))+">",B}if(dt(t)){if(t.length===0)return"[]";var W=Ne(t,y);return h&&!Up(W)?"["+lt(W,h)+"]":"[ "+T.call(W,", ")+" ]"}if(Rp(t)){var z=Ne(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!br.call(t,"cause")?"{ ["+String(t)+"] "+T.call(dr.call("[cause]: "+y(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(z,", ")+" }"}if(typeof t=="object"&&p){if(Rr&&typeof t[Rr]=="function"&&ct)return ct(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(kp(t)){var ne=[];return ir&&ir.call(t,function(A,S){ne.push(y(S,t,!0)+" => "+y(A,t))}),hr("Map",$e.call(t),ne,h)}if(Ap(t)){var oe=[];return pr&&pr.call(t,function(A){oe.push(y(A,t))}),hr("Set",Ke.call(t),oe,h)}if(vp(t))return it("WeakMap");if(Tp(t))return it("WeakSet");if(Pp(t))return it("WeakRef");if(hp(t))return de(y(Number(t)));if(bp(t))return de(y(pt.call(t)));if(fp(t))return de(pp.call(t));if(qp(t))return de(y(String(t)));if(!mp(t)&&!qr(t)){var _=Ne(t,y),ie=gr?gr(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",j=!ie&&v&&Object(t)===t&&v in t?mt.call(E(t),8,-1):L?"Object":"",O=ie||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",J=O+(j||L?"["+T.call(dr.call([],j||[],L||[]),": ")+"] ":"");return _.length===0?J+"{}":h?J+"{"+lt(_,h)+"}":J+"{ "+T.call(_,", ")+" }"}return String(t)};function xr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function yp(e){return M.call(String(e),/"/g,""")}function dt(e){return E(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function mp(e){return E(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function qr(e){return E(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function Rp(e){return E(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function qp(e){return E(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function hp(e){return E(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function fp(e){return E(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function Ir(e){if(re)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ut)return!1;try{return ut.call(e),!0}catch{}return!1}function bp(e){if(!e||typeof e!="object"||!pt)return!1;try{return pt.call(e),!0}catch{}return!1}var xp=Object.prototype.hasOwnProperty||function(e){return e in this};function D(e,t){return xp.call(e,t)}function E(e){return up.call(e)}function Ip(e){if(e.name)return e.name;var t=dp.call(cp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function kr(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function kp(e){if(!$e||!e||typeof e!="object")return!1;try{$e.call(e);try{Ke.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function vp(e){if(!le||!e||typeof e!="object")return!1;try{le.call(e,le);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Pp(e){if(!ur||!e||typeof e!="object")return!1;try{return ur.call(e),!0}catch{}return!1}function Ap(e){if(!Ke||!e||typeof e!="object")return!1;try{Ke.call(e);try{$e.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Tp(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{le.call(e,le)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Cp(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function vr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return vr(mt.call(e,0,t.maxStringLength),t)+a}var o=M.call(M.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Bp);return xr(o,"single",t)}function Bp(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":"")+lp.call(t.toString(16))}function de(e){return"Object("+e+")"}function it(e){return e+" { ? }"}function hr(e,t,s,a){var o=a?lt(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Up(e){for(var t=0;t<e.length;t++)if(kr(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function Gp(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=T.call(Array(e.indent+1)," ");else return null;return{base:s,prev:T.call(Array(t+1),s)}}function lt(e,t){if(e.length===0)return"";var s=`
|
|
3
3
|
`+t.prev+t.base;return s+T.call(e,","+s)+`
|
|
4
|
-
`+t.prev}function Ne(e,t){var s=lt(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=H(e,o)?t(e[o],e):""}var n=typeof it=="function"?it(e):[],p;if(re){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)H(e,r)&&(s&&String(Number(r))===r&&r<e.length||re&&p["$"+r]instanceof Symbol||(fr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof it=="function")for(var d=0;d<n.length;d++)br.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Cr=I((Du,Tr)=>{"use strict";var qt=Oe(),se=ar(),Up=Ar(),Gp=qt("%TypeError%"),Ve=qt("%WeakMap%",!0),ze=qt("%Map%",!0),wp=se("WeakMap.prototype.get",!0),Wp=se("WeakMap.prototype.set",!0),Lp=se("WeakMap.prototype.has",!0),Sp=se("Map.prototype.get",!0),Qp=se("Map.prototype.set",!0),Hp=se("Map.prototype.has",!0),ht=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},Dp=function(e,t){var s=ht(e,t);return s&&s.value},Mp=function(e,t,s){var a=ht(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Ep=function(e,t){return!!ht(e,t)};Tr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new Gp("Side channel does not contain "+Up(n))},get:function(n){if(Ve&&n&&(typeof n=="object"||typeof n=="function")){if(t)return wp(t,n)}else if(ze){if(s)return Sp(s,n)}else if(a)return Dp(a,n)},has:function(n){if(Ve&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Lp(t,n)}else if(ze){if(s)return Hp(s,n)}else if(a)return Ep(a,n);return!1},set:function(n,p){Ve&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new Ve),Wp(t,n,p)):ze?(s||(s=new ze),Qp(s,n,p)):(a||(a={key:{},next:null}),Mp(a,n,p))}};return o}});var je=I((Mu,Br)=>{"use strict";var _p=String.prototype.replace,Op=/%20/g,ft={RFC1738:"RFC1738",RFC3986:"RFC3986"};Br.exports={default:ft.RFC3986,formatters:{RFC1738:function(e){return _p.call(e,Op,"+")},RFC3986:function(e){return String(e)}},RFC1738:ft.RFC1738,RFC3986:ft.RFC3986}});var xt=I((Eu,Gr)=>{"use strict";var Fp=je(),bt=Object.prototype.hasOwnProperty,K=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Np=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(K(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Ur=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},$p=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(K(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!bt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return K(t)&&!K(s)&&(o=Ur(t,a)),K(t)&&K(s)?(s.forEach(function(n,p){if(bt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return bt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},Kp=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},Vp=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},zp=function(t,s,a,o,n){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||n===Fp.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},jp=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return Np(s),t},Jp=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Yp=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Zp=function(t,s){return[].concat(t,s)},Xp=function(t,s){if(K(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Gr.exports={arrayToObject:Ur,assign:Kp,combine:Zp,compact:jp,decode:Vp,encode:zp,isBuffer:Yp,isRegExp:Jp,maybeMap:Xp,merge:$p}});var Hr=I((_u,Qr)=>{"use strict";var Lr=Cr(),kt=xt(),ye=je(),eu=Object.prototype.hasOwnProperty,wr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,tu=String.prototype.split,ru=Array.prototype.push,Sr=function(e,t){ru.apply(e,w(t)?t:[t])},su=Date.prototype.toISOString,Wr=ye.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:kt.encode,encodeValuesOnly:!1,format:Wr,formatter:ye.formatters[Wr],indices:!1,serializeDate:function(t){return su.call(t)},skipNulls:!1,strictNullHandling:!1},au=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},It={},nu=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,R,P,B){for(var m=t,U=B,W=0,z=!1;(U=U.get(It))!==void 0&&!z;){var ne=U.get(t);if(W+=1,typeof ne<"u"){if(ne===W)throw new RangeError("Cyclic object value");z=!0}typeof U.get(It)>"u"&&(W=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=kt.maybeMap(m,function(Ze){return Ze instanceof Date?h(Ze):Ze})),m===null){if(n)return i&&!R?i(s,k.encoder,P,"key",y):s;m=""}if(au(m)||kt.isBuffer(m)){if(i){var oe=R?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&R){for(var E=tu.call(String(m),","),ie="",L=0;L<E.length;++L)ie+=(L===0?"":",")+f(i(E[L],k.encoder,P,"value",y));return[f(oe)+(o&&w(m)&&E.length===1?"[]":"")+"="+ie]}return[f(oe)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var j=[];if(typeof m>"u")return j;var _;if(a==="comma"&&w(m))_=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))_=r;else{var J=Object.keys(m);_=d?J.sort(d):J}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<_.length;++S){var G=_[S],pe=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&pe===null)){var Ri=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");B.set(t,W);var Tt=Lr();Tt.set(It,B),Sr(j,e(pe,Ri,a,o,n,p,i,r,d,l,h,y,f,R,P,Tt))}}return j},ou=function(t){if(!t)return k;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||k.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 a=ye.default;if(typeof t.format<"u"){if(!eu.call(ye.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=ye.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Qr.exports=function(e,t){var s=e,a=ou(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in wr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=wr[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Lr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||Sr(p,nu(s[y],y,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var f=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),f.length>0?R+f:""}});var Er=I((Ou,Mr)=>{"use strict";var ae=xt(),vt=Object.prototype.hasOwnProperty,iu=Array.isArray,x={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ae.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},pu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Dr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},uu="utf8=%26%2310003%3B",cu="utf8=%E2%9C%93",du=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===cu?d="utf-8":p[r]===uu&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,R;y===-1?(f=s.decoder(l,x.decoder,d,"key"),R=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),x.decoder,d,"key"),R=ae.maybeMap(Dr(l.slice(y+1),s),function(P){return s.decoder(P,x.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=pu(R)),l.indexOf("[]=")>-1&&(R=iu(R)?[R]:R),vt.call(a,f)?a[f]=ae.combine(a[f],R):a[f]=R}return a},lu=function(e,t,s,a){for(var o=a?t:Dr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},gu=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&vt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&vt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),lu(l,s,a,o)}},yu=function(t){if(!t)return x;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"?x.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?x.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:x.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:x.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:x.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:x.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:x.comma,decoder:typeof t.decoder=="function"?t.decoder:x.decoder,delimiter:typeof t.delimiter=="string"||ae.isRegExp(t.delimiter)?t.delimiter:x.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:x.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:x.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:x.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:x.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:x.strictNullHandling}};Mr.exports=function(e,t){var s=yu(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?du(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=gu(i,a[i],s,typeof e=="string");o=ae.merge(o,r,s)}return s.allowSparse===!0?o:ae.compact(o)}});var Or=I((Fu,_r)=>{"use strict";var mu=Hr(),Ru=Er(),qu=je();_r.exports={formats:qu,parse:Ru,stringify:mu}});var Iu={};Ii(Iu,{AlreadyExistsError:()=>we,BreakingChangesError:()=>He,Client:()=>At,CreateAndUploadFileError:()=>V,ForbiddenError:()=>he,InternalError:()=>Re,InvalidDataFormatError:()=>Pe,InvalidIdentifierError:()=>Ae,InvalidJsonSchemaError:()=>ve,InvalidPayloadError:()=>be,InvalidQueryError:()=>Ue,LimitExceededError:()=>Qe,MethodNotFoundError:()=>Ie,PayloadTooLargeError:()=>fe,PaymentRequiredError:()=>Le,QuotaExceededError:()=>Se,RateLimitedError:()=>We,ReferenceConstraintError:()=>Ce,ReferenceNotFoundError:()=>Be,RelationConflictError:()=>Te,ResourceNotFoundError:()=>ke,RuntimeError:()=>Ge,UnauthorizedError:()=>qe,UnknownError:()=>Q,UnsupportedMediaTypeError:()=>xe,axios:()=>ku,errorFrom:()=>De,isApiError:()=>et});module.exports=ki(Iu);var Ye=O(require("axios")),Pt=require("browser-or-node"),gi=O(require("http")),yi=O(require("https"));var ue=require("browser-or-node"),vi="https://api.botpress.cloud",Pi=6e4,Ai="BP_API_URL",Ti="BP_BOT_ID",Ci="BP_INTEGRATION_ID",Bi="BP_WORKSPACE_ID",Ui="BP_TOKEN";function Bt(e){let t=Gi(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.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??vi,o=t.timeout??Pi;return{apiUrl:a,timeout:o,withCredentials:ue.isBrowser,headers:s}}function Gi(e){return ue.isBrowser?e:ue.isNode?wi(e):e}function wi(e){let t={...e,apiUrl:e.apiUrl??process.env[Ai],botId:e.botId??process.env[Ti],integrationId:e.integrationId??process.env[Ci],workspaceId:e.workspaceId??process.env[Bi]},s=t.token??process.env[Ui];return s&&(t.token=s),t}var li=O(require("axios"));var Ut=O(require("crypto"));var Wi={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Xe=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ut.default;Xe.getRandomValues||(Xe=Wi);var q=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=q.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(Xe.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Li=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,et=e=>e instanceof q||Li(e)&&e.isApiError===!0,Q=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Re=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},qe=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},he=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},fe=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},be=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},xe=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Ie=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},ke=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},ve=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Pe=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ae=class extends q{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},Te=class extends q{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Ce=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Be=class extends q{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Ue=class extends q{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},Ge=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},we=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},We=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Le=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Se=class extends q{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},He=class extends q{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Si={Unknown:Q,Internal:Re,Unauthorized:qe,Forbidden:he,PayloadTooLarge:fe,InvalidPayload:be,UnsupportedMediaType:xe,MethodNotFound:Ie,ResourceNotFound:ke,InvalidJsonSchema:ve,InvalidDataFormat:Pe,InvalidIdentifier:Ae,RelationConflict:Te,ReferenceConstraint:Ce,ReferenceNotFound:Be,InvalidQuery:Ue,Runtime:Ge,AlreadyExists:we,RateLimited:We,PaymentRequired:Le,QuotaExceeded:Se,LimitExceeded:Qe,BreakingChanges:He},De=e=>et(e)?e:e instanceof Error?new Q(e.message,e):typeof e=="string"?new Q(e):Qi(e);function Qi(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=Si[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Q(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Q("An invalid error occurred: "+JSON.stringify(e))}var Fr=O(Or()),hu=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(hu),i=Object.fromEntries(p),r=Fr.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var Nr=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Kr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Jr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var es=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var as=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var os=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ps=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cs=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var ls=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ys=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var Rs=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}});var hs=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}});var bs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Is=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var vs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var As=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Us=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ws=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ls=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Qs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Ds=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Es=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 Os=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 Ns=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 Ks=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}});var zs=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Js=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Zs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ea=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var ra=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var aa=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oa=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var pa=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ca=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var la=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ya=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Ra=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ha=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ba=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ia=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var va=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Aa=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ca=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ua=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wa=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var La=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Qa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Da=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken},params:{},body:{}});var Ea=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Na=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ka=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var za=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Za=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var en=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var rn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var an=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var on=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var dn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var gn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xn=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 kn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Tn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Bn=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 Gn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Wn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var _n=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Fn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $n=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Vn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var jn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Yn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Xn=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var to=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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}});var so=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var no=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var io=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var lo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ro=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ho=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var bo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Io=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var vo=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Ao=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var Co=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var wo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var Qo=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var Do=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Eo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Oo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var No=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ko=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 zo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Jo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Zo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ei=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ri=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,orderBy:e.orderBy,orderDirection:e.orderDirection}});var ai=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var oi=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 pi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ci=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 Je=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Nr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Kr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=zr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Jr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Zr(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=es(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=rs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=as(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=os(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ps(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=ls(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ys(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Rs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=hs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=bs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Is(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=vs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=As(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Us(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=ws(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Qs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Es(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Os(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=Ns(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Ks(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=zs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Js(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=Zs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=ea(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=ra(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=aa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=oa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=pa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=la(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ya(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=Ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ba(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=Ia(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=va(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=Aa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ua(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ea(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Oa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=Na(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Ka(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=za(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=Za(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=en(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=an(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=on(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=dn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=gn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=fn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=xn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=Tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=Mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=_n(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=$n(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=jn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Xn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=to(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=so(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=no(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=yo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=bo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=Io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createFile=async t=>{let{path:s,headers:a,query:o,body:n}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFile=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=Eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Oo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=No(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Ko(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=Zo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=ei(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ri(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ai(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=oi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=pi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return li.default.isAxiosError(e)&&e.response?.data?De(e.response.data):De(e)}var ku=O(require("axios")),mi=100*1024*1024,fu=mi,bu=mi,At=class extends Je{config;constructor(t={}){let s=Bt(t),a=xu(s);super(a),this.config=s}createAndUploadFile=async({name:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new V("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ye.default.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new V(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new V("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.createFile({name:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await Ye.default.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new V(`Failed to upload file: ${l.message}`,l,d)}return await this.getFile({id:d.id})}},V=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};function xu(e){let{apiUrl:t,headers:s,withCredentials:a,timeout:o}=e;return Ye.default.create({baseURL:t,headers:s,withCredentials:a,timeout:o,maxBodyLength:fu,maxContentLength:bu,httpAgent:Pt.isNode?new gi.default.Agent({keepAlive:!0}):void 0,httpsAgent:Pt.isNode?new yi.default.Agent({keepAlive:!0}):void 0})}0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,CreateAndUploadFileError,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,axios,errorFrom,isApiError});
|
|
4
|
+
`+t.prev}function Ne(e,t){var s=dt(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=D(e,o)?t(e[o],e):""}var n=typeof ot=="function"?ot(e):[],p;if(re){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)D(e,r)&&(s&&String(Number(r))===r&&r<e.length||re&&p["$"+r]instanceof Symbol||(fr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof ot=="function")for(var d=0;d<n.length;d++)br.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Cr=I((Eu,Tr)=>{"use strict";var Rt=Oe(),se=ar(),wp=Ar(),Wp=Rt("%TypeError%"),Ve=Rt("%WeakMap%",!0),ze=Rt("%Map%",!0),Lp=se("WeakMap.prototype.get",!0),Sp=se("WeakMap.prototype.set",!0),Qp=se("WeakMap.prototype.has",!0),Hp=se("Map.prototype.get",!0),Dp=se("Map.prototype.set",!0),Mp=se("Map.prototype.has",!0),qt=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},Ep=function(e,t){var s=qt(e,t);return s&&s.value},_p=function(e,t,s){var a=qt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Op=function(e,t){return!!qt(e,t)};Tr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new Wp("Side channel does not contain "+wp(n))},get:function(n){if(Ve&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Lp(t,n)}else if(ze){if(s)return Hp(s,n)}else if(a)return Ep(a,n)},has:function(n){if(Ve&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Qp(t,n)}else if(ze){if(s)return Mp(s,n)}else if(a)return Op(a,n);return!1},set:function(n,p){Ve&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new Ve),Sp(t,n,p)):ze?(s||(s=new ze),Dp(s,n,p)):(a||(a={key:{},next:null}),_p(a,n,p))}};return o}});var je=I((_u,Br)=>{"use strict";var Fp=String.prototype.replace,Np=/%20/g,ht={RFC1738:"RFC1738",RFC3986:"RFC3986"};Br.exports={default:ht.RFC3986,formatters:{RFC1738:function(e){return Fp.call(e,Np,"+")},RFC3986:function(e){return String(e)}},RFC1738:ht.RFC1738,RFC3986:ht.RFC3986}});var bt=I((Ou,Gr)=>{"use strict";var $p=je(),ft=Object.prototype.hasOwnProperty,V=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Kp=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(V(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Ur=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},Vp=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(V(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!ft.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return V(t)&&!V(s)&&(o=Ur(t,a)),V(t)&&V(s)?(s.forEach(function(n,p){if(ft.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return ft.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},zp=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},jp=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},Jp=function(t,s,a,o,n){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||n===$p.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},Yp=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return Kp(s),t},Zp=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Xp=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},eu=function(t,s){return[].concat(t,s)},tu=function(t,s){if(V(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Gr.exports={arrayToObject:Ur,assign:zp,combine:eu,compact:Yp,decode:jp,encode:Jp,isBuffer:Xp,isRegExp:Zp,maybeMap:tu,merge:Vp}});var Hr=I((Fu,Qr)=>{"use strict";var Lr=Cr(),It=bt(),ye=je(),ru=Object.prototype.hasOwnProperty,wr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,su=String.prototype.split,au=Array.prototype.push,Sr=function(e,t){au.apply(e,w(t)?t:[t])},nu=Date.prototype.toISOString,Wr=ye.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:It.encode,encodeValuesOnly:!1,format:Wr,formatter:ye.formatters[Wr],indices:!1,serializeDate:function(t){return nu.call(t)},skipNulls:!1,strictNullHandling:!1},ou=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xt={},iu=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,R,P,B){for(var m=t,U=B,W=0,z=!1;(U=U.get(xt))!==void 0&&!z;){var ne=U.get(t);if(W+=1,typeof ne<"u"){if(ne===W)throw new RangeError("Cyclic object value");z=!0}typeof U.get(xt)>"u"&&(W=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=It.maybeMap(m,function(Ze){return Ze instanceof Date?h(Ze):Ze})),m===null){if(n)return i&&!R?i(s,k.encoder,P,"key",y):s;m=""}if(ou(m)||It.isBuffer(m)){if(i){var oe=R?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&R){for(var _=su.call(String(m),","),ie="",L=0;L<_.length;++L)ie+=(L===0?"":",")+f(i(_[L],k.encoder,P,"value",y));return[f(oe)+(o&&w(m)&&_.length===1?"[]":"")+"="+ie]}return[f(oe)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var j=[];if(typeof m>"u")return j;var O;if(a==="comma"&&w(m))O=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))O=r;else{var J=Object.keys(m);O=d?J.sort(d):J}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<O.length;++S){var G=O[S],pe=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&pe===null)){var Ri=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");B.set(t,W);var At=Lr();At.set(xt,B),Sr(j,e(pe,Ri,a,o,n,p,i,r,d,l,h,y,f,R,P,At))}}return j},pu=function(t){if(!t)return k;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||k.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 a=ye.default;if(typeof t.format<"u"){if(!ru.call(ye.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=ye.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Qr.exports=function(e,t){var s=e,a=pu(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in wr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=wr[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Lr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||Sr(p,iu(s[y],y,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var f=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),f.length>0?R+f:""}});var Er=I((Nu,Mr)=>{"use strict";var ae=bt(),kt=Object.prototype.hasOwnProperty,uu=Array.isArray,x={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ae.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Dr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},du="utf8=%26%2310003%3B",lu="utf8=%E2%9C%93",gu=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===lu?d="utf-8":p[r]===du&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,R;y===-1?(f=s.decoder(l,x.decoder,d,"key"),R=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),x.decoder,d,"key"),R=ae.maybeMap(Dr(l.slice(y+1),s),function(P){return s.decoder(P,x.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=cu(R)),l.indexOf("[]=")>-1&&(R=uu(R)?[R]:R),kt.call(a,f)?a[f]=ae.combine(a[f],R):a[f]=R}return a},yu=function(e,t,s,a){for(var o=a?t:Dr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},mu=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&kt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&kt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),yu(l,s,a,o)}},Ru=function(t){if(!t)return x;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"?x.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?x.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:x.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:x.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:x.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:x.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:x.comma,decoder:typeof t.decoder=="function"?t.decoder:x.decoder,delimiter:typeof t.delimiter=="string"||ae.isRegExp(t.delimiter)?t.delimiter:x.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:x.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:x.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:x.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:x.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:x.strictNullHandling}};Mr.exports=function(e,t){var s=Ru(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?gu(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=mu(i,a[i],s,typeof e=="string");o=ae.merge(o,r,s)}return s.allowSparse===!0?o:ae.compact(o)}});var Or=I(($u,_r)=>{"use strict";var qu=Hr(),hu=Er(),fu=je();_r.exports={formats:fu,parse:hu,stringify:qu}});var vu={};Ii(vu,{AlreadyExistsError:()=>we,BreakingChangesError:()=>He,Client:()=>Pt,CreateAndUploadFileError:()=>H,ForbiddenError:()=>he,InternalError:()=>Re,InvalidDataFormatError:()=>Pe,InvalidIdentifierError:()=>Ae,InvalidJsonSchemaError:()=>ve,InvalidPayloadError:()=>be,InvalidQueryError:()=>Ue,LimitExceededError:()=>Qe,MethodNotFoundError:()=>Ie,PayloadTooLargeError:()=>fe,PaymentRequiredError:()=>Le,QuotaExceededError:()=>Se,RateLimitedError:()=>We,ReferenceConstraintError:()=>Ce,ReferenceNotFoundError:()=>Be,RelationConflictError:()=>Te,ResourceNotFoundError:()=>ke,RuntimeError:()=>Ge,UnauthorizedError:()=>qe,UnknownError:()=>Q,UnsupportedMediaTypeError:()=>xe,axios:()=>Pu,errorFrom:()=>De,isApiError:()=>Bt});module.exports=ki(vu);var Pu=F(require("axios"));var Ct=F(require("crypto"));var vi={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Xe=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ct.default;Xe.getRandomValues||(Xe=vi);var q=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=q.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(Xe.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Pi=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Bt=e=>e instanceof q||Pi(e)&&e.isApiError===!0,Q=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Re=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},qe=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},he=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},fe=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},be=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},xe=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Ie=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},ke=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},ve=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Pe=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ae=class extends q{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},Te=class extends q{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Ce=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Be=class extends q{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Ue=class extends q{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},Ge=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},we=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},We=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Le=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Se=class extends q{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},He=class extends q{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Ai={Unknown:Q,Internal:Re,Unauthorized:qe,Forbidden:he,PayloadTooLarge:fe,InvalidPayload:be,UnsupportedMediaType:xe,MethodNotFound:Ie,ResourceNotFound:ke,InvalidJsonSchema:ve,InvalidDataFormat:Pe,InvalidIdentifier:Ae,RelationConflict:Te,ReferenceConstraint:Ce,ReferenceNotFound:Be,InvalidQuery:Ue,Runtime:Ge,AlreadyExists:we,RateLimited:We,PaymentRequired:Le,QuotaExceeded:Se,LimitExceeded:Qe,BreakingChanges:He},De=e=>Bt(e)?e:e instanceof Error?new Q(e.message,e):typeof e=="string"?new Q(e):Ti(e);function Ti(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=Ai[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Q(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Q("An invalid error occurred: "+JSON.stringify(e))}var H=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Ye=F(require("axios")),vt=require("browser-or-node"),gi=F(require("http")),yi=F(require("https"));var ue=require("browser-or-node"),Bi="https://api.botpress.cloud",Ui=6e4,Gi="BP_API_URL",wi="BP_BOT_ID",Wi="BP_INTEGRATION_ID",Li="BP_WORKSPACE_ID",Si="BP_TOKEN";function Ut(e){let t=Qi(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.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??Bi,o=t.timeout??Ui;return{apiUrl:a,timeout:o,withCredentials:ue.isBrowser,headers:s}}function Qi(e){return ue.isBrowser?e:ue.isNode?Hi(e):e}function Hi(e){let t={...e,apiUrl:e.apiUrl??process.env[Gi],botId:e.botId??process.env[wi],integrationId:e.integrationId??process.env[Wi],workspaceId:e.workspaceId??process.env[Li]},s=t.token??process.env[Si];return s&&(t.token=s),t}var li=F(require("axios"));var Fr=F(Or()),bu=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(bu),i=Object.fromEntries(p),r=Fr.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var Nr=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Kr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Jr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var es=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var as=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var os=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ps=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cs=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var ls=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ys=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var Rs=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}});var hs=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}});var bs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Is=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var vs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var As=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Us=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ws=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ls=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Qs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Ds=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Es=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 Os=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 Ns=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 Ks=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}});var zs=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Js=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Zs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ea=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var ra=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var aa=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oa=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var pa=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ca=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var la=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ya=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Ra=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ha=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ba=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ia=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var va=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Aa=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ca=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ua=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wa=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var La=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Qa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Da=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken},params:{},body:{}});var Ea=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Na=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ka=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var za=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Za=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var en=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var rn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var an=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var on=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var dn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var gn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xn=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 kn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Tn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Bn=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 Gn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Wn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var _n=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Fn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $n=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Vn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var jn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Yn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Xn=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var to=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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}});var so=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var no=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var io=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var lo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ro=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ho=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var bo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Io=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var vo=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Ao=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var Co=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var wo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var Qo=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var Do=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Eo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Oo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var No=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ko=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 zo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Jo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Zo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ei=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ri=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,orderBy:e.orderBy,orderDirection:e.orderDirection}});var ai=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var oi=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 pi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ci=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 Je=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Nr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Kr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=zr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Jr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Zr(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=es(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=rs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=as(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=os(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ps(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=ls(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ys(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Rs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=hs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=bs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=Is(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=vs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=As(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Us(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=ws(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Qs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Es(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Os(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=Ns(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Ks(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=zs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Js(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=Zs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=ea(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=ra(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=aa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=oa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=pa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=la(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ya(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=Ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ba(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=Ia(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=va(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=Aa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ua(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ea(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Oa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=Na(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Ka(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=za(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=Za(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=en(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=an(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=on(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=dn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=gn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=fn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=xn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=Tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=Mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=_n(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=$n(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=jn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Xn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=to(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=so(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=no(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=yo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=bo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=Io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createFile=async t=>{let{path:s,headers:a,query:o,body:n}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFile=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=Eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Oo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=No(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Ko(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=Zo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=ei(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ri(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ai(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=oi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=pi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return li.default.isAxiosError(e)&&e.response?.data?De(e.response.data):De(e)}var mi=100*1024*1024,Iu=mi,ku=mi,Pt=class extends Je{config;constructor(t={}){let s=Ut(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=Ye.default.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Iu,maxContentLength:ku,httpAgent:vt.isNode?new gi.default.Agent({keepAlive:!0}):void 0,httpsAgent:vt.isNode?new yi.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}createAndUploadFile=async({name:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new H("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ye.default.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new H(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new H("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.createFile({name:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await Ye.default.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new H(`Failed to upload file: ${l.message}`,l,d)}return await this.getFile({id:d.id})}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,CreateAndUploadFileError,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,axios,errorFrom,isApiError});
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|