@botpress/api 0.43.1 → 0.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as opapi from '@bpinternal/opapi';
2
- export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
2
+ export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
3
3
  export declare const state: {
4
4
  operations: {
5
5
  createConversation: {
@@ -572,6 +572,7 @@ export declare const state: {
572
572
  status: {
573
573
  in: "query";
574
574
  type: "string";
575
+ enum: string[];
575
576
  description: string;
576
577
  };
577
578
  };
@@ -1854,6 +1855,355 @@ export declare const state: {
1854
1855
  };
1855
1856
  };
1856
1857
  };
1858
+ createWorkflow: {
1859
+ name: string;
1860
+ description: string;
1861
+ method: "post";
1862
+ path: string;
1863
+ requestBody: {
1864
+ description: string;
1865
+ schema: {
1866
+ type: "object";
1867
+ properties: {
1868
+ name: {
1869
+ type: "string";
1870
+ description: string;
1871
+ };
1872
+ input: {
1873
+ type: "object";
1874
+ additionalProperties: true;
1875
+ description: string;
1876
+ };
1877
+ parentWorkflowId: {
1878
+ type: "string";
1879
+ description: string;
1880
+ };
1881
+ conversationId: {
1882
+ type: "string";
1883
+ description: string;
1884
+ };
1885
+ userId: {
1886
+ type: "string";
1887
+ description: string;
1888
+ };
1889
+ timeoutAt: {
1890
+ type: "string";
1891
+ format: string;
1892
+ description: string;
1893
+ };
1894
+ tags: {
1895
+ type: "object";
1896
+ additionalProperties: {
1897
+ type: "string";
1898
+ maxLength: number;
1899
+ };
1900
+ description: string;
1901
+ };
1902
+ status: {
1903
+ type: "string";
1904
+ enum: string[];
1905
+ };
1906
+ eventId: {
1907
+ type: "string";
1908
+ description: string;
1909
+ };
1910
+ };
1911
+ required: string[];
1912
+ title: string;
1913
+ additionalProperties: false;
1914
+ };
1915
+ };
1916
+ section: "workflow";
1917
+ response: {
1918
+ description: string;
1919
+ status: 201;
1920
+ schema: {
1921
+ type: "object";
1922
+ properties: {
1923
+ workflow: {
1924
+ $ref: string;
1925
+ };
1926
+ };
1927
+ required: string[];
1928
+ title: string;
1929
+ additionalProperties: false;
1930
+ };
1931
+ };
1932
+ parameters: {};
1933
+ };
1934
+ getWorkflow: {
1935
+ name: string;
1936
+ description: string;
1937
+ method: "get";
1938
+ path: string;
1939
+ parameters: {
1940
+ id: {
1941
+ in: "path";
1942
+ type: "string";
1943
+ description: string;
1944
+ };
1945
+ };
1946
+ section: "workflow";
1947
+ response: {
1948
+ description: string;
1949
+ schema: {
1950
+ type: "object";
1951
+ properties: {
1952
+ workflow: {
1953
+ $ref: string;
1954
+ };
1955
+ };
1956
+ required: string[];
1957
+ title: string;
1958
+ additionalProperties: false;
1959
+ };
1960
+ };
1961
+ };
1962
+ updateWorkflow: {
1963
+ name: string;
1964
+ description: string;
1965
+ method: "put";
1966
+ path: string;
1967
+ parameters: {
1968
+ id: {
1969
+ in: "path";
1970
+ type: "string";
1971
+ description: string;
1972
+ };
1973
+ };
1974
+ requestBody: {
1975
+ description: string;
1976
+ schema: {
1977
+ type: "object";
1978
+ properties: {
1979
+ output: {
1980
+ type: "object";
1981
+ additionalProperties: true;
1982
+ description: string;
1983
+ };
1984
+ timeoutAt: {
1985
+ type: "string";
1986
+ format: string;
1987
+ description: string;
1988
+ };
1989
+ status: {
1990
+ type: "string";
1991
+ enum: string[];
1992
+ description: string;
1993
+ };
1994
+ failureReason: {
1995
+ type: "string";
1996
+ description: string;
1997
+ };
1998
+ tags: {
1999
+ type: "object";
2000
+ additionalProperties: {
2001
+ type: "string";
2002
+ maxLength: number;
2003
+ };
2004
+ description: string;
2005
+ };
2006
+ userId: {
2007
+ type: "string";
2008
+ description: string;
2009
+ };
2010
+ };
2011
+ title: string;
2012
+ additionalProperties: false;
2013
+ };
2014
+ };
2015
+ section: "workflow";
2016
+ response: {
2017
+ description: string;
2018
+ schema: {
2019
+ type: "object";
2020
+ properties: {
2021
+ workflow: {
2022
+ $ref: string;
2023
+ };
2024
+ };
2025
+ required: string[];
2026
+ title: string;
2027
+ additionalProperties: false;
2028
+ };
2029
+ };
2030
+ };
2031
+ deleteWorkflow: {
2032
+ name: string;
2033
+ description: string;
2034
+ method: "delete";
2035
+ path: string;
2036
+ parameters: {
2037
+ id: {
2038
+ in: "path";
2039
+ type: "string";
2040
+ description: string;
2041
+ };
2042
+ };
2043
+ section: "workflow";
2044
+ response: {
2045
+ description: string;
2046
+ schema: {
2047
+ type: "object";
2048
+ title: string;
2049
+ additionalProperties: false;
2050
+ };
2051
+ };
2052
+ };
2053
+ listWorkflows: {
2054
+ name: string;
2055
+ description: string;
2056
+ method: "get";
2057
+ path: string;
2058
+ parameters: {
2059
+ nextToken: {
2060
+ in: "query";
2061
+ description: string;
2062
+ type: "string";
2063
+ };
2064
+ tags: {
2065
+ in: "query";
2066
+ type: "object";
2067
+ schema: {
2068
+ type: "object";
2069
+ additionalProperties: {
2070
+ type: "string";
2071
+ };
2072
+ };
2073
+ description: string;
2074
+ };
2075
+ conversationId: {
2076
+ in: "query";
2077
+ type: "string";
2078
+ description: string;
2079
+ };
2080
+ userId: {
2081
+ in: "query";
2082
+ type: "string";
2083
+ description: string;
2084
+ };
2085
+ parentWorkflowId: {
2086
+ in: "query";
2087
+ type: "string";
2088
+ description: string;
2089
+ };
2090
+ statuses: {
2091
+ in: "query";
2092
+ type: "string[]";
2093
+ description: string;
2094
+ enum: string[];
2095
+ };
2096
+ name: {
2097
+ in: "query";
2098
+ description: string;
2099
+ type: "string";
2100
+ };
2101
+ };
2102
+ section: "workflow";
2103
+ response: {
2104
+ description: string;
2105
+ schema: {
2106
+ type: "object";
2107
+ properties: {
2108
+ workflows: {
2109
+ type: "array";
2110
+ items: {
2111
+ $ref: string;
2112
+ };
2113
+ };
2114
+ meta: {
2115
+ type: "object";
2116
+ properties: {
2117
+ nextToken: {
2118
+ type: "string";
2119
+ description: string;
2120
+ };
2121
+ };
2122
+ additionalProperties: false;
2123
+ };
2124
+ };
2125
+ required: string[];
2126
+ title: string;
2127
+ additionalProperties: false;
2128
+ };
2129
+ };
2130
+ };
2131
+ getOrCreateWorkflow: {
2132
+ name: string;
2133
+ description: string;
2134
+ method: "post";
2135
+ path: string;
2136
+ requestBody: {
2137
+ description: string;
2138
+ schema: {
2139
+ type: "object";
2140
+ properties: {
2141
+ name: {
2142
+ type: "string";
2143
+ description: string;
2144
+ };
2145
+ input: {
2146
+ type: "object";
2147
+ additionalProperties: true;
2148
+ description: string;
2149
+ };
2150
+ parentWorkflowId: {
2151
+ type: "string";
2152
+ description: string;
2153
+ };
2154
+ conversationId: {
2155
+ type: "string";
2156
+ description: string;
2157
+ };
2158
+ userId: {
2159
+ type: "string";
2160
+ description: string;
2161
+ };
2162
+ timeoutAt: {
2163
+ type: "string";
2164
+ format: string;
2165
+ description: string;
2166
+ };
2167
+ tags: {
2168
+ type: "object";
2169
+ additionalProperties: {
2170
+ type: "string";
2171
+ maxLength: number;
2172
+ };
2173
+ description: string;
2174
+ };
2175
+ status: {
2176
+ type: "string";
2177
+ enum: string[];
2178
+ };
2179
+ eventId: {
2180
+ type: "string";
2181
+ description: string;
2182
+ };
2183
+ };
2184
+ required: string[];
2185
+ title: string;
2186
+ additionalProperties: false;
2187
+ };
2188
+ };
2189
+ section: "workflow";
2190
+ response: {
2191
+ description: string;
2192
+ status: 200;
2193
+ schema: {
2194
+ type: "object";
2195
+ properties: {
2196
+ workflow: {
2197
+ $ref: string;
2198
+ };
2199
+ };
2200
+ required: string[];
2201
+ title: string;
2202
+ additionalProperties: false;
2203
+ };
2204
+ };
2205
+ parameters: {};
2206
+ };
1857
2207
  trackAnalytics: {
1858
2208
  name: string;
1859
2209
  description: string;
@@ -10283,6 +10633,9 @@ export declare const state: {
10283
10633
  configureIntegrationBody: true;
10284
10634
  createTaskBody: true;
10285
10635
  updateTaskBody: true;
10636
+ createWorkflowBody: true;
10637
+ updateWorkflowBody: true;
10638
+ getOrCreateWorkflowBody: true;
10286
10639
  trackAnalyticsBody: true;
10287
10640
  runVrlBody: true;
10288
10641
  updateAccountBody: true;
@@ -10359,6 +10712,12 @@ export declare const state: {
10359
10712
  updateTaskResponse: true;
10360
10713
  deleteTaskResponse: true;
10361
10714
  listTasksResponse: true;
10715
+ createWorkflowResponse: true;
10716
+ getWorkflowResponse: true;
10717
+ updateWorkflowResponse: true;
10718
+ deleteWorkflowResponse: true;
10719
+ listWorkflowsResponse: true;
10720
+ getOrCreateWorkflowResponse: true;
10362
10721
  trackAnalyticsResponse: true;
10363
10722
  runVrlResponse: true;
10364
10723
  getAccountResponse: true;
@@ -10474,6 +10833,7 @@ export declare const state: {
10474
10833
  Message: true;
10475
10834
  State: true;
10476
10835
  Task: true;
10836
+ Workflow: true;
10477
10837
  Table: true;
10478
10838
  Column: true;
10479
10839
  Row: true;
@@ -11948,6 +12308,12 @@ export declare const state: {
11948
12308
  maxLength: number;
11949
12309
  description: string;
11950
12310
  };
12311
+ currentWorkflowId: {
12312
+ type: "string";
12313
+ minLength: number;
12314
+ maxLength: number;
12315
+ description: string;
12316
+ };
11951
12317
  createdAt: {
11952
12318
  type: "string";
11953
12319
  format: string;
@@ -12241,6 +12607,93 @@ export declare const state: {
12241
12607
  additionalProperties: false;
12242
12608
  };
12243
12609
  };
12610
+ Workflow: {
12611
+ section: "workflow";
12612
+ schema: {
12613
+ type: "object";
12614
+ properties: {
12615
+ id: {
12616
+ type: "string";
12617
+ minLength: number;
12618
+ maxLength: number;
12619
+ description: string;
12620
+ };
12621
+ name: {
12622
+ type: "string";
12623
+ maxLength: number;
12624
+ description: string;
12625
+ };
12626
+ status: {
12627
+ type: "string";
12628
+ enum: string[];
12629
+ description: string;
12630
+ };
12631
+ input: {
12632
+ type: "object";
12633
+ additionalProperties: true;
12634
+ description: string;
12635
+ };
12636
+ output: {
12637
+ type: "object";
12638
+ additionalProperties: true;
12639
+ description: string;
12640
+ };
12641
+ parentWorkflowId: {
12642
+ type: "string";
12643
+ minLength: number;
12644
+ maxLength: number;
12645
+ description: string;
12646
+ };
12647
+ conversationId: {
12648
+ type: "string";
12649
+ minLength: number;
12650
+ maxLength: number;
12651
+ description: string;
12652
+ };
12653
+ userId: {
12654
+ type: "string";
12655
+ minLength: number;
12656
+ maxLength: number;
12657
+ description: string;
12658
+ };
12659
+ createdAt: {
12660
+ type: "string";
12661
+ format: string;
12662
+ description: string;
12663
+ };
12664
+ updatedAt: {
12665
+ type: "string";
12666
+ format: string;
12667
+ description: string;
12668
+ };
12669
+ completedAt: {
12670
+ type: "string";
12671
+ format: string;
12672
+ description: string;
12673
+ };
12674
+ failureReason: {
12675
+ type: "string";
12676
+ maxLength: number;
12677
+ description: string;
12678
+ };
12679
+ timeoutAt: {
12680
+ type: "string";
12681
+ format: string;
12682
+ description: string;
12683
+ };
12684
+ tags: {
12685
+ type: "object";
12686
+ additionalProperties: {
12687
+ type: "string";
12688
+ };
12689
+ description: string;
12690
+ };
12691
+ };
12692
+ required: string[];
12693
+ description: string;
12694
+ additionalProperties: false;
12695
+ };
12696
+ };
12244
12697
  Table: {
12245
12698
  section: "tables";
12246
12699
  schema: {
@@ -12718,6 +13171,12 @@ export declare const state: {
12718
13171
  name: "task";
12719
13172
  operations: string[];
12720
13173
  schema: string;
13174
+ } | {
13175
+ description: string;
13176
+ title: string;
13177
+ name: "workflow";
13178
+ operations: string[];
13179
+ schema: string;
12721
13180
  } | {
12722
13181
  title: string;
12723
13182
  description: string;
@@ -1,7 +1,7 @@
1
1
  export * from './gen/state';
2
2
  export declare const api: {
3
- getModelRef: (name: "Bot" | "Integration" | "Interface" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Table" | "Column" | "Row" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
4
- addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "interface" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
3
+ getModelRef: (name: "Bot" | "Integration" | "Interface" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Workflow" | "Table" | "Column" | "Row" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
4
+ addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "bot" | "integration" | "interface" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
5
5
  exportClient: {
6
6
  (dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
7
7
  (dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.43.1",
3
+ "version": "0.43.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1 +1 @@
1
- {"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"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."},{"status":409,"type":"RelationConflict","description":"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."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
1
+ {"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"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."},{"status":409,"type":"RelationConflict","description":"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."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}