@botpress/api 0.16.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +142 -2
- package/dist/src/gen/state.d.ts +139 -0
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +146 -2
package/dist/index.js
CHANGED
|
@@ -428169,6 +428169,67 @@ var state = {
|
|
|
428169
428169
|
}
|
|
428170
428170
|
}
|
|
428171
428171
|
},
|
|
428172
|
+
getOrSetState: {
|
|
428173
|
+
name: "getOrSetState",
|
|
428174
|
+
description: "Retrieves the [State](#schema_state) object for a valid identifiers. If the state does not exist, it creates a new state.",
|
|
428175
|
+
method: "post",
|
|
428176
|
+
path: "/v1/chat/states/{type}/{id}/{name}/get-or-set",
|
|
428177
|
+
parameters: {
|
|
428178
|
+
type: {
|
|
428179
|
+
in: "path",
|
|
428180
|
+
type: "string",
|
|
428181
|
+
description: "State type",
|
|
428182
|
+
enum: ["conversation", "user", "bot", "integration", "task"]
|
|
428183
|
+
},
|
|
428184
|
+
id: {
|
|
428185
|
+
in: "path",
|
|
428186
|
+
type: "string",
|
|
428187
|
+
description: "State id"
|
|
428188
|
+
},
|
|
428189
|
+
name: {
|
|
428190
|
+
in: "path",
|
|
428191
|
+
type: "string",
|
|
428192
|
+
description: "State name"
|
|
428193
|
+
}
|
|
428194
|
+
},
|
|
428195
|
+
requestBody: {
|
|
428196
|
+
description: "State content",
|
|
428197
|
+
schema: {
|
|
428198
|
+
type: "object",
|
|
428199
|
+
properties: {
|
|
428200
|
+
payload: {
|
|
428201
|
+
type: "object",
|
|
428202
|
+
additionalProperties: true,
|
|
428203
|
+
description: "Payload is the content of the state defined by your bot."
|
|
428204
|
+
},
|
|
428205
|
+
expiry: {
|
|
428206
|
+
type: "number",
|
|
428207
|
+
minimum: 1,
|
|
428208
|
+
maximum: 2592e6,
|
|
428209
|
+
description: "Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire."
|
|
428210
|
+
}
|
|
428211
|
+
},
|
|
428212
|
+
required: ["payload"],
|
|
428213
|
+
title: "getOrSetStateBody",
|
|
428214
|
+
additionalProperties: false
|
|
428215
|
+
}
|
|
428216
|
+
},
|
|
428217
|
+
section: "state",
|
|
428218
|
+
response: {
|
|
428219
|
+
description: "Returns the [State](#schema_state) object if a valid identifiers were provided. Returns [an error](#errors) otherwise.",
|
|
428220
|
+
schema: {
|
|
428221
|
+
type: "object",
|
|
428222
|
+
properties: {
|
|
428223
|
+
state: {
|
|
428224
|
+
$ref: "#/components/schemas/State"
|
|
428225
|
+
}
|
|
428226
|
+
},
|
|
428227
|
+
required: ["state"],
|
|
428228
|
+
title: "getOrSetStateResponse",
|
|
428229
|
+
additionalProperties: false
|
|
428230
|
+
}
|
|
428231
|
+
}
|
|
428232
|
+
},
|
|
428172
428233
|
patchState: {
|
|
428173
428234
|
name: "patchState",
|
|
428174
428235
|
description: "Updates the [State](#schema_state) object by setting the values of the parameters passed.",
|
|
@@ -432000,6 +432061,31 @@ var state = {
|
|
|
432000
432061
|
additionalProperties: false
|
|
432001
432062
|
}
|
|
432002
432063
|
},
|
|
432064
|
+
entities: {
|
|
432065
|
+
type: "object",
|
|
432066
|
+
additionalProperties: {
|
|
432067
|
+
type: "object",
|
|
432068
|
+
properties: {
|
|
432069
|
+
title: {
|
|
432070
|
+
type: "string",
|
|
432071
|
+
maxLength: 64,
|
|
432072
|
+
description: "Title of the entity"
|
|
432073
|
+
},
|
|
432074
|
+
description: {
|
|
432075
|
+
type: "string",
|
|
432076
|
+
maxLength: 256,
|
|
432077
|
+
description: "Description of the entity"
|
|
432078
|
+
},
|
|
432079
|
+
schema: {
|
|
432080
|
+
type: "object",
|
|
432081
|
+
additionalProperties: true
|
|
432082
|
+
}
|
|
432083
|
+
},
|
|
432084
|
+
required: ["schema"],
|
|
432085
|
+
description: "Entity definition",
|
|
432086
|
+
additionalProperties: false
|
|
432087
|
+
}
|
|
432088
|
+
},
|
|
432003
432089
|
identifier: {
|
|
432004
432090
|
type: "object",
|
|
432005
432091
|
properties: {
|
|
@@ -432536,6 +432622,32 @@ var state = {
|
|
|
432536
432622
|
},
|
|
432537
432623
|
additionalProperties: false
|
|
432538
432624
|
},
|
|
432625
|
+
entities: {
|
|
432626
|
+
type: "object",
|
|
432627
|
+
additionalProperties: {
|
|
432628
|
+
type: "object",
|
|
432629
|
+
properties: {
|
|
432630
|
+
title: {
|
|
432631
|
+
type: "string",
|
|
432632
|
+
maxLength: 64,
|
|
432633
|
+
description: "Title of the entity"
|
|
432634
|
+
},
|
|
432635
|
+
description: {
|
|
432636
|
+
type: "string",
|
|
432637
|
+
maxLength: 256,
|
|
432638
|
+
description: "Description of the entity"
|
|
432639
|
+
},
|
|
432640
|
+
schema: {
|
|
432641
|
+
type: "object",
|
|
432642
|
+
additionalProperties: true
|
|
432643
|
+
}
|
|
432644
|
+
},
|
|
432645
|
+
required: ["schema"],
|
|
432646
|
+
description: "Entity definition",
|
|
432647
|
+
nullable: true,
|
|
432648
|
+
additionalProperties: false
|
|
432649
|
+
}
|
|
432650
|
+
},
|
|
432539
432651
|
secrets: {
|
|
432540
432652
|
type: "object",
|
|
432541
432653
|
additionalProperties: {
|
|
@@ -433258,7 +433370,7 @@ var state = {
|
|
|
433258
433370
|
title: "Botpress API",
|
|
433259
433371
|
description: "API for Botpress Cloud",
|
|
433260
433372
|
server: "https://api.botpress.cloud",
|
|
433261
|
-
version: "0.
|
|
433373
|
+
version: "0.18.0",
|
|
433262
433374
|
prefix: "v1"
|
|
433263
433375
|
},
|
|
433264
433376
|
errors: [
|
|
@@ -433383,6 +433495,7 @@ var state = {
|
|
|
433383
433495
|
getOrCreateUserBody: true,
|
|
433384
433496
|
updateUserBody: true,
|
|
433385
433497
|
setStateBody: true,
|
|
433498
|
+
getOrSetStateBody: true,
|
|
433386
433499
|
patchStateBody: true,
|
|
433387
433500
|
callActionBody: true,
|
|
433388
433501
|
configureIntegrationBody: true,
|
|
@@ -433436,6 +433549,7 @@ var state = {
|
|
|
433436
433549
|
deleteUserResponse: true,
|
|
433437
433550
|
getStateResponse: true,
|
|
433438
433551
|
setStateResponse: true,
|
|
433552
|
+
getOrSetStateResponse: true,
|
|
433439
433553
|
patchStateResponse: true,
|
|
433440
433554
|
callActionResponse: true,
|
|
433441
433555
|
configureIntegrationResponse: true,
|
|
@@ -434273,6 +434387,31 @@ var state = {
|
|
|
434273
434387
|
description: "User object configuration",
|
|
434274
434388
|
additionalProperties: false
|
|
434275
434389
|
},
|
|
434390
|
+
entities: {
|
|
434391
|
+
type: "object",
|
|
434392
|
+
additionalProperties: {
|
|
434393
|
+
type: "object",
|
|
434394
|
+
properties: {
|
|
434395
|
+
title: {
|
|
434396
|
+
type: "string",
|
|
434397
|
+
maxLength: 64,
|
|
434398
|
+
description: "Title of the entity"
|
|
434399
|
+
},
|
|
434400
|
+
description: {
|
|
434401
|
+
type: "string",
|
|
434402
|
+
maxLength: 256,
|
|
434403
|
+
description: "Description of the entity"
|
|
434404
|
+
},
|
|
434405
|
+
schema: {
|
|
434406
|
+
type: "object",
|
|
434407
|
+
additionalProperties: true
|
|
434408
|
+
}
|
|
434409
|
+
},
|
|
434410
|
+
required: ["schema"],
|
|
434411
|
+
description: "Entity definition",
|
|
434412
|
+
additionalProperties: false
|
|
434413
|
+
}
|
|
434414
|
+
},
|
|
434276
434415
|
dev: {
|
|
434277
434416
|
type: "boolean",
|
|
434278
434417
|
description: "Indicates if the integration is a development integration; Dev integrations run locally"
|
|
@@ -434317,6 +434456,7 @@ var state = {
|
|
|
434317
434456
|
"events",
|
|
434318
434457
|
"actions",
|
|
434319
434458
|
"user",
|
|
434459
|
+
"entities",
|
|
434320
434460
|
"dev",
|
|
434321
434461
|
"title",
|
|
434322
434462
|
"description",
|
|
@@ -435364,7 +435504,7 @@ var state = {
|
|
|
435364
435504
|
description: "",
|
|
435365
435505
|
title: "State",
|
|
435366
435506
|
name: "state",
|
|
435367
|
-
operations: ["getState", "setState", "patchState"],
|
|
435507
|
+
operations: ["getState", "setState", "getOrSetState", "patchState"],
|
|
435368
435508
|
schema: "State"
|
|
435369
435509
|
},
|
|
435370
435510
|
{
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1275,6 +1275,67 @@ export declare const state: {
|
|
|
1275
1275
|
};
|
|
1276
1276
|
};
|
|
1277
1277
|
};
|
|
1278
|
+
getOrSetState: {
|
|
1279
|
+
name: string;
|
|
1280
|
+
description: string;
|
|
1281
|
+
method: "post";
|
|
1282
|
+
path: string;
|
|
1283
|
+
parameters: {
|
|
1284
|
+
type: {
|
|
1285
|
+
in: "path";
|
|
1286
|
+
type: "string";
|
|
1287
|
+
description: string;
|
|
1288
|
+
enum: string[];
|
|
1289
|
+
};
|
|
1290
|
+
id: {
|
|
1291
|
+
in: "path";
|
|
1292
|
+
type: "string";
|
|
1293
|
+
description: string;
|
|
1294
|
+
};
|
|
1295
|
+
name: {
|
|
1296
|
+
in: "path";
|
|
1297
|
+
type: "string";
|
|
1298
|
+
description: string;
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
requestBody: {
|
|
1302
|
+
description: string;
|
|
1303
|
+
schema: {
|
|
1304
|
+
type: "object";
|
|
1305
|
+
properties: {
|
|
1306
|
+
payload: {
|
|
1307
|
+
type: "object";
|
|
1308
|
+
additionalProperties: true;
|
|
1309
|
+
description: string;
|
|
1310
|
+
};
|
|
1311
|
+
expiry: {
|
|
1312
|
+
type: "number";
|
|
1313
|
+
minimum: number;
|
|
1314
|
+
maximum: number;
|
|
1315
|
+
description: string;
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
required: string[];
|
|
1319
|
+
title: string;
|
|
1320
|
+
additionalProperties: false;
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
section: "state";
|
|
1324
|
+
response: {
|
|
1325
|
+
description: string;
|
|
1326
|
+
schema: {
|
|
1327
|
+
type: "object";
|
|
1328
|
+
properties: {
|
|
1329
|
+
state: {
|
|
1330
|
+
$ref: string;
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
required: string[];
|
|
1334
|
+
title: string;
|
|
1335
|
+
additionalProperties: false;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1278
1339
|
patchState: {
|
|
1279
1340
|
name: string;
|
|
1280
1341
|
description: string;
|
|
@@ -4829,6 +4890,31 @@ export declare const state: {
|
|
|
4829
4890
|
additionalProperties: false;
|
|
4830
4891
|
};
|
|
4831
4892
|
};
|
|
4893
|
+
entities: {
|
|
4894
|
+
type: "object";
|
|
4895
|
+
additionalProperties: {
|
|
4896
|
+
type: "object";
|
|
4897
|
+
properties: {
|
|
4898
|
+
title: {
|
|
4899
|
+
type: "string";
|
|
4900
|
+
maxLength: number;
|
|
4901
|
+
description: string;
|
|
4902
|
+
};
|
|
4903
|
+
description: {
|
|
4904
|
+
type: "string";
|
|
4905
|
+
maxLength: number;
|
|
4906
|
+
description: string;
|
|
4907
|
+
};
|
|
4908
|
+
schema: {
|
|
4909
|
+
type: "object";
|
|
4910
|
+
additionalProperties: true;
|
|
4911
|
+
};
|
|
4912
|
+
};
|
|
4913
|
+
required: string[];
|
|
4914
|
+
description: string;
|
|
4915
|
+
additionalProperties: false;
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4832
4918
|
identifier: {
|
|
4833
4919
|
type: "object";
|
|
4834
4920
|
properties: {
|
|
@@ -5365,6 +5451,32 @@ export declare const state: {
|
|
|
5365
5451
|
};
|
|
5366
5452
|
additionalProperties: false;
|
|
5367
5453
|
};
|
|
5454
|
+
entities: {
|
|
5455
|
+
type: "object";
|
|
5456
|
+
additionalProperties: {
|
|
5457
|
+
type: "object";
|
|
5458
|
+
properties: {
|
|
5459
|
+
title: {
|
|
5460
|
+
type: "string";
|
|
5461
|
+
maxLength: number;
|
|
5462
|
+
description: string;
|
|
5463
|
+
};
|
|
5464
|
+
description: {
|
|
5465
|
+
type: "string";
|
|
5466
|
+
maxLength: number;
|
|
5467
|
+
description: string;
|
|
5468
|
+
};
|
|
5469
|
+
schema: {
|
|
5470
|
+
type: "object";
|
|
5471
|
+
additionalProperties: true;
|
|
5472
|
+
};
|
|
5473
|
+
};
|
|
5474
|
+
required: string[];
|
|
5475
|
+
description: string;
|
|
5476
|
+
nullable: true;
|
|
5477
|
+
additionalProperties: false;
|
|
5478
|
+
};
|
|
5479
|
+
};
|
|
5368
5480
|
secrets: {
|
|
5369
5481
|
type: "object";
|
|
5370
5482
|
additionalProperties: {
|
|
@@ -6113,6 +6225,7 @@ export declare const state: {
|
|
|
6113
6225
|
getOrCreateUserBody: true;
|
|
6114
6226
|
updateUserBody: true;
|
|
6115
6227
|
setStateBody: true;
|
|
6228
|
+
getOrSetStateBody: true;
|
|
6116
6229
|
patchStateBody: true;
|
|
6117
6230
|
callActionBody: true;
|
|
6118
6231
|
configureIntegrationBody: true;
|
|
@@ -6166,6 +6279,7 @@ export declare const state: {
|
|
|
6166
6279
|
deleteUserResponse: true;
|
|
6167
6280
|
getStateResponse: true;
|
|
6168
6281
|
setStateResponse: true;
|
|
6282
|
+
getOrSetStateResponse: true;
|
|
6169
6283
|
patchStateResponse: true;
|
|
6170
6284
|
callActionResponse: true;
|
|
6171
6285
|
configureIntegrationResponse: true;
|
|
@@ -6956,6 +7070,31 @@ export declare const state: {
|
|
|
6956
7070
|
description: string;
|
|
6957
7071
|
additionalProperties: false;
|
|
6958
7072
|
};
|
|
7073
|
+
entities: {
|
|
7074
|
+
type: "object";
|
|
7075
|
+
additionalProperties: {
|
|
7076
|
+
type: "object";
|
|
7077
|
+
properties: {
|
|
7078
|
+
title: {
|
|
7079
|
+
type: "string";
|
|
7080
|
+
maxLength: number;
|
|
7081
|
+
description: string;
|
|
7082
|
+
};
|
|
7083
|
+
description: {
|
|
7084
|
+
type: "string";
|
|
7085
|
+
maxLength: number;
|
|
7086
|
+
description: string;
|
|
7087
|
+
};
|
|
7088
|
+
schema: {
|
|
7089
|
+
type: "object";
|
|
7090
|
+
additionalProperties: true;
|
|
7091
|
+
};
|
|
7092
|
+
};
|
|
7093
|
+
required: string[];
|
|
7094
|
+
description: string;
|
|
7095
|
+
additionalProperties: false;
|
|
7096
|
+
};
|
|
7097
|
+
};
|
|
6959
7098
|
dev: {
|
|
6960
7099
|
type: "boolean";
|
|
6961
7100
|
description: string;
|
package/package.json
CHANGED
package/src/gen/metadata.json
CHANGED
|
@@ -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":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"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":"Operations related to table management.","name":"tables","operations":[],"schema":"Table"}],"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 not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"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."}]}
|
|
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":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"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":"Operations related to table management.","name":"tables","operations":[],"schema":"Table"}],"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 not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"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."}]}
|