@botpress/client 1.36.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +1 -1
- package/dist/bundle.cjs.map +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +713 -28
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +2 -2
- 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 JU(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:JU,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:YU,AxiosError:XU,CanceledError:ZU,isCancel:eE,CancelToken:tE,VERSION:sE,all:rE,Cancel:aE,isAxiosError:nE,spread:oE,toFormData:iE,AxiosHeaders:pE,HttpStatusCode:cE,formToJSON:uE,getAdapter:dE,mergeConfig:lE}=$;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"],mE=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)&&mE.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 yE(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:yE,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function RE(e,t){return{...Nd,...t,...e[$s]}}function Dd(e,t,s=!1){let r=RE(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||s)&&(r.lastRequestTime=Date.now()),e[$s]=r,r}function hE(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 qE(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 fE(e,t,s,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,s);if(hE(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 bE(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 qE(i,n)?fE(e,i,n,o):(await bE(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:()=>LE});var cs=L(Ys()),BE="https://api.botpress.cloud",TE=6e4,wE=!1,CE="BP_API_URL",UE="BP_BOT_ID",EE="BP_INTEGRATION_ID",SE="BP_WORKSPACE_ID",GE="BP_TOKEN";function LE(e){let t=_E(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??BE,n=t.timeout??TE,o=t.debug??wE;return{apiUrl:r,timeout:n,withCredentials:cs.isBrowser,headers:s,debug:o}}function _E(e){return cs.isBrowser?e:cs.isNode?WE(e):e}function WE(e){let t={...e,apiUrl:e.apiUrl??process.env[CE],botId:e.botId??process.env[UE],integrationId:e.integrationId??process.env[EE],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[SE]},s=t.token??process.env[GE];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:()=>OE});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(DE(t)),t)),e.interceptors.response.use(t=>(console.debug(HE(t)),t),t=>(console.debug(QE(t)),Promise.reject(t)))},DE=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
|
`},HE=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
|
-
`},QE=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 ME=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Kd,maxContentLength:jd,httpAgent:$d,httpsAgent:zd}),OE=e=>{let t=ME(e),s=$.create(t);return e.debug&&Xd(s),s};var he={};Ie(he,{toApiError:()=>$E});var el=L(require("crypto"));var NE={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=NE);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"}},VE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tl=e=>e instanceof _||VE(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)}},KE={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):jE(e);function jE(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=KE[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 $E=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"}},JE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,YE=e=>e instanceof W||JE(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)}},XE={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=>YE(e)?e:e instanceof Error?new gt(e.message,e):typeof e=="string"?new gt(e):ZE(e);function ZE(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=XE[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()),JG=e=>e[1]!==void 0,T=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(JG),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,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,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}});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 XG={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=XG);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"}},ZG=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,eL=e=>e instanceof D||ZG(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)}},tL={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=>eL(e)?e:e instanceof Error?new ht(e.message,e):typeof e=="string"?new ht(e):sL(e);function sL(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=tL[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()),rL=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(rL),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,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,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)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var zR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var ZR=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var th=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var rh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ih=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 ch=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var dh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var yh=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 hh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var fh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var xh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Bh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var wh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Uh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Sh=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Lh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Hh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Fh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Oh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Vh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jh=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 zh=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 Yh=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 Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var tq=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 rq=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 nq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=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 cq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gq=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var yq=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 hq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xq=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 vq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pq=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Bq=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,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 wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Sq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lq=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,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 Wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hq=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Fq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Oq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vq=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var jq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zq=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 Yq=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 Zq=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var tf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var rf=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)})};listWorkspaceInvoices=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:"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}=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=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)})};getPublicWorkspace=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:"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}=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=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)})};listWorkspaces=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:"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}=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)})};deleteWorkspace=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:"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}=Ph(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}=Bh(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}=wh(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}=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=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)})};listIntegrationApiKeys=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:"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}=Oh(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}=Vh(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}=jh(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}=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)})};updateIntegration=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:"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}=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)})};validateIntegrationUpdate=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:"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}=rq(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}=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)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=gq(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}=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)})};getInterface=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:"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}=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)})};updateInterface=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:"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}=vq(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}=Pq(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}=Bq(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}=wq(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}=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)})};getPluginByName=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)})};updatePlugin=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:"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}=Wq(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}=Hq(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}=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=tf(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}=rf(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 nf=L(require("crypto"));var nL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ho=typeof window<"u"&&typeof window.document<"u"?window.crypto:nf.default;Ho.getRandomValues||(Ho=nL);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"}},oL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,iL=e=>e instanceof H||oL(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)}},pL={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=>iL(e)?e:e instanceof Error?new qt(e.message,e):typeof e=="string"?new qt(e):cL(e);function cL(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=pL[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 of=L(Rt()),uL=e=>e[1]!==void 0,M=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(uL),p=Object.fromEntries(i),c=of.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 pf=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var uf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var lf=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 mf=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Rf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var qf=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var bf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var If=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var kf=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Af=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var Tf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var Cf=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var Ef=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Gf=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var _f=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Df=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Qf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Mf=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nf=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Kf=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var $f=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Jf=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Xf=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}=pf(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}=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)})};setBillingAddress=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:"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}=mf(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}=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)})};getAddon=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)})};listAddons=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)})};getSubscription=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)})};previewSubscriptionUpdate=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)})};setPlan=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:"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}=Tf(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}=Cf(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}=Ef(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}=Gf(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}=_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)})};createTrial=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:"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}=Qf(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}=Mf(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}=Nf(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}=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)})};setPaymentMethod=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:"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}=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)})};getQuotas=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:"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 eb=L(require("crypto"));var lL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mi=typeof window<"u"&&typeof window.document<"u"?window.crypto:eb.default;mi.getRandomValues||(mi=lL);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"}},gL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,mL=e=>e instanceof Q||gL(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)}},yL={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=>mL(e)?e:e instanceof Error?new ft(e.message,e):typeof e=="string"?new ft(e):RL(e);function RL(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=yL[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 tb=L(Rt()),hL=e=>e[1]!==void 0,pe=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(hL),p=Object.fromEntries(i),c=tb.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 sb=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 ab=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ob=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 pb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ub=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 lb=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 mb=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 Rb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var qb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var bb=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ib=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var kb=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Ab=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Cb=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}=sb(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}=ab(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}=ob(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}=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)})};updateFileMetadata=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:"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}=lb(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}=mb(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}=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)})};setFilePassages=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:"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}=bb(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}=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)})};createKnowledgeBase=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:"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}=Ab(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}=Tb(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}=Cb(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 Sb=L(require("crypto"));var fL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oi=typeof window<"u"&&typeof window.document<"u"?window.crypto:Sb.default;Oi.getRandomValues||(Oi=fL);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"}},bL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xL=e=>e instanceof F||bL(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)}},IL={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=>xL(e)?e:e instanceof Error?new bt(e.message,e):typeof e=="string"?new bt(e):vL(e);function vL(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=IL[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 Gb=L(Rt()),kL=e=>e[1]!==void 0,ae=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(kL),p=Object.fromEntries(i),c=Gb.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 Lb=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Wb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Hb=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 Fb=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 Ob=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 Vb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var jb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Yb=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 Zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var nx=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 ix=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var cx=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 dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var gx=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}=Lb(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}=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)})};getOrCreateTable=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:"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}=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)})};duplicateTable=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)})};exportTable=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:"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}=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)})};importTable=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:"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}=Yb(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}=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)})};deleteTable=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:"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}=rx(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}=nx(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}=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)})};deleteTableRows=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)})};updateTableRows=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:"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}=gx(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 yx=L(Rt()),AL=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(AL),p=Object.fromEntries(i),c=yx.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 Rx=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var qx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bx=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 Ix=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 kx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Ax=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Ex=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});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/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 Dx=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=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 Mx=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nx=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 Kx=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 $x=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Xx=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 eI=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sI=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 aI=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var oI=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes}});var pI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uI=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 lI=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var mI=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}});var RI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qI=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 bI=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 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:{payload:e.payload,expiry:e.expiry}});var kI=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 AI=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 TI=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var CI=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var EI=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 GI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _I=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 DI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var QI=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 MI=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 NI=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var KI=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var $I=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 JI=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var XI=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ev=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var sv=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var av=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ov=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var pv=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var lv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var mv=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 Rv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bv=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Iv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Tv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Cv=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ev=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gv=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _v=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,dev:e.dev}});var Dv=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,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Mv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Nv=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 Kv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var $v=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jv=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 Xv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var sk=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 ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ok=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var pk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var uk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var lk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Rk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var bk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ik=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var kk=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 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)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ek=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Gk=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var _k=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Mk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Nk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Kk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var $k=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Jk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Xk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var sP=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 aP=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var oP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var pP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var uP=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 lP=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var mP=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var RP=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var qP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var IP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var kP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var AP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var TP=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var CP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var EP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var GP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var _P=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var DP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var QP=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MP=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 NP=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 KP=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 $P=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var JP=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 XP=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 eA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sA=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 aA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var oA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pA=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var uA=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 lA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var RA=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 qA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bA=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var IA=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,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 kA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var TA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var CA=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,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 EA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var GA=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var _A=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var DA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var QA=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var MA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var NA=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 KA=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 $A=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var JA=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var XA=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var eB=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 sB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aB=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 oB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pB=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 uB=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 lB=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 mB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var RB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var qB=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var bB=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var IB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var kB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var TB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var CB=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var EB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var GB=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 _B=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 DB=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 QB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var MB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var NB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var KB=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 $B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var JB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var XB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var eT=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 sT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var aT=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 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/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}=Rx(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}=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)})};listConversations=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)})};getOrCreateConversation=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:"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}=kx(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}=Ax(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}=Tx(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}=Cx(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}=Ex(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}=Gx(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}=_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)})};getEvent=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:"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}=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)})};cancelScheduledEvent=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:"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}=Nx(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}=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)})};getMessage=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:"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}=Jx(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}=Xx(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}=eI(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}=sI(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}=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)})};createUser=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)})};getUser=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:"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}=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)})};getOrCreateUser=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:"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}=mI(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}=RI(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}=qI(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}=bI(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}=II(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}=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)})};patchState=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:"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}=TI(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}=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)})};createWorkflow=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)})};getWorkflow=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:"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}=_I(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}=DI(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}=QI(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}=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)})};listTagValues=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:"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}=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)})};captureObservation=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)})};runVrl=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)})};getAccount=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:"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}=ev(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}=sv(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}=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)})};createPersonalAccessToken=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:"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}=pv(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}=uv(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}=lv(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}=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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:"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}=Dv(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}=Qv(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}=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)})};listBots=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:"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}=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)})};deleteBot=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:"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}=Jv(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}=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=uk(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}=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)})};getBotVersion=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)})};getBotJson=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)})};publishFromBotJson=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:"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}=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)})};deployBotVersion=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)})};createIntegrationShareableId=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)})};deleteIntegrationShareableId=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:"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}=Tk(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}=Ck(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}=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)})};createBotApiKey=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:"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}=_k(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}=Dk(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}=Qk(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)})};listWorkspaceInvoices=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)})};getUpcomingInvoice=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:"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}=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)})};createWorkspace=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)})};getPublicWorkspace=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:"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}=Xk(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}=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=lP(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}=mP(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}=RP(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}=qP(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}=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)})};setWorkspacePreference=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:"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}=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)})};listWorkspaceMembers=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=EP(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}=GP(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}=_P(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}=DP(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}=QP(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}=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)})};validateIntegrationCreation=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:"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}=KP(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}=$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)})};validateIntegrationUpdate=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)})};listIntegrations=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:"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}=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)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=pA(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}=uA(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}=lA(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}=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)})};updateInterface=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:"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}=qA(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}=bA(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}=IA(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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=EA(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}=GA(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}=_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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=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)})};introspect=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:"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}=eB(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}=sB(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}=aB(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}=oB(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}=pB(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}=uB(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}=lB(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}=mB(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}=RB(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}=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)})};listFileTagValues=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:"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}=IB(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}=kB(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}=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)})};listKnowledgeBases=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:"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}=CB(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}=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)})};getOrCreateTable=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:"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}=_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)})};duplicateTable=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)})};exportTable=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)})};getTableJobs=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:"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}=NB(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}=KB(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}=$B(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}=JB(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}=XB(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}=eT(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}=sT(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}=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)})};updateTableRows=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:"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}=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)})}};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
|
+
`},QE=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 ME=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Kd,maxContentLength:jd,httpAgent:$d,httpsAgent:zd}),OE=e=>{let t=ME(e),s=$.create(t);return e.debug&&Xd(s),s};var he={};Ie(he,{toApiError:()=>$E});var el=L(require("crypto"));var NE={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=NE);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"}},VE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tl=e=>e instanceof _||VE(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)}},KE={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):jE(e);function jE(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=KE[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 $E=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"}},JE=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,YE=e=>e instanceof W||JE(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)}},XE={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=>YE(e)?e:e instanceof Error?new gt(e.message,e):typeof e=="string"?new gt(e):ZE(e);function ZE(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=XE[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()),JG=e=>e[1]!==void 0,T=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(JG),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 XG={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=XG);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"}},ZG=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,eL=e=>e instanceof D||ZG(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)}},tL={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=>eL(e)?e:e instanceof Error?new ht(e.message,e):typeof e=="string"?new ht(e):sL(e);function sL(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=tL[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()),rL=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(rL),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,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,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)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var zR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var ZR=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var th=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var rh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ih=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 ch=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var dh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var yh=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 hh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var fh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var xh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Bh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var wh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Uh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Sh=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Lh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Hh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Fh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Oh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Vh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jh=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 zh=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 Yh=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 Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var tq=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 rq=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 nq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=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 cq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dq=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gq=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var yq=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 hq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xq=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 vq=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pq=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Bq=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 wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Sq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lq=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 Wq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hq=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Fq=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Oq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vq=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var jq=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zq=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 Yq=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 Zq=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var tf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var rf=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)})};listWorkspaceInvoices=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:"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}=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=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)})};getPublicWorkspace=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:"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}=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)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=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)})};listWorkspaces=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:"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}=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)})};deleteWorkspace=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:"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}=Ph(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}=Bh(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}=wh(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}=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=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)})};listIntegrationApiKeys=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:"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}=Oh(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}=Vh(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}=jh(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}=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)})};updateIntegration=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:"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}=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)})};validateIntegrationUpdate=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:"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}=rq(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}=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)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=gq(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}=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)})};getInterface=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:"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}=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)})};updateInterface=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:"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}=vq(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}=Pq(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}=Bq(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}=wq(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}=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)})};getPluginByName=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)})};updatePlugin=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:"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}=Wq(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}=Hq(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}=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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=tf(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}=rf(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 nf=L(require("crypto"));var nL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ho=typeof window<"u"&&typeof window.document<"u"?window.crypto:nf.default;Ho.getRandomValues||(Ho=nL);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"}},oL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,iL=e=>e instanceof H||oL(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)}},pL={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=>iL(e)?e:e instanceof Error?new qt(e.message,e):typeof e=="string"?new qt(e):cL(e);function cL(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=pL[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 of=L(Rt()),uL=e=>e[1]!==void 0,M=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(uL),p=Object.fromEntries(i),c=of.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 pf=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var uf=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var lf=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 mf=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Rf=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var qf=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var bf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var If=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var kf=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Af=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var Tf=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var Cf=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var Ef=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Gf=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var _f=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Df=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Qf=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Mf=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nf=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Kf=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var $f=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Jf=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var Xf=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}=pf(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}=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)})};setBillingAddress=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:"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}=mf(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}=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)})};getAddon=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)})};listAddons=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)})};getSubscription=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)})};previewSubscriptionUpdate=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)})};setPlan=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:"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}=Tf(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}=Cf(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}=Ef(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}=Gf(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}=_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)})};createTrial=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:"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}=Qf(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}=Mf(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}=Nf(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}=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)})};setPaymentMethod=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:"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}=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)})};getQuotas=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:"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 eb=L(require("crypto"));var lL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mi=typeof window<"u"&&typeof window.document<"u"?window.crypto:eb.default;mi.getRandomValues||(mi=lL);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"}},gL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,mL=e=>e instanceof Q||gL(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)}},yL={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=>mL(e)?e:e instanceof Error?new ft(e.message,e):typeof e=="string"?new ft(e):RL(e);function RL(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=yL[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 tb=L(Rt()),hL=e=>e[1]!==void 0,pe=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(hL),p=Object.fromEntries(i),c=tb.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 sb=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 ab=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ob=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 pb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ub=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 lb=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 mb=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 Rb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var qb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var bb=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ib=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var kb=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Ab=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Cb=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}=sb(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}=ab(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}=ob(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}=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)})};updateFileMetadata=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:"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}=lb(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}=mb(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}=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)})};setFilePassages=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:"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}=bb(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}=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)})};createKnowledgeBase=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:"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}=Ab(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}=Tb(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}=Cb(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 Sb=L(require("crypto"));var fL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oi=typeof window<"u"&&typeof window.document<"u"?window.crypto:Sb.default;Oi.getRandomValues||(Oi=fL);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"}},bL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xL=e=>e instanceof F||bL(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)}},IL={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=>xL(e)?e:e instanceof Error?new bt(e.message,e):typeof e=="string"?new bt(e):vL(e);function vL(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=IL[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 Gb=L(Rt()),kL=e=>e[1]!==void 0,ae=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(kL),p=Object.fromEntries(i),c=Gb.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 Lb=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Wb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Hb=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 Fb=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 Ob=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 Vb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var jb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Yb=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 Zb=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var nx=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 ix=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var cx=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 dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var gx=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}=Lb(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}=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)})};getOrCreateTable=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:"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}=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)})};duplicateTable=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)})};exportTable=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:"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}=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)})};importTable=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:"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}=Yb(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}=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)})};deleteTable=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:"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}=rx(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}=nx(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}=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)})};deleteTableRows=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)})};updateTableRows=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:"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}=gx(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 yx=L(Rt()),AL=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(AL),p=Object.fromEntries(i),c=yx.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 Rx=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var qx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bx=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 Ix=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 kx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Ax=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Ex=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});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/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 Dx=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=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 Mx=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nx=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 Kx=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 $x=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jx=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Xx=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 eI=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sI=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 aI=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var oI=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 pI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uI=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 lI=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 mI=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 RI=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qI=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 bI=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 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:{payload:e.payload,expiry:e.expiry}});var kI=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 AI=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 TI=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var CI=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var EI=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 GI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _I=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 DI=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var QI=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 MI=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 NI=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var KI=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var $I=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 JI=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var XI=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ev=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var sv=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var av=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ov=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var pv=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var lv=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var mv=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 Rv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qv=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bv=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Iv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Tv=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Cv=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ev=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gv=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _v=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,dev:e.dev}});var Dv=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,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var Mv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Nv=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 Kv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var $v=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jv=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 Xv=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var sk=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 ak=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ok=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var pk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var uk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var lk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var mk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Rk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var bk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ik=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var kk=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 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)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ek=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Gk=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var _k=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Qk=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Mk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Nk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Kk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var $k=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Jk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Xk=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var sP=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 aP=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var oP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var pP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var uP=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 lP=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var mP=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var RP=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var qP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bP=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var IP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var kP=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var AP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var TP=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var CP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var EP=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var GP=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var _P=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var DP=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var QP=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var MP=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 NP=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 KP=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 $P=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var JP=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 XP=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 eA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sA=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 aA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var oA=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pA=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var uA=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 lA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var RA=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 qA=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bA=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var IA=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 kA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var TA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var CA=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 EA=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var GA=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var _A=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var DA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var QA=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var MA=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var NA=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 KA=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 $A=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var JA=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var XA=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var eB=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 sB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var aB=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 oB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pB=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 uB=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 lB=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 mB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var RB=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var qB=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var bB=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var IB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var kB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AB=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var TB=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var CB=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var EB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var GB=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 _B=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 DB=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 QB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var MB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var NB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var KB=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 $B=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var JB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var XB=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var eT=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 sT=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var aT=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 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/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}=Rx(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}=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)})};listConversations=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)})};getOrCreateConversation=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:"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}=kx(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}=Ax(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}=Tx(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}=Cx(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}=Ex(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}=Gx(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}=_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)})};getEvent=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:"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}=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)})};cancelScheduledEvent=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:"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}=Nx(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}=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)})};getMessage=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:"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}=Jx(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}=Xx(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}=eI(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}=sI(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}=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)})};createUser=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)})};getUser=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:"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}=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)})};getOrCreateUser=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:"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}=mI(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}=RI(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}=qI(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}=bI(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}=II(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}=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)})};patchState=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:"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}=TI(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}=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)})};createWorkflow=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)})};getWorkflow=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:"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}=_I(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}=DI(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}=QI(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}=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)})};listTagValues=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:"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}=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)})};captureObservation=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)})};runVrl=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)})};getAccount=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:"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}=ev(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}=sv(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}=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)})};createPersonalAccessToken=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:"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}=pv(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}=uv(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}=lv(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}=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)})};getPublicIntegrationById=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)})};getPublicIntegration=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)})};listPublicPlugins=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)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=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:"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}=Dv(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}=Qv(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}=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)})};listBots=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:"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}=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)})};deleteBot=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:"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}=Jv(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}=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=uk(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}=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)})};getBotVersion=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)})};getBotJson=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)})};publishFromBotJson=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:"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}=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)})};deployBotVersion=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)})};createIntegrationShareableId=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)})};deleteIntegrationShareableId=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:"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}=Tk(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}=Ck(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}=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)})};createBotApiKey=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:"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}=_k(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}=Dk(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}=Qk(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)})};listWorkspaceInvoices=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)})};getUpcomingInvoice=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:"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}=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)})};createWorkspace=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)})};getPublicWorkspace=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:"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}=Xk(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}=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=lP(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}=mP(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}=RP(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}=qP(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}=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)})};setWorkspacePreference=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:"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}=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)})};listWorkspaceMembers=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=EP(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}=GP(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}=_P(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}=DP(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}=QP(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}=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)})};validateIntegrationCreation=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:"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}=KP(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}=$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)})};validateIntegrationUpdate=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)})};listIntegrations=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:"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}=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)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=pA(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}=uA(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}=lA(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}=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)})};updateInterface=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:"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}=qA(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}=bA(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}=IA(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}=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)})};getDereferencedPlugin=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)})};getPluginByName=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)})};updatePlugin=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:"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}=EA(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}=GA(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}=_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)})};getUsage=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)})};getMultipleUsages=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)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=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)})};changeAISpendQuota=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:"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}=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)})};introspect=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:"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}=eB(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}=sB(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}=aB(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}=oB(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}=pB(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}=uB(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}=lB(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}=mB(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}=RB(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}=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)})};listFileTagValues=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:"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}=IB(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}=kB(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}=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)})};listKnowledgeBases=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:"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}=CB(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}=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)})};getOrCreateTable=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:"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}=_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)})};duplicateTable=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)})};exportTable=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)})};getTableJobs=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:"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}=NB(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}=KB(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}=$B(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}=JB(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}=XB(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}=eT(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}=sT(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}=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)})};updateTableRows=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:"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}=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)})}};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:
|