@botpress/api 0.7.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 +128 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +169 -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 +148 -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",
|
|
@@ -4235,7 +4360,7 @@ export const state = {
|
|
|
4235
4360
|
title: "Botpress API",
|
|
4236
4361
|
description: "API for Botpress Cloud",
|
|
4237
4362
|
server: "https://api.botpress.cloud",
|
|
4238
|
-
version: "0.7.
|
|
4363
|
+
version: "0.7.1",
|
|
4239
4364
|
prefix: "v1",
|
|
4240
4365
|
},
|
|
4241
4366
|
errors: [
|
|
@@ -4341,6 +4466,18 @@ export const state = {
|
|
|
4341
4466
|
type: "PaymentRequired",
|
|
4342
4467
|
description: "A payment is required to perform this request.",
|
|
4343
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
|
+
},
|
|
4344
4481
|
],
|
|
4345
4482
|
refs: {
|
|
4346
4483
|
parameters: {},
|
|
@@ -4359,6 +4496,7 @@ export const state = {
|
|
|
4359
4496
|
patchStateBody: true,
|
|
4360
4497
|
callActionBody: true,
|
|
4361
4498
|
configureIntegrationBody: true,
|
|
4499
|
+
createPersonalAccessTokenBody: true,
|
|
4362
4500
|
createBotBody: true,
|
|
4363
4501
|
updateBotBody: true,
|
|
4364
4502
|
transferBotBody: true,
|
|
@@ -4400,6 +4538,9 @@ export const state = {
|
|
|
4400
4538
|
callActionResponse: true,
|
|
4401
4539
|
configureIntegrationResponse: true,
|
|
4402
4540
|
getAccountResponse: true,
|
|
4541
|
+
listPersonalAccessTokensResponse: true,
|
|
4542
|
+
createPersonalAccessTokenResponse: true,
|
|
4543
|
+
deletePersonalAccessTokenResponse: true,
|
|
4403
4544
|
listPublicIntegrationsResponse: true,
|
|
4404
4545
|
getPublicIntegrationByIdResponse: true,
|
|
4405
4546
|
getPublicIntegrationResponse: true,
|
|
@@ -5709,7 +5850,12 @@ export const state = {
|
|
|
5709
5850
|
description: "",
|
|
5710
5851
|
title: "Account",
|
|
5711
5852
|
name: "account",
|
|
5712
|
-
operations: [
|
|
5853
|
+
operations: [
|
|
5854
|
+
"getAccount",
|
|
5855
|
+
"listPersonalAccessTokens",
|
|
5856
|
+
"createPersonalAccessToken",
|
|
5857
|
+
"deletePersonalAccessToken",
|
|
5858
|
+
],
|
|
5713
5859
|
schema: "Account",
|
|
5714
5860
|
},
|
|
5715
5861
|
],
|