@botpress/api 0.6.0 → 0.7.1
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/gen/state.d.ts +170 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +211 -7
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +190 -2
package/src/gen/state.ts
CHANGED
|
@@ -1279,6 +1279,131 @@ export const state = {
|
|
|
1279
1279
|
},
|
|
1280
1280
|
parameters: {},
|
|
1281
1281
|
},
|
|
1282
|
+
listPersonalAccessTokens: {
|
|
1283
|
+
name: "listPersonalAccessTokens",
|
|
1284
|
+
description: "List PATs (Personal Access Tokens) of account.",
|
|
1285
|
+
method: "get",
|
|
1286
|
+
path: "/v1/admin/account/pats",
|
|
1287
|
+
section: "account",
|
|
1288
|
+
disableDefaultParameters: {
|
|
1289
|
+
"x-workspace-id": true,
|
|
1290
|
+
},
|
|
1291
|
+
response: {
|
|
1292
|
+
description: "Success",
|
|
1293
|
+
schema: {
|
|
1294
|
+
type: "object",
|
|
1295
|
+
properties: {
|
|
1296
|
+
pats: {
|
|
1297
|
+
type: "array",
|
|
1298
|
+
items: {
|
|
1299
|
+
type: "object",
|
|
1300
|
+
properties: {
|
|
1301
|
+
id: {
|
|
1302
|
+
type: "string",
|
|
1303
|
+
},
|
|
1304
|
+
createdAt: {
|
|
1305
|
+
type: "string",
|
|
1306
|
+
format: "date-time",
|
|
1307
|
+
},
|
|
1308
|
+
note: {
|
|
1309
|
+
type: "string",
|
|
1310
|
+
},
|
|
1311
|
+
},
|
|
1312
|
+
required: ["id", "createdAt", "note"],
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1315
|
+
},
|
|
1316
|
+
required: ["pats"],
|
|
1317
|
+
title: "listPersonalAccessTokensResponse",
|
|
1318
|
+
additionalProperties: false,
|
|
1319
|
+
},
|
|
1320
|
+
},
|
|
1321
|
+
parameters: {},
|
|
1322
|
+
},
|
|
1323
|
+
createPersonalAccessToken: {
|
|
1324
|
+
name: "createPersonalAccessToken",
|
|
1325
|
+
description: "Create a PAT",
|
|
1326
|
+
method: "post",
|
|
1327
|
+
path: "/v1/admin/account/pats",
|
|
1328
|
+
section: "account",
|
|
1329
|
+
disableDefaultParameters: {
|
|
1330
|
+
"x-workspace-id": true,
|
|
1331
|
+
},
|
|
1332
|
+
requestBody: {
|
|
1333
|
+
description: "",
|
|
1334
|
+
schema: {
|
|
1335
|
+
type: "object",
|
|
1336
|
+
properties: {
|
|
1337
|
+
note: {
|
|
1338
|
+
type: "string",
|
|
1339
|
+
description: "Note to identify the PAT",
|
|
1340
|
+
},
|
|
1341
|
+
},
|
|
1342
|
+
required: ["note"],
|
|
1343
|
+
title: "createPersonalAccessTokenBody",
|
|
1344
|
+
additionalProperties: false,
|
|
1345
|
+
},
|
|
1346
|
+
},
|
|
1347
|
+
response: {
|
|
1348
|
+
description: "Success",
|
|
1349
|
+
schema: {
|
|
1350
|
+
type: "object",
|
|
1351
|
+
properties: {
|
|
1352
|
+
pat: {
|
|
1353
|
+
type: "object",
|
|
1354
|
+
properties: {
|
|
1355
|
+
id: {
|
|
1356
|
+
type: "string",
|
|
1357
|
+
},
|
|
1358
|
+
createdAt: {
|
|
1359
|
+
type: "string",
|
|
1360
|
+
format: "date-time",
|
|
1361
|
+
},
|
|
1362
|
+
note: {
|
|
1363
|
+
type: "string",
|
|
1364
|
+
},
|
|
1365
|
+
value: {
|
|
1366
|
+
type: "string",
|
|
1367
|
+
description:
|
|
1368
|
+
"The PAT value. This will only be returned here when created and cannot be retrieved later.",
|
|
1369
|
+
},
|
|
1370
|
+
},
|
|
1371
|
+
required: ["id", "createdAt", "note", "value"],
|
|
1372
|
+
additionalProperties: false,
|
|
1373
|
+
},
|
|
1374
|
+
},
|
|
1375
|
+
required: ["pat"],
|
|
1376
|
+
title: "createPersonalAccessTokenResponse",
|
|
1377
|
+
additionalProperties: false,
|
|
1378
|
+
},
|
|
1379
|
+
},
|
|
1380
|
+
parameters: {},
|
|
1381
|
+
},
|
|
1382
|
+
deletePersonalAccessToken: {
|
|
1383
|
+
name: "deletePersonalAccessToken",
|
|
1384
|
+
description: "Delete a PAT",
|
|
1385
|
+
method: "delete",
|
|
1386
|
+
path: "/v1/admin/account/pats/{id}",
|
|
1387
|
+
section: "account",
|
|
1388
|
+
disableDefaultParameters: {
|
|
1389
|
+
"x-workspace-id": true,
|
|
1390
|
+
},
|
|
1391
|
+
parameters: {
|
|
1392
|
+
id: {
|
|
1393
|
+
type: "string",
|
|
1394
|
+
description: "ID of Personal Access Token",
|
|
1395
|
+
in: "path",
|
|
1396
|
+
},
|
|
1397
|
+
},
|
|
1398
|
+
response: {
|
|
1399
|
+
description: "Success",
|
|
1400
|
+
schema: {
|
|
1401
|
+
type: "object",
|
|
1402
|
+
title: "deletePersonalAccessTokenResponse",
|
|
1403
|
+
additionalProperties: false,
|
|
1404
|
+
},
|
|
1405
|
+
},
|
|
1406
|
+
},
|
|
1282
1407
|
listPublicIntegrations: {
|
|
1283
1408
|
name: "listPublicIntegrations",
|
|
1284
1409
|
description: "List public integration",
|
|
@@ -2160,6 +2285,24 @@ export const state = {
|
|
|
2160
2285
|
description: "Bot ID",
|
|
2161
2286
|
in: "path",
|
|
2162
2287
|
},
|
|
2288
|
+
timeStart: {
|
|
2289
|
+
in: "query",
|
|
2290
|
+
description: "Beginning of the time range to get logs from",
|
|
2291
|
+
type: "string",
|
|
2292
|
+
required: true,
|
|
2293
|
+
},
|
|
2294
|
+
timeEnd: {
|
|
2295
|
+
in: "query",
|
|
2296
|
+
description: "End of the time range to get logs from",
|
|
2297
|
+
type: "string",
|
|
2298
|
+
required: true,
|
|
2299
|
+
},
|
|
2300
|
+
nextToken: {
|
|
2301
|
+
in: "query",
|
|
2302
|
+
description: "Token to get the next page of logs",
|
|
2303
|
+
type: "string",
|
|
2304
|
+
required: false,
|
|
2305
|
+
},
|
|
2163
2306
|
},
|
|
2164
2307
|
response: {
|
|
2165
2308
|
description: "Success",
|
|
@@ -2184,6 +2327,9 @@ export const state = {
|
|
|
2184
2327
|
required: ["timestamp", "level", "message"],
|
|
2185
2328
|
},
|
|
2186
2329
|
},
|
|
2330
|
+
nextToken: {
|
|
2331
|
+
type: "string",
|
|
2332
|
+
},
|
|
2187
2333
|
},
|
|
2188
2334
|
required: ["logs"],
|
|
2189
2335
|
title: "getBotLogsResponse",
|
|
@@ -3885,6 +4031,24 @@ export const state = {
|
|
|
3885
4031
|
description: "Integration Id",
|
|
3886
4032
|
in: "path",
|
|
3887
4033
|
},
|
|
4034
|
+
timeStart: {
|
|
4035
|
+
in: "query",
|
|
4036
|
+
description: "Beginning of the time range to get logs from",
|
|
4037
|
+
type: "string",
|
|
4038
|
+
required: true,
|
|
4039
|
+
},
|
|
4040
|
+
timeEnd: {
|
|
4041
|
+
in: "query",
|
|
4042
|
+
description: "End of the time range to get logs from",
|
|
4043
|
+
type: "string",
|
|
4044
|
+
required: true,
|
|
4045
|
+
},
|
|
4046
|
+
nextToken: {
|
|
4047
|
+
in: "query",
|
|
4048
|
+
description: "Token to get the next page of logs",
|
|
4049
|
+
type: "string",
|
|
4050
|
+
required: false,
|
|
4051
|
+
},
|
|
3888
4052
|
},
|
|
3889
4053
|
response: {
|
|
3890
4054
|
description: "Success",
|
|
@@ -3909,6 +4073,9 @@ export const state = {
|
|
|
3909
4073
|
required: ["timestamp", "level", "message"],
|
|
3910
4074
|
},
|
|
3911
4075
|
},
|
|
4076
|
+
nextToken: {
|
|
4077
|
+
type: "string",
|
|
4078
|
+
},
|
|
3912
4079
|
},
|
|
3913
4080
|
required: ["logs"],
|
|
3914
4081
|
title: "getIntegrationLogsResponse",
|
|
@@ -4193,7 +4360,7 @@ export const state = {
|
|
|
4193
4360
|
title: "Botpress API",
|
|
4194
4361
|
description: "API for Botpress Cloud",
|
|
4195
4362
|
server: "https://api.botpress.cloud",
|
|
4196
|
-
version: "0.
|
|
4363
|
+
version: "0.7.1",
|
|
4197
4364
|
prefix: "v1",
|
|
4198
4365
|
},
|
|
4199
4366
|
errors: [
|
|
@@ -4299,6 +4466,18 @@ export const state = {
|
|
|
4299
4466
|
type: "PaymentRequired",
|
|
4300
4467
|
description: "A payment is required to perform this request.",
|
|
4301
4468
|
},
|
|
4469
|
+
{
|
|
4470
|
+
status: 429,
|
|
4471
|
+
type: "QuotaExceeded",
|
|
4472
|
+
description:
|
|
4473
|
+
"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.",
|
|
4474
|
+
},
|
|
4475
|
+
{
|
|
4476
|
+
status: 413,
|
|
4477
|
+
type: "LimitExceeded",
|
|
4478
|
+
description:
|
|
4479
|
+
"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.",
|
|
4480
|
+
},
|
|
4302
4481
|
],
|
|
4303
4482
|
refs: {
|
|
4304
4483
|
parameters: {},
|
|
@@ -4317,6 +4496,7 @@ export const state = {
|
|
|
4317
4496
|
patchStateBody: true,
|
|
4318
4497
|
callActionBody: true,
|
|
4319
4498
|
configureIntegrationBody: true,
|
|
4499
|
+
createPersonalAccessTokenBody: true,
|
|
4320
4500
|
createBotBody: true,
|
|
4321
4501
|
updateBotBody: true,
|
|
4322
4502
|
transferBotBody: true,
|
|
@@ -4358,6 +4538,9 @@ export const state = {
|
|
|
4358
4538
|
callActionResponse: true,
|
|
4359
4539
|
configureIntegrationResponse: true,
|
|
4360
4540
|
getAccountResponse: true,
|
|
4541
|
+
listPersonalAccessTokensResponse: true,
|
|
4542
|
+
createPersonalAccessTokenResponse: true,
|
|
4543
|
+
deletePersonalAccessTokenResponse: true,
|
|
4361
4544
|
listPublicIntegrationsResponse: true,
|
|
4362
4545
|
getPublicIntegrationByIdResponse: true,
|
|
4363
4546
|
getPublicIntegrationResponse: true,
|
|
@@ -5667,7 +5850,12 @@ export const state = {
|
|
|
5667
5850
|
description: "",
|
|
5668
5851
|
title: "Account",
|
|
5669
5852
|
name: "account",
|
|
5670
|
-
operations: [
|
|
5853
|
+
operations: [
|
|
5854
|
+
"getAccount",
|
|
5855
|
+
"listPersonalAccessTokens",
|
|
5856
|
+
"createPersonalAccessToken",
|
|
5857
|
+
"deletePersonalAccessToken",
|
|
5858
|
+
],
|
|
5671
5859
|
schema: "Account",
|
|
5672
5860
|
},
|
|
5673
5861
|
],
|