@botpress/client 1.38.0 → 1.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +1 -1
- package/dist/bundle.cjs.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +156 -69
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/bundle.cjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
`+o.map(Cd).join(`
|
|
14
14
|
`):" "+Cd(o[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:za};function Ja(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function Vs(e){return Ja(e),e.headers=X.from(e.headers),e.data=ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ns.getAdapter(e.adapter||Ut.adapter)(e).then(function(r){return Ja(e),r.data=ts.call(e,e.transformResponse,r),r.headers=X.from(r.headers),r},function(r){return ss(r)||(Ja(e),r&&r.response&&(r.response.data=ts.call(e,e.transformResponse,r.response),r.response.headers=X.from(r.response.headers))),Promise.reject(r)})}var Ud=e=>e instanceof X?e.toJSON():e;function Qe(e,t){t=t||{};let s={};function r(a,u,y){return g.isPlainObject(a)&&g.isPlainObject(u)?g.merge.call({caseless:y},a,u):g.isPlainObject(u)?g.merge({},u):g.isArray(u)?u.slice():u}function n(a,u,y){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a,y)}else return r(a,u,y)}function o(a,u){if(!g.isUndefined(u))return r(void 0,u)}function i(a,u){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,u)}function p(a,u,y){if(y in t)return r(a,u);if(y in e)return r(void 0,a)}let c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:p,headers:(a,u)=>n(Ud(a),Ud(u),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(u){let y=c[u]||n,q=y(e[u],t[u],u);g.isUndefined(q)&&y!==p||(s[u]=q)}),s}var Ya={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ya[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Ed={};Ya.transitional=function(t,s,r){function n(o,i){return"[Axios v"+ct+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,p)=>{if(t===!1)throw new v(n(i," has been removed"+(s?" in "+s:"")),v.ERR_DEPRECATED);return s&&!Ed[i]&&(Ed[i]=!0,console.warn(n(i," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(o,i,p):!0}};function eE(e,t,s){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),n=r.length;for(;n-- >0;){let o=r[n],i=t[o];if(i){let p=e[o],c=p===void 0||i(p,o,e);if(c!==!0)throw new v("option "+o+" must be "+c,v.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}var Ks={assertOptions:eE,validators:Ya};var Ye=Ks.validators,Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new Ta,response:new Ta}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Qe(this.defaults,s);let{transitional:r,paramsSerializer:n,headers:o}=s;r!==void 0&&Ks.assertOptions(r,{silentJSONParsing:Ye.transitional(Ye.boolean),forcedJSONParsing:Ye.transitional(Ye.boolean),clarifyTimeoutError:Ye.transitional(Ye.boolean)},!1),n!=null&&(g.isFunction(n)?s.paramsSerializer={serialize:n}:Ks.assertOptions(n,{encode:Ye.function,serialize:Ye.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[s.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),s.headers=X.concat(i,o);let p=[],c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(s)===!1||(c=c&&f.synchronous,p.unshift(f.fulfilled,f.rejected))});let a=[];this.interceptors.response.forEach(function(f){a.push(f.fulfilled,f.rejected)});let u,y=0,q;if(!c){let m=[Vs.bind(this),void 0];for(m.unshift.apply(m,p),m.push.apply(m,a),q=m.length,u=Promise.resolve(s);y<q;)u=u.then(m[y++],m[y++]);return u}q=p.length;let x=s;for(y=0;y<q;){let m=p[y++],f=p[y++];try{x=m(x)}catch(k){f.call(this,k);break}}try{u=Vs.call(this,x)}catch(m){return Promise.reject(m)}for(y=0,q=a.length;y<q;)u=u.then(a[y++],a[y++]);return u}getUri(t){t=Qe(this.defaults,t);let s=nt(t.baseURL,t.url);return at(s,t.params,t.paramsSerializer)}};g.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(s,r){return this.request(Qe(r||{},{method:t,url:s,data:(r||{}).data}))}});g.forEach(["post","put","patch"],function(t){function s(r){return function(o,i,p){return this.request(Qe(p||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Wt.prototype[t]=s(),Wt.prototype[t+"Form"]=s(!0)});var ps=Wt;var Xa=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});let r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o,i=new Promise(p=>{r.subscribe(p),o=p}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,p){r.reason||(r.reason=new Ue(o,i,p),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},Sd=Xa;function Za(e){return function(s){return e.apply(null,s)}}function en(e){return g.isObject(e)&&e.isAxiosError===!0}var tn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tn).forEach(([e,t])=>{tn[t]=e});var Gd=tn;function Ld(e){let t=new ps(e),s=jt(ps.prototype.request,t);return g.extend(s,ps.prototype,t,{allOwnKeys:!0}),g.extend(s,t,null,{allOwnKeys:!0}),s.create=function(n){return Ld(Qe(e,n))},s}var J=Ld(Ut);J.Axios=ps;J.CanceledError=Ue;J.CancelToken=Sd;J.isCancel=ss;J.VERSION=ct;J.toFormData=je;J.AxiosError=v;J.Cancel=J.CanceledError;J.all=function(t){return Promise.all(t)};J.spread=Za;J.isAxiosError=en;J.mergeConfig=Qe;J.AxiosHeaders=X;J.formToJSON=e=>Ls(g.isHTMLForm(e)?new FormData(e):e);J.getAdapter=Ns.getAdapter;J.HttpStatusCode=Gd;J.default=J;var $=J;var{Axios:tE,AxiosError:sE,CanceledError:rE,isCancel:aE,CancelToken:nE,VERSION:oE,all:iE,Cancel:pE,isAxiosError:cE,spread:uE,toFormData:dE,AxiosHeaders:lE,HttpStatusCode:gE,formToJSON:mE,getAdapter:yE,mergeConfig:RE}=$;var nn={};Ie(nn,{DEFAULT_OPTIONS:()=>Nd,default:()=>Pe,exponentialDelay:()=>Md,isIdempotentRequestError:()=>rn,isNetworkError:()=>sn,isNetworkOrIdempotentRequestError:()=>an,isRetryableError:()=>zs,isSafeRequestError:()=>Fd,linearDelay:()=>Od,namespace:()=>$s,retryAfter:()=>Js});var Hd=L(Wd(),1),$s="axios-retry";function sn(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Hd.default)(e)}var Qd=["get","head","options"],qE=Qd.concat(["put","delete"]);function zs(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Fd(e){return e.config?.method?zs(e)&&Qd.indexOf(e.config.method)!==-1:!1}function rn(e){return e.config?.method?zs(e)&&qE.indexOf(e.config.method)!==-1:!1}function an(e){return sn(e)||rn(e)}function Js(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function fE(e=0,t=void 0){return Math.max(0,Js(t))}function Md(e=0,t=void 0,s=100){let r=2**e*s,n=Math.max(r,Js(t)),o=n*.2*Math.random();return n+o}function Od(e=100){return(t=0,s=void 0)=>{let r=t*e;return Math.max(r,Js(s))}}var Nd={retries:3,retryCondition:an,retryDelay:fE,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function bE(e,t){return{...Nd,...t,...e[$s]}}function Dd(e,t,s=!1){let r=bE(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||s)&&(r.lastRequestTime=Date.now()),e[$s]=r,r}function xE(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function IE(e,t){let{retries:s,retryCondition:r}=e,n=(e.retryCount||0)<s&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function vE(e,t,s,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,s);if(xE(e,r),!o&&r.timeout&&t.lastRequestTime){let c=Date.now()-t.lastRequestTime,a=r.timeout-c-p;if(a<=0)return Promise.reject(s);r.timeout=a}return r.transformRequest=[c=>c],await i(t.retryCount,s,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(c=>{let a=()=>{clearTimeout(u),c(e(r))},u=setTimeout(()=>{c(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",a)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",a,{once:!0})})}async function kE(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var Xe=(e,t)=>{let s=e.interceptors.request.use(n=>(Dd(n,t,!0),n[$s]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=Dd(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await IE(i,n)?vE(e,i,n,o):(await kE(i,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:r}};Xe.isNetworkError=sn;Xe.isSafeRequestError=Fd;Xe.isIdempotentRequestError=rn;Xe.isNetworkOrIdempotentRequestError=an;Xe.exponentialDelay=Md;Xe.linearDelay=Od;Xe.isRetryableError=zs;var Pe=Xe;var po={};Ie(po,{Client:()=>io});var on=L(Ys()),Xs=L(require("http")),Zs=L(require("https")),Vd=100*1024*1024,Kd=Vd,jd=Vd,$d=on.isNode&&Xs.default&&Xs.default.Agent?new Xs.default.Agent({keepAlive:!0}):void 0,zd=on.isNode&&Zs.default&&Zs.default.Agent?new Zs.default.Agent({keepAlive:!0}):void 0;var ye={};Ie(ye,{getClientConfig:()=>HE});var cs=L(Ys()),UE="https://api.botpress.cloud",EE=6e4,SE=!1,GE="BP_API_URL",LE="BP_BOT_ID",_E="BP_INTEGRATION_ID",WE="BP_WORKSPACE_ID",DE="BP_TOKEN";function HE(e){let t=QE(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.integrationAlias&&(s["x-integration-alias"]=t.integrationAlias),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let r=t.apiUrl??UE,n=t.timeout??EE,o=t.debug??SE;return{apiUrl:r,timeout:n,withCredentials:cs.isBrowser,headers:s,debug:o}}function QE(e){return cs.isBrowser?e:cs.isNode?FE(e):e}function FE(e){let t={...e,apiUrl:e.apiUrl??process.env[GE],botId:e.botId??process.env[LE],integrationId:e.integrationId??process.env[_E],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[WE]},s=t.token??process.env[DE];return s&&(t.token=s),t}var P={};Ie(P,{AsyncCollection:()=>pn});var pn=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=s)break;return r}};var Re={};Ie(Re,{createAxiosInstance:()=>jE});var Yd=L(Ys()),er;Yd.isNode?er=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?er=()=>crypto.randomUUID():er=()=>Math.random().toString(36).substring(2,15);var Xd=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:er()},console.debug(ME(t)),t)),e.interceptors.response.use(t=>(console.debug(OE(t)),t),t=>(console.debug(NE(t)),Promise.reject(t)))},ME=e=>{let{method:t,url:s,headers:r,data:n}=e,o=e.baseURL?new URL(s,e.baseURL).toString():s;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:n})+`
|
|
15
15
|
`},OE=e=>{let{config:t,status:s,headers:r,data:n}=e,o=Zd(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:s,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:n})+`
|
|
16
|
-
`},NE=e=>{let t=e?Zd(e):"N/A",s=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:s,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},Zd=e=>{let t=e.config.metadata?.startTime,s=new Date().getTime();return t?`${s-t}ms`:"N/A"};var KE=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Kd,maxContentLength:jd,httpAgent:$d,httpsAgent:zd}),jE=e=>{let t=KE(e),s=$.create(t);return e.debug&&Xd(s),s};var he={};Ie(he,{toApiError:()=>XE});var el=L(require("crypto"));var $E={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},cn=typeof window<"u"&&typeof window.document<"u"?window.crypto:el.default;cn.getRandomValues||(cn=$E);var _=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(cn.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},zE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tl=e=>e instanceof _||zE(e)&&e.isApiError===!0,Ze=class extends _{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},tr=class extends _{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},sr=class extends _{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},rr=class extends _{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},ar=class extends _{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},nr=class extends _{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},or=class extends _{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},ir=class extends _{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},pr=class extends _{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},cr=class extends _{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ur=class extends _{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},dr=class extends _{constructor(t,s,r,n){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,r,n)}},lr=class extends _{constructor(t,s,r,n){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,r,n)}},gr=class extends _{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},mr=class extends _{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},yr=class extends _{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Rr=class extends _{constructor(t,s,r,n){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,r,n)}},hr=class extends _{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},qr=class extends _{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},fr=class extends _{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},br=class extends _{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},xr=class extends _{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ir=class extends _{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},vr=class extends _{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},kr=class extends _{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Pr=class extends _{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},JE={Unknown:Ze,Internal:tr,Unauthorized:sr,Forbidden:rr,PayloadTooLarge:ar,InvalidPayload:nr,UnsupportedMediaType:or,MethodNotFound:ir,ResourceNotFound:pr,InvalidJsonSchema:cr,InvalidDataFormat:ur,InvalidIdentifier:dr,RelationConflict:lr,ReferenceConstraint:gr,ResourceLockedConflict:mr,ResourceGone:yr,ReferenceNotFound:Rr,InvalidQuery:hr,Runtime:qr,AlreadyExists:fr,RateLimited:br,PaymentRequired:xr,QuotaExceeded:Ir,LimitExceeded:vr,BreakingChanges:kr,OperationTimeout:Pr},lt=e=>tl(e)?e:e instanceof Error?new Ze(e.message,e):typeof e=="string"?new Ze(e):YE(e);function YE(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=JE[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ze(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ze("An invalid error occurred: "+JSON.stringify(e))}var Fe=class extends Error{constructor(s,r,n){super(s);this.innerError=r;this.file=n;this.name="FileUploadError"}};var XE=e=>$.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e);var rl=L(require("crypto"));var ZE={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},un=typeof window<"u"&&typeof window.document<"u"?window.crypto:rl.default;un.getRandomValues||(un=ZE);var W=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(un.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},eS=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tS=e=>e instanceof W||eS(e)&&e.isApiError===!0,gt=class extends W{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},dn=class extends W{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},ln=class extends W{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},gn=class extends W{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},mn=class extends W{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},yn=class extends W{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Rn=class extends W{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},hn=class extends W{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},qn=class extends W{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},fn=class extends W{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},bn=class extends W{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},xn=class extends W{constructor(t,s,r,n){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,r,n)}},In=class extends W{constructor(t,s,r,n){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,r,n)}},vn=class extends W{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},kn=class extends W{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Pn=class extends W{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},An=class extends W{constructor(t,s,r,n){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,r,n)}},Bn=class extends W{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Tn=class extends W{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},wn=class extends W{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Cn=class extends W{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Un=class extends W{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},En=class extends W{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Sn=class extends W{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Gn=class extends W{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Ln=class extends W{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},sS={Unknown:gt,Internal:dn,Unauthorized:ln,Forbidden:gn,PayloadTooLarge:mn,InvalidPayload:yn,UnsupportedMediaType:Rn,MethodNotFound:hn,ResourceNotFound:qn,InvalidJsonSchema:fn,InvalidDataFormat:bn,InvalidIdentifier:xn,RelationConflict:In,ReferenceConstraint:vn,ResourceLockedConflict:kn,ResourceGone:Pn,ReferenceNotFound:An,InvalidQuery:Bn,Runtime:Tn,AlreadyExists:wn,RateLimited:Cn,PaymentRequired:Un,QuotaExceeded:En,LimitExceeded:Sn,BreakingChanges:Gn,OperationTimeout:Ln},_n=e=>tS(e)?e:e instanceof Error?new gt(e.message,e):typeof e=="string"?new gt(e):rS(e);function rS(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=sS[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new gt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new gt("An invalid error occurred: "+JSON.stringify(e))}var qg=L(Rt()),eL=e=>e[1]!==void 0,T=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(eL),p=Object.fromEntries(i),c=qg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var fg=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var xg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vg=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Pg=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Bg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var wg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ug=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Sg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Lg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Wg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Hg=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Fg=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Og=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Vg=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jg=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var zg=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Yg=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zg=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var tm=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var rm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nm=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var im=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var cm=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var dm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gm=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var ym=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var hm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var fm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xm=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var vm=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 Pm=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 Bm=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 wm=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 Um=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Sm=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Lm=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Wm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Fm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Om=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Vm=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var jm=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var zm=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Ym=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Wr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=xg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Bg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Ug(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Hg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Fg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Og(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};cancelScheduledEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=tm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=rm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};initializeIncomingMessage=async t=>{let{path:s,headers:r,query:n,body:o}=nm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importMessages=async t=>{let{path:s,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=dm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=xm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Bm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=Um(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Hm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=Om(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=jm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};captureObservation=async t=>{let{path:s,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function w(e){return $.isAxiosError(e)&&e.response?.data?_n(e.response.data):_n(e)}var io=class extends Wr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users})))}}};var Do={};Ie(Do,{Client:()=>Wo});var Zm=L(require("crypto"));var sL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},co=typeof window<"u"&&typeof window.document<"u"?window.crypto:Zm.default;co.getRandomValues||(co=sL);var D=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(co.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},rL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,aL=e=>e instanceof D||rL(e)&&e.isApiError===!0,ht=class extends D{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},uo=class extends D{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},lo=class extends D{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},go=class extends D{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},mo=class extends D{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},yo=class extends D{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ro=class extends D{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},ho=class extends D{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},qo=class extends D{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},fo=class extends D{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},bo=class extends D{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},xo=class extends D{constructor(t,s,r,n){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,r,n)}},Io=class extends D{constructor(t,s,r,n){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,r,n)}},vo=class extends D{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},ko=class extends D{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Po=class extends D{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Ao=class extends D{constructor(t,s,r,n){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,r,n)}},Bo=class extends D{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},To=class extends D{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},wo=class extends D{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Co=class extends D{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Uo=class extends D{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Eo=class extends D{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},So=class extends D{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Go=class extends D{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Lo=class extends D{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},nL={Unknown:ht,Internal:uo,Unauthorized:lo,Forbidden:go,PayloadTooLarge:mo,InvalidPayload:yo,UnsupportedMediaType:Ro,MethodNotFound:ho,ResourceNotFound:qo,InvalidJsonSchema:fo,InvalidDataFormat:bo,InvalidIdentifier:xo,RelationConflict:Io,ReferenceConstraint:vo,ResourceLockedConflict:ko,ResourceGone:Po,ReferenceNotFound:Ao,InvalidQuery:Bo,Runtime:To,AlreadyExists:wo,RateLimited:Co,PaymentRequired:Uo,QuotaExceeded:Eo,LimitExceeded:So,BreakingChanges:Go,OperationTimeout:Lo},_o=e=>aL(e)?e:e instanceof Error?new ht(e.message,e):typeof e=="string"?new ht(e):oL(e);function oL(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=nL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ht(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ht("An invalid error occurred: "+JSON.stringify(e))}var ey=L(Rt()),iL=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(iL),p=Object.fromEntries(i),c=ey.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var ty=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ry=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ny=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var iy=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var cy=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var dy=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var gy=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yy=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var hy=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var fy=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var xy=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Py=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var By=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Uy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Ly=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Wy=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hy=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fy=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,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev}});var Oy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,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,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Vy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var jy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var zy=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Yy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Zy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var rR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var nR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var iR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var cR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var dR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var gR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var yR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var hR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var fR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var xR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var vR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var PR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var BR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var wR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var UR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var SR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var LR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var WR=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var HR=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var FR=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var VR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var jR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var zR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var ZR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var th=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var rh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ih=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ch=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 dh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var yh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var hh=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 fh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var xh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var vh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var wh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Uh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Sh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Lh=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Wh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Fh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Oh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Vh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var jh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zh=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Yh=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var tq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var rq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var nq=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var iq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var dq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var gq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yq=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var hq=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var fq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Pq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bq=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wq=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Uq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Hq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Oq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Vq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jq=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var zq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Yq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var tf=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var rf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var nf=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Dr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ry(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ny(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=iy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=cy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=dy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=gy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=xy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=By(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=Fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=Oy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=Yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=tR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=rR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=nR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=iR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=dR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=gR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=xR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=BR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=UR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=HR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=FR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=OR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=YR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=th(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=rh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=nh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=ih(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=dh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=gh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=xh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=Bh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=Uh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=Oh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=Yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=tq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=rq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=nq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=iq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=dq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=gq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=xq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Bq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Uq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Sq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Hq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Oq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=jq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=Yq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=tf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=rf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=nf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function h(e){return $.isAxiosError(e)&&e.response?.data?_o(e.response.data):_o(e)}var Wo=class extends Dr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}};var gi={};Ie(gi,{Client:()=>li});var pf=L(require("crypto"));var cL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ho=typeof window<"u"&&typeof window.document<"u"?window.crypto:pf.default;Ho.getRandomValues||(Ho=cL);var H=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ho.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},uL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,dL=e=>e instanceof H||uL(e)&&e.isApiError===!0,qt=class extends H{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Qo=class extends H{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Fo=class extends H{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Mo=class extends H{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Oo=class extends H{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},No=class extends H{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Vo=class extends H{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ko=class extends H{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},jo=class extends H{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},$o=class extends H{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},zo=class extends H{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Jo=class extends H{constructor(t,s,r,n){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,r,n)}},Yo=class extends H{constructor(t,s,r,n){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,r,n)}},Xo=class extends H{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Zo=class extends H{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},ei=class extends H{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},ti=class extends H{constructor(t,s,r,n){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,r,n)}},si=class extends H{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},ri=class extends H{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},ai=class extends H{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},ni=class extends H{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},oi=class extends H{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},ii=class extends H{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},pi=class extends H{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},ci=class extends H{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},ui=class extends H{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},lL={Unknown:qt,Internal:Qo,Unauthorized:Fo,Forbidden:Mo,PayloadTooLarge:Oo,InvalidPayload:No,UnsupportedMediaType:Vo,MethodNotFound:Ko,ResourceNotFound:jo,InvalidJsonSchema:$o,InvalidDataFormat:zo,InvalidIdentifier:Jo,RelationConflict:Yo,ReferenceConstraint:Xo,ResourceLockedConflict:Zo,ResourceGone:ei,ReferenceNotFound:ti,InvalidQuery:si,Runtime:ri,AlreadyExists:ai,RateLimited:ni,PaymentRequired:oi,QuotaExceeded:ii,LimitExceeded:pi,BreakingChanges:ci,OperationTimeout:ui},di=e=>dL(e)?e:e instanceof Error?new qt(e.message,e):typeof e=="string"?new qt(e):gL(e);function gL(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=lL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qt("An invalid error occurred: "+JSON.stringify(e))}var cf=L(Rt()),mL=e=>e[1]!==void 0,M=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(mL),p=Object.fromEntries(i),c=cf.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var uf=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var lf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var mf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{lineOne:e.lineOne,lineTwo:e.lineTwo,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country}});var Rf=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var qf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var bf=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var If=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var kf=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Af=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Tf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var Cf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var Ef=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var Gf=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var _f=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Df=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Qf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Mf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Nf=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Kf=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var $f=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Jf=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Xf=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var eb=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Hr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBillingAddress=async t=>{let{path:s,headers:r,query:n,body:o}=lf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setBillingAddress=async t=>{let{path:s,headers:r,query:n,body:o}=mf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlan=async t=>{let{path:s,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlans=async t=>{let{path:s,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAddon=async t=>{let{path:s,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listAddons=async t=>{let{path:s,headers:r,query:n,body:o}=If(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getSubscription=async t=>{let{path:s,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};previewSubscriptionUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setPlan=async t=>{let{path:s,headers:r,query:n,body:o}=Tf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAddons=async t=>{let{path:s,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setCancelAtPeriodEnd=async t=>{let{path:s,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAutoRechargeSettings=async t=>{let{path:s,headers:r,query:n,body:o}=Gf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAutoRechargeSettings=async t=>{let{path:s,headers:r,query:n,body:o}=_f(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTrials=async t=>{let{path:s,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTrial=async t=>{let{path:s,headers:r,query:n,body:o}=Qf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeTrial=async t=>{let{path:s,headers:r,query:n,body:o}=Mf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};payInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=Kf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPaymentMethod=async t=>{let{path:s,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setPaymentMethod=async t=>{let{path:s,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPaymentMethodIntent=async t=>{let{path:s,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function K(e){return $.isAxiosError(e)&&e.response?.data?di(e.response.data):di(e)}var li=class extends Hr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{listInvoices:t=>new P.AsyncCollection(({nextToken:s})=>this.listInvoices({nextToken:s,...t}).then(r=>({...r,items:r.invoices})))}}};var Mi={};Ie(Mi,{Client:()=>Fi});var sb=L(require("crypto"));var RL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mi=typeof window<"u"&&typeof window.document<"u"?window.crypto:sb.default;mi.getRandomValues||(mi=RL);var Q=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(mi.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},hL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,qL=e=>e instanceof Q||hL(e)&&e.isApiError===!0,ft=class extends Q{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},yi=class extends Q{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Ri=class extends Q{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},hi=class extends Q{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},qi=class extends Q{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},fi=class extends Q{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},bi=class extends Q{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},xi=class extends Q{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Ii=class extends Q{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},vi=class extends Q{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ki=class extends Q{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Pi=class extends Q{constructor(t,s,r,n){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,r,n)}},Ai=class extends Q{constructor(t,s,r,n){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,r,n)}},Bi=class extends Q{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ti=class extends Q{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},wi=class extends Q{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Ci=class extends Q{constructor(t,s,r,n){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,r,n)}},Ui=class extends Q{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Ei=class extends Q{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Si=class extends Q{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Gi=class extends Q{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Li=class extends Q{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},_i=class extends Q{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Wi=class extends Q{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Di=class extends Q{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Hi=class extends Q{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},fL={Unknown:ft,Internal:yi,Unauthorized:Ri,Forbidden:hi,PayloadTooLarge:qi,InvalidPayload:fi,UnsupportedMediaType:bi,MethodNotFound:xi,ResourceNotFound:Ii,InvalidJsonSchema:vi,InvalidDataFormat:ki,InvalidIdentifier:Pi,RelationConflict:Ai,ReferenceConstraint:Bi,ResourceLockedConflict:Ti,ResourceGone:wi,ReferenceNotFound:Ci,InvalidQuery:Ui,Runtime:Ei,AlreadyExists:Si,RateLimited:Gi,PaymentRequired:Li,QuotaExceeded:_i,LimitExceeded:Wi,BreakingChanges:Di,OperationTimeout:Hi},Qi=e=>qL(e)?e:e instanceof Error?new ft(e.message,e):typeof e=="string"?new ft(e):bL(e);function bL(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=fL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ft(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ft("An invalid error occurred: "+JSON.stringify(e))}var rb=L(Rt()),xL=e=>e[1]!==void 0,pe=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(xL),p=Object.fromEntries(i),c=rb.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var ab=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var ob=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var ub=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var mb=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Rb=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var qb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var bb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Ib=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var kb=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Ab=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Tb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Eb=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Qr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=ub(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=Rb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=qb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=bb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=kb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Cb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function le(e){return $.isAxiosError(e)&&e.response?.data?Qi(e.response.data):Qi(e)}var Fr=async(e,{key:t,index:s,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:c,expiresAt:a,metadata:u,publicContentImmediatelyAccessible:y})=>{if(p&&i)throw new Fe("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await $.get(p,{responseType:"arraybuffer"}).then(k=>k.data).catch(k=>{throw new Fe(`Failed to download file from provided URL: ${k.message}`,k)})),!i)throw new Fe("No content was provided for the file");let q,x;if(typeof i=="string"){let I=new TextEncoder().encode(i);q=I,x=I.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new Fe("The provided content is not supported");let{file:m}=await e.upsertFile({key:t,tags:r,index:s,accessPolicies:o,contentType:n,metadata:u,size:x,expiresAt:a,indexing:c,publicContentImmediatelyAccessible:y}),f={"Content-Type":m.contentType};y&&(f["x-amz-tagging"]="public=true");try{await $.put(m.uploadUrl,q,{maxBodyLength:1/0,headers:f})}catch(k){let I=k instanceof Error?k:new Error(String(k));throw new Fe(`Failed to upload file: ${I.message}`,I,m)}return{file:{...m,size:x}}};var Fi=class extends Qr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new P.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Fr(this,t)}};var hp={};Ie(hp,{Client:()=>Rp});var Lb=L(require("crypto"));var vL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oi=typeof window<"u"&&typeof window.document<"u"?window.crypto:Lb.default;Oi.getRandomValues||(Oi=vL);var F=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Oi.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},kL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,PL=e=>e instanceof F||kL(e)&&e.isApiError===!0,bt=class extends F{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Ni=class extends F{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Vi=class extends F{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ki=class extends F{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},ji=class extends F{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},$i=class extends F{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},zi=class extends F{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ji=class extends F{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Yi=class extends F{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Xi=class extends F{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Zi=class extends F{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},ep=class extends F{constructor(t,s,r,n){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,r,n)}},tp=class extends F{constructor(t,s,r,n){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,r,n)}},sp=class extends F{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},rp=class extends F{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},ap=class extends F{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},np=class extends F{constructor(t,s,r,n){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,r,n)}},op=class extends F{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},ip=class extends F{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},pp=class extends F{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},cp=class extends F{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},up=class extends F{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},dp=class extends F{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},lp=class extends F{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},gp=class extends F{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},mp=class extends F{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},AL={Unknown:bt,Internal:Ni,Unauthorized:Vi,Forbidden:Ki,PayloadTooLarge:ji,InvalidPayload:$i,UnsupportedMediaType:zi,MethodNotFound:Ji,ResourceNotFound:Yi,InvalidJsonSchema:Xi,InvalidDataFormat:Zi,InvalidIdentifier:ep,RelationConflict:tp,ReferenceConstraint:sp,ResourceLockedConflict:rp,ResourceGone:ap,ReferenceNotFound:np,InvalidQuery:op,Runtime:ip,AlreadyExists:pp,RateLimited:cp,PaymentRequired:up,QuotaExceeded:dp,LimitExceeded:lp,BreakingChanges:gp,OperationTimeout:mp},yp=e=>PL(e)?e:e instanceof Error?new bt(e.message,e):typeof e=="string"?new bt(e):BL(e);function BL(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=AL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new bt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new bt("An invalid error occurred: "+JSON.stringify(e))}var _b=L(Rt()),TL=e=>e[1]!==void 0,ae=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(TL),p=Object.fromEntries(i),c=_b.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Wb=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Hb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Fb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ob=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Vb=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 jb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Yb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var nx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ix=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var cx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var dx=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 gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var yx=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 Mr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}listTables=async t=>{let{path:s,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=Hb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Fb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=Ob(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=jb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=Yb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=nx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=ix(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=cx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=dx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=gx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=yx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function oe(e){return $.isAxiosError(e)&&e.response?.data?yp(e.response.data):yp(e)}var Rp=class extends Mr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}};var hx=L(Rt()),CL=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(CL),p=Object.fromEntries(i),c=hx.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var qx=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var bx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ix=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var kx=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Ax=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Tx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ex=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Gx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var _x=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Dx=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Qx=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mx=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Nx=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kx=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var $x=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Jx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var eI=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var sI=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aI=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var oI=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var pI=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var uI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lI=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var mI=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var RI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var qI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bI=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var II=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 kI=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 AI=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 TI=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 CI=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var EI=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var GI=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var _I=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var QI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MI=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var NI=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var KI=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var $I=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var JI=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var XI=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ev=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var sv=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var av=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ov=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var pv=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var uv=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var mv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Rv=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var qv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Iv=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var kv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Tv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Cv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Ev=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Gv=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _v=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Dv=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,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev}});var Qv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,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,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Mv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Nv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Kv=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var $v=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Jv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var sk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ok=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var uk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var lk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Rk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var bk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ik=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var kk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ck=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Gk=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var _k=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Dk=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Nk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Kk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var $k=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Jk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Xk=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var eP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var sP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var oP=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 pP=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var uP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var lP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var mP=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 RP=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var qP=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var bP=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var IP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var AP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var TP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var CP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var EP=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var GP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _P=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var DP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var QP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var MP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var NP=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var KP=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var $P=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var JP=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var XP=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var eA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var sA=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var aA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var pA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var uA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lA=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var mA=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var RA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var IA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kA=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var AA=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var TA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var CA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var EA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var GA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var _A=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DA=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var QA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var MA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var NA=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var KA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $A=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var JA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var XA=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var eB=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var sB=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var aB=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var oB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pB=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var uB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var mB=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var RB=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var qB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var bB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var IB=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var kB=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var AB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var TB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var CB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var EB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var GB=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var _B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var DB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var QB=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var MB=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 NB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var KB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var $B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var JB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var XB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var eT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var sT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var aT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var oT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var pT=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 uT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var lT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Or=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Ix(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Tx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Gx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=_x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Mx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};cancelScheduledEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Nx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=$x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Jx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Xx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=eI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=sI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};initializeIncomingMessage=async t=>{let{path:s,headers:r,query:n,body:o}=aI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importMessages=async t=>{let{path:s,headers:r,query:n,body:o}=oI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=pI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=uI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=lI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=mI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=RI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=qI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=bI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=II(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=kI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=AI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=TI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=CI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=EI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=GI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=_I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=DI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=QI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=MI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=NI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=KI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=$I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};captureObservation=async t=>{let{path:s,headers:r,query:n,body:o}=JI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=XI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=sv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=pv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=uv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=lv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Rv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Iv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=Av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Tv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Cv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=Gv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=_v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=Dv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=Qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=Mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=Nv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=Kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=$v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Jv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=Xv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=sk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=pk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=uk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=lk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Rk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Ik(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Tk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Ck(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=Gk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=_k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=Dk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=Qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=Mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:r,query:n,body:o}=Nk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=$k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Jk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Xk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=eP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=sP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=aP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=oP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=pP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=uP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=lP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=mP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=RP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=qP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=bP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=IP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=kP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=AP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=TP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=CP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=EP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=GP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=_P(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=DP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=QP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=MP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=NP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=KP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=$P(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=JP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=XP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=eA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=sA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=aA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=oA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=pA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=uA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=lA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=mA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=RA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=qA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=bA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=IA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=kA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=AA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=TA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=CA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=EA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=GA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=_A(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=DA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=QA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=MA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=NA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=KA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=$A(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=JA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=XA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=eB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=sB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=aB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=oB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=pB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=uB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=lB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=mB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=RB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=qB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=bB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=IB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=kB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=AB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=TB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=CB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=EB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTables=async t=>{let{path:s,headers:r,query:n,body:o}=GB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=_B(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=DB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=QB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=MB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=NB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=KB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=$B(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=JB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=XB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=eT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=sT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=aT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=oT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=pT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=uT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=lT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function l(e){return $.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e)}var qp=class extends Or{config;constructor(t={}){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new P.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkflows({nextToken:s,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Fr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
|
|
16
|
+
`},NE=e=>{let t=e?Zd(e):"N/A",s=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:s,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},Zd=e=>{let t=e.config.metadata?.startTime,s=new Date().getTime();return t?`${s-t}ms`:"N/A"};var KE=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Kd,maxContentLength:jd,httpAgent:$d,httpsAgent:zd}),jE=e=>{let t=KE(e),s=$.create(t);return e.debug&&Xd(s),s};var he={};Ie(he,{toApiError:()=>XE});var el=L(require("crypto"));var $E={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},cn=typeof window<"u"&&typeof window.document<"u"?window.crypto:el.default;cn.getRandomValues||(cn=$E);var _=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(cn.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},zE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tl=e=>e instanceof _||zE(e)&&e.isApiError===!0,Ze=class extends _{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},tr=class extends _{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},sr=class extends _{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},rr=class extends _{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},ar=class extends _{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},nr=class extends _{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},or=class extends _{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},ir=class extends _{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},pr=class extends _{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},cr=class extends _{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ur=class extends _{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},dr=class extends _{constructor(t,s,r,n){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,r,n)}},lr=class extends _{constructor(t,s,r,n){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,r,n)}},gr=class extends _{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},mr=class extends _{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},yr=class extends _{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Rr=class extends _{constructor(t,s,r,n){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,r,n)}},hr=class extends _{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},qr=class extends _{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},fr=class extends _{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},br=class extends _{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},xr=class extends _{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ir=class extends _{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},vr=class extends _{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},kr=class extends _{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Pr=class extends _{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},JE={Unknown:Ze,Internal:tr,Unauthorized:sr,Forbidden:rr,PayloadTooLarge:ar,InvalidPayload:nr,UnsupportedMediaType:or,MethodNotFound:ir,ResourceNotFound:pr,InvalidJsonSchema:cr,InvalidDataFormat:ur,InvalidIdentifier:dr,RelationConflict:lr,ReferenceConstraint:gr,ResourceLockedConflict:mr,ResourceGone:yr,ReferenceNotFound:Rr,InvalidQuery:hr,Runtime:qr,AlreadyExists:fr,RateLimited:br,PaymentRequired:xr,QuotaExceeded:Ir,LimitExceeded:vr,BreakingChanges:kr,OperationTimeout:Pr},lt=e=>tl(e)?e:e instanceof Error?new Ze(e.message,e):typeof e=="string"?new Ze(e):YE(e);function YE(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=JE[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ze(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ze("An invalid error occurred: "+JSON.stringify(e))}var Fe=class extends Error{constructor(s,r,n){super(s);this.innerError=r;this.file=n;this.name="FileUploadError"}};var XE=e=>$.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e);var rl=L(require("crypto"));var ZE={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},un=typeof window<"u"&&typeof window.document<"u"?window.crypto:rl.default;un.getRandomValues||(un=ZE);var W=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(un.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},eS=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tS=e=>e instanceof W||eS(e)&&e.isApiError===!0,gt=class extends W{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},dn=class extends W{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},ln=class extends W{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},gn=class extends W{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},mn=class extends W{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},yn=class extends W{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Rn=class extends W{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},hn=class extends W{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},qn=class extends W{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},fn=class extends W{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},bn=class extends W{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},xn=class extends W{constructor(t,s,r,n){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,r,n)}},In=class extends W{constructor(t,s,r,n){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,r,n)}},vn=class extends W{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},kn=class extends W{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Pn=class extends W{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},An=class extends W{constructor(t,s,r,n){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,r,n)}},Bn=class extends W{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Tn=class extends W{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},wn=class extends W{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Cn=class extends W{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Un=class extends W{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},En=class extends W{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Sn=class extends W{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Gn=class extends W{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Ln=class extends W{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},sS={Unknown:gt,Internal:dn,Unauthorized:ln,Forbidden:gn,PayloadTooLarge:mn,InvalidPayload:yn,UnsupportedMediaType:Rn,MethodNotFound:hn,ResourceNotFound:qn,InvalidJsonSchema:fn,InvalidDataFormat:bn,InvalidIdentifier:xn,RelationConflict:In,ReferenceConstraint:vn,ResourceLockedConflict:kn,ResourceGone:Pn,ReferenceNotFound:An,InvalidQuery:Bn,Runtime:Tn,AlreadyExists:wn,RateLimited:Cn,PaymentRequired:Un,QuotaExceeded:En,LimitExceeded:Sn,BreakingChanges:Gn,OperationTimeout:Ln},_n=e=>tS(e)?e:e instanceof Error?new gt(e.message,e):typeof e=="string"?new gt(e):rS(e);function rS(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=sS[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new gt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new gt("An invalid error occurred: "+JSON.stringify(e))}var qg=L(Rt()),eL=e=>e[1]!==void 0,T=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(eL),p=Object.fromEntries(i),c=qg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var fg=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var xg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vg=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Pg=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Bg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var wg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ug=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Sg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Lg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Wg=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Hg=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Fg=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Og=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Vg=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jg=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var zg=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Yg=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zg=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var tm=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var rm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nm=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var im=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var cm=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var dm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gm=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var ym=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var hm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var fm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xm=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var vm=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 Pm=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 Bm=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 wm=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 Um=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Sm=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Lm=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Wm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Fm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Om=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Vm=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var jm=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var zm=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Ym=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Wr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=xg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Bg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Ug(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Hg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Fg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Og(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};cancelScheduledEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=tm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=rm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};initializeIncomingMessage=async t=>{let{path:s,headers:r,query:n,body:o}=nm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importMessages=async t=>{let{path:s,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=dm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=xm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Bm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=Um(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Hm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=Om(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=jm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};captureObservation=async t=>{let{path:s,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function w(e){return $.isAxiosError(e)&&e.response?.data?_n(e.response.data):_n(e)}var io=class extends Wr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users})))}}};var Do={};Ie(Do,{Client:()=>Wo});var Zm=L(require("crypto"));var sL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},co=typeof window<"u"&&typeof window.document<"u"?window.crypto:Zm.default;co.getRandomValues||(co=sL);var D=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(co.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},rL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,aL=e=>e instanceof D||rL(e)&&e.isApiError===!0,ht=class extends D{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},uo=class extends D{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},lo=class extends D{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},go=class extends D{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},mo=class extends D{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},yo=class extends D{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ro=class extends D{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},ho=class extends D{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},qo=class extends D{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},fo=class extends D{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},bo=class extends D{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},xo=class extends D{constructor(t,s,r,n){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,r,n)}},Io=class extends D{constructor(t,s,r,n){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,r,n)}},vo=class extends D{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},ko=class extends D{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Po=class extends D{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Ao=class extends D{constructor(t,s,r,n){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,r,n)}},Bo=class extends D{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},To=class extends D{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},wo=class extends D{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Co=class extends D{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Uo=class extends D{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Eo=class extends D{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},So=class extends D{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Go=class extends D{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Lo=class extends D{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},nL={Unknown:ht,Internal:uo,Unauthorized:lo,Forbidden:go,PayloadTooLarge:mo,InvalidPayload:yo,UnsupportedMediaType:Ro,MethodNotFound:ho,ResourceNotFound:qo,InvalidJsonSchema:fo,InvalidDataFormat:bo,InvalidIdentifier:xo,RelationConflict:Io,ReferenceConstraint:vo,ResourceLockedConflict:ko,ResourceGone:Po,ReferenceNotFound:Ao,InvalidQuery:Bo,Runtime:To,AlreadyExists:wo,RateLimited:Co,PaymentRequired:Uo,QuotaExceeded:Eo,LimitExceeded:So,BreakingChanges:Go,OperationTimeout:Lo},_o=e=>aL(e)?e:e instanceof Error?new ht(e.message,e):typeof e=="string"?new ht(e):oL(e);function oL(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=nL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ht(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ht("An invalid error occurred: "+JSON.stringify(e))}var ey=L(Rt()),iL=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(iL),p=Object.fromEntries(i),c=ey.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var ty=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ry=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ny=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var iy=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var cy=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var dy=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var gy=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yy=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var hy=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var fy=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var xy=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Py=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var By=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Uy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sy=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Ly=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Wy=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hy=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fy=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,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var Oy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,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,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins,type:e.type}});var Vy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var jy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var zy=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Yy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Zy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var rR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var nR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var iR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var cR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var dR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var gR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var yR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var hR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var fR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var xR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var vR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var PR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var BR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var wR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var UR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var SR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var LR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var WR=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var HR=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var FR=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var VR=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var jR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var zR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var ZR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var th=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var rh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ih=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ch=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 dh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var yh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var hh=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 fh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var xh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var vh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var wh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Uh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Sh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Lh=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Wh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Fh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Oh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Vh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var jh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zh=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Yh=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var tq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var rq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var nq=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var iq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var dq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var gq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yq=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var hq=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var fq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Pq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bq=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wq=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Uq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Hq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Oq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Vq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jq=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var zq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Yq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var tf=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var rf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var nf=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Dr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ry(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ny(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=iy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=cy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=dy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=gy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=xy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=By(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=Fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=Oy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=Yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=tR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=rR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=nR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=iR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=dR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=gR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=xR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=BR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=UR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=HR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=FR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=OR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=YR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=th(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=rh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=nh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=ih(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=dh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=gh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=xh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=Bh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=Uh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=Fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=Oh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=Yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=tq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=rq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=nq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=iq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=dq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=gq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=xq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Bq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Uq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Sq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Hq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Oq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=jq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=Yq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=tf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=rf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=nf(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function h(e){return $.isAxiosError(e)&&e.response?.data?_o(e.response.data):_o(e)}var Wo=class extends Dr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}};var gi={};Ie(gi,{Client:()=>li});var pf=L(require("crypto"));var cL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ho=typeof window<"u"&&typeof window.document<"u"?window.crypto:pf.default;Ho.getRandomValues||(Ho=cL);var H=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ho.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},uL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,dL=e=>e instanceof H||uL(e)&&e.isApiError===!0,qt=class extends H{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Qo=class extends H{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Fo=class extends H{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Mo=class extends H{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Oo=class extends H{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},No=class extends H{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Vo=class extends H{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ko=class extends H{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},jo=class extends H{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},$o=class extends H{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},zo=class extends H{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Jo=class extends H{constructor(t,s,r,n){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,r,n)}},Yo=class extends H{constructor(t,s,r,n){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,r,n)}},Xo=class extends H{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Zo=class extends H{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},ei=class extends H{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},ti=class extends H{constructor(t,s,r,n){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,r,n)}},si=class extends H{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},ri=class extends H{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},ai=class extends H{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},ni=class extends H{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},oi=class extends H{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},ii=class extends H{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},pi=class extends H{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},ci=class extends H{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},ui=class extends H{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},lL={Unknown:qt,Internal:Qo,Unauthorized:Fo,Forbidden:Mo,PayloadTooLarge:Oo,InvalidPayload:No,UnsupportedMediaType:Vo,MethodNotFound:Ko,ResourceNotFound:jo,InvalidJsonSchema:$o,InvalidDataFormat:zo,InvalidIdentifier:Jo,RelationConflict:Yo,ReferenceConstraint:Xo,ResourceLockedConflict:Zo,ResourceGone:ei,ReferenceNotFound:ti,InvalidQuery:si,Runtime:ri,AlreadyExists:ai,RateLimited:ni,PaymentRequired:oi,QuotaExceeded:ii,LimitExceeded:pi,BreakingChanges:ci,OperationTimeout:ui},di=e=>dL(e)?e:e instanceof Error?new qt(e.message,e):typeof e=="string"?new qt(e):gL(e);function gL(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=lL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qt("An invalid error occurred: "+JSON.stringify(e))}var cf=L(Rt()),mL=e=>e[1]!==void 0,M=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(mL),p=Object.fromEntries(i),c=cf.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var uf=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var lf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var mf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{lineOne:e.lineOne,lineTwo:e.lineTwo,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country}});var Rf=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var qf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var bf=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var If=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var kf=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Af=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons,couponCode:e.couponCode}});var Tf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime,couponCode:e.couponCode}});var Cf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons,couponCode:e.couponCode}});var Ef=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{}});var Gf=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var _f=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Df=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Qf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Mf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Nf=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Kf=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var $f=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Jf=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Xf=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var eb=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Hr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}getBillingReadonly=async t=>{let{path:s,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBillingAddress=async t=>{let{path:s,headers:r,query:n,body:o}=lf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setBillingAddress=async t=>{let{path:s,headers:r,query:n,body:o}=mf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlan=async t=>{let{path:s,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlans=async t=>{let{path:s,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAddon=async t=>{let{path:s,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listAddons=async t=>{let{path:s,headers:r,query:n,body:o}=If(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getSubscription=async t=>{let{path:s,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};previewSubscriptionUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setPlan=async t=>{let{path:s,headers:r,query:n,body:o}=Tf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAddons=async t=>{let{path:s,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setCancelAtPeriodEnd=async t=>{let{path:s,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAutoRechargeSettings=async t=>{let{path:s,headers:r,query:n,body:o}=Gf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAutoRechargeSettings=async t=>{let{path:s,headers:r,query:n,body:o}=_f(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTrials=async t=>{let{path:s,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTrial=async t=>{let{path:s,headers:r,query:n,body:o}=Qf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeTrial=async t=>{let{path:s,headers:r,query:n,body:o}=Mf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};payInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=Kf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPaymentMethod=async t=>{let{path:s,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setPaymentMethod=async t=>{let{path:s,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPaymentMethodIntent=async t=>{let{path:s,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??K,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function K(e){return $.isAxiosError(e)&&e.response?.data?di(e.response.data):di(e)}var li=class extends Hr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{listInvoices:t=>new P.AsyncCollection(({nextToken:s})=>this.listInvoices({nextToken:s,...t}).then(r=>({...r,items:r.invoices})))}}};var Mi={};Ie(Mi,{Client:()=>Fi});var sb=L(require("crypto"));var RL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mi=typeof window<"u"&&typeof window.document<"u"?window.crypto:sb.default;mi.getRandomValues||(mi=RL);var Q=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(mi.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},hL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,qL=e=>e instanceof Q||hL(e)&&e.isApiError===!0,ft=class extends Q{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},yi=class extends Q{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Ri=class extends Q{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},hi=class extends Q{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},qi=class extends Q{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},fi=class extends Q{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},bi=class extends Q{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},xi=class extends Q{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Ii=class extends Q{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},vi=class extends Q{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ki=class extends Q{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Pi=class extends Q{constructor(t,s,r,n){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,r,n)}},Ai=class extends Q{constructor(t,s,r,n){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,r,n)}},Bi=class extends Q{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ti=class extends Q{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},wi=class extends Q{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},Ci=class extends Q{constructor(t,s,r,n){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,r,n)}},Ui=class extends Q{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Ei=class extends Q{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Si=class extends Q{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Gi=class extends Q{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Li=class extends Q{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},_i=class extends Q{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Wi=class extends Q{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Di=class extends Q{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},Hi=class extends Q{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},fL={Unknown:ft,Internal:yi,Unauthorized:Ri,Forbidden:hi,PayloadTooLarge:qi,InvalidPayload:fi,UnsupportedMediaType:bi,MethodNotFound:xi,ResourceNotFound:Ii,InvalidJsonSchema:vi,InvalidDataFormat:ki,InvalidIdentifier:Pi,RelationConflict:Ai,ReferenceConstraint:Bi,ResourceLockedConflict:Ti,ResourceGone:wi,ReferenceNotFound:Ci,InvalidQuery:Ui,Runtime:Ei,AlreadyExists:Si,RateLimited:Gi,PaymentRequired:Li,QuotaExceeded:_i,LimitExceeded:Wi,BreakingChanges:Di,OperationTimeout:Hi},Qi=e=>qL(e)?e:e instanceof Error?new ft(e.message,e):typeof e=="string"?new ft(e):bL(e);function bL(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=fL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ft(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ft("An invalid error occurred: "+JSON.stringify(e))}var rb=L(Rt()),xL=e=>e[1]!==void 0,pe=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(xL),p=Object.fromEntries(i),c=rb.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var ab=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var ob=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var ub=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var mb=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Rb=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var qb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var bb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Ib=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var kb=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Ab=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Tb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Eb=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Qr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=ub(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=Rb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=qb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=bb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=kb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Cb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??pe,p=this.props.toApiError??le,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function le(e){return $.isAxiosError(e)&&e.response?.data?Qi(e.response.data):Qi(e)}var Fr=async(e,{key:t,index:s,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:c,expiresAt:a,metadata:u,publicContentImmediatelyAccessible:y})=>{if(p&&i)throw new Fe("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await $.get(p,{responseType:"arraybuffer"}).then(k=>k.data).catch(k=>{throw new Fe(`Failed to download file from provided URL: ${k.message}`,k)})),!i)throw new Fe("No content was provided for the file");let q,x;if(typeof i=="string"){let I=new TextEncoder().encode(i);q=I,x=I.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new Fe("The provided content is not supported");let{file:m}=await e.upsertFile({key:t,tags:r,index:s,accessPolicies:o,contentType:n,metadata:u,size:x,expiresAt:a,indexing:c,publicContentImmediatelyAccessible:y}),f={"Content-Type":m.contentType};y&&(f["x-amz-tagging"]="public=true");try{await $.put(m.uploadUrl,q,{maxBodyLength:1/0,headers:f})}catch(k){let I=k instanceof Error?k:new Error(String(k));throw new Fe(`Failed to upload file: ${I.message}`,I,m)}return{file:{...m,size:x}}};var Fi=class extends Qr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new P.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Fr(this,t)}};var hp={};Ie(hp,{Client:()=>Rp});var Lb=L(require("crypto"));var vL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oi=typeof window<"u"&&typeof window.document<"u"?window.crypto:Lb.default;Oi.getRandomValues||(Oi=vL);var F=class e extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Oi.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},kL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,PL=e=>e instanceof F||kL(e)&&e.isApiError===!0,bt=class extends F{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Ni=class extends F{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Vi=class extends F{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ki=class extends F{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},ji=class extends F{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},$i=class extends F{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},zi=class extends F{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ji=class extends F{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Yi=class extends F{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Xi=class extends F{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Zi=class extends F{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},ep=class extends F{constructor(t,s,r,n){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,r,n)}},tp=class extends F{constructor(t,s,r,n){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,r,n)}},sp=class extends F{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},rp=class extends F{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},ap=class extends F{constructor(t,s,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,s,r,n)}},np=class extends F{constructor(t,s,r,n){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,r,n)}},op=class extends F{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},ip=class extends F{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},pp=class extends F{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},cp=class extends F{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},up=class extends F{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},dp=class extends F{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},lp=class extends F{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},gp=class extends F{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},mp=class extends F{constructor(t,s,r,n){super(504,"The operation timed out.","OperationTimeout",t,s,r,n)}},AL={Unknown:bt,Internal:Ni,Unauthorized:Vi,Forbidden:Ki,PayloadTooLarge:ji,InvalidPayload:$i,UnsupportedMediaType:zi,MethodNotFound:Ji,ResourceNotFound:Yi,InvalidJsonSchema:Xi,InvalidDataFormat:Zi,InvalidIdentifier:ep,RelationConflict:tp,ReferenceConstraint:sp,ResourceLockedConflict:rp,ResourceGone:ap,ReferenceNotFound:np,InvalidQuery:op,Runtime:ip,AlreadyExists:pp,RateLimited:cp,PaymentRequired:up,QuotaExceeded:dp,LimitExceeded:lp,BreakingChanges:gp,OperationTimeout:mp},yp=e=>PL(e)?e:e instanceof Error?new bt(e.message,e):typeof e=="string"?new bt(e):BL(e);function BL(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=AL[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new bt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new bt("An invalid error occurred: "+JSON.stringify(e))}var _b=L(Rt()),TL=e=>e[1]!==void 0,ae=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(TL),p=Object.fromEntries(i),c=_b.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Wb=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Hb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Fb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ob=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Vb=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 jb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Yb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var nx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ix=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var cx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var dx=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 gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var yx=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 Mr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}listTables=async t=>{let{path:s,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=Hb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Fb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=Ob(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=jb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=Yb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=nx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=ix(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=cx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=dx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=gx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=yx(t),i=this.props.toAxiosRequest??ae,p=this.props.toApiError??oe,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function oe(e){return $.isAxiosError(e)&&e.response?.data?yp(e.response.data):yp(e)}var Rp=class extends Mr{config;constructor(t){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}};var hx=L(Rt()),CL=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(CL),p=Object.fromEntries(i),c=hx.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var qx=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var bx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ix=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var kx=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Ax=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Tx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ex=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Gx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var _x=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Dx=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Qx=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mx=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Nx=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kx=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var $x=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Jx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var eI=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var sI=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aI=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var oI=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var pI=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var uI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lI=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var mI=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var RI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var qI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bI=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var II=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 kI=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 AI=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 TI=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 CI=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var EI=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var GI=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var _I=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var QI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MI=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var NI=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var KI=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var $I=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var JI=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var XI=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ev=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var sv=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var av=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ov=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var pv=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var uv=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var mv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Rv=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var qv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Iv=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var kv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Tv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Cv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Ev=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Gv=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _v=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Dv=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,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev,type:e.type}});var Qv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,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,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins,type:e.type}});var Mv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Nv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Kv=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var $v=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Jv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var sk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ok=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var uk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var lk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Rk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var bk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ik=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var kk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ck=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Gk=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var _k=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Dk=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Nk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var Kk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var $k=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Jk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Xk=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var eP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var sP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var oP=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 pP=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var uP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var lP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var mP=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 RP=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var qP=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var bP=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var IP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var AP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var TP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var CP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var EP=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var GP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _P=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var DP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var QP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var MP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var NP=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var KP=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var $P=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var JP=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var XP=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var eA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var sA=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var aA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var pA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var uA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lA=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var mA=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var RA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var IA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kA=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var AA=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var TA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var CA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var EA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var GA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var _A=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DA=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var QA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var MA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var NA=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var KA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $A=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var JA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var XA=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var eB=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var sB=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var aB=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var oB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pB=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var uB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var mB=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var RB=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var qB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var bB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var IB=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var kB=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var AB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var TB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var CB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var EB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var GB=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var _B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var DB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var QB=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var MB=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 NB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var KB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var $B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var JB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var XB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var eT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var sT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var aT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var oT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var pT=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 uT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var lT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Or=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Ix(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Tx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Gx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=_x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Mx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};cancelScheduledEvent=async t=>{let{path:s,headers:r,query:n,body:o}=Nx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=$x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Jx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Xx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=eI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=sI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};initializeIncomingMessage=async t=>{let{path:s,headers:r,query:n,body:o}=aI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importMessages=async t=>{let{path:s,headers:r,query:n,body:o}=oI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=pI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=uI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=lI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=mI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=RI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=qI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=bI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=II(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=kI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=AI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=TI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=CI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=EI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=GI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=_I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=DI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=QI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=MI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=NI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=KI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=$I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};captureObservation=async t=>{let{path:s,headers:r,query:n,body:o}=JI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=XI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=sv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=pv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=uv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=lv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Rv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Iv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=Av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Tv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Cv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=Gv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=_v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=Dv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=Qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateBotSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=Mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=Nv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=Kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=$v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Jv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=Xv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=sk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=pk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=uk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=lk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Rk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Ik(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Tk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Ck(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=Gk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=_k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=Dk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=Qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBotAllowlist=async t=>{let{path:s,headers:r,query:n,body:o}=Mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};migrateWorkspaceToV4=async t=>{let{path:s,headers:r,query:n,body:o}=Nk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=$k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=Jk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Xk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=eP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=sP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=aP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=oP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=pP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=uP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=lP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=mP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=RP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=qP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=bP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=IP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=kP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=AP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspacePreference=async t=>{let{path:s,headers:r,query:n,body:o}=TP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=CP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=EP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=GP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=_P(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=DP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=QP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=MP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=NP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=KP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=$P(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=JP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};rotateIntegrationSigningSecrets=async t=>{let{path:s,headers:r,query:n,body:o}=XP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=eA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=sA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=aA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=oA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=pA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=uA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=lA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=mA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=RA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=qA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=bA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=IA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=kA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=AA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=TA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getDereferencedPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=CA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=EA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=GA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=_A(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=DA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=QA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=MA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=NA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=KA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=$A(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=JA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=XA(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=eB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=sB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=aB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=oB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=pB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=uB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=lB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=mB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=RB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=qB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=bB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=IB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=kB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=AB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=TB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=CB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=EB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTables=async t=>{let{path:s,headers:r,query:n,body:o}=GB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=_B(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=DB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=QB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=MB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=NB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=KB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=$B(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=JB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=XB(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=eT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=sT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=aT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=oT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=pT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=uT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=lT(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function l(e){return $.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e)}var qp=class extends Or{config;constructor(t={}){let s=ye.getClientConfig(t),r=Re.createAxiosInstance(s);super(r,{toApiError:he.toApiError}),t.retry&&Pe(r,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTags({nextToken:s,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new P.AsyncCollection(({nextToken:s})=>this.listFileTagValues({nextToken:s,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new P.AsyncCollection(({nextToken:s})=>this.listKnowledgeBases({nextToken:s,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkflows({nextToken:s,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Fr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
|
|
17
17
|
/*! Bundled license information:
|
|
18
18
|
|
|
19
19
|
mime-db/index.js:
|