@botpress/client 0.12.2 → 0.12.4
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 +10 -10
- package/dist/bundle.cjs.map +3 -3
- package/dist/gen/api.d.ts +124 -260
- package/dist/gen/base.d.ts +1 -1
- package/dist/gen/client.d.ts +2 -2
- package/dist/gen/common.d.ts +1 -1
- package/dist/gen/configuration.d.ts +1 -1
- package/dist/gen/errors.d.ts +9 -2
- package/dist/gen/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +35 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,48 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { Readable } from 'stream';
|
|
1
4
|
import { ClientProps, ClientConfig } from './config';
|
|
2
5
|
import { CreateFileResponse } from './gen';
|
|
3
|
-
import { ApiClient as AutoGeneratedClient
|
|
6
|
+
import { ApiClient as AutoGeneratedClient } from './gen/client';
|
|
4
7
|
export { isApiError } from './gen/errors';
|
|
5
8
|
export * as axios from 'axios';
|
|
6
9
|
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration, Issue, IssueEvent, Account, Workspace, Usage, } from './gen';
|
|
7
10
|
export * from './gen/errors';
|
|
11
|
+
type CreateFileProps = {
|
|
12
|
+
/**
|
|
13
|
+
* The name of the file.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The data to be uploaded.
|
|
18
|
+
*/
|
|
19
|
+
data: Blob | Buffer | Readable;
|
|
20
|
+
/**
|
|
21
|
+
* Set to a value of "true" to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
index?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Tags to associate with the file.
|
|
27
|
+
*/
|
|
28
|
+
tags?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is "application/octet-stream".
|
|
33
|
+
*/
|
|
34
|
+
contentType?: string;
|
|
35
|
+
contentLength?: number;
|
|
36
|
+
/**
|
|
37
|
+
* File access policies. Add "public_content" to allow public access to the file content. Add "integrations" to allo read, search and list operations for any integration installed in the bot.
|
|
38
|
+
*/
|
|
39
|
+
accessPolicies?: ('integrations' | 'public_content')[];
|
|
40
|
+
};
|
|
8
41
|
export declare class Client extends AutoGeneratedClient {
|
|
9
42
|
readonly config: Readonly<ClientConfig>;
|
|
10
43
|
private readonly axiosClient;
|
|
11
44
|
constructor(clientProps?: ClientProps);
|
|
12
|
-
createFile: (
|
|
45
|
+
createFile: ({ name, data, index, tags, contentType, contentLength, accessPolicies, }: CreateFileProps) => Promise<CreateFileResponse>;
|
|
13
46
|
}
|
|
14
47
|
type Simplify<T> = {
|
|
15
48
|
[KeyType in keyof T]: Simplify<T[KeyType]>;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var xe=Object.create;var ne=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Pe=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var oe=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var ke=(r,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ce(t))!Ie.call(r,n)&&n!==e&&ne(r,n,{get:()=>t[n],enumerable:!(s=be(t,n))||s.enumerable});return r};var re=(r,t,e)=>(e=r!=null?xe(Pe(r)):{},ke(t||!r||!r.__esModule?ne(e,"default",{value:r,enumerable:!0}):e,r));var ie=oe(()=>{});var le=oe(()=>{});var he=re(ie()),Re=re(le());import ye from"axios";import{isNode as de}from"browser-or-node";import{isBrowser as ce,isNode as Be}from"browser-or-node";var Te="https://api.botpress.cloud",Ue=6e4,qe="BP_API_URL",Ve="BP_BOT_ID",ve="BP_INTEGRATION_ID",De="BP_WORKSPACE_ID",Oe="BP_TOKEN";function pe(r){let t=we(r),e={};t.workspaceId&&(e["x-workspace-id"]=t.workspaceId),t.botId&&(e["x-bot-id"]=t.botId),t.integrationId&&(e["x-integration-id"]=t.integrationId),t.token&&(e.Authorization=`Bearer ${t.token}`),e={...e,...t.headers};let s=t.apiUrl??Te,n=t.timeout??Ue;return{apiUrl:s,timeout:n,withCredentials:ce,headers:e}}function we(r){return ce?r:Be?Ee(r):r}function Ee(r){let t={...r,apiUrl:r.apiUrl??process.env[qe],botId:r.botId??process.env[Ve],integrationId:r.integrationId??process.env[ve],workspaceId:r.workspaceId??process.env[De]},e=t.token??process.env[Oe];return e&&(t.token=e),t}import Qe from"axios";import A from"axios";import Se from"axios";var u="https://api.botpress.cloud".replace(/\/+$/,"");var v=class{constructor(t,e=u,s=Se){this.basePath=e;this.axios=s;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},D=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var g="https://example.com",d=function(r,t,e){if(e==null)throw new D(t,`Required parameter ${t} was null or undefined when calling ${r}.`)};function E(r,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(s=>E(r,s,e)):Object.keys(t).forEach(s=>E(r,t[s],`${e}${e!==""?".":""}${s}`)):r.has(e)?r.append(e,t):r.set(e,t))}var y=function(r,...t){let e=new URLSearchParams(r.search);E(e,t),r.search=e.toString()},C=function(r,t,e){let s=typeof r!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(r!==void 0?r:{}):r||""},h=function(r){return r.pathname+r.search+r.hash},R=function(r,t,e,s){return(n=t,a=e)=>{let o={...r.options,url:(s?.basePath||a)+r.url};return n.request(o)}};var We=function(r){return{addParticipant:async(t,e,s={})=>{d("addParticipant","id",t);let n="/v1/chat/conversations/{id}/participants".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},breakDownWorkspaceUsageByBot:async(t,e,s,n={})=>{d("breakDownWorkspaceUsageByBot","id",t),d("breakDownWorkspaceUsageByBot","type",e);let a="/v1/admin/workspaces/{id}/usages/by-bot".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},callAction:async(t,e={})=>{let s="/v1/chat/actions",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},changeAISpendQuota:async(t,e={})=>{let s="/v1/admin/quotas/ai-spend",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},changeWorkspacePlan:async(t,e,s={})=>{d("changeWorkspacePlan","id",t);let n="/v1/admin/workspaces/{id}/change-plan".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},chargeWorkspaceUnpaidInvoices:async(t,e,s={})=>{d("chargeWorkspaceUnpaidInvoices","id",t);let n="/v1/admin/workspaces/{id}/billing/invoices/charge-unpaid".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},checkHandleAvailability:async(t,e={})=>{let s="/v1/admin/workspaces/handle-availability",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},configureIntegration:async(t,e={})=>{let s="/v1/chat/integrations/configure",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createBot:async(t,e={})=>{let s="/v1/admin/bots",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createConversation:async(t,e={})=>{let s="/v1/chat/conversations",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createEvent:async(t,e={})=>{let s="/v1/chat/events",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createFile:async(t,e,s,n,a,o,i,l,c,p,x,b={})=>{d("createFile","xFilename",t),d("createFile","xBotId",e);let k="/v1/files",I=new URL(k,g),B;r&&(B=r.baseOptions);let q={method:"POST",...B,...b},T={},me={};t!=null&&(T["x-filename"]=String(t)),s!=null&&(T["x-tags"]=String(s)),n!=null&&(T["x-access-policies"]=String(n)),a!=null&&(T["x-index"]=String(a)),o!=null&&(T["Content-Type"]=String(o)),i!=null&&(T["Content-Length"]=String(i)),e!=null&&(T["x-bot-id"]=String(e)),l!=null&&(T["x-integration-id"]=String(l)),c!=null&&(T["x-user-id"]=String(c)),p!=null&&(T["x-user-role"]=String(p)),T["Content-Type"]="application/json",y(I,me);let fe=B&&B.headers?B.headers:{};return q.headers={...T,...fe,...b.headers},q.data=C(x,q,r),{url:h(I),options:q}},createIntegration:async(t,e={})=>{let s="/v1/admin/integrations",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createMessage:async(t,e={})=>{let s="/v1/chat/messages",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createPersonalAccessToken:async(t,e={})=>{let s="/v1/admin/account/pats",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createTable:async(t,e={})=>{let s="/v1/tables",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createTableRows:async(t,e,s={})=>{d("createTableRows","table",t);let n="/v1/tables/{table}/rows".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},createTask:async(t,e={})=>{let s="/v1/chat/tasks",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createUser:async(t,e={})=>{let s="/v1/chat/users",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createWorkspace:async(t,e={})=>{let s="/v1/admin/workspaces",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},createWorkspaceMember:async(t,e={})=>{let s="/v1/admin/workspace-members",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},deleteBot:async(t,e={})=>{d("deleteBot","id",t);let s="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteBotIssue:async(t,e,s={})=>{d("deleteBotIssue","id",t),d("deleteBotIssue","issueId",e);let n="/v1/admin/bots/{id}/issues/{issueId}".replace("{id}",encodeURIComponent(String(t))).replace("{issueId}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"DELETE",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},deleteConversation:async(t,e={})=>{d("deleteConversation","id",t);let s="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteFile:async(t,e,s,n,a,o={})=>{d("deleteFile","id",t),d("deleteFile","xBotId",e);let i="/v1/files/{id}".replace("{id}",encodeURIComponent(String(t))),l=new URL(i,g),c;r&&(c=r.baseOptions);let p={method:"DELETE",...c,...o},x={},b={};e!=null&&(x["x-bot-id"]=String(e)),s!=null&&(x["x-integration-id"]=String(s)),n!=null&&(x["x-user-id"]=String(n)),a!=null&&(x["x-user-role"]=String(a)),y(l,b);let k=c&&c.headers?c.headers:{};return p.headers={...x,...k,...o.headers},{url:h(l),options:p}},deleteIntegration:async(t,e={})=>{d("deleteIntegration","id",t);let s="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteMessage:async(t,e={})=>{d("deleteMessage","id",t);let s="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deletePersonalAccessToken:async(t,e={})=>{d("deletePersonalAccessToken","id",t);let s="/v1/admin/account/pats/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteTable:async(t,e={})=>{d("deleteTable","table",t);let s="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteTableRows:async(t,e,s={})=>{d("deleteTableRows","table",t);let n="/v1/tables/{table}/rows/delete".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},deleteTask:async(t,e={})=>{d("deleteTask","id",t);let s="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteUser:async(t,e={})=>{d("deleteUser","id",t);let s="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteWorkspace:async(t,e={})=>{d("deleteWorkspace","id",t);let s="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},deleteWorkspaceMember:async(t,e={})=>{d("deleteWorkspaceMember","id",t);let s="/v1/admin/workspace-members/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},findTableRows:async(t,e,s={})=>{d("findTableRows","table",t);let n="/v1/tables/{table}/rows/find".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},getAccount:async(t={})=>{let e="/v1/admin/account/me",s=new URL(e,g),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};y(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:h(s),options:a}},getAccountPreference:async(t,e={})=>{d("getAccountPreference","key",t);let s="/v1/admin/account/preferences/{key}".replace("{key}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getAllWorkspaceQuotaCompletion:async(t={})=>{let e="/v1/admin/workspaces/usages/quota-completion",s=new URL(e,g),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};y(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:h(s),options:a}},getAuditRecords:async(t,e,s={})=>{d("getAuditRecords","id",t);let n="/v1/admin/workspaces/{id}/audit-records".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getBot:async(t,e={})=>{d("getBot","id",t);let s="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getBotAnalytics:async(t,e,s,n={})=>{d("getBotAnalytics","id",t),d("getBotAnalytics","startDate",e),d("getBotAnalytics","endDate",s);let a="/v1/admin/bots/{id}/analytics".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.startDate=e),s!==void 0&&(p.endDate=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},getBotLogs:async(t,e,s,n,a={})=>{d("getBotLogs","id",t),d("getBotLogs","timeStart",e),d("getBotLogs","timeEnd",s);let o="/v1/admin/bots/{id}/logs".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},x={};e!==void 0&&(x.timeStart=e),s!==void 0&&(x.timeEnd=s),n!==void 0&&(x.nextToken=n),y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},{url:h(i),options:c}},getBotWebchat:async(t,e,s={})=>{d("getBotWebchat","id",t),d("getBotWebchat","type",e);let n="/v1/admin/bots/{id}/webchat".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.type=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getConversation:async(t,e={})=>{d("getConversation","id",t);let s="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getEvent:async(t,e={})=>{d("getEvent","id",t);let s="/v1/chat/events/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getFileContent:async(t,e,s,n,a,o={})=>{d("getFileContent","id",t),d("getFileContent","xBotId",e);let i="/v1/files/{id}/content".replace("{id}",encodeURIComponent(String(t))),l=new URL(i,g),c;r&&(c=r.baseOptions);let p={method:"GET",...c,...o},x={},b={};e!=null&&(x["x-bot-id"]=String(e)),s!=null&&(x["x-integration-id"]=String(s)),n!=null&&(x["x-user-id"]=String(n)),a!=null&&(x["x-user-role"]=String(a)),y(l,b);let k=c&&c.headers?c.headers:{};return p.headers={...x,...k,...o.headers},{url:h(l),options:p}},getFileMetadata:async(t,e,s,n,a,o={})=>{d("getFileMetadata","id",t),d("getFileMetadata","xBotId",e);let i="/v1/files/{id}/metadata".replace("{id}",encodeURIComponent(String(t))),l=new URL(i,g),c;r&&(c=r.baseOptions);let p={method:"GET",...c,...o},x={},b={};e!=null&&(x["x-bot-id"]=String(e)),s!=null&&(x["x-integration-id"]=String(s)),n!=null&&(x["x-user-id"]=String(n)),a!=null&&(x["x-user-role"]=String(a)),y(l,b);let k=c&&c.headers?c.headers:{};return p.headers={...x,...k,...o.headers},{url:h(l),options:p}},getIntegration:async(t,e={})=>{d("getIntegration","id",t);let s="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getIntegrationByName:async(t,e,s={})=>{d("getIntegrationByName","name",t),d("getIntegrationByName","version",e);let n="/v1/admin/integrations/{name}/{version}".replace("{name}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getIntegrationLogs:async(t,e,s,n,a={})=>{d("getIntegrationLogs","id",t),d("getIntegrationLogs","timeStart",e),d("getIntegrationLogs","timeEnd",s);let o="/v1/admin/integrations/{id}/logs".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},x={};e!==void 0&&(x.timeStart=e),s!==void 0&&(x.timeEnd=s),n!==void 0&&(x.nextToken=n),y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},{url:h(i),options:c}},getMessage:async(t,e={})=>{d("getMessage","id",t);let s="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getOrCreateConversation:async(t,e={})=>{let s="/v1/chat/conversations/get-or-create",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},getOrCreateMessage:async(t,e={})=>{let s="/v1/chat/messages/get-or-create",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},getOrCreateUser:async(t,e={})=>{let s="/v1/chat/users/get-or-create",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},getOrSetState:async(t,e,s,n,a={})=>{d("getOrSetState","type",t),d("getOrSetState","id",e),d("getOrSetState","name",s);let o="/v1/chat/states/{type}/{id}/{name}/get-or-set".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},p={},x={};p["Content-Type"]="application/json",y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},c.data=C(n,c,r),{url:h(i),options:c}},getParticipant:async(t,e,s={})=>{d("getParticipant","id",t),d("getParticipant","userId",e);let n="/v1/chat/conversations/{id}/participants/{userId}".replace("{id}",encodeURIComponent(String(t))).replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getPublicIntegration:async(t,e,s={})=>{d("getPublicIntegration","name",t),d("getPublicIntegration","version",e);let n="/v1/admin/hub/integrations/{name}/{version}".replace("{name}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getPublicIntegrationById:async(t,e={})=>{d("getPublicIntegrationById","id",t);let s="/v1/admin/hub/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getPublicWorkspace:async(t,e={})=>{d("getPublicWorkspace","id",t);let s="/v1/admin/workspaces/{id}/public".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getState:async(t,e,s,n={})=>{d("getState","type",t),d("getState","id",e),d("getState","name",s);let a="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={};y(o,{});let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},getTable:async(t,e={})=>{d("getTable","table",t);let s="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getTableRow:async(t,e,s={})=>{d("getTableRow","table",t),d("getTableRow","id",e);let n="/v1/tables/{table}/row".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.id=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},getTask:async(t,e={})=>{d("getTask","id",t);let s="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getUpcomingInvoice:async(t,e={})=>{d("getUpcomingInvoice","id",t);let s="/v1/admin/workspaces/{id}/billing/upcoming-invoice".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getUsage:async(t,e,s,n={})=>{d("getUsage","type",t),d("getUsage","id",e);let a="/v1/admin/usages/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.type=t),s!==void 0&&(p.period=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},getUser:async(t,e={})=>{d("getUser","id",t);let s="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getWorkspace:async(t,e={})=>{d("getWorkspace","id",t);let s="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getWorkspaceBillingDetails:async(t,e={})=>{d("getWorkspaceBillingDetails","id",t);let s="/v1/admin/workspaces/{id}/billing/details".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},getWorkspaceQuota:async(t,e,s,n={})=>{d("getWorkspaceQuota","id",t),d("getWorkspaceQuota","type",e);let a="/v1/admin/workspaces/{id}/quota".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},introspect:async(t,e={})=>{let s="/v1/admin/introspect",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},listActivities:async(t,e,s,n={})=>{d("listActivities","taskId",t),d("listActivities","botId",e);let a="/v1/admin/activities",o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};s!==void 0&&(p.nextToken=s),t!==void 0&&(p.taskId=t),e!==void 0&&(p.botId=e),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listBotIssueEvents:async(t,e,s={})=>{d("listBotIssueEvents","id",t),d("listBotIssueEvents","issueId",e);let n="/v1/admin/bots/{id}/issues/{issueId}/events".replace("{id}",encodeURIComponent(String(t))).replace("{issueId}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listBotIssues:async(t,e,s={})=>{d("listBotIssues","id",t);let n="/v1/admin/bots/{id}/issues".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listBots:async(t,e,s={})=>{let n="/v1/admin/bots",a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};t!==void 0&&(c.dev=t),e!==void 0&&(c.nextToken=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listConversations:async(t,e,s,n={})=>{let a="/v1/chat/conversations",o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.tags=e),s&&(p.participantIds=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listEvents:async(t,e,s,n,a,o={})=>{let i="/v1/chat/events",l=new URL(i,g),c;r&&(c=r.baseOptions);let p={method:"GET",...c,...o},x={},b={};t!==void 0&&(b.nextToken=t),e!==void 0&&(b.type=e),s!==void 0&&(b.conversationId=s),n!==void 0&&(b.userId=n),a!==void 0&&(b.messageId=a),y(l,b);let k=c&&c.headers?c.headers:{};return p.headers={...x,...k,...o.headers},{url:h(l),options:p}},listFiles:async(t,e,s,n,a,o,i,l={})=>{d("listFiles","xBotId",t),d("listFiles","botId",e);let c="/v1/files/bot/{botId}".replace("{botId}",encodeURIComponent(String(e))),p=new URL(c,g),x;r&&(x=r.baseOptions);let b={method:"GET",...x,...l},k={},I={};s!==void 0&&(I.nextToken=s),i!==void 0&&(I.tags=i),t!=null&&(k["x-bot-id"]=String(t)),n!=null&&(k["x-integration-id"]=String(n)),a!=null&&(k["x-user-id"]=String(a)),o!=null&&(k["x-user-role"]=String(o)),y(p,I);let B=x&&x.headers?x.headers:{};return b.headers={...k,...B,...l.headers},{url:h(p),options:b}},listIntegrations:async(t,e,s,n,a={})=>{let o="/v1/admin/integrations",i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},x={};t!==void 0&&(x.nextToken=t),e!==void 0&&(x.name=e),s!==void 0&&(x.version=s),n!==void 0&&(x.dev=n),y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},{url:h(i),options:c}},listMessages:async(t,e,s,n={})=>{let a="/v1/chat/messages",o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.conversationId=e),s!==void 0&&(p.tags=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listParticipants:async(t,e,s={})=>{d("listParticipants","id",t);let n="/v1/chat/conversations/{id}/participants".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listPersonalAccessTokens:async(t={})=>{let e="/v1/admin/account/pats",s=new URL(e,g),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};y(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:h(s),options:a}},listPublicIntegrations:async(t,e,s,n={})=>{let a="/v1/admin/hub/integrations",o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.name=e),s!==void 0&&(p.version=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listTables:async(t,e={})=>{let s="/v1/tables",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.tags=t),y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},listTasks:async(t,e,s,n,a,o,i,l={})=>{let c="/v1/chat/tasks",p=new URL(c,g),x;r&&(x=r.baseOptions);let b={method:"GET",...x,...l},k={},I={};t!==void 0&&(I.nextToken=t),e!==void 0&&(I.tags=e),s!==void 0&&(I.conversationId=s),n!==void 0&&(I.userId=n),a!==void 0&&(I.parentTaskId=a),o&&(I.status=o),i!==void 0&&(I.type=i),y(p,I);let B=x&&x.headers?x.headers:{};return b.headers={...k,...B,...l.headers},{url:h(p),options:b}},listUsageHistory:async(t,e,s={})=>{d("listUsageHistory","type",t),d("listUsageHistory","id",e);let n="/v1/admin/usages/{id}/history".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};t!==void 0&&(c.type=t),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listUsers:async(t,e,s,n={})=>{let a="/v1/chat/users",o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.conversationId=e),s!==void 0&&(p.tags=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listWorkspaceInvoices:async(t,e={})=>{d("listWorkspaceInvoices","id",t);let s="/v1/admin/workspaces/{id}/billing/invoices".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};y(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},listWorkspaceMembers:async(t,e={})=>{let s="/v1/admin/workspace-members",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.nextToken=t),y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},listWorkspaceQuotas:async(t,e,s={})=>{d("listWorkspaceQuotas","id",t);let n="/v1/admin/workspaces/{id}/quotas".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.period=e),y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},listWorkspaceUsages:async(t,e,s,n={})=>{d("listWorkspaceUsages","id",t),d("listWorkspaceUsages","type",e);let a="/v1/admin/workspaces/{id}/usages".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,g),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),y(o,p);let x=i&&i.headers?i.headers:{};return l.headers={...c,...x,...n.headers},{url:h(o),options:l}},listWorkspaces:async(t,e={})=>{let s="/v1/admin/workspaces",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.nextToken=t),y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:h(n),options:o}},patchState:async(t,e,s,n,a={})=>{d("patchState","type",t),d("patchState","id",e),d("patchState","name",s);let o="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"PATCH",...l,...a},p={},x={};p["Content-Type"]="application/json",y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},c.data=C(n,c,r),{url:h(i),options:c}},removeParticipant:async(t,e,s={})=>{d("removeParticipant","id",t),d("removeParticipant","userId",e);let n="/v1/chat/conversations/{id}/participants/{userId}".replace("{id}",encodeURIComponent(String(t))).replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"DELETE",...o,...s},l={};y(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:h(a),options:i}},renameTableColumn:async(t,e,s={})=>{d("renameTableColumn","table",t);let n="/v1/tables/{table}/column".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},runVrl:async(t,e={})=>{let s="/v1/admin/helper/vrl",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},searchFiles:async(t,e,s,n,a,o,i,l,c={})=>{d("searchFiles","xBotId",t),d("searchFiles","botId",e),d("searchFiles","query",s);let p="/v1/files/bot/{botId}/search".replace("{botId}",encodeURIComponent(String(e))),x=new URL(p,g),b;r&&(b=r.baseOptions);let k={method:"GET",...b,...c},I={},B={};i!==void 0&&(B.tags=i),s!==void 0&&(B.query=s),l!==void 0&&(B.limit=l),t!=null&&(I["x-bot-id"]=String(t)),n!=null&&(I["x-integration-id"]=String(n)),a!=null&&(I["x-user-id"]=String(a)),o!=null&&(I["x-user-role"]=String(o)),y(x,B);let q=b&&b.headers?b.headers:{};return k.headers={...I,...q,...c.headers},{url:h(x),options:k}},setAccountPreference:async(t,e,s={})=>{d("setAccountPreference","key",t);let n="/v1/admin/account/preferences/{key}".replace("{key}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},setState:async(t,e,s,n,a={})=>{d("setState","type",t),d("setState","id",e),d("setState","name",s);let o="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,g),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},p={},x={};p["Content-Type"]="application/json",y(i,x);let b=l&&l.headers?l.headers:{};return c.headers={...p,...b,...a.headers},c.data=C(n,c,r),{url:h(i),options:c}},setWorkspacePaymentMethod:async(t,e,s={})=>{d("setWorkspacePaymentMethod","id",t);let n="/v1/admin/workspaces/{id}/billing/payment-method".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},transferBot:async(t,e,s={})=>{d("transferBot","id",t);let n="/v1/admin/bots/{id}/transfer".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateAccount:async(t,e={})=>{let s="/v1/admin/account/me",n=new URL(s,g),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",y(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=C(t,o,r),{url:h(n),options:o}},updateBot:async(t,e,s={})=>{d("updateBot","id",t);let n="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateConversation:async(t,e,s={})=>{d("updateConversation","id",t);let n="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateFileMetadata:async(t,e,s,n,a,o,i={})=>{d("updateFileMetadata","id",t),d("updateFileMetadata","xBotId",e);let l="/v1/files/{id}/metadata".replace("{id}",encodeURIComponent(String(t))),c=new URL(l,g),p;r&&(p=r.baseOptions);let x={method:"PUT",...p,...i},b={},k={};e!=null&&(b["x-bot-id"]=String(e)),s!=null&&(b["x-integration-id"]=String(s)),n!=null&&(b["x-user-id"]=String(n)),a!=null&&(b["x-user-role"]=String(a)),b["Content-Type"]="application/json",y(c,k);let I=p&&p.headers?p.headers:{};return x.headers={...b,...I,...i.headers},x.data=C(o,x,r),{url:h(c),options:x}},updateIntegration:async(t,e,s={})=>{d("updateIntegration","id",t);let n="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateMessage:async(t,e,s={})=>{d("updateMessage","id",t);let n="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateTable:async(t,e,s={})=>{d("updateTable","table",t);let n="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateTableRows:async(t,e,s={})=>{d("updateTableRows","table",t);let n="/v1/tables/{table}/rows".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateTask:async(t,e,s={})=>{d("updateTask","id",t);let n="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateUser:async(t,e,s={})=>{d("updateUser","id",t);let n="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateWorkspace:async(t,e,s={})=>{d("updateWorkspace","id",t);let n="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},updateWorkspaceMember:async(t,e,s={})=>{d("updateWorkspaceMember","id",t);let n="/v1/admin/workspace-members/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}},upsertTableRows:async(t,e,s={})=>{d("upsertTableRows","table",t);let n="/v1/tables/{table}/rows/upsert".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,g),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",y(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=C(e,i,r),{url:h(a),options:i}}}},m=function(r){let t=We(r);return{async addParticipant(e,s,n){let a=await t.addParticipant(e,s,n);return R(a,A,u,r)},async breakDownWorkspaceUsageByBot(e,s,n,a){let o=await t.breakDownWorkspaceUsageByBot(e,s,n,a);return R(o,A,u,r)},async callAction(e,s){let n=await t.callAction(e,s);return R(n,A,u,r)},async changeAISpendQuota(e,s){let n=await t.changeAISpendQuota(e,s);return R(n,A,u,r)},async changeWorkspacePlan(e,s,n){let a=await t.changeWorkspacePlan(e,s,n);return R(a,A,u,r)},async chargeWorkspaceUnpaidInvoices(e,s,n){let a=await t.chargeWorkspaceUnpaidInvoices(e,s,n);return R(a,A,u,r)},async checkHandleAvailability(e,s){let n=await t.checkHandleAvailability(e,s);return R(n,A,u,r)},async configureIntegration(e,s){let n=await t.configureIntegration(e,s);return R(n,A,u,r)},async createBot(e,s){let n=await t.createBot(e,s);return R(n,A,u,r)},async createConversation(e,s){let n=await t.createConversation(e,s);return R(n,A,u,r)},async createEvent(e,s){let n=await t.createEvent(e,s);return R(n,A,u,r)},async createFile(e,s,n,a,o,i,l,c,p,x,b,k){let I=await t.createFile(e,s,n,a,o,i,l,c,p,x,b,k);return R(I,A,u,r)},async createIntegration(e,s){let n=await t.createIntegration(e,s);return R(n,A,u,r)},async createMessage(e,s){let n=await t.createMessage(e,s);return R(n,A,u,r)},async createPersonalAccessToken(e,s){let n=await t.createPersonalAccessToken(e,s);return R(n,A,u,r)},async createTable(e,s){let n=await t.createTable(e,s);return R(n,A,u,r)},async createTableRows(e,s,n){let a=await t.createTableRows(e,s,n);return R(a,A,u,r)},async createTask(e,s){let n=await t.createTask(e,s);return R(n,A,u,r)},async createUser(e,s){let n=await t.createUser(e,s);return R(n,A,u,r)},async createWorkspace(e,s){let n=await t.createWorkspace(e,s);return R(n,A,u,r)},async createWorkspaceMember(e,s){let n=await t.createWorkspaceMember(e,s);return R(n,A,u,r)},async deleteBot(e,s){let n=await t.deleteBot(e,s);return R(n,A,u,r)},async deleteBotIssue(e,s,n){let a=await t.deleteBotIssue(e,s,n);return R(a,A,u,r)},async deleteConversation(e,s){let n=await t.deleteConversation(e,s);return R(n,A,u,r)},async deleteFile(e,s,n,a,o,i){let l=await t.deleteFile(e,s,n,a,o,i);return R(l,A,u,r)},async deleteIntegration(e,s){let n=await t.deleteIntegration(e,s);return R(n,A,u,r)},async deleteMessage(e,s){let n=await t.deleteMessage(e,s);return R(n,A,u,r)},async deletePersonalAccessToken(e,s){let n=await t.deletePersonalAccessToken(e,s);return R(n,A,u,r)},async deleteTable(e,s){let n=await t.deleteTable(e,s);return R(n,A,u,r)},async deleteTableRows(e,s,n){let a=await t.deleteTableRows(e,s,n);return R(a,A,u,r)},async deleteTask(e,s){let n=await t.deleteTask(e,s);return R(n,A,u,r)},async deleteUser(e,s){let n=await t.deleteUser(e,s);return R(n,A,u,r)},async deleteWorkspace(e,s){let n=await t.deleteWorkspace(e,s);return R(n,A,u,r)},async deleteWorkspaceMember(e,s){let n=await t.deleteWorkspaceMember(e,s);return R(n,A,u,r)},async findTableRows(e,s,n){let a=await t.findTableRows(e,s,n);return R(a,A,u,r)},async getAccount(e){let s=await t.getAccount(e);return R(s,A,u,r)},async getAccountPreference(e,s){let n=await t.getAccountPreference(e,s);return R(n,A,u,r)},async getAllWorkspaceQuotaCompletion(e){let s=await t.getAllWorkspaceQuotaCompletion(e);return R(s,A,u,r)},async getAuditRecords(e,s,n){let a=await t.getAuditRecords(e,s,n);return R(a,A,u,r)},async getBot(e,s){let n=await t.getBot(e,s);return R(n,A,u,r)},async getBotAnalytics(e,s,n,a){let o=await t.getBotAnalytics(e,s,n,a);return R(o,A,u,r)},async getBotLogs(e,s,n,a,o){let i=await t.getBotLogs(e,s,n,a,o);return R(i,A,u,r)},async getBotWebchat(e,s,n){let a=await t.getBotWebchat(e,s,n);return R(a,A,u,r)},async getConversation(e,s){let n=await t.getConversation(e,s);return R(n,A,u,r)},async getEvent(e,s){let n=await t.getEvent(e,s);return R(n,A,u,r)},async getFileContent(e,s,n,a,o,i){let l=await t.getFileContent(e,s,n,a,o,i);return R(l,A,u,r)},async getFileMetadata(e,s,n,a,o,i){let l=await t.getFileMetadata(e,s,n,a,o,i);return R(l,A,u,r)},async getIntegration(e,s){let n=await t.getIntegration(e,s);return R(n,A,u,r)},async getIntegrationByName(e,s,n){let a=await t.getIntegrationByName(e,s,n);return R(a,A,u,r)},async getIntegrationLogs(e,s,n,a,o){let i=await t.getIntegrationLogs(e,s,n,a,o);return R(i,A,u,r)},async getMessage(e,s){let n=await t.getMessage(e,s);return R(n,A,u,r)},async getOrCreateConversation(e,s){let n=await t.getOrCreateConversation(e,s);return R(n,A,u,r)},async getOrCreateMessage(e,s){let n=await t.getOrCreateMessage(e,s);return R(n,A,u,r)},async getOrCreateUser(e,s){let n=await t.getOrCreateUser(e,s);return R(n,A,u,r)},async getOrSetState(e,s,n,a,o){let i=await t.getOrSetState(e,s,n,a,o);return R(i,A,u,r)},async getParticipant(e,s,n){let a=await t.getParticipant(e,s,n);return R(a,A,u,r)},async getPublicIntegration(e,s,n){let a=await t.getPublicIntegration(e,s,n);return R(a,A,u,r)},async getPublicIntegrationById(e,s){let n=await t.getPublicIntegrationById(e,s);return R(n,A,u,r)},async getPublicWorkspace(e,s){let n=await t.getPublicWorkspace(e,s);return R(n,A,u,r)},async getState(e,s,n,a){let o=await t.getState(e,s,n,a);return R(o,A,u,r)},async getTable(e,s){let n=await t.getTable(e,s);return R(n,A,u,r)},async getTableRow(e,s,n){let a=await t.getTableRow(e,s,n);return R(a,A,u,r)},async getTask(e,s){let n=await t.getTask(e,s);return R(n,A,u,r)},async getUpcomingInvoice(e,s){let n=await t.getUpcomingInvoice(e,s);return R(n,A,u,r)},async getUsage(e,s,n,a){let o=await t.getUsage(e,s,n,a);return R(o,A,u,r)},async getUser(e,s){let n=await t.getUser(e,s);return R(n,A,u,r)},async getWorkspace(e,s){let n=await t.getWorkspace(e,s);return R(n,A,u,r)},async getWorkspaceBillingDetails(e,s){let n=await t.getWorkspaceBillingDetails(e,s);return R(n,A,u,r)},async getWorkspaceQuota(e,s,n,a){let o=await t.getWorkspaceQuota(e,s,n,a);return R(o,A,u,r)},async introspect(e,s){let n=await t.introspect(e,s);return R(n,A,u,r)},async listActivities(e,s,n,a){let o=await t.listActivities(e,s,n,a);return R(o,A,u,r)},async listBotIssueEvents(e,s,n){let a=await t.listBotIssueEvents(e,s,n);return R(a,A,u,r)},async listBotIssues(e,s,n){let a=await t.listBotIssues(e,s,n);return R(a,A,u,r)},async listBots(e,s,n){let a=await t.listBots(e,s,n);return R(a,A,u,r)},async listConversations(e,s,n,a){let o=await t.listConversations(e,s,n,a);return R(o,A,u,r)},async listEvents(e,s,n,a,o,i){let l=await t.listEvents(e,s,n,a,o,i);return R(l,A,u,r)},async listFiles(e,s,n,a,o,i,l,c){let p=await t.listFiles(e,s,n,a,o,i,l,c);return R(p,A,u,r)},async listIntegrations(e,s,n,a,o){let i=await t.listIntegrations(e,s,n,a,o);return R(i,A,u,r)},async listMessages(e,s,n,a){let o=await t.listMessages(e,s,n,a);return R(o,A,u,r)},async listParticipants(e,s,n){let a=await t.listParticipants(e,s,n);return R(a,A,u,r)},async listPersonalAccessTokens(e){let s=await t.listPersonalAccessTokens(e);return R(s,A,u,r)},async listPublicIntegrations(e,s,n,a){let o=await t.listPublicIntegrations(e,s,n,a);return R(o,A,u,r)},async listTables(e,s){let n=await t.listTables(e,s);return R(n,A,u,r)},async listTasks(e,s,n,a,o,i,l,c){let p=await t.listTasks(e,s,n,a,o,i,l,c);return R(p,A,u,r)},async listUsageHistory(e,s,n){let a=await t.listUsageHistory(e,s,n);return R(a,A,u,r)},async listUsers(e,s,n,a){let o=await t.listUsers(e,s,n,a);return R(o,A,u,r)},async listWorkspaceInvoices(e,s){let n=await t.listWorkspaceInvoices(e,s);return R(n,A,u,r)},async listWorkspaceMembers(e,s){let n=await t.listWorkspaceMembers(e,s);return R(n,A,u,r)},async listWorkspaceQuotas(e,s,n){let a=await t.listWorkspaceQuotas(e,s,n);return R(a,A,u,r)},async listWorkspaceUsages(e,s,n,a){let o=await t.listWorkspaceUsages(e,s,n,a);return R(o,A,u,r)},async listWorkspaces(e,s){let n=await t.listWorkspaces(e,s);return R(n,A,u,r)},async patchState(e,s,n,a,o){let i=await t.patchState(e,s,n,a,o);return R(i,A,u,r)},async removeParticipant(e,s,n){let a=await t.removeParticipant(e,s,n);return R(a,A,u,r)},async renameTableColumn(e,s,n){let a=await t.renameTableColumn(e,s,n);return R(a,A,u,r)},async runVrl(e,s){let n=await t.runVrl(e,s);return R(n,A,u,r)},async searchFiles(e,s,n,a,o,i,l,c,p){let x=await t.searchFiles(e,s,n,a,o,i,l,c,p);return R(x,A,u,r)},async setAccountPreference(e,s,n){let a=await t.setAccountPreference(e,s,n);return R(a,A,u,r)},async setState(e,s,n,a,o){let i=await t.setState(e,s,n,a,o);return R(i,A,u,r)},async setWorkspacePaymentMethod(e,s,n){let a=await t.setWorkspacePaymentMethod(e,s,n);return R(a,A,u,r)},async transferBot(e,s,n){let a=await t.transferBot(e,s,n);return R(a,A,u,r)},async updateAccount(e,s){let n=await t.updateAccount(e,s);return R(n,A,u,r)},async updateBot(e,s,n){let a=await t.updateBot(e,s,n);return R(a,A,u,r)},async updateConversation(e,s,n){let a=await t.updateConversation(e,s,n);return R(a,A,u,r)},async updateFileMetadata(e,s,n,a,o,i,l){let c=await t.updateFileMetadata(e,s,n,a,o,i,l);return R(c,A,u,r)},async updateIntegration(e,s,n){let a=await t.updateIntegration(e,s,n);return R(a,A,u,r)},async updateMessage(e,s,n){let a=await t.updateMessage(e,s,n);return R(a,A,u,r)},async updateTable(e,s,n){let a=await t.updateTable(e,s,n);return R(a,A,u,r)},async updateTableRows(e,s,n){let a=await t.updateTableRows(e,s,n);return R(a,A,u,r)},async updateTask(e,s,n){let a=await t.updateTask(e,s,n);return R(a,A,u,r)},async updateUser(e,s,n){let a=await t.updateUser(e,s,n);return R(a,A,u,r)},async updateWorkspace(e,s,n){let a=await t.updateWorkspace(e,s,n);return R(a,A,u,r)},async updateWorkspaceMember(e,s,n){let a=await t.updateWorkspaceMember(e,s,n);return R(a,A,u,r)},async upsertTableRows(e,s,n){let a=await t.upsertTableRows(e,s,n);return R(a,A,u,r)}}};var O=class extends v{addParticipant(t,e){return m(this.configuration).addParticipant(t.id,t.addParticipantBody,e).then(s=>s(this.axios,this.basePath))}breakDownWorkspaceUsageByBot(t,e){return m(this.configuration).breakDownWorkspaceUsageByBot(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}callAction(t={},e){return m(this.configuration).callAction(t.callActionBody,e).then(s=>s(this.axios,this.basePath))}changeAISpendQuota(t={},e){return m(this.configuration).changeAISpendQuota(t.changeAISpendQuotaBody,e).then(s=>s(this.axios,this.basePath))}changeWorkspacePlan(t,e){return m(this.configuration).changeWorkspacePlan(t.id,t.changeWorkspacePlanBody,e).then(s=>s(this.axios,this.basePath))}chargeWorkspaceUnpaidInvoices(t,e){return m(this.configuration).chargeWorkspaceUnpaidInvoices(t.id,t.chargeWorkspaceUnpaidInvoicesBody,e).then(s=>s(this.axios,this.basePath))}checkHandleAvailability(t={},e){return m(this.configuration).checkHandleAvailability(t.checkHandleAvailabilityBody,e).then(s=>s(this.axios,this.basePath))}configureIntegration(t={},e){return m(this.configuration).configureIntegration(t.configureIntegrationBody,e).then(s=>s(this.axios,this.basePath))}createBot(t={},e){return m(this.configuration).createBot(t.createBotBody,e).then(s=>s(this.axios,this.basePath))}createConversation(t={},e){return m(this.configuration).createConversation(t.createConversationBody,e).then(s=>s(this.axios,this.basePath))}createEvent(t={},e){return m(this.configuration).createEvent(t.createEventBody,e).then(s=>s(this.axios,this.basePath))}createFile(t,e){return m(this.configuration).createFile(t.xFilename,t.xBotId,t.xTags,t.xAccessPolicies,t.xIndex,t.contentType,t.contentLength,t.xIntegrationId,t.xUserId,t.xUserRole,t.createFileBody,e).then(s=>s(this.axios,this.basePath))}createIntegration(t={},e){return m(this.configuration).createIntegration(t.createIntegrationBody,e).then(s=>s(this.axios,this.basePath))}createMessage(t={},e){return m(this.configuration).createMessage(t.createMessageBody,e).then(s=>s(this.axios,this.basePath))}createPersonalAccessToken(t={},e){return m(this.configuration).createPersonalAccessToken(t.createPersonalAccessTokenBody,e).then(s=>s(this.axios,this.basePath))}createTable(t={},e){return m(this.configuration).createTable(t.createTableBody,e).then(s=>s(this.axios,this.basePath))}createTableRows(t,e){return m(this.configuration).createTableRows(t.table,t.createTableRowsBody,e).then(s=>s(this.axios,this.basePath))}createTask(t={},e){return m(this.configuration).createTask(t.createTaskBody,e).then(s=>s(this.axios,this.basePath))}createUser(t={},e){return m(this.configuration).createUser(t.createUserBody,e).then(s=>s(this.axios,this.basePath))}createWorkspace(t={},e){return m(this.configuration).createWorkspace(t.createWorkspaceBody,e).then(s=>s(this.axios,this.basePath))}createWorkspaceMember(t={},e){return m(this.configuration).createWorkspaceMember(t.createWorkspaceMemberBody,e).then(s=>s(this.axios,this.basePath))}deleteBot(t,e){return m(this.configuration).deleteBot(t.id,e).then(s=>s(this.axios,this.basePath))}deleteBotIssue(t,e){return m(this.configuration).deleteBotIssue(t.id,t.issueId,e).then(s=>s(this.axios,this.basePath))}deleteConversation(t,e){return m(this.configuration).deleteConversation(t.id,e).then(s=>s(this.axios,this.basePath))}deleteFile(t,e){return m(this.configuration).deleteFile(t.id,t.xBotId,t.xIntegrationId,t.xUserId,t.xUserRole,e).then(s=>s(this.axios,this.basePath))}deleteIntegration(t,e){return m(this.configuration).deleteIntegration(t.id,e).then(s=>s(this.axios,this.basePath))}deleteMessage(t,e){return m(this.configuration).deleteMessage(t.id,e).then(s=>s(this.axios,this.basePath))}deletePersonalAccessToken(t,e){return m(this.configuration).deletePersonalAccessToken(t.id,e).then(s=>s(this.axios,this.basePath))}deleteTable(t,e){return m(this.configuration).deleteTable(t.table,e).then(s=>s(this.axios,this.basePath))}deleteTableRows(t,e){return m(this.configuration).deleteTableRows(t.table,t.deleteTableRowsBody,e).then(s=>s(this.axios,this.basePath))}deleteTask(t,e){return m(this.configuration).deleteTask(t.id,e).then(s=>s(this.axios,this.basePath))}deleteUser(t,e){return m(this.configuration).deleteUser(t.id,e).then(s=>s(this.axios,this.basePath))}deleteWorkspace(t,e){return m(this.configuration).deleteWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}deleteWorkspaceMember(t,e){return m(this.configuration).deleteWorkspaceMember(t.id,e).then(s=>s(this.axios,this.basePath))}findTableRows(t,e){return m(this.configuration).findTableRows(t.table,t.findTableRowsBody,e).then(s=>s(this.axios,this.basePath))}getAccount(t){return m(this.configuration).getAccount(t).then(e=>e(this.axios,this.basePath))}getAccountPreference(t,e){return m(this.configuration).getAccountPreference(t.key,e).then(s=>s(this.axios,this.basePath))}getAllWorkspaceQuotaCompletion(t){return m(this.configuration).getAllWorkspaceQuotaCompletion(t).then(e=>e(this.axios,this.basePath))}getAuditRecords(t,e){return m(this.configuration).getAuditRecords(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getBot(t,e){return m(this.configuration).getBot(t.id,e).then(s=>s(this.axios,this.basePath))}getBotAnalytics(t,e){return m(this.configuration).getBotAnalytics(t.id,t.startDate,t.endDate,e).then(s=>s(this.axios,this.basePath))}getBotLogs(t,e){return m(this.configuration).getBotLogs(t.id,t.timeStart,t.timeEnd,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getBotWebchat(t,e){return m(this.configuration).getBotWebchat(t.id,t.type,e).then(s=>s(this.axios,this.basePath))}getConversation(t,e){return m(this.configuration).getConversation(t.id,e).then(s=>s(this.axios,this.basePath))}getEvent(t,e){return m(this.configuration).getEvent(t.id,e).then(s=>s(this.axios,this.basePath))}getFileContent(t,e){return m(this.configuration).getFileContent(t.id,t.xBotId,t.xIntegrationId,t.xUserId,t.xUserRole,e).then(s=>s(this.axios,this.basePath))}getFileMetadata(t,e){return m(this.configuration).getFileMetadata(t.id,t.xBotId,t.xIntegrationId,t.xUserId,t.xUserRole,e).then(s=>s(this.axios,this.basePath))}getIntegration(t,e){return m(this.configuration).getIntegration(t.id,e).then(s=>s(this.axios,this.basePath))}getIntegrationByName(t,e){return m(this.configuration).getIntegrationByName(t.name,t.version,e).then(s=>s(this.axios,this.basePath))}getIntegrationLogs(t,e){return m(this.configuration).getIntegrationLogs(t.id,t.timeStart,t.timeEnd,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getMessage(t,e){return m(this.configuration).getMessage(t.id,e).then(s=>s(this.axios,this.basePath))}getOrCreateConversation(t={},e){return m(this.configuration).getOrCreateConversation(t.getOrCreateConversationBody,e).then(s=>s(this.axios,this.basePath))}getOrCreateMessage(t={},e){return m(this.configuration).getOrCreateMessage(t.getOrCreateMessageBody,e).then(s=>s(this.axios,this.basePath))}getOrCreateUser(t={},e){return m(this.configuration).getOrCreateUser(t.getOrCreateUserBody,e).then(s=>s(this.axios,this.basePath))}getOrSetState(t,e){return m(this.configuration).getOrSetState(t.type,t.id,t.name,t.getOrSetStateBody,e).then(s=>s(this.axios,this.basePath))}getParticipant(t,e){return m(this.configuration).getParticipant(t.id,t.userId,e).then(s=>s(this.axios,this.basePath))}getPublicIntegration(t,e){return m(this.configuration).getPublicIntegration(t.name,t.version,e).then(s=>s(this.axios,this.basePath))}getPublicIntegrationById(t,e){return m(this.configuration).getPublicIntegrationById(t.id,e).then(s=>s(this.axios,this.basePath))}getPublicWorkspace(t,e){return m(this.configuration).getPublicWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}getState(t,e){return m(this.configuration).getState(t.type,t.id,t.name,e).then(s=>s(this.axios,this.basePath))}getTable(t,e){return m(this.configuration).getTable(t.table,e).then(s=>s(this.axios,this.basePath))}getTableRow(t,e){return m(this.configuration).getTableRow(t.table,t.id,e).then(s=>s(this.axios,this.basePath))}getTask(t,e){return m(this.configuration).getTask(t.id,e).then(s=>s(this.axios,this.basePath))}getUpcomingInvoice(t,e){return m(this.configuration).getUpcomingInvoice(t.id,e).then(s=>s(this.axios,this.basePath))}getUsage(t,e){return m(this.configuration).getUsage(t.type,t.id,t.period,e).then(s=>s(this.axios,this.basePath))}getUser(t,e){return m(this.configuration).getUser(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspace(t,e){return m(this.configuration).getWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspaceBillingDetails(t,e){return m(this.configuration).getWorkspaceBillingDetails(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspaceQuota(t,e){return m(this.configuration).getWorkspaceQuota(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}introspect(t={},e){return m(this.configuration).introspect(t.introspectBody,e).then(s=>s(this.axios,this.basePath))}listActivities(t,e){return m(this.configuration).listActivities(t.taskId,t.botId,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listBotIssueEvents(t,e){return m(this.configuration).listBotIssueEvents(t.id,t.issueId,e).then(s=>s(this.axios,this.basePath))}listBotIssues(t,e){return m(this.configuration).listBotIssues(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listBots(t={},e){return m(this.configuration).listBots(t.dev,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listConversations(t={},e){return m(this.configuration).listConversations(t.nextToken,t.tags,t.participantIds,e).then(s=>s(this.axios,this.basePath))}listEvents(t={},e){return m(this.configuration).listEvents(t.nextToken,t.type,t.conversationId,t.userId,t.messageId,e).then(s=>s(this.axios,this.basePath))}listFiles(t,e){return m(this.configuration).listFiles(t.xBotId,t.botId,t.nextToken,t.xIntegrationId,t.xUserId,t.xUserRole,t.tags,e).then(s=>s(this.axios,this.basePath))}listIntegrations(t={},e){return m(this.configuration).listIntegrations(t.nextToken,t.name,t.version,t.dev,e).then(s=>s(this.axios,this.basePath))}listMessages(t={},e){return m(this.configuration).listMessages(t.nextToken,t.conversationId,t.tags,e).then(s=>s(this.axios,this.basePath))}listParticipants(t,e){return m(this.configuration).listParticipants(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listPersonalAccessTokens(t){return m(this.configuration).listPersonalAccessTokens(t).then(e=>e(this.axios,this.basePath))}listPublicIntegrations(t={},e){return m(this.configuration).listPublicIntegrations(t.nextToken,t.name,t.version,e).then(s=>s(this.axios,this.basePath))}listTables(t={},e){return m(this.configuration).listTables(t.tags,e).then(s=>s(this.axios,this.basePath))}listTasks(t={},e){return m(this.configuration).listTasks(t.nextToken,t.tags,t.conversationId,t.userId,t.parentTaskId,t.status,t.type,e).then(s=>s(this.axios,this.basePath))}listUsageHistory(t,e){return m(this.configuration).listUsageHistory(t.type,t.id,e).then(s=>s(this.axios,this.basePath))}listUsers(t={},e){return m(this.configuration).listUsers(t.nextToken,t.conversationId,t.tags,e).then(s=>s(this.axios,this.basePath))}listWorkspaceInvoices(t,e){return m(this.configuration).listWorkspaceInvoices(t.id,e).then(s=>s(this.axios,this.basePath))}listWorkspaceMembers(t={},e){return m(this.configuration).listWorkspaceMembers(t.nextToken,e).then(s=>s(this.axios,this.basePath))}listWorkspaceQuotas(t,e){return m(this.configuration).listWorkspaceQuotas(t.id,t.period,e).then(s=>s(this.axios,this.basePath))}listWorkspaceUsages(t,e){return m(this.configuration).listWorkspaceUsages(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}listWorkspaces(t={},e){return m(this.configuration).listWorkspaces(t.nextToken,e).then(s=>s(this.axios,this.basePath))}patchState(t,e){return m(this.configuration).patchState(t.type,t.id,t.name,t.patchStateBody,e).then(s=>s(this.axios,this.basePath))}removeParticipant(t,e){return m(this.configuration).removeParticipant(t.id,t.userId,e).then(s=>s(this.axios,this.basePath))}renameTableColumn(t,e){return m(this.configuration).renameTableColumn(t.table,t.renameTableColumnBody,e).then(s=>s(this.axios,this.basePath))}runVrl(t={},e){return m(this.configuration).runVrl(t.runVrlBody,e).then(s=>s(this.axios,this.basePath))}searchFiles(t,e){return m(this.configuration).searchFiles(t.xBotId,t.botId,t.query,t.xIntegrationId,t.xUserId,t.xUserRole,t.tags,t.limit,e).then(s=>s(this.axios,this.basePath))}setAccountPreference(t,e){return m(this.configuration).setAccountPreference(t.key,t.setAccountPreferenceBody,e).then(s=>s(this.axios,this.basePath))}setState(t,e){return m(this.configuration).setState(t.type,t.id,t.name,t.setStateBody,e).then(s=>s(this.axios,this.basePath))}setWorkspacePaymentMethod(t,e){return m(this.configuration).setWorkspacePaymentMethod(t.id,t.setWorkspacePaymentMethodBody,e).then(s=>s(this.axios,this.basePath))}transferBot(t,e){return m(this.configuration).transferBot(t.id,t.transferBotBody,e).then(s=>s(this.axios,this.basePath))}updateAccount(t={},e){return m(this.configuration).updateAccount(t.updateAccountBody,e).then(s=>s(this.axios,this.basePath))}updateBot(t,e){return m(this.configuration).updateBot(t.id,t.updateBotBody,e).then(s=>s(this.axios,this.basePath))}updateConversation(t,e){return m(this.configuration).updateConversation(t.id,t.updateConversationBody,e).then(s=>s(this.axios,this.basePath))}updateFileMetadata(t,e){return m(this.configuration).updateFileMetadata(t.id,t.xBotId,t.xIntegrationId,t.xUserId,t.xUserRole,t.updateFileMetadataBody,e).then(s=>s(this.axios,this.basePath))}updateIntegration(t,e){return m(this.configuration).updateIntegration(t.id,t.updateIntegrationBody,e).then(s=>s(this.axios,this.basePath))}updateMessage(t,e){return m(this.configuration).updateMessage(t.id,t.updateMessageBody,e).then(s=>s(this.axios,this.basePath))}updateTable(t,e){return m(this.configuration).updateTable(t.table,t.updateTableBody,e).then(s=>s(this.axios,this.basePath))}updateTableRows(t,e){return m(this.configuration).updateTableRows(t.table,t.updateTableRowsBody,e).then(s=>s(this.axios,this.basePath))}updateTask(t,e){return m(this.configuration).updateTask(t.id,t.updateTaskBody,e).then(s=>s(this.axios,this.basePath))}updateUser(t,e){return m(this.configuration).updateUser(t.id,t.updateUserBody,e).then(s=>s(this.axios,this.basePath))}updateWorkspace(t,e){return m(this.configuration).updateWorkspace(t.id,t.updateWorkspaceBody,e).then(s=>s(this.axios,this.basePath))}updateWorkspaceMember(t,e){return m(this.configuration).updateWorkspaceMember(t.id,t.updateWorkspaceMemberBody,e).then(s=>s(this.axios,this.basePath))}upsertTableRows(t,e){return m(this.configuration).upsertTableRows(t.table,t.upsertTableRowsBody,e).then(s=>s(this.axios,this.basePath))}};import Me from"crypto";var Ge={getRandomValues:r=>new Uint8Array(r.map(()=>Math.floor(Math.random()*256)))},S=typeof window<"u"&&typeof window.document<"u"?window.crypto:Me;S.getRandomValues||(S=Ge);var P=class extends Error{constructor(e,s,n,a,o,i){super(a);this.code=e;this.description=s;this.type=n;this.message=a;this.error=o;this.id=i;this.id||(this.id=P.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let e=this.getPrefix(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,a=Array.from(S.getRandomValues(new Uint8Array(n))).map(o=>o.toString(16).padStart(2,"0")).join("").toUpperCase();return`${e}_${s}x${a}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Le=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,ue=r=>r instanceof P||Le(r)&&r.isApiError===!0,U=class extends P{constructor(t,e,s){super(500,"An unknown error occurred","Unknown",t,e,s)}},W=class extends P{constructor(t,e,s){super(500,"An internal error occurred","Internal",t,e,s)}},M=class extends P{constructor(t,e,s){super(401,"The request requires to be authenticated.","Unauthorized",t,e,s)}},G=class extends P{constructor(t,e,s){super(403,"The requested action can't be peform by this resource.","Forbidden",t,e,s)}},L=class extends P{constructor(t,e,s){super(413,"The request payload is too large.","PayloadTooLarge",t,e,s)}},F=class extends P{constructor(t,e,s){super(400,"The request payload is invalid.","InvalidPayload",t,e,s)}},_=class extends P{constructor(t,e,s){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,e,s)}},Q=class extends P{constructor(t,e,s){super(405,"The requested method does not exist.","MethodNotFound",t,e,s)}},j=class extends P{constructor(t,e,s){super(404,"The requested resource does not exist.","ResourceNotFound",t,e,s)}},N=class extends P{constructor(t,e,s){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,e,s)}},H=class extends P{constructor(t,e,s){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,e,s)}},$=class extends P{constructor(t,e,s){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,e,s)}},K=class extends P{constructor(t,e,s){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,e,s)}},J=class extends P{constructor(t,e,s){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,e,s)}},z=class extends P{constructor(t,e,s){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,e,s)}},Y=class extends P{constructor(t,e,s){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,e,s)}},Z=class extends P{constructor(t,e,s){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,e,s)}},X=class extends P{constructor(t,e,s){super(409,"The record attempted to be created already exists.","AlreadyExists",t,e,s)}},ee=class extends P{constructor(t,e,s){super(429,"The request has been rate limited.","RateLimited",t,e,s)}},te=class extends P{constructor(t,e,s){super(402,"A payment is required to perform this request.","PaymentRequired",t,e,s)}},se=class extends P{constructor(t,e,s){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,e,s)}},ae=class extends P{constructor(t,e,s){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,e,s)}},Fe={Unknown:U,Internal:W,Unauthorized:M,Forbidden:G,PayloadTooLarge:L,InvalidPayload:F,UnsupportedMediaType:_,MethodNotFound:Q,ResourceNotFound:j,InvalidJsonSchema:N,InvalidDataFormat:H,InvalidIdentifier:$,RelationConflict:K,ReferenceConstraint:J,ReferenceNotFound:z,InvalidQuery:Y,Runtime:Z,AlreadyExists:X,RateLimited:ee,PaymentRequired:te,QuotaExceeded:se,LimitExceeded:ae},V=r=>ue(r)?r:r instanceof Error?new U(r.message,r):typeof r=="string"?new U(r):_e(r);function _e(r){if(typeof r=="object"&&"code"in r&&"type"in r&&"id"in r&&"message"in r&&typeof r.type=="string"&&typeof r.message=="string"){let t=Fe[r.type];return t?new t(r.message,void 0,r.id||"UNKNOWN"):new U(`An unclassified API error occurred: ${r.message} (Type: ${r.type}, Code: ${r.code})`)}return new U("An invalid error occurred: "+JSON.stringify(r))}var w=class{_innerClient;constructor(t,e,s){this._innerClient=new O(t,e,s)}createConversation=t=>this._innerClient.createConversation({createConversationBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getConversation=t=>this._innerClient.getConversation(t).then(e=>e.data).catch(e=>{throw f(e)});listConversations=t=>this._innerClient.listConversations(t).then(e=>e.data).catch(e=>{throw f(e)});getOrCreateConversation=t=>this._innerClient.getOrCreateConversation({getOrCreateConversationBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateConversation=({id:t,...e})=>this._innerClient.updateConversation({id:t,updateConversationBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteConversation=t=>this._innerClient.deleteConversation(t).then(e=>e.data).catch(e=>{throw f(e)});listParticipants=t=>this._innerClient.listParticipants(t).then(e=>e.data).catch(e=>{throw f(e)});addParticipant=({id:t,...e})=>this._innerClient.addParticipant({id:t,addParticipantBody:e}).then(s=>s.data).catch(s=>{throw f(s)});getParticipant=t=>this._innerClient.getParticipant(t).then(e=>e.data).catch(e=>{throw f(e)});removeParticipant=t=>this._innerClient.removeParticipant(t).then(e=>e.data).catch(e=>{throw f(e)});createEvent=t=>this._innerClient.createEvent({createEventBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getEvent=t=>this._innerClient.getEvent(t).then(e=>e.data).catch(e=>{throw f(e)});listEvents=t=>this._innerClient.listEvents(t).then(e=>e.data).catch(e=>{throw f(e)});createMessage=t=>this._innerClient.createMessage({createMessageBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getOrCreateMessage=t=>this._innerClient.getOrCreateMessage({getOrCreateMessageBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getMessage=t=>this._innerClient.getMessage(t).then(e=>e.data).catch(e=>{throw f(e)});updateMessage=({id:t,...e})=>this._innerClient.updateMessage({id:t,updateMessageBody:e}).then(s=>s.data).catch(s=>{throw f(s)});listMessages=t=>this._innerClient.listMessages(t).then(e=>e.data).catch(e=>{throw f(e)});deleteMessage=t=>this._innerClient.deleteMessage(t).then(e=>e.data).catch(e=>{throw f(e)});createUser=t=>this._innerClient.createUser({createUserBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getUser=t=>this._innerClient.getUser(t).then(e=>e.data).catch(e=>{throw f(e)});listUsers=t=>this._innerClient.listUsers(t).then(e=>e.data).catch(e=>{throw f(e)});getOrCreateUser=t=>this._innerClient.getOrCreateUser({getOrCreateUserBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateUser=({id:t,...e})=>this._innerClient.updateUser({id:t,updateUserBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteUser=t=>this._innerClient.deleteUser(t).then(e=>e.data).catch(e=>{throw f(e)});getState=t=>this._innerClient.getState(t).then(e=>e.data).catch(e=>{throw f(e)});setState=({type:t,id:e,name:s,...n})=>this._innerClient.setState({type:t,id:e,name:s,setStateBody:n}).then(a=>a.data).catch(a=>{throw f(a)});getOrSetState=({type:t,id:e,name:s,...n})=>this._innerClient.getOrSetState({type:t,id:e,name:s,getOrSetStateBody:n}).then(a=>a.data).catch(a=>{throw f(a)});patchState=({type:t,id:e,name:s,...n})=>this._innerClient.patchState({type:t,id:e,name:s,patchStateBody:n}).then(a=>a.data).catch(a=>{throw f(a)});callAction=t=>this._innerClient.callAction({callActionBody:t}).then(e=>e.data).catch(e=>{throw f(e)});configureIntegration=t=>this._innerClient.configureIntegration({configureIntegrationBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getTask=t=>this._innerClient.getTask(t).then(e=>e.data).catch(e=>{throw f(e)});createTask=t=>this._innerClient.createTask({createTaskBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateTask=({id:t,...e})=>this._innerClient.updateTask({id:t,updateTaskBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteTask=t=>this._innerClient.deleteTask(t).then(e=>e.data).catch(e=>{throw f(e)});listTasks=t=>this._innerClient.listTasks(t).then(e=>e.data).catch(e=>{throw f(e)});runVrl=t=>this._innerClient.runVrl({runVrlBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getAccount=()=>this._innerClient.getAccount().then(t=>t.data).catch(t=>{throw f(t)});updateAccount=t=>this._innerClient.updateAccount({updateAccountBody:t}).then(e=>e.data).catch(e=>{throw f(e)});listPersonalAccessTokens=()=>this._innerClient.listPersonalAccessTokens().then(t=>t.data).catch(t=>{throw f(t)});createPersonalAccessToken=t=>this._innerClient.createPersonalAccessToken({createPersonalAccessTokenBody:t}).then(e=>e.data).catch(e=>{throw f(e)});deletePersonalAccessToken=t=>this._innerClient.deletePersonalAccessToken(t).then(e=>e.data).catch(e=>{throw f(e)});setAccountPreference=({key:t,...e})=>this._innerClient.setAccountPreference({key:t,setAccountPreferenceBody:e}).then(s=>s.data).catch(s=>{throw f(s)});getAccountPreference=t=>this._innerClient.getAccountPreference(t).then(e=>e.data).catch(e=>{throw f(e)});listPublicIntegrations=t=>this._innerClient.listPublicIntegrations(t).then(e=>e.data).catch(e=>{throw f(e)});getPublicIntegrationById=t=>this._innerClient.getPublicIntegrationById(t).then(e=>e.data).catch(e=>{throw f(e)});getPublicIntegration=t=>this._innerClient.getPublicIntegration(t).then(e=>e.data).catch(e=>{throw f(e)});createBot=t=>this._innerClient.createBot({createBotBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateBot=({id:t,...e})=>this._innerClient.updateBot({id:t,updateBotBody:e}).then(s=>s.data).catch(s=>{throw f(s)});transferBot=({id:t,...e})=>this._innerClient.transferBot({id:t,transferBotBody:e}).then(s=>s.data).catch(s=>{throw f(s)});listBots=t=>this._innerClient.listBots(t).then(e=>e.data).catch(e=>{throw f(e)});getBot=t=>this._innerClient.getBot(t).then(e=>e.data).catch(e=>{throw f(e)});deleteBot=t=>this._innerClient.deleteBot(t).then(e=>e.data).catch(e=>{throw f(e)});getBotLogs=t=>this._innerClient.getBotLogs(t).then(e=>e.data).catch(e=>{throw f(e)});getBotWebchat=t=>this._innerClient.getBotWebchat(t).then(e=>e.data).catch(e=>{throw f(e)});getBotAnalytics=t=>this._innerClient.getBotAnalytics(t).then(e=>e.data).catch(e=>{throw f(e)});listBotIssues=t=>this._innerClient.listBotIssues(t).then(e=>e.data).catch(e=>{throw f(e)});deleteBotIssue=t=>this._innerClient.deleteBotIssue(t).then(e=>e.data).catch(e=>{throw f(e)});listBotIssueEvents=t=>this._innerClient.listBotIssueEvents(t).then(e=>e.data).catch(e=>{throw f(e)});getWorkspaceBillingDetails=t=>this._innerClient.getWorkspaceBillingDetails(t).then(e=>e.data).catch(e=>{throw f(e)});setWorkspacePaymentMethod=({id:t,...e})=>this._innerClient.setWorkspacePaymentMethod({id:t,setWorkspacePaymentMethodBody:e}).then(s=>s.data).catch(s=>{throw f(s)});listWorkspaceInvoices=t=>this._innerClient.listWorkspaceInvoices(t).then(e=>e.data).catch(e=>{throw f(e)});getUpcomingInvoice=t=>this._innerClient.getUpcomingInvoice(t).then(e=>e.data).catch(e=>{throw f(e)});chargeWorkspaceUnpaidInvoices=({id:t,...e})=>this._innerClient.chargeWorkspaceUnpaidInvoices({id:t,chargeWorkspaceUnpaidInvoicesBody:e}).then(s=>s.data).catch(s=>{throw f(s)});createWorkspace=t=>this._innerClient.createWorkspace({createWorkspaceBody:t}).then(e=>e.data).catch(e=>{throw f(e)});getPublicWorkspace=t=>this._innerClient.getPublicWorkspace(t).then(e=>e.data).catch(e=>{throw f(e)});getWorkspace=t=>this._innerClient.getWorkspace(t).then(e=>e.data).catch(e=>{throw f(e)});listWorkspaceUsages=t=>this._innerClient.listWorkspaceUsages(t).then(e=>e.data).catch(e=>{throw f(e)});breakDownWorkspaceUsageByBot=t=>this._innerClient.breakDownWorkspaceUsageByBot(t).then(e=>e.data).catch(e=>{throw f(e)});getAllWorkspaceQuotaCompletion=()=>this._innerClient.getAllWorkspaceQuotaCompletion().then(t=>t.data).catch(t=>{throw f(t)});getWorkspaceQuota=t=>this._innerClient.getWorkspaceQuota(t).then(e=>e.data).catch(e=>{throw f(e)});listWorkspaceQuotas=t=>this._innerClient.listWorkspaceQuotas(t).then(e=>e.data).catch(e=>{throw f(e)});updateWorkspace=({id:t,...e})=>this._innerClient.updateWorkspace({id:t,updateWorkspaceBody:e}).then(s=>s.data).catch(s=>{throw f(s)});checkHandleAvailability=t=>this._innerClient.checkHandleAvailability({checkHandleAvailabilityBody:t}).then(e=>e.data).catch(e=>{throw f(e)});listWorkspaces=t=>this._innerClient.listWorkspaces(t).then(e=>e.data).catch(e=>{throw f(e)});changeWorkspacePlan=({id:t,...e})=>this._innerClient.changeWorkspacePlan({id:t,changeWorkspacePlanBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteWorkspace=t=>this._innerClient.deleteWorkspace(t).then(e=>e.data).catch(e=>{throw f(e)});getAuditRecords=t=>this._innerClient.getAuditRecords(t).then(e=>e.data).catch(e=>{throw f(e)});listWorkspaceMembers=t=>this._innerClient.listWorkspaceMembers(t).then(e=>e.data).catch(e=>{throw f(e)});deleteWorkspaceMember=t=>this._innerClient.deleteWorkspaceMember(t).then(e=>e.data).catch(e=>{throw f(e)});createWorkspaceMember=t=>this._innerClient.createWorkspaceMember({createWorkspaceMemberBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateWorkspaceMember=({id:t,...e})=>this._innerClient.updateWorkspaceMember({id:t,updateWorkspaceMemberBody:e}).then(s=>s.data).catch(s=>{throw f(s)});createIntegration=t=>this._innerClient.createIntegration({createIntegrationBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateIntegration=({id:t,...e})=>this._innerClient.updateIntegration({id:t,updateIntegrationBody:e}).then(s=>s.data).catch(s=>{throw f(s)});listIntegrations=t=>this._innerClient.listIntegrations(t).then(e=>e.data).catch(e=>{throw f(e)});getIntegration=t=>this._innerClient.getIntegration(t).then(e=>e.data).catch(e=>{throw f(e)});getIntegrationLogs=t=>this._innerClient.getIntegrationLogs(t).then(e=>e.data).catch(e=>{throw f(e)});getIntegrationByName=t=>this._innerClient.getIntegrationByName(t).then(e=>e.data).catch(e=>{throw f(e)});deleteIntegration=t=>this._innerClient.deleteIntegration(t).then(e=>e.data).catch(e=>{throw f(e)});getUsage=t=>this._innerClient.getUsage(t).then(e=>e.data).catch(e=>{throw f(e)});listUsageHistory=t=>this._innerClient.listUsageHistory(t).then(e=>e.data).catch(e=>{throw f(e)});changeAISpendQuota=t=>this._innerClient.changeAISpendQuota({changeAISpendQuotaBody:t}).then(e=>e.data).catch(e=>{throw f(e)});listActivities=t=>this._innerClient.listActivities(t).then(e=>e.data).catch(e=>{throw f(e)});introspect=t=>this._innerClient.introspect({introspectBody:t}).then(e=>e.data).catch(e=>{throw f(e)});createFile=({xFilename:t,xTags:e,xAccessPolicies:s,xIndex:n,contentType:a,contentLength:o,xBotId:i,xIntegrationId:l,xUserId:c,xUserRole:p,...x})=>this._innerClient.createFile({xFilename:t,xTags:e,xAccessPolicies:s,xIndex:n,contentType:a,contentLength:o,xBotId:i,xIntegrationId:l,xUserId:c,xUserRole:p,createFileBody:x}).then(b=>b.data).catch(b=>{throw f(b)});deleteFile=t=>this._innerClient.deleteFile(t).then(e=>e.data).catch(e=>{throw f(e)});listFiles=t=>this._innerClient.listFiles(t).then(e=>e.data).catch(e=>{throw f(e)});getFileMetadata=t=>this._innerClient.getFileMetadata(t).then(e=>e.data).catch(e=>{throw f(e)});getFileContent=t=>this._innerClient.getFileContent(t).then(e=>e.data).catch(e=>{throw f(e)});updateFileMetadata=({id:t,xBotId:e,xIntegrationId:s,xUserId:n,xUserRole:a,...o})=>this._innerClient.updateFileMetadata({id:t,xBotId:e,xIntegrationId:s,xUserId:n,xUserRole:a,updateFileMetadataBody:o}).then(i=>i.data).catch(i=>{throw f(i)});searchFiles=t=>this._innerClient.searchFiles(t).then(e=>e.data).catch(e=>{throw f(e)});listTables=t=>this._innerClient.listTables(t).then(e=>e.data).catch(e=>{throw f(e)});getTable=t=>this._innerClient.getTable(t).then(e=>e.data).catch(e=>{throw f(e)});createTable=t=>this._innerClient.createTable({createTableBody:t}).then(e=>e.data).catch(e=>{throw f(e)});updateTable=({table:t,...e})=>this._innerClient.updateTable({table:t,updateTableBody:e}).then(s=>s.data).catch(s=>{throw f(s)});renameTableColumn=({table:t,...e})=>this._innerClient.renameTableColumn({table:t,renameTableColumnBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteTable=t=>this._innerClient.deleteTable(t).then(e=>e.data).catch(e=>{throw f(e)});getTableRow=t=>this._innerClient.getTableRow(t).then(e=>e.data).catch(e=>{throw f(e)});findTableRows=({table:t,...e})=>this._innerClient.findTableRows({table:t,findTableRowsBody:e}).then(s=>s.data).catch(s=>{throw f(s)});createTableRows=({table:t,...e})=>this._innerClient.createTableRows({table:t,createTableRowsBody:e}).then(s=>s.data).catch(s=>{throw f(s)});deleteTableRows=({table:t,...e})=>this._innerClient.deleteTableRows({table:t,deleteTableRowsBody:e}).then(s=>s.data).catch(s=>{throw f(s)});updateTableRows=({table:t,...e})=>this._innerClient.updateTableRows({table:t,updateTableRowsBody:e}).then(s=>s.data).catch(s=>{throw f(s)});upsertTableRows=({table:t,...e})=>this._innerClient.upsertTableRows({table:t,upsertTableRowsBody:e}).then(s=>s.data).catch(s=>{throw f(s)})};function f(r){return Qe.isAxiosError(r)&&r.response?.data?V(r.response.data):V(r)}import*as La from"axios";var Ae=100*1024*1024,je=Ae,Ne=Ae,ge=class extends w{config;axiosClient;constructor(t={}){let e=pe(t),s=He(e);super(void 0,e.apiUrl,s),this.axiosClient=s,this.config=e}createFile=async t=>{let e={...this.config.headers,"x-filename":t.xFilename,"x-bot-id":t.xBotId??this.config.headers["x-bot-id"],"x-integration-id":t.xIntegrationId??this.config.headers["x-integration-id"],"x-user-id":t.xUserId??this.config.headers["x-user-id"],"x-tags":t.xTags,"x-index":t.xIndex,"x-access-policies":t.xAccessPolicies,"content-type":t.contentType??!1,"content-length":t.contentLength};return(await this.axiosClient.post("/v1/files",t.data,{headers:e,baseURL:this.config.apiUrl}).catch(n=>{throw $e(n)})).data}};function He(r){let{headers:t,withCredentials:e,timeout:s}=r;return ye.create({headers:t,withCredentials:e,timeout:s,maxBodyLength:je,maxContentLength:Ne,httpAgent:de?new he.default.Agent({keepAlive:!0}):void 0,httpsAgent:de?new Re.default.Agent({keepAlive:!0}):void 0})}function $e(r){return ye.isAxiosError(r)&&r.response?.data?V(r.response.data):V(r)}export{X as AlreadyExistsError,ge as Client,G as ForbiddenError,W as InternalError,H as InvalidDataFormatError,$ as InvalidIdentifierError,N as InvalidJsonSchemaError,F as InvalidPayloadError,Y as InvalidQueryError,ae as LimitExceededError,Q as MethodNotFoundError,L as PayloadTooLargeError,te as PaymentRequiredError,se as QuotaExceededError,ee as RateLimitedError,J as ReferenceConstraintError,z as ReferenceNotFoundError,K as RelationConflictError,j as ResourceNotFoundError,Z as RuntimeError,M as UnauthorizedError,U as UnknownError,_ as UnsupportedMediaTypeError,La as axios,V as errorFrom,ue as isApiError};
|
|
1
|
+
var Ae=Object.create;var ae=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var fe=Object.getOwnPropertyNames;var be=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var ne=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Ce=(r,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of fe(t))!xe.call(r,n)&&n!==e&&ae(r,n,{get:()=>t[n],enumerable:!(s=me(t,n))||s.enumerable});return r};var oe=(r,t,e)=>(e=r!=null?Ae(be(r)):{},Ce(t||!r||!r.__esModule?ae(e,"default",{value:r,enumerable:!0}):e,r));var re=ne(()=>{});var ie=ne(()=>{});var ye=oe(re()),he=oe(ie());import ge from"axios";import{isNode as ue}from"browser-or-node";import{isBrowser as le,isNode as Pe}from"browser-or-node";var ke="https://api.botpress.cloud",Be=6e4,Ie="BP_API_URL",Te="BP_BOT_ID",qe="BP_INTEGRATION_ID",Ue="BP_WORKSPACE_ID",Ve="BP_TOKEN";function ce(r){let t=ve(r),e={};t.workspaceId&&(e["x-workspace-id"]=t.workspaceId),t.botId&&(e["x-bot-id"]=t.botId),t.integrationId&&(e["x-integration-id"]=t.integrationId),t.token&&(e.Authorization=`Bearer ${t.token}`),e={...e,...t.headers};let s=t.apiUrl??ke,n=t.timeout??Be;return{apiUrl:s,timeout:n,withCredentials:le,headers:e}}function ve(r){return le?r:Pe?De(r):r}function De(r){let t={...r,apiUrl:r.apiUrl??process.env[Ie],botId:r.botId??process.env[Te],integrationId:r.integrationId??process.env[qe],workspaceId:r.workspaceId??process.env[Ue]},e=t.token??process.env[Ve];return e&&(t.token=e),t}import Le from"axios";import R from"axios";import Oe from"axios";var u="https://api.botpress.cloud".replace(/\/+$/,"");var q=class{constructor(t,e=u,s=Oe){this.basePath=e;this.axios=s;t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}configuration},U=class extends Error{constructor(e,s){super(s);this.field=e;this.name="RequiredError"}};var d="https://example.com",f=function(r,t,e){if(e==null)throw new U(t,`Required parameter ${t} was null or undefined when calling ${r}.`)};function O(r,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(s=>O(r,s,e)):Object.keys(t).forEach(s=>O(r,t[s],`${e}${e!==""?".":""}${s}`)):r.has(e)?r.append(e,t):r.set(e,t))}var g=function(r,...t){let e=new URLSearchParams(r.search);O(e,t),r.search=e.toString()},x=function(r,t,e){let s=typeof r!="string";return(s&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(r!==void 0?r:{}):r||""},y=function(r){return r.pathname+r.search+r.hash},h=function(r,t,e,s){return(n=t,a=e)=>{let o={...r.options,url:(s?.basePath||a)+r.url};return n.request(o)}};var we=function(r){return{addParticipant:async(t,e,s={})=>{f("addParticipant","id",t);let n="/v1/chat/conversations/{id}/participants".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},breakDownWorkspaceUsageByBot:async(t,e,s,n={})=>{f("breakDownWorkspaceUsageByBot","id",t),f("breakDownWorkspaceUsageByBot","type",e);let a="/v1/admin/workspaces/{id}/usages/by-bot".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},callAction:async(t,e={})=>{let s="/v1/chat/actions",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},changeAISpendQuota:async(t,e={})=>{let s="/v1/admin/quotas/ai-spend",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},changeWorkspacePlan:async(t,e,s={})=>{f("changeWorkspacePlan","id",t);let n="/v1/admin/workspaces/{id}/change-plan".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},chargeWorkspaceUnpaidInvoices:async(t,e,s={})=>{f("chargeWorkspaceUnpaidInvoices","id",t);let n="/v1/admin/workspaces/{id}/billing/invoices/charge-unpaid".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},checkHandleAvailability:async(t,e={})=>{let s="/v1/admin/workspaces/handle-availability",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},configureIntegration:async(t,e={})=>{let s="/v1/chat/integrations/configure",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createBot:async(t,e={})=>{let s="/v1/admin/bots",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createConversation:async(t,e={})=>{let s="/v1/chat/conversations",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createEvent:async(t,e={})=>{let s="/v1/chat/events",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createFile:async(t,e,s,n,a,o,i,l={})=>{f("createFile","xName",t);let c="/v1/files",p=new URL(c,d),b;r&&(b=r.baseOptions);let C={method:"POST",...b,...l},k={},B={};t!=null&&(k["x-name"]=String(t)),e!=null&&(k["x-tags"]=String(e)),s!=null&&(k["x-access-policies"]=String(s)),n!=null&&(k["x-index"]=String(n)),a!=null&&(k["Content-Type"]=String(a)),o!=null&&(k["Content-Length"]=String(o)),k["Content-Type"]="application/json",g(p,B);let D=b&&b.headers?b.headers:{};return C.headers={...k,...D,...l.headers},C.data=x(i,C,r),{url:y(p),options:C}},createIntegration:async(t,e={})=>{let s="/v1/admin/integrations",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createMessage:async(t,e={})=>{let s="/v1/chat/messages",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createPersonalAccessToken:async(t,e={})=>{let s="/v1/admin/account/pats",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createTable:async(t,e={})=>{let s="/v1/tables",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createTableRows:async(t,e,s={})=>{f("createTableRows","table",t);let n="/v1/tables/{table}/rows".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},createTask:async(t,e={})=>{let s="/v1/chat/tasks",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createUser:async(t,e={})=>{let s="/v1/chat/users",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createWorkspace:async(t,e={})=>{let s="/v1/admin/workspaces",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},createWorkspaceMember:async(t,e={})=>{let s="/v1/admin/workspace-members",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},deleteBot:async(t,e={})=>{f("deleteBot","id",t);let s="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteBotIssue:async(t,e,s={})=>{f("deleteBotIssue","id",t),f("deleteBotIssue","issueId",e);let n="/v1/admin/bots/{id}/issues/{issueId}".replace("{id}",encodeURIComponent(String(t))).replace("{issueId}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"DELETE",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},deleteConversation:async(t,e={})=>{f("deleteConversation","id",t);let s="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteFile:async(t,e={})=>{f("deleteFile","id",t);let s="/v1/files/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteIntegration:async(t,e={})=>{f("deleteIntegration","id",t);let s="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteMessage:async(t,e={})=>{f("deleteMessage","id",t);let s="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deletePersonalAccessToken:async(t,e={})=>{f("deletePersonalAccessToken","id",t);let s="/v1/admin/account/pats/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteTable:async(t,e={})=>{f("deleteTable","table",t);let s="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteTableRows:async(t,e,s={})=>{f("deleteTableRows","table",t);let n="/v1/tables/{table}/rows/delete".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},deleteTask:async(t,e={})=>{f("deleteTask","id",t);let s="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteUser:async(t,e={})=>{f("deleteUser","id",t);let s="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteWorkspace:async(t,e={})=>{f("deleteWorkspace","id",t);let s="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},deleteWorkspaceMember:async(t,e={})=>{f("deleteWorkspaceMember","id",t);let s="/v1/admin/workspace-members/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"DELETE",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},findTableRows:async(t,e,s={})=>{f("findTableRows","table",t);let n="/v1/tables/{table}/rows/find".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},getAccount:async(t={})=>{let e="/v1/admin/account/me",s=new URL(e,d),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};g(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:y(s),options:a}},getAccountPreference:async(t,e={})=>{f("getAccountPreference","key",t);let s="/v1/admin/account/preferences/{key}".replace("{key}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getAllWorkspaceQuotaCompletion:async(t={})=>{let e="/v1/admin/workspaces/usages/quota-completion",s=new URL(e,d),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};g(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:y(s),options:a}},getAuditRecords:async(t,e,s={})=>{f("getAuditRecords","id",t);let n="/v1/admin/workspaces/{id}/audit-records".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getBot:async(t,e={})=>{f("getBot","id",t);let s="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getBotAnalytics:async(t,e,s,n={})=>{f("getBotAnalytics","id",t),f("getBotAnalytics","startDate",e),f("getBotAnalytics","endDate",s);let a="/v1/admin/bots/{id}/analytics".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.startDate=e),s!==void 0&&(p.endDate=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},getBotLogs:async(t,e,s,n,a={})=>{f("getBotLogs","id",t),f("getBotLogs","timeStart",e),f("getBotLogs","timeEnd",s);let o="/v1/admin/bots/{id}/logs".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},b={};e!==void 0&&(b.timeStart=e),s!==void 0&&(b.timeEnd=s),n!==void 0&&(b.nextToken=n),g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},{url:y(i),options:c}},getBotWebchat:async(t,e,s={})=>{f("getBotWebchat","id",t),f("getBotWebchat","type",e);let n="/v1/admin/bots/{id}/webchat".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.type=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getConversation:async(t,e={})=>{f("getConversation","id",t);let s="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getEvent:async(t,e={})=>{f("getEvent","id",t);let s="/v1/chat/events/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getFileContent:async(t,e={})=>{f("getFileContent","id",t);let s="/v1/files/{id}/content".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getFileMetadata:async(t,e={})=>{f("getFileMetadata","id",t);let s="/v1/files/{id}/metadata".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getIntegration:async(t,e={})=>{f("getIntegration","id",t);let s="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getIntegrationByName:async(t,e,s={})=>{f("getIntegrationByName","name",t),f("getIntegrationByName","version",e);let n="/v1/admin/integrations/{name}/{version}".replace("{name}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getIntegrationLogs:async(t,e,s,n,a={})=>{f("getIntegrationLogs","id",t),f("getIntegrationLogs","timeStart",e),f("getIntegrationLogs","timeEnd",s);let o="/v1/admin/integrations/{id}/logs".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},b={};e!==void 0&&(b.timeStart=e),s!==void 0&&(b.timeEnd=s),n!==void 0&&(b.nextToken=n),g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},{url:y(i),options:c}},getMessage:async(t,e={})=>{f("getMessage","id",t);let s="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getOrCreateConversation:async(t,e={})=>{let s="/v1/chat/conversations/get-or-create",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},getOrCreateMessage:async(t,e={})=>{let s="/v1/chat/messages/get-or-create",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},getOrCreateUser:async(t,e={})=>{let s="/v1/chat/users/get-or-create",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},getOrSetState:async(t,e,s,n,a={})=>{f("getOrSetState","type",t),f("getOrSetState","id",e),f("getOrSetState","name",s);let o="/v1/chat/states/{type}/{id}/{name}/get-or-set".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},p={},b={};p["Content-Type"]="application/json",g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},c.data=x(n,c,r),{url:y(i),options:c}},getParticipant:async(t,e,s={})=>{f("getParticipant","id",t),f("getParticipant","userId",e);let n="/v1/chat/conversations/{id}/participants/{userId}".replace("{id}",encodeURIComponent(String(t))).replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getPublicIntegration:async(t,e,s={})=>{f("getPublicIntegration","name",t),f("getPublicIntegration","version",e);let n="/v1/admin/hub/integrations/{name}/{version}".replace("{name}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getPublicIntegrationById:async(t,e={})=>{f("getPublicIntegrationById","id",t);let s="/v1/admin/hub/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getPublicWorkspace:async(t,e={})=>{f("getPublicWorkspace","id",t);let s="/v1/admin/workspaces/{id}/public".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getState:async(t,e,s,n={})=>{f("getState","type",t),f("getState","id",e),f("getState","name",s);let a="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={};g(o,{});let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},getTable:async(t,e={})=>{f("getTable","table",t);let s="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getTableRow:async(t,e,s={})=>{f("getTableRow","table",t),f("getTableRow","id",e);let n="/v1/tables/{table}/row".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.id=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},getTask:async(t,e={})=>{f("getTask","id",t);let s="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getUpcomingInvoice:async(t,e={})=>{f("getUpcomingInvoice","id",t);let s="/v1/admin/workspaces/{id}/billing/upcoming-invoice".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getUsage:async(t,e,s,n={})=>{f("getUsage","type",t),f("getUsage","id",e);let a="/v1/admin/usages/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.type=t),s!==void 0&&(p.period=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},getUser:async(t,e={})=>{f("getUser","id",t);let s="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getWorkspace:async(t,e={})=>{f("getWorkspace","id",t);let s="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getWorkspaceBillingDetails:async(t,e={})=>{f("getWorkspaceBillingDetails","id",t);let s="/v1/admin/workspaces/{id}/billing/details".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},getWorkspaceQuota:async(t,e,s,n={})=>{f("getWorkspaceQuota","id",t),f("getWorkspaceQuota","type",e);let a="/v1/admin/workspaces/{id}/quota".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},introspect:async(t,e={})=>{let s="/v1/admin/introspect",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},listActivities:async(t,e,s,n={})=>{f("listActivities","taskId",t),f("listActivities","botId",e);let a="/v1/admin/activities",o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};s!==void 0&&(p.nextToken=s),t!==void 0&&(p.taskId=t),e!==void 0&&(p.botId=e),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listBotIssueEvents:async(t,e,s={})=>{f("listBotIssueEvents","id",t),f("listBotIssueEvents","issueId",e);let n="/v1/admin/bots/{id}/issues/{issueId}/events".replace("{id}",encodeURIComponent(String(t))).replace("{issueId}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listBotIssues:async(t,e,s={})=>{f("listBotIssues","id",t);let n="/v1/admin/bots/{id}/issues".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listBots:async(t,e,s={})=>{let n="/v1/admin/bots",a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};t!==void 0&&(c.dev=t),e!==void 0&&(c.nextToken=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listConversations:async(t,e,s,n={})=>{let a="/v1/chat/conversations",o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.tags=e),s&&(p.participantIds=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listEvents:async(t,e,s,n,a,o={})=>{let i="/v1/chat/events",l=new URL(i,d),c;r&&(c=r.baseOptions);let p={method:"GET",...c,...o},b={},C={};t!==void 0&&(C.nextToken=t),e!==void 0&&(C.type=e),s!==void 0&&(C.conversationId=s),n!==void 0&&(C.userId=n),a!==void 0&&(C.messageId=a),g(l,C);let k=c&&c.headers?c.headers:{};return p.headers={...b,...k,...o.headers},{url:y(l),options:p}},listFiles:async(t,e,s,n={})=>{f("listFiles","botId",t);let a="/v1/files/bot/{botId}".replace("{botId}",encodeURIComponent(String(t))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.nextToken=e),s!==void 0&&(p.tags=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listIntegrations:async(t,e,s,n,a={})=>{let o="/v1/admin/integrations",i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"GET",...l,...a},p={},b={};t!==void 0&&(b.nextToken=t),e!==void 0&&(b.name=e),s!==void 0&&(b.version=s),n!==void 0&&(b.dev=n),g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},{url:y(i),options:c}},listMessages:async(t,e,s,n={})=>{let a="/v1/chat/messages",o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.conversationId=e),s!==void 0&&(p.tags=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listParticipants:async(t,e,s={})=>{f("listParticipants","id",t);let n="/v1/chat/conversations/{id}/participants".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.nextToken=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listPersonalAccessTokens:async(t={})=>{let e="/v1/admin/account/pats",s=new URL(e,d),n;r&&(n=r.baseOptions);let a={method:"GET",...n,...t},o={};g(s,{});let l=n&&n.headers?n.headers:{};return a.headers={...o,...l,...t.headers},{url:y(s),options:a}},listPublicIntegrations:async(t,e,s,n={})=>{let a="/v1/admin/hub/integrations",o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.name=e),s!==void 0&&(p.version=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listTables:async(t,e={})=>{let s="/v1/tables",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.tags=t),g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},listTasks:async(t,e,s,n,a,o,i,l={})=>{let c="/v1/chat/tasks",p=new URL(c,d),b;r&&(b=r.baseOptions);let C={method:"GET",...b,...l},k={},B={};t!==void 0&&(B.nextToken=t),e!==void 0&&(B.tags=e),s!==void 0&&(B.conversationId=s),n!==void 0&&(B.userId=n),a!==void 0&&(B.parentTaskId=a),o&&(B.status=o),i!==void 0&&(B.type=i),g(p,B);let D=b&&b.headers?b.headers:{};return C.headers={...k,...D,...l.headers},{url:y(p),options:C}},listUsageHistory:async(t,e,s={})=>{f("listUsageHistory","type",t),f("listUsageHistory","id",e);let n="/v1/admin/usages/{id}/history".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};t!==void 0&&(c.type=t),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listUsers:async(t,e,s,n={})=>{let a="/v1/chat/users",o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};t!==void 0&&(p.nextToken=t),e!==void 0&&(p.conversationId=e),s!==void 0&&(p.tags=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listWorkspaceInvoices:async(t,e={})=>{f("listWorkspaceInvoices","id",t);let s="/v1/admin/workspaces/{id}/billing/invoices".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={};g(n,{});let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},listWorkspaceMembers:async(t,e={})=>{let s="/v1/admin/workspace-members",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.nextToken=t),g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},listWorkspaceQuotas:async(t,e,s={})=>{f("listWorkspaceQuotas","id",t);let n="/v1/admin/workspaces/{id}/quotas".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"GET",...o,...s},l={},c={};e!==void 0&&(c.period=e),g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},listWorkspaceUsages:async(t,e,s,n={})=>{f("listWorkspaceUsages","id",t),f("listWorkspaceUsages","type",e);let a="/v1/admin/workspaces/{id}/usages".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,d),i;r&&(i=r.baseOptions);let l={method:"GET",...i,...n},c={},p={};e!==void 0&&(p.type=e),s!==void 0&&(p.period=s),g(o,p);let b=i&&i.headers?i.headers:{};return l.headers={...c,...b,...n.headers},{url:y(o),options:l}},listWorkspaces:async(t,e={})=>{let s="/v1/admin/workspaces",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...e},i={},l={};t!==void 0&&(l.nextToken=t),g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},{url:y(n),options:o}},patchState:async(t,e,s,n,a={})=>{f("patchState","type",t),f("patchState","id",e),f("patchState","name",s);let o="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"PATCH",...l,...a},p={},b={};p["Content-Type"]="application/json",g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},c.data=x(n,c,r),{url:y(i),options:c}},removeParticipant:async(t,e,s={})=>{f("removeParticipant","id",t),f("removeParticipant","userId",e);let n="/v1/chat/conversations/{id}/participants/{userId}".replace("{id}",encodeURIComponent(String(t))).replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"DELETE",...o,...s},l={};g(a,{});let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},{url:y(a),options:i}},renameTableColumn:async(t,e,s={})=>{f("renameTableColumn","table",t);let n="/v1/tables/{table}/column".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},runVrl:async(t,e={})=>{let s="/v1/admin/helper/vrl",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"POST",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},searchFiles:async(t,e,s,n,a,o={})=>{f("searchFiles","botId",t),f("searchFiles","query",e);let i="/v1/files/bot/{botId}/search".replace("{botId}",encodeURIComponent(String(t))),l=new URL(i,d),c;r&&(c=r.baseOptions);let p={method:"GET",...c,...o},b={},C={};s!==void 0&&(C.tags=s),e!==void 0&&(C.query=e),n!==void 0&&(C.contextDepth=n),a!==void 0&&(C.limit=a),g(l,C);let k=c&&c.headers?c.headers:{};return p.headers={...b,...k,...o.headers},{url:y(l),options:p}},setAccountPreference:async(t,e,s={})=>{f("setAccountPreference","key",t);let n="/v1/admin/account/preferences/{key}".replace("{key}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},setState:async(t,e,s,n,a={})=>{f("setState","type",t),f("setState","id",e),f("setState","name",s);let o="/v1/chat/states/{type}/{id}/{name}".replace("{type}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))).replace("{name}",encodeURIComponent(String(s))),i=new URL(o,d),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},p={},b={};p["Content-Type"]="application/json",g(i,b);let C=l&&l.headers?l.headers:{};return c.headers={...p,...C,...a.headers},c.data=x(n,c,r),{url:y(i),options:c}},setWorkspacePaymentMethod:async(t,e,s={})=>{f("setWorkspacePaymentMethod","id",t);let n="/v1/admin/workspaces/{id}/billing/payment-method".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},transferBot:async(t,e,s={})=>{f("transferBot","id",t);let n="/v1/admin/bots/{id}/transfer".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateAccount:async(t,e={})=>{let s="/v1/admin/account/me",n=new URL(s,d),a;r&&(a=r.baseOptions);let o={method:"PUT",...a,...e},i={},l={};i["Content-Type"]="application/json",g(n,l);let c=a&&a.headers?a.headers:{};return o.headers={...i,...c,...e.headers},o.data=x(t,o,r),{url:y(n),options:o}},updateBot:async(t,e,s={})=>{f("updateBot","id",t);let n="/v1/admin/bots/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateConversation:async(t,e,s={})=>{f("updateConversation","id",t);let n="/v1/chat/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateFileMetadata:async(t,e,s={})=>{f("updateFileMetadata","id",t);let n="/v1/files/{id}/metadata".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateIntegration:async(t,e,s={})=>{f("updateIntegration","id",t);let n="/v1/admin/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateMessage:async(t,e,s={})=>{f("updateMessage","id",t);let n="/v1/chat/messages/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateTable:async(t,e,s={})=>{f("updateTable","table",t);let n="/v1/tables/{table}".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateTableRows:async(t,e,s={})=>{f("updateTableRows","table",t);let n="/v1/tables/{table}/rows".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateTask:async(t,e,s={})=>{f("updateTask","id",t);let n="/v1/chat/tasks/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateUser:async(t,e,s={})=>{f("updateUser","id",t);let n="/v1/chat/users/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateWorkspace:async(t,e,s={})=>{f("updateWorkspace","id",t);let n="/v1/admin/workspaces/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},updateWorkspaceMember:async(t,e,s={})=>{f("updateWorkspaceMember","id",t);let n="/v1/admin/workspace-members/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"PUT",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}},upsertTableRows:async(t,e,s={})=>{f("upsertTableRows","table",t);let n="/v1/tables/{table}/rows/upsert".replace("{table}",encodeURIComponent(String(t))),a=new URL(n,d),o;r&&(o=r.baseOptions);let i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",g(a,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=x(e,i,r),{url:y(a),options:i}}}},A=function(r){let t=we(r);return{async addParticipant(e,s,n){let a=await t.addParticipant(e,s,n);return h(a,R,u,r)},async breakDownWorkspaceUsageByBot(e,s,n,a){let o=await t.breakDownWorkspaceUsageByBot(e,s,n,a);return h(o,R,u,r)},async callAction(e,s){let n=await t.callAction(e,s);return h(n,R,u,r)},async changeAISpendQuota(e,s){let n=await t.changeAISpendQuota(e,s);return h(n,R,u,r)},async changeWorkspacePlan(e,s,n){let a=await t.changeWorkspacePlan(e,s,n);return h(a,R,u,r)},async chargeWorkspaceUnpaidInvoices(e,s,n){let a=await t.chargeWorkspaceUnpaidInvoices(e,s,n);return h(a,R,u,r)},async checkHandleAvailability(e,s){let n=await t.checkHandleAvailability(e,s);return h(n,R,u,r)},async configureIntegration(e,s){let n=await t.configureIntegration(e,s);return h(n,R,u,r)},async createBot(e,s){let n=await t.createBot(e,s);return h(n,R,u,r)},async createConversation(e,s){let n=await t.createConversation(e,s);return h(n,R,u,r)},async createEvent(e,s){let n=await t.createEvent(e,s);return h(n,R,u,r)},async createFile(e,s,n,a,o,i,l,c){let p=await t.createFile(e,s,n,a,o,i,l,c);return h(p,R,u,r)},async createIntegration(e,s){let n=await t.createIntegration(e,s);return h(n,R,u,r)},async createMessage(e,s){let n=await t.createMessage(e,s);return h(n,R,u,r)},async createPersonalAccessToken(e,s){let n=await t.createPersonalAccessToken(e,s);return h(n,R,u,r)},async createTable(e,s){let n=await t.createTable(e,s);return h(n,R,u,r)},async createTableRows(e,s,n){let a=await t.createTableRows(e,s,n);return h(a,R,u,r)},async createTask(e,s){let n=await t.createTask(e,s);return h(n,R,u,r)},async createUser(e,s){let n=await t.createUser(e,s);return h(n,R,u,r)},async createWorkspace(e,s){let n=await t.createWorkspace(e,s);return h(n,R,u,r)},async createWorkspaceMember(e,s){let n=await t.createWorkspaceMember(e,s);return h(n,R,u,r)},async deleteBot(e,s){let n=await t.deleteBot(e,s);return h(n,R,u,r)},async deleteBotIssue(e,s,n){let a=await t.deleteBotIssue(e,s,n);return h(a,R,u,r)},async deleteConversation(e,s){let n=await t.deleteConversation(e,s);return h(n,R,u,r)},async deleteFile(e,s){let n=await t.deleteFile(e,s);return h(n,R,u,r)},async deleteIntegration(e,s){let n=await t.deleteIntegration(e,s);return h(n,R,u,r)},async deleteMessage(e,s){let n=await t.deleteMessage(e,s);return h(n,R,u,r)},async deletePersonalAccessToken(e,s){let n=await t.deletePersonalAccessToken(e,s);return h(n,R,u,r)},async deleteTable(e,s){let n=await t.deleteTable(e,s);return h(n,R,u,r)},async deleteTableRows(e,s,n){let a=await t.deleteTableRows(e,s,n);return h(a,R,u,r)},async deleteTask(e,s){let n=await t.deleteTask(e,s);return h(n,R,u,r)},async deleteUser(e,s){let n=await t.deleteUser(e,s);return h(n,R,u,r)},async deleteWorkspace(e,s){let n=await t.deleteWorkspace(e,s);return h(n,R,u,r)},async deleteWorkspaceMember(e,s){let n=await t.deleteWorkspaceMember(e,s);return h(n,R,u,r)},async findTableRows(e,s,n){let a=await t.findTableRows(e,s,n);return h(a,R,u,r)},async getAccount(e){let s=await t.getAccount(e);return h(s,R,u,r)},async getAccountPreference(e,s){let n=await t.getAccountPreference(e,s);return h(n,R,u,r)},async getAllWorkspaceQuotaCompletion(e){let s=await t.getAllWorkspaceQuotaCompletion(e);return h(s,R,u,r)},async getAuditRecords(e,s,n){let a=await t.getAuditRecords(e,s,n);return h(a,R,u,r)},async getBot(e,s){let n=await t.getBot(e,s);return h(n,R,u,r)},async getBotAnalytics(e,s,n,a){let o=await t.getBotAnalytics(e,s,n,a);return h(o,R,u,r)},async getBotLogs(e,s,n,a,o){let i=await t.getBotLogs(e,s,n,a,o);return h(i,R,u,r)},async getBotWebchat(e,s,n){let a=await t.getBotWebchat(e,s,n);return h(a,R,u,r)},async getConversation(e,s){let n=await t.getConversation(e,s);return h(n,R,u,r)},async getEvent(e,s){let n=await t.getEvent(e,s);return h(n,R,u,r)},async getFileContent(e,s){let n=await t.getFileContent(e,s);return h(n,R,u,r)},async getFileMetadata(e,s){let n=await t.getFileMetadata(e,s);return h(n,R,u,r)},async getIntegration(e,s){let n=await t.getIntegration(e,s);return h(n,R,u,r)},async getIntegrationByName(e,s,n){let a=await t.getIntegrationByName(e,s,n);return h(a,R,u,r)},async getIntegrationLogs(e,s,n,a,o){let i=await t.getIntegrationLogs(e,s,n,a,o);return h(i,R,u,r)},async getMessage(e,s){let n=await t.getMessage(e,s);return h(n,R,u,r)},async getOrCreateConversation(e,s){let n=await t.getOrCreateConversation(e,s);return h(n,R,u,r)},async getOrCreateMessage(e,s){let n=await t.getOrCreateMessage(e,s);return h(n,R,u,r)},async getOrCreateUser(e,s){let n=await t.getOrCreateUser(e,s);return h(n,R,u,r)},async getOrSetState(e,s,n,a,o){let i=await t.getOrSetState(e,s,n,a,o);return h(i,R,u,r)},async getParticipant(e,s,n){let a=await t.getParticipant(e,s,n);return h(a,R,u,r)},async getPublicIntegration(e,s,n){let a=await t.getPublicIntegration(e,s,n);return h(a,R,u,r)},async getPublicIntegrationById(e,s){let n=await t.getPublicIntegrationById(e,s);return h(n,R,u,r)},async getPublicWorkspace(e,s){let n=await t.getPublicWorkspace(e,s);return h(n,R,u,r)},async getState(e,s,n,a){let o=await t.getState(e,s,n,a);return h(o,R,u,r)},async getTable(e,s){let n=await t.getTable(e,s);return h(n,R,u,r)},async getTableRow(e,s,n){let a=await t.getTableRow(e,s,n);return h(a,R,u,r)},async getTask(e,s){let n=await t.getTask(e,s);return h(n,R,u,r)},async getUpcomingInvoice(e,s){let n=await t.getUpcomingInvoice(e,s);return h(n,R,u,r)},async getUsage(e,s,n,a){let o=await t.getUsage(e,s,n,a);return h(o,R,u,r)},async getUser(e,s){let n=await t.getUser(e,s);return h(n,R,u,r)},async getWorkspace(e,s){let n=await t.getWorkspace(e,s);return h(n,R,u,r)},async getWorkspaceBillingDetails(e,s){let n=await t.getWorkspaceBillingDetails(e,s);return h(n,R,u,r)},async getWorkspaceQuota(e,s,n,a){let o=await t.getWorkspaceQuota(e,s,n,a);return h(o,R,u,r)},async introspect(e,s){let n=await t.introspect(e,s);return h(n,R,u,r)},async listActivities(e,s,n,a){let o=await t.listActivities(e,s,n,a);return h(o,R,u,r)},async listBotIssueEvents(e,s,n){let a=await t.listBotIssueEvents(e,s,n);return h(a,R,u,r)},async listBotIssues(e,s,n){let a=await t.listBotIssues(e,s,n);return h(a,R,u,r)},async listBots(e,s,n){let a=await t.listBots(e,s,n);return h(a,R,u,r)},async listConversations(e,s,n,a){let o=await t.listConversations(e,s,n,a);return h(o,R,u,r)},async listEvents(e,s,n,a,o,i){let l=await t.listEvents(e,s,n,a,o,i);return h(l,R,u,r)},async listFiles(e,s,n,a){let o=await t.listFiles(e,s,n,a);return h(o,R,u,r)},async listIntegrations(e,s,n,a,o){let i=await t.listIntegrations(e,s,n,a,o);return h(i,R,u,r)},async listMessages(e,s,n,a){let o=await t.listMessages(e,s,n,a);return h(o,R,u,r)},async listParticipants(e,s,n){let a=await t.listParticipants(e,s,n);return h(a,R,u,r)},async listPersonalAccessTokens(e){let s=await t.listPersonalAccessTokens(e);return h(s,R,u,r)},async listPublicIntegrations(e,s,n,a){let o=await t.listPublicIntegrations(e,s,n,a);return h(o,R,u,r)},async listTables(e,s){let n=await t.listTables(e,s);return h(n,R,u,r)},async listTasks(e,s,n,a,o,i,l,c){let p=await t.listTasks(e,s,n,a,o,i,l,c);return h(p,R,u,r)},async listUsageHistory(e,s,n){let a=await t.listUsageHistory(e,s,n);return h(a,R,u,r)},async listUsers(e,s,n,a){let o=await t.listUsers(e,s,n,a);return h(o,R,u,r)},async listWorkspaceInvoices(e,s){let n=await t.listWorkspaceInvoices(e,s);return h(n,R,u,r)},async listWorkspaceMembers(e,s){let n=await t.listWorkspaceMembers(e,s);return h(n,R,u,r)},async listWorkspaceQuotas(e,s,n){let a=await t.listWorkspaceQuotas(e,s,n);return h(a,R,u,r)},async listWorkspaceUsages(e,s,n,a){let o=await t.listWorkspaceUsages(e,s,n,a);return h(o,R,u,r)},async listWorkspaces(e,s){let n=await t.listWorkspaces(e,s);return h(n,R,u,r)},async patchState(e,s,n,a,o){let i=await t.patchState(e,s,n,a,o);return h(i,R,u,r)},async removeParticipant(e,s,n){let a=await t.removeParticipant(e,s,n);return h(a,R,u,r)},async renameTableColumn(e,s,n){let a=await t.renameTableColumn(e,s,n);return h(a,R,u,r)},async runVrl(e,s){let n=await t.runVrl(e,s);return h(n,R,u,r)},async searchFiles(e,s,n,a,o,i){let l=await t.searchFiles(e,s,n,a,o,i);return h(l,R,u,r)},async setAccountPreference(e,s,n){let a=await t.setAccountPreference(e,s,n);return h(a,R,u,r)},async setState(e,s,n,a,o){let i=await t.setState(e,s,n,a,o);return h(i,R,u,r)},async setWorkspacePaymentMethod(e,s,n){let a=await t.setWorkspacePaymentMethod(e,s,n);return h(a,R,u,r)},async transferBot(e,s,n){let a=await t.transferBot(e,s,n);return h(a,R,u,r)},async updateAccount(e,s){let n=await t.updateAccount(e,s);return h(n,R,u,r)},async updateBot(e,s,n){let a=await t.updateBot(e,s,n);return h(a,R,u,r)},async updateConversation(e,s,n){let a=await t.updateConversation(e,s,n);return h(a,R,u,r)},async updateFileMetadata(e,s,n){let a=await t.updateFileMetadata(e,s,n);return h(a,R,u,r)},async updateIntegration(e,s,n){let a=await t.updateIntegration(e,s,n);return h(a,R,u,r)},async updateMessage(e,s,n){let a=await t.updateMessage(e,s,n);return h(a,R,u,r)},async updateTable(e,s,n){let a=await t.updateTable(e,s,n);return h(a,R,u,r)},async updateTableRows(e,s,n){let a=await t.updateTableRows(e,s,n);return h(a,R,u,r)},async updateTask(e,s,n){let a=await t.updateTask(e,s,n);return h(a,R,u,r)},async updateUser(e,s,n){let a=await t.updateUser(e,s,n);return h(a,R,u,r)},async updateWorkspace(e,s,n){let a=await t.updateWorkspace(e,s,n);return h(a,R,u,r)},async updateWorkspaceMember(e,s,n){let a=await t.updateWorkspaceMember(e,s,n);return h(a,R,u,r)},async upsertTableRows(e,s,n){let a=await t.upsertTableRows(e,s,n);return h(a,R,u,r)}}};var V=class extends q{addParticipant(t,e){return A(this.configuration).addParticipant(t.id,t.addParticipantBody,e).then(s=>s(this.axios,this.basePath))}breakDownWorkspaceUsageByBot(t,e){return A(this.configuration).breakDownWorkspaceUsageByBot(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}callAction(t={},e){return A(this.configuration).callAction(t.callActionBody,e).then(s=>s(this.axios,this.basePath))}changeAISpendQuota(t={},e){return A(this.configuration).changeAISpendQuota(t.changeAISpendQuotaBody,e).then(s=>s(this.axios,this.basePath))}changeWorkspacePlan(t,e){return A(this.configuration).changeWorkspacePlan(t.id,t.changeWorkspacePlanBody,e).then(s=>s(this.axios,this.basePath))}chargeWorkspaceUnpaidInvoices(t,e){return A(this.configuration).chargeWorkspaceUnpaidInvoices(t.id,t.chargeWorkspaceUnpaidInvoicesBody,e).then(s=>s(this.axios,this.basePath))}checkHandleAvailability(t={},e){return A(this.configuration).checkHandleAvailability(t.checkHandleAvailabilityBody,e).then(s=>s(this.axios,this.basePath))}configureIntegration(t={},e){return A(this.configuration).configureIntegration(t.configureIntegrationBody,e).then(s=>s(this.axios,this.basePath))}createBot(t={},e){return A(this.configuration).createBot(t.createBotBody,e).then(s=>s(this.axios,this.basePath))}createConversation(t={},e){return A(this.configuration).createConversation(t.createConversationBody,e).then(s=>s(this.axios,this.basePath))}createEvent(t={},e){return A(this.configuration).createEvent(t.createEventBody,e).then(s=>s(this.axios,this.basePath))}createFile(t,e){return A(this.configuration).createFile(t.xName,t.xTags,t.xAccessPolicies,t.xIndex,t.contentType,t.contentLength,t.createFileBody,e).then(s=>s(this.axios,this.basePath))}createIntegration(t={},e){return A(this.configuration).createIntegration(t.createIntegrationBody,e).then(s=>s(this.axios,this.basePath))}createMessage(t={},e){return A(this.configuration).createMessage(t.createMessageBody,e).then(s=>s(this.axios,this.basePath))}createPersonalAccessToken(t={},e){return A(this.configuration).createPersonalAccessToken(t.createPersonalAccessTokenBody,e).then(s=>s(this.axios,this.basePath))}createTable(t={},e){return A(this.configuration).createTable(t.createTableBody,e).then(s=>s(this.axios,this.basePath))}createTableRows(t,e){return A(this.configuration).createTableRows(t.table,t.createTableRowsBody,e).then(s=>s(this.axios,this.basePath))}createTask(t={},e){return A(this.configuration).createTask(t.createTaskBody,e).then(s=>s(this.axios,this.basePath))}createUser(t={},e){return A(this.configuration).createUser(t.createUserBody,e).then(s=>s(this.axios,this.basePath))}createWorkspace(t={},e){return A(this.configuration).createWorkspace(t.createWorkspaceBody,e).then(s=>s(this.axios,this.basePath))}createWorkspaceMember(t={},e){return A(this.configuration).createWorkspaceMember(t.createWorkspaceMemberBody,e).then(s=>s(this.axios,this.basePath))}deleteBot(t,e){return A(this.configuration).deleteBot(t.id,e).then(s=>s(this.axios,this.basePath))}deleteBotIssue(t,e){return A(this.configuration).deleteBotIssue(t.id,t.issueId,e).then(s=>s(this.axios,this.basePath))}deleteConversation(t,e){return A(this.configuration).deleteConversation(t.id,e).then(s=>s(this.axios,this.basePath))}deleteFile(t,e){return A(this.configuration).deleteFile(t.id,e).then(s=>s(this.axios,this.basePath))}deleteIntegration(t,e){return A(this.configuration).deleteIntegration(t.id,e).then(s=>s(this.axios,this.basePath))}deleteMessage(t,e){return A(this.configuration).deleteMessage(t.id,e).then(s=>s(this.axios,this.basePath))}deletePersonalAccessToken(t,e){return A(this.configuration).deletePersonalAccessToken(t.id,e).then(s=>s(this.axios,this.basePath))}deleteTable(t,e){return A(this.configuration).deleteTable(t.table,e).then(s=>s(this.axios,this.basePath))}deleteTableRows(t,e){return A(this.configuration).deleteTableRows(t.table,t.deleteTableRowsBody,e).then(s=>s(this.axios,this.basePath))}deleteTask(t,e){return A(this.configuration).deleteTask(t.id,e).then(s=>s(this.axios,this.basePath))}deleteUser(t,e){return A(this.configuration).deleteUser(t.id,e).then(s=>s(this.axios,this.basePath))}deleteWorkspace(t,e){return A(this.configuration).deleteWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}deleteWorkspaceMember(t,e){return A(this.configuration).deleteWorkspaceMember(t.id,e).then(s=>s(this.axios,this.basePath))}findTableRows(t,e){return A(this.configuration).findTableRows(t.table,t.findTableRowsBody,e).then(s=>s(this.axios,this.basePath))}getAccount(t){return A(this.configuration).getAccount(t).then(e=>e(this.axios,this.basePath))}getAccountPreference(t,e){return A(this.configuration).getAccountPreference(t.key,e).then(s=>s(this.axios,this.basePath))}getAllWorkspaceQuotaCompletion(t){return A(this.configuration).getAllWorkspaceQuotaCompletion(t).then(e=>e(this.axios,this.basePath))}getAuditRecords(t,e){return A(this.configuration).getAuditRecords(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getBot(t,e){return A(this.configuration).getBot(t.id,e).then(s=>s(this.axios,this.basePath))}getBotAnalytics(t,e){return A(this.configuration).getBotAnalytics(t.id,t.startDate,t.endDate,e).then(s=>s(this.axios,this.basePath))}getBotLogs(t,e){return A(this.configuration).getBotLogs(t.id,t.timeStart,t.timeEnd,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getBotWebchat(t,e){return A(this.configuration).getBotWebchat(t.id,t.type,e).then(s=>s(this.axios,this.basePath))}getConversation(t,e){return A(this.configuration).getConversation(t.id,e).then(s=>s(this.axios,this.basePath))}getEvent(t,e){return A(this.configuration).getEvent(t.id,e).then(s=>s(this.axios,this.basePath))}getFileContent(t,e){return A(this.configuration).getFileContent(t.id,e).then(s=>s(this.axios,this.basePath))}getFileMetadata(t,e){return A(this.configuration).getFileMetadata(t.id,e).then(s=>s(this.axios,this.basePath))}getIntegration(t,e){return A(this.configuration).getIntegration(t.id,e).then(s=>s(this.axios,this.basePath))}getIntegrationByName(t,e){return A(this.configuration).getIntegrationByName(t.name,t.version,e).then(s=>s(this.axios,this.basePath))}getIntegrationLogs(t,e){return A(this.configuration).getIntegrationLogs(t.id,t.timeStart,t.timeEnd,t.nextToken,e).then(s=>s(this.axios,this.basePath))}getMessage(t,e){return A(this.configuration).getMessage(t.id,e).then(s=>s(this.axios,this.basePath))}getOrCreateConversation(t={},e){return A(this.configuration).getOrCreateConversation(t.getOrCreateConversationBody,e).then(s=>s(this.axios,this.basePath))}getOrCreateMessage(t={},e){return A(this.configuration).getOrCreateMessage(t.getOrCreateMessageBody,e).then(s=>s(this.axios,this.basePath))}getOrCreateUser(t={},e){return A(this.configuration).getOrCreateUser(t.getOrCreateUserBody,e).then(s=>s(this.axios,this.basePath))}getOrSetState(t,e){return A(this.configuration).getOrSetState(t.type,t.id,t.name,t.getOrSetStateBody,e).then(s=>s(this.axios,this.basePath))}getParticipant(t,e){return A(this.configuration).getParticipant(t.id,t.userId,e).then(s=>s(this.axios,this.basePath))}getPublicIntegration(t,e){return A(this.configuration).getPublicIntegration(t.name,t.version,e).then(s=>s(this.axios,this.basePath))}getPublicIntegrationById(t,e){return A(this.configuration).getPublicIntegrationById(t.id,e).then(s=>s(this.axios,this.basePath))}getPublicWorkspace(t,e){return A(this.configuration).getPublicWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}getState(t,e){return A(this.configuration).getState(t.type,t.id,t.name,e).then(s=>s(this.axios,this.basePath))}getTable(t,e){return A(this.configuration).getTable(t.table,e).then(s=>s(this.axios,this.basePath))}getTableRow(t,e){return A(this.configuration).getTableRow(t.table,t.id,e).then(s=>s(this.axios,this.basePath))}getTask(t,e){return A(this.configuration).getTask(t.id,e).then(s=>s(this.axios,this.basePath))}getUpcomingInvoice(t,e){return A(this.configuration).getUpcomingInvoice(t.id,e).then(s=>s(this.axios,this.basePath))}getUsage(t,e){return A(this.configuration).getUsage(t.type,t.id,t.period,e).then(s=>s(this.axios,this.basePath))}getUser(t,e){return A(this.configuration).getUser(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspace(t,e){return A(this.configuration).getWorkspace(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspaceBillingDetails(t,e){return A(this.configuration).getWorkspaceBillingDetails(t.id,e).then(s=>s(this.axios,this.basePath))}getWorkspaceQuota(t,e){return A(this.configuration).getWorkspaceQuota(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}introspect(t={},e){return A(this.configuration).introspect(t.introspectBody,e).then(s=>s(this.axios,this.basePath))}listActivities(t,e){return A(this.configuration).listActivities(t.taskId,t.botId,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listBotIssueEvents(t,e){return A(this.configuration).listBotIssueEvents(t.id,t.issueId,e).then(s=>s(this.axios,this.basePath))}listBotIssues(t,e){return A(this.configuration).listBotIssues(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listBots(t={},e){return A(this.configuration).listBots(t.dev,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listConversations(t={},e){return A(this.configuration).listConversations(t.nextToken,t.tags,t.participantIds,e).then(s=>s(this.axios,this.basePath))}listEvents(t={},e){return A(this.configuration).listEvents(t.nextToken,t.type,t.conversationId,t.userId,t.messageId,e).then(s=>s(this.axios,this.basePath))}listFiles(t,e){return A(this.configuration).listFiles(t.botId,t.nextToken,t.tags,e).then(s=>s(this.axios,this.basePath))}listIntegrations(t={},e){return A(this.configuration).listIntegrations(t.nextToken,t.name,t.version,t.dev,e).then(s=>s(this.axios,this.basePath))}listMessages(t={},e){return A(this.configuration).listMessages(t.nextToken,t.conversationId,t.tags,e).then(s=>s(this.axios,this.basePath))}listParticipants(t,e){return A(this.configuration).listParticipants(t.id,t.nextToken,e).then(s=>s(this.axios,this.basePath))}listPersonalAccessTokens(t){return A(this.configuration).listPersonalAccessTokens(t).then(e=>e(this.axios,this.basePath))}listPublicIntegrations(t={},e){return A(this.configuration).listPublicIntegrations(t.nextToken,t.name,t.version,e).then(s=>s(this.axios,this.basePath))}listTables(t={},e){return A(this.configuration).listTables(t.tags,e).then(s=>s(this.axios,this.basePath))}listTasks(t={},e){return A(this.configuration).listTasks(t.nextToken,t.tags,t.conversationId,t.userId,t.parentTaskId,t.status,t.type,e).then(s=>s(this.axios,this.basePath))}listUsageHistory(t,e){return A(this.configuration).listUsageHistory(t.type,t.id,e).then(s=>s(this.axios,this.basePath))}listUsers(t={},e){return A(this.configuration).listUsers(t.nextToken,t.conversationId,t.tags,e).then(s=>s(this.axios,this.basePath))}listWorkspaceInvoices(t,e){return A(this.configuration).listWorkspaceInvoices(t.id,e).then(s=>s(this.axios,this.basePath))}listWorkspaceMembers(t={},e){return A(this.configuration).listWorkspaceMembers(t.nextToken,e).then(s=>s(this.axios,this.basePath))}listWorkspaceQuotas(t,e){return A(this.configuration).listWorkspaceQuotas(t.id,t.period,e).then(s=>s(this.axios,this.basePath))}listWorkspaceUsages(t,e){return A(this.configuration).listWorkspaceUsages(t.id,t.type,t.period,e).then(s=>s(this.axios,this.basePath))}listWorkspaces(t={},e){return A(this.configuration).listWorkspaces(t.nextToken,e).then(s=>s(this.axios,this.basePath))}patchState(t,e){return A(this.configuration).patchState(t.type,t.id,t.name,t.patchStateBody,e).then(s=>s(this.axios,this.basePath))}removeParticipant(t,e){return A(this.configuration).removeParticipant(t.id,t.userId,e).then(s=>s(this.axios,this.basePath))}renameTableColumn(t,e){return A(this.configuration).renameTableColumn(t.table,t.renameTableColumnBody,e).then(s=>s(this.axios,this.basePath))}runVrl(t={},e){return A(this.configuration).runVrl(t.runVrlBody,e).then(s=>s(this.axios,this.basePath))}searchFiles(t,e){return A(this.configuration).searchFiles(t.botId,t.query,t.tags,t.contextDepth,t.limit,e).then(s=>s(this.axios,this.basePath))}setAccountPreference(t,e){return A(this.configuration).setAccountPreference(t.key,t.setAccountPreferenceBody,e).then(s=>s(this.axios,this.basePath))}setState(t,e){return A(this.configuration).setState(t.type,t.id,t.name,t.setStateBody,e).then(s=>s(this.axios,this.basePath))}setWorkspacePaymentMethod(t,e){return A(this.configuration).setWorkspacePaymentMethod(t.id,t.setWorkspacePaymentMethodBody,e).then(s=>s(this.axios,this.basePath))}transferBot(t,e){return A(this.configuration).transferBot(t.id,t.transferBotBody,e).then(s=>s(this.axios,this.basePath))}updateAccount(t={},e){return A(this.configuration).updateAccount(t.updateAccountBody,e).then(s=>s(this.axios,this.basePath))}updateBot(t,e){return A(this.configuration).updateBot(t.id,t.updateBotBody,e).then(s=>s(this.axios,this.basePath))}updateConversation(t,e){return A(this.configuration).updateConversation(t.id,t.updateConversationBody,e).then(s=>s(this.axios,this.basePath))}updateFileMetadata(t,e){return A(this.configuration).updateFileMetadata(t.id,t.updateFileMetadataBody,e).then(s=>s(this.axios,this.basePath))}updateIntegration(t,e){return A(this.configuration).updateIntegration(t.id,t.updateIntegrationBody,e).then(s=>s(this.axios,this.basePath))}updateMessage(t,e){return A(this.configuration).updateMessage(t.id,t.updateMessageBody,e).then(s=>s(this.axios,this.basePath))}updateTable(t,e){return A(this.configuration).updateTable(t.table,t.updateTableBody,e).then(s=>s(this.axios,this.basePath))}updateTableRows(t,e){return A(this.configuration).updateTableRows(t.table,t.updateTableRowsBody,e).then(s=>s(this.axios,this.basePath))}updateTask(t,e){return A(this.configuration).updateTask(t.id,t.updateTaskBody,e).then(s=>s(this.axios,this.basePath))}updateUser(t,e){return A(this.configuration).updateUser(t.id,t.updateUserBody,e).then(s=>s(this.axios,this.basePath))}updateWorkspace(t,e){return A(this.configuration).updateWorkspace(t.id,t.updateWorkspaceBody,e).then(s=>s(this.axios,this.basePath))}updateWorkspaceMember(t,e){return A(this.configuration).updateWorkspaceMember(t.id,t.updateWorkspaceMemberBody,e).then(s=>s(this.axios,this.basePath))}upsertTableRows(t,e){return A(this.configuration).upsertTableRows(t.table,t.upsertTableRowsBody,e).then(s=>s(this.axios,this.basePath))}};import Ee from"crypto";var We={getRandomValues:r=>new Uint8Array(r.map(()=>Math.floor(Math.random()*256)))},w=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ee;w.getRandomValues||(w=We);var P=class extends Error{constructor(e,s,n,a,o,i){super(a);this.code=e;this.description=s;this.type=n;this.message=a;this.error=o;this.id=i;this.id||(this.id=P.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let e=this.getPrefix(),s=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,a=Array.from(w.getRandomValues(new Uint8Array(n))).map(o=>o.toString(16).padStart(2,"0")).join("").toUpperCase();return`${e}_${s}x${a}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Se=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,pe=r=>r instanceof P||Se(r)&&r.isApiError===!0,I=class extends P{constructor(t,e,s){super(500,"An unknown error occurred","Unknown",t,e,s)}},E=class extends P{constructor(t,e,s){super(500,"An internal error occurred","Internal",t,e,s)}},W=class extends P{constructor(t,e,s){super(401,"The request requires to be authenticated.","Unauthorized",t,e,s)}},S=class extends P{constructor(t,e,s){super(403,"The requested action can't be peform by this resource.","Forbidden",t,e,s)}},M=class extends P{constructor(t,e,s){super(413,"The request payload is too large.","PayloadTooLarge",t,e,s)}},G=class extends P{constructor(t,e,s){super(400,"The request payload is invalid.","InvalidPayload",t,e,s)}},L=class extends P{constructor(t,e,s){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,e,s)}},F=class extends P{constructor(t,e,s){super(405,"The requested method does not exist.","MethodNotFound",t,e,s)}},_=class extends P{constructor(t,e,s){super(404,"The requested resource does not exist.","ResourceNotFound",t,e,s)}},Q=class extends P{constructor(t,e,s){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,e,s)}},j=class extends P{constructor(t,e,s){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,e,s)}},N=class extends P{constructor(t,e,s){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,e,s)}},H=class extends P{constructor(t,e,s){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,e,s)}},$=class extends P{constructor(t,e,s){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,e,s)}},K=class extends P{constructor(t,e,s){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,e,s)}},z=class extends P{constructor(t,e,s){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,e,s)}},J=class extends P{constructor(t,e,s){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,e,s)}},Y=class extends P{constructor(t,e,s){super(409,"The record attempted to be created already exists.","AlreadyExists",t,e,s)}},Z=class extends P{constructor(t,e,s){super(429,"The request has been rate limited.","RateLimited",t,e,s)}},X=class extends P{constructor(t,e,s){super(402,"A payment is required to perform this request.","PaymentRequired",t,e,s)}},ee=class extends P{constructor(t,e,s){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,e,s)}},te=class extends P{constructor(t,e,s){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,e,s)}},se=class extends P{constructor(t,e,s){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,e,s)}},Me={Unknown:I,Internal:E,Unauthorized:W,Forbidden:S,PayloadTooLarge:M,InvalidPayload:G,UnsupportedMediaType:L,MethodNotFound:F,ResourceNotFound:_,InvalidJsonSchema:Q,InvalidDataFormat:j,InvalidIdentifier:N,RelationConflict:H,ReferenceConstraint:$,ReferenceNotFound:K,InvalidQuery:z,Runtime:J,AlreadyExists:Y,RateLimited:Z,PaymentRequired:X,QuotaExceeded:ee,LimitExceeded:te,BreakingChanges:se},T=r=>pe(r)?r:r instanceof Error?new I(r.message,r):typeof r=="string"?new I(r):Ge(r);function Ge(r){if(typeof r=="object"&&"code"in r&&"type"in r&&"id"in r&&"message"in r&&typeof r.type=="string"&&typeof r.message=="string"){let t=Me[r.type];return t?new t(r.message,void 0,r.id||"UNKNOWN"):new I(`An unclassified API error occurred: ${r.message} (Type: ${r.type}, Code: ${r.code})`)}return new I("An invalid error occurred: "+JSON.stringify(r))}var v=class{_innerClient;constructor(t,e,s){this._innerClient=new V(t,e,s)}createConversation=t=>this._innerClient.createConversation({createConversationBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getConversation=t=>this._innerClient.getConversation(t).then(e=>e.data).catch(e=>{throw m(e)});listConversations=t=>this._innerClient.listConversations(t).then(e=>e.data).catch(e=>{throw m(e)});getOrCreateConversation=t=>this._innerClient.getOrCreateConversation({getOrCreateConversationBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateConversation=({id:t,...e})=>this._innerClient.updateConversation({id:t,updateConversationBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteConversation=t=>this._innerClient.deleteConversation(t).then(e=>e.data).catch(e=>{throw m(e)});listParticipants=t=>this._innerClient.listParticipants(t).then(e=>e.data).catch(e=>{throw m(e)});addParticipant=({id:t,...e})=>this._innerClient.addParticipant({id:t,addParticipantBody:e}).then(s=>s.data).catch(s=>{throw m(s)});getParticipant=t=>this._innerClient.getParticipant(t).then(e=>e.data).catch(e=>{throw m(e)});removeParticipant=t=>this._innerClient.removeParticipant(t).then(e=>e.data).catch(e=>{throw m(e)});createEvent=t=>this._innerClient.createEvent({createEventBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getEvent=t=>this._innerClient.getEvent(t).then(e=>e.data).catch(e=>{throw m(e)});listEvents=t=>this._innerClient.listEvents(t).then(e=>e.data).catch(e=>{throw m(e)});createMessage=t=>this._innerClient.createMessage({createMessageBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getOrCreateMessage=t=>this._innerClient.getOrCreateMessage({getOrCreateMessageBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getMessage=t=>this._innerClient.getMessage(t).then(e=>e.data).catch(e=>{throw m(e)});updateMessage=({id:t,...e})=>this._innerClient.updateMessage({id:t,updateMessageBody:e}).then(s=>s.data).catch(s=>{throw m(s)});listMessages=t=>this._innerClient.listMessages(t).then(e=>e.data).catch(e=>{throw m(e)});deleteMessage=t=>this._innerClient.deleteMessage(t).then(e=>e.data).catch(e=>{throw m(e)});createUser=t=>this._innerClient.createUser({createUserBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getUser=t=>this._innerClient.getUser(t).then(e=>e.data).catch(e=>{throw m(e)});listUsers=t=>this._innerClient.listUsers(t).then(e=>e.data).catch(e=>{throw m(e)});getOrCreateUser=t=>this._innerClient.getOrCreateUser({getOrCreateUserBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateUser=({id:t,...e})=>this._innerClient.updateUser({id:t,updateUserBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteUser=t=>this._innerClient.deleteUser(t).then(e=>e.data).catch(e=>{throw m(e)});getState=t=>this._innerClient.getState(t).then(e=>e.data).catch(e=>{throw m(e)});setState=({type:t,id:e,name:s,...n})=>this._innerClient.setState({type:t,id:e,name:s,setStateBody:n}).then(a=>a.data).catch(a=>{throw m(a)});getOrSetState=({type:t,id:e,name:s,...n})=>this._innerClient.getOrSetState({type:t,id:e,name:s,getOrSetStateBody:n}).then(a=>a.data).catch(a=>{throw m(a)});patchState=({type:t,id:e,name:s,...n})=>this._innerClient.patchState({type:t,id:e,name:s,patchStateBody:n}).then(a=>a.data).catch(a=>{throw m(a)});callAction=t=>this._innerClient.callAction({callActionBody:t}).then(e=>e.data).catch(e=>{throw m(e)});configureIntegration=t=>this._innerClient.configureIntegration({configureIntegrationBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getTask=t=>this._innerClient.getTask(t).then(e=>e.data).catch(e=>{throw m(e)});createTask=t=>this._innerClient.createTask({createTaskBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateTask=({id:t,...e})=>this._innerClient.updateTask({id:t,updateTaskBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteTask=t=>this._innerClient.deleteTask(t).then(e=>e.data).catch(e=>{throw m(e)});listTasks=t=>this._innerClient.listTasks(t).then(e=>e.data).catch(e=>{throw m(e)});runVrl=t=>this._innerClient.runVrl({runVrlBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getAccount=()=>this._innerClient.getAccount().then(t=>t.data).catch(t=>{throw m(t)});updateAccount=t=>this._innerClient.updateAccount({updateAccountBody:t}).then(e=>e.data).catch(e=>{throw m(e)});listPersonalAccessTokens=()=>this._innerClient.listPersonalAccessTokens().then(t=>t.data).catch(t=>{throw m(t)});createPersonalAccessToken=t=>this._innerClient.createPersonalAccessToken({createPersonalAccessTokenBody:t}).then(e=>e.data).catch(e=>{throw m(e)});deletePersonalAccessToken=t=>this._innerClient.deletePersonalAccessToken(t).then(e=>e.data).catch(e=>{throw m(e)});setAccountPreference=({key:t,...e})=>this._innerClient.setAccountPreference({key:t,setAccountPreferenceBody:e}).then(s=>s.data).catch(s=>{throw m(s)});getAccountPreference=t=>this._innerClient.getAccountPreference(t).then(e=>e.data).catch(e=>{throw m(e)});listPublicIntegrations=t=>this._innerClient.listPublicIntegrations(t).then(e=>e.data).catch(e=>{throw m(e)});getPublicIntegrationById=t=>this._innerClient.getPublicIntegrationById(t).then(e=>e.data).catch(e=>{throw m(e)});getPublicIntegration=t=>this._innerClient.getPublicIntegration(t).then(e=>e.data).catch(e=>{throw m(e)});createBot=t=>this._innerClient.createBot({createBotBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateBot=({id:t,...e})=>this._innerClient.updateBot({id:t,updateBotBody:e}).then(s=>s.data).catch(s=>{throw m(s)});transferBot=({id:t,...e})=>this._innerClient.transferBot({id:t,transferBotBody:e}).then(s=>s.data).catch(s=>{throw m(s)});listBots=t=>this._innerClient.listBots(t).then(e=>e.data).catch(e=>{throw m(e)});getBot=t=>this._innerClient.getBot(t).then(e=>e.data).catch(e=>{throw m(e)});deleteBot=t=>this._innerClient.deleteBot(t).then(e=>e.data).catch(e=>{throw m(e)});getBotLogs=t=>this._innerClient.getBotLogs(t).then(e=>e.data).catch(e=>{throw m(e)});getBotWebchat=t=>this._innerClient.getBotWebchat(t).then(e=>e.data).catch(e=>{throw m(e)});getBotAnalytics=t=>this._innerClient.getBotAnalytics(t).then(e=>e.data).catch(e=>{throw m(e)});listBotIssues=t=>this._innerClient.listBotIssues(t).then(e=>e.data).catch(e=>{throw m(e)});deleteBotIssue=t=>this._innerClient.deleteBotIssue(t).then(e=>e.data).catch(e=>{throw m(e)});listBotIssueEvents=t=>this._innerClient.listBotIssueEvents(t).then(e=>e.data).catch(e=>{throw m(e)});getWorkspaceBillingDetails=t=>this._innerClient.getWorkspaceBillingDetails(t).then(e=>e.data).catch(e=>{throw m(e)});setWorkspacePaymentMethod=({id:t,...e})=>this._innerClient.setWorkspacePaymentMethod({id:t,setWorkspacePaymentMethodBody:e}).then(s=>s.data).catch(s=>{throw m(s)});listWorkspaceInvoices=t=>this._innerClient.listWorkspaceInvoices(t).then(e=>e.data).catch(e=>{throw m(e)});getUpcomingInvoice=t=>this._innerClient.getUpcomingInvoice(t).then(e=>e.data).catch(e=>{throw m(e)});chargeWorkspaceUnpaidInvoices=({id:t,...e})=>this._innerClient.chargeWorkspaceUnpaidInvoices({id:t,chargeWorkspaceUnpaidInvoicesBody:e}).then(s=>s.data).catch(s=>{throw m(s)});createWorkspace=t=>this._innerClient.createWorkspace({createWorkspaceBody:t}).then(e=>e.data).catch(e=>{throw m(e)});getPublicWorkspace=t=>this._innerClient.getPublicWorkspace(t).then(e=>e.data).catch(e=>{throw m(e)});getWorkspace=t=>this._innerClient.getWorkspace(t).then(e=>e.data).catch(e=>{throw m(e)});listWorkspaceUsages=t=>this._innerClient.listWorkspaceUsages(t).then(e=>e.data).catch(e=>{throw m(e)});breakDownWorkspaceUsageByBot=t=>this._innerClient.breakDownWorkspaceUsageByBot(t).then(e=>e.data).catch(e=>{throw m(e)});getAllWorkspaceQuotaCompletion=()=>this._innerClient.getAllWorkspaceQuotaCompletion().then(t=>t.data).catch(t=>{throw m(t)});getWorkspaceQuota=t=>this._innerClient.getWorkspaceQuota(t).then(e=>e.data).catch(e=>{throw m(e)});listWorkspaceQuotas=t=>this._innerClient.listWorkspaceQuotas(t).then(e=>e.data).catch(e=>{throw m(e)});updateWorkspace=({id:t,...e})=>this._innerClient.updateWorkspace({id:t,updateWorkspaceBody:e}).then(s=>s.data).catch(s=>{throw m(s)});checkHandleAvailability=t=>this._innerClient.checkHandleAvailability({checkHandleAvailabilityBody:t}).then(e=>e.data).catch(e=>{throw m(e)});listWorkspaces=t=>this._innerClient.listWorkspaces(t).then(e=>e.data).catch(e=>{throw m(e)});changeWorkspacePlan=({id:t,...e})=>this._innerClient.changeWorkspacePlan({id:t,changeWorkspacePlanBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteWorkspace=t=>this._innerClient.deleteWorkspace(t).then(e=>e.data).catch(e=>{throw m(e)});getAuditRecords=t=>this._innerClient.getAuditRecords(t).then(e=>e.data).catch(e=>{throw m(e)});listWorkspaceMembers=t=>this._innerClient.listWorkspaceMembers(t).then(e=>e.data).catch(e=>{throw m(e)});deleteWorkspaceMember=t=>this._innerClient.deleteWorkspaceMember(t).then(e=>e.data).catch(e=>{throw m(e)});createWorkspaceMember=t=>this._innerClient.createWorkspaceMember({createWorkspaceMemberBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateWorkspaceMember=({id:t,...e})=>this._innerClient.updateWorkspaceMember({id:t,updateWorkspaceMemberBody:e}).then(s=>s.data).catch(s=>{throw m(s)});createIntegration=t=>this._innerClient.createIntegration({createIntegrationBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateIntegration=({id:t,...e})=>this._innerClient.updateIntegration({id:t,updateIntegrationBody:e}).then(s=>s.data).catch(s=>{throw m(s)});listIntegrations=t=>this._innerClient.listIntegrations(t).then(e=>e.data).catch(e=>{throw m(e)});getIntegration=t=>this._innerClient.getIntegration(t).then(e=>e.data).catch(e=>{throw m(e)});getIntegrationLogs=t=>this._innerClient.getIntegrationLogs(t).then(e=>e.data).catch(e=>{throw m(e)});getIntegrationByName=t=>this._innerClient.getIntegrationByName(t).then(e=>e.data).catch(e=>{throw m(e)});deleteIntegration=t=>this._innerClient.deleteIntegration(t).then(e=>e.data).catch(e=>{throw m(e)});getUsage=t=>this._innerClient.getUsage(t).then(e=>e.data).catch(e=>{throw m(e)});listUsageHistory=t=>this._innerClient.listUsageHistory(t).then(e=>e.data).catch(e=>{throw m(e)});changeAISpendQuota=t=>this._innerClient.changeAISpendQuota({changeAISpendQuotaBody:t}).then(e=>e.data).catch(e=>{throw m(e)});listActivities=t=>this._innerClient.listActivities(t).then(e=>e.data).catch(e=>{throw m(e)});introspect=t=>this._innerClient.introspect({introspectBody:t}).then(e=>e.data).catch(e=>{throw m(e)});createFile=({xName:t,xTags:e,xAccessPolicies:s,xIndex:n,contentType:a,contentLength:o,...i})=>this._innerClient.createFile({xName:t,xTags:e,xAccessPolicies:s,xIndex:n,contentType:a,contentLength:o,createFileBody:i}).then(l=>l.data).catch(l=>{throw m(l)});deleteFile=t=>this._innerClient.deleteFile(t).then(e=>e.data).catch(e=>{throw m(e)});listFiles=t=>this._innerClient.listFiles(t).then(e=>e.data).catch(e=>{throw m(e)});getFileMetadata=t=>this._innerClient.getFileMetadata(t).then(e=>e.data).catch(e=>{throw m(e)});getFileContent=t=>this._innerClient.getFileContent(t).then(e=>e.data).catch(e=>{throw m(e)});updateFileMetadata=({id:t,...e})=>this._innerClient.updateFileMetadata({id:t,updateFileMetadataBody:e}).then(s=>s.data).catch(s=>{throw m(s)});searchFiles=t=>this._innerClient.searchFiles(t).then(e=>e.data).catch(e=>{throw m(e)});listTables=t=>this._innerClient.listTables(t).then(e=>e.data).catch(e=>{throw m(e)});getTable=t=>this._innerClient.getTable(t).then(e=>e.data).catch(e=>{throw m(e)});createTable=t=>this._innerClient.createTable({createTableBody:t}).then(e=>e.data).catch(e=>{throw m(e)});updateTable=({table:t,...e})=>this._innerClient.updateTable({table:t,updateTableBody:e}).then(s=>s.data).catch(s=>{throw m(s)});renameTableColumn=({table:t,...e})=>this._innerClient.renameTableColumn({table:t,renameTableColumnBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteTable=t=>this._innerClient.deleteTable(t).then(e=>e.data).catch(e=>{throw m(e)});getTableRow=t=>this._innerClient.getTableRow(t).then(e=>e.data).catch(e=>{throw m(e)});findTableRows=({table:t,...e})=>this._innerClient.findTableRows({table:t,findTableRowsBody:e}).then(s=>s.data).catch(s=>{throw m(s)});createTableRows=({table:t,...e})=>this._innerClient.createTableRows({table:t,createTableRowsBody:e}).then(s=>s.data).catch(s=>{throw m(s)});deleteTableRows=({table:t,...e})=>this._innerClient.deleteTableRows({table:t,deleteTableRowsBody:e}).then(s=>s.data).catch(s=>{throw m(s)});updateTableRows=({table:t,...e})=>this._innerClient.updateTableRows({table:t,updateTableRowsBody:e}).then(s=>s.data).catch(s=>{throw m(s)});upsertTableRows=({table:t,...e})=>this._innerClient.upsertTableRows({table:t,upsertTableRowsBody:e}).then(s=>s.data).catch(s=>{throw m(s)})};function m(r){return Le.isAxiosError(r)&&r.response?.data?T(r.response.data):T(r)}import*as Wa from"axios";var Re=100*1024*1024,Fe=Re,_e=Re,de=class extends v{config;axiosClient;constructor(t={}){let e=ce(t),s=Qe(e);super(void 0,e.apiUrl,s),this.axiosClient=s,this.config=e}createFile=async({name:t,data:e,index:s,tags:n,contentType:a,contentLength:o,accessPolicies:i})=>{let l={...this.config.headers,"x-name":t,"x-tags":n?JSON.stringify(n):void 0,"x-index":s?"true":"false","x-access-policies":i?.join(",")??void 0,"content-type":a??!1,"content-length":o};return(await this.axiosClient.post("/v1/files",e,{headers:l,baseURL:this.config.apiUrl}).catch(p=>{throw je(p)})).data}};function Qe(r){let{headers:t,withCredentials:e,timeout:s}=r;return ge.create({headers:t,withCredentials:e,timeout:s,maxBodyLength:Fe,maxContentLength:_e,httpAgent:ue?new ye.default.Agent({keepAlive:!0}):void 0,httpsAgent:ue?new he.default.Agent({keepAlive:!0}):void 0})}function je(r){return ge.isAxiosError(r)&&r.response?.data?T(r.response.data):T(r)}export{Y as AlreadyExistsError,se as BreakingChangesError,de as Client,S as ForbiddenError,E as InternalError,j as InvalidDataFormatError,N as InvalidIdentifierError,Q as InvalidJsonSchemaError,G as InvalidPayloadError,z as InvalidQueryError,te as LimitExceededError,F as MethodNotFoundError,M as PayloadTooLargeError,X as PaymentRequiredError,ee as QuotaExceededError,Z as RateLimitedError,$ as ReferenceConstraintError,K as ReferenceNotFoundError,H as RelationConflictError,_ as ResourceNotFoundError,J as RuntimeError,W as UnauthorizedError,I as UnknownError,L as UnsupportedMediaTypeError,Wa as axios,T as errorFrom,pe as isApiError};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/client",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "Botpress Client",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"type-fest": "^3.4.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@botpress/api": "0.
|
|
31
|
+
"@botpress/api": "0.20.0",
|
|
32
32
|
"esbuild": "^0.16.12",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"puppeteer": "^22.0.0"
|