@botpress/api 1.5.0 → 1.6.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.
@@ -2607,7 +2607,7 @@ export const state = {
2607
2607
  "title": "Botpress API",
2608
2608
  "description": "API for Botpress Cloud",
2609
2609
  "server": "https://api.botpress.cloud",
2610
- "version": "1.5.0",
2610
+ "version": "1.6.0",
2611
2611
  "prefix": "v1"
2612
2612
  },
2613
2613
  "errors": [
package/src/gen/state.ts CHANGED
@@ -5540,7 +5540,7 @@ export const state = {
5540
5540
  "name": "getPublicPluginCode",
5541
5541
  "description": "Get public plugin code",
5542
5542
  "method": "get",
5543
- "path": "/v1/admin/hub/{id}/code/{platform}",
5543
+ "path": "/v1/admin/hub/plugins/{id}/code/{platform}",
5544
5544
  "disableDefaultParameters": {
5545
5545
  "x-workspace-id": true
5546
5546
  },
@@ -7487,6 +7487,136 @@ export const state = {
7487
7487
  }
7488
7488
  }
7489
7489
  },
7490
+ "listBotApiKeys": {
7491
+ "name": "listBotApiKeys",
7492
+ "description": "List BAKs (Bot Api Keys) of a bot",
7493
+ "method": "get",
7494
+ "section": "bot",
7495
+ "path": "/v1/admin/bots/baks",
7496
+ "parameters": {
7497
+ "botId": {
7498
+ "in": "query",
7499
+ "description": "ID of the bot",
7500
+ "type": "string",
7501
+ "required": true
7502
+ }
7503
+ },
7504
+ "response": {
7505
+ "description": "Success",
7506
+ "schema": {
7507
+ "type": "object",
7508
+ "properties": {
7509
+ "baks": {
7510
+ "type": "array",
7511
+ "items": {
7512
+ "type": "object",
7513
+ "properties": {
7514
+ "id": {
7515
+ "type": "string"
7516
+ },
7517
+ "createdAt": {
7518
+ "type": "string",
7519
+ "format": "date-time"
7520
+ },
7521
+ "note": {
7522
+ "type": "string"
7523
+ }
7524
+ },
7525
+ "required": [
7526
+ "id",
7527
+ "createdAt",
7528
+ "note"
7529
+ ]
7530
+ }
7531
+ }
7532
+ },
7533
+ "required": [
7534
+ "baks"
7535
+ ],
7536
+ "title": "listBotApiKeysResponse",
7537
+ "additionalProperties": false
7538
+ }
7539
+ }
7540
+ },
7541
+ "createBotApiKey": {
7542
+ "name": "createBotApiKey",
7543
+ "description": "Create a BAK",
7544
+ "method": "post",
7545
+ "section": "bot",
7546
+ "path": "/v1/admin/bots/baks",
7547
+ "requestBody": {
7548
+ "description": "BAK body",
7549
+ "schema": {
7550
+ "type": "object",
7551
+ "properties": {
7552
+ "botId": {
7553
+ "type": "string"
7554
+ },
7555
+ "note": {
7556
+ "type": "string"
7557
+ }
7558
+ },
7559
+ "required": [
7560
+ "botId"
7561
+ ],
7562
+ "title": "createBotApiKeyBody",
7563
+ "additionalProperties": false
7564
+ }
7565
+ },
7566
+ "response": {
7567
+ "description": "Success",
7568
+ "schema": {
7569
+ "type": "object",
7570
+ "properties": {
7571
+ "id": {
7572
+ "type": "string"
7573
+ },
7574
+ "createdAt": {
7575
+ "type": "string",
7576
+ "format": "date-time"
7577
+ },
7578
+ "note": {
7579
+ "type": "string"
7580
+ },
7581
+ "value": {
7582
+ "type": "string",
7583
+ "description": "The BAK value. This will only be returned here when created and cannot be retrieved later."
7584
+ }
7585
+ },
7586
+ "required": [
7587
+ "id",
7588
+ "createdAt",
7589
+ "note",
7590
+ "value"
7591
+ ],
7592
+ "title": "createBotApiKeyResponse",
7593
+ "additionalProperties": false
7594
+ }
7595
+ },
7596
+ "parameters": {}
7597
+ },
7598
+ "deleteBotApiKey": {
7599
+ "name": "deleteBotApiKey",
7600
+ "description": "Delete a BAK",
7601
+ "method": "delete",
7602
+ "section": "bot",
7603
+ "path": "/v1/admin/bots/baks/{id}",
7604
+ "parameters": {
7605
+ "id": {
7606
+ "type": "string",
7607
+ "description": "ID of Bot Api Key",
7608
+ "in": "path"
7609
+ }
7610
+ },
7611
+ "response": {
7612
+ "description": "Success",
7613
+ "schema": {
7614
+ "type": "object",
7615
+ "title": "deleteBotApiKeyResponse",
7616
+ "additionalProperties": false
7617
+ }
7618
+ }
7619
+ },
7490
7620
  "listWorkspaceInvoices": {
7491
7621
  "name": "listWorkspaceInvoices",
7492
7622
  "description": "List invoices billed to workspace",
@@ -17009,7 +17139,7 @@ export const state = {
17009
17139
  "title": "Botpress API",
17010
17140
  "description": "API for Botpress Cloud",
17011
17141
  "server": "https://api.botpress.cloud",
17012
- "version": "1.5.0",
17142
+ "version": "1.6.0",
17013
17143
  "prefix": "v1"
17014
17144
  },
17015
17145
  "errors": [
@@ -17170,6 +17300,7 @@ export const state = {
17170
17300
  "createBotVersionBody": true,
17171
17301
  "deployBotVersionBody": true,
17172
17302
  "createIntegrationShareableIdBody": true,
17303
+ "createBotApiKeyBody": true,
17173
17304
  "chargeWorkspaceUnpaidInvoicesBody": true,
17174
17305
  "createWorkspaceBody": true,
17175
17306
  "updateWorkspaceBody": true,
@@ -17286,6 +17417,9 @@ export const state = {
17286
17417
  "createIntegrationShareableIdResponse": true,
17287
17418
  "deleteIntegrationShareableIdResponse": true,
17288
17419
  "getIntegrationShareableIdResponse": true,
17420
+ "listBotApiKeysResponse": true,
17421
+ "createBotApiKeyResponse": true,
17422
+ "deleteBotApiKeyResponse": true,
17289
17423
  "listWorkspaceInvoicesResponse": true,
17290
17424
  "getUpcomingInvoiceResponse": true,
17291
17425
  "chargeWorkspaceUnpaidInvoicesResponse": true,
@@ -20775,7 +20909,10 @@ export const state = {
20775
20909
  "deployBotVersion",
20776
20910
  "createIntegrationShareableId",
20777
20911
  "deleteIntegrationShareableId",
20778
- "getIntegrationShareableId"
20912
+ "getIntegrationShareableId",
20913
+ "listBotApiKeys",
20914
+ "createBotApiKey",
20915
+ "deleteBotApiKey"
20779
20916
  ],
20780
20917
  "schema": "Bot"
20781
20918
  },