@botpress/api 1.5.1 → 1.7.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 +291 -15
- package/dist/src/gen/admin/state.d.ts +121 -0
- package/dist/src/gen/runtime/state.d.ts +1 -0
- package/dist/src/gen/state.d.ts +122 -0
- package/package.json +1 -1
- package/src/gen/admin/metadata.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +142 -5
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +3 -2
- package/src/gen/state.ts +144 -6
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -1
package/src/gen/runtime/state.ts
CHANGED
|
@@ -1753,6 +1753,7 @@ export const state = {
|
|
|
1753
1753
|
"identifier": {
|
|
1754
1754
|
"type": "string",
|
|
1755
1755
|
"maxLength": 200,
|
|
1756
|
+
"nullable": true,
|
|
1756
1757
|
"description": "Unique identifier of the integration that was installed on the bot"
|
|
1757
1758
|
},
|
|
1758
1759
|
"scheduleRegisterCall": {
|
|
@@ -1777,7 +1778,7 @@ export const state = {
|
|
|
1777
1778
|
"additionalProperties": false
|
|
1778
1779
|
},
|
|
1779
1780
|
"nullable": true,
|
|
1780
|
-
"description": "Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual
|
|
1781
|
+
"description": "**EXPERIMENTAL** Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual sandbox identifier to null will remove that sandbox identifier. This is an experimental feature meant to be used by specific integrations."
|
|
1781
1782
|
}
|
|
1782
1783
|
},
|
|
1783
1784
|
"title": "configureIntegrationBody",
|
|
@@ -2607,7 +2608,7 @@ export const state = {
|
|
|
2607
2608
|
"title": "Botpress API",
|
|
2608
2609
|
"description": "API for Botpress Cloud",
|
|
2609
2610
|
"server": "https://api.botpress.cloud",
|
|
2610
|
-
"version": "1.
|
|
2611
|
+
"version": "1.7.0",
|
|
2611
2612
|
"prefix": "v1"
|
|
2612
2613
|
},
|
|
2613
2614
|
"errors": [
|
package/src/gen/state.ts
CHANGED
|
@@ -1753,6 +1753,7 @@ export const state = {
|
|
|
1753
1753
|
"identifier": {
|
|
1754
1754
|
"type": "string",
|
|
1755
1755
|
"maxLength": 200,
|
|
1756
|
+
"nullable": true,
|
|
1756
1757
|
"description": "Unique identifier of the integration that was installed on the bot"
|
|
1757
1758
|
},
|
|
1758
1759
|
"scheduleRegisterCall": {
|
|
@@ -1777,7 +1778,7 @@ export const state = {
|
|
|
1777
1778
|
"additionalProperties": false
|
|
1778
1779
|
},
|
|
1779
1780
|
"nullable": true,
|
|
1780
|
-
"description": "Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual
|
|
1781
|
+
"description": "**EXPERIMENTAL** Sandbox identifiers for the integration. Setting this to null will remove all sandbox identifiers. Setting an individual sandbox identifier to null will remove that sandbox identifier. This is an experimental feature meant to be used by specific integrations."
|
|
1781
1782
|
}
|
|
1782
1783
|
},
|
|
1783
1784
|
"title": "configureIntegrationBody",
|
|
@@ -7380,7 +7381,7 @@ export const state = {
|
|
|
7380
7381
|
},
|
|
7381
7382
|
"createIntegrationShareableId": {
|
|
7382
7383
|
"name": "createIntegrationShareableId",
|
|
7383
|
-
"description": "
|
|
7384
|
+
"description": "**EXPERIMENTAL** Generate a shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
7384
7385
|
"method": "post",
|
|
7385
7386
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
7386
7387
|
"section": "bot",
|
|
@@ -7423,7 +7424,7 @@ export const state = {
|
|
|
7423
7424
|
},
|
|
7424
7425
|
"deleteIntegrationShareableId": {
|
|
7425
7426
|
"name": "deleteIntegrationShareableId",
|
|
7426
|
-
"description": "
|
|
7427
|
+
"description": "**EXPERIMENTAL** Delete a shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
7427
7428
|
"method": "delete",
|
|
7428
7429
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
7429
7430
|
"section": "bot",
|
|
@@ -7450,7 +7451,7 @@ export const state = {
|
|
|
7450
7451
|
},
|
|
7451
7452
|
"getIntegrationShareableId": {
|
|
7452
7453
|
"name": "getIntegrationShareableId",
|
|
7453
|
-
"description": "
|
|
7454
|
+
"description": "**EXPERIMENTAL** Get an existing shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
7454
7455
|
"method": "get",
|
|
7455
7456
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
7456
7457
|
"section": "bot",
|
|
@@ -7487,6 +7488,136 @@ export const state = {
|
|
|
7487
7488
|
}
|
|
7488
7489
|
}
|
|
7489
7490
|
},
|
|
7491
|
+
"listBotApiKeys": {
|
|
7492
|
+
"name": "listBotApiKeys",
|
|
7493
|
+
"description": "List BAKs (Bot Api Keys) of a bot",
|
|
7494
|
+
"method": "get",
|
|
7495
|
+
"section": "bot",
|
|
7496
|
+
"path": "/v1/admin/bots/baks",
|
|
7497
|
+
"parameters": {
|
|
7498
|
+
"botId": {
|
|
7499
|
+
"in": "query",
|
|
7500
|
+
"description": "ID of the bot",
|
|
7501
|
+
"type": "string",
|
|
7502
|
+
"required": true
|
|
7503
|
+
}
|
|
7504
|
+
},
|
|
7505
|
+
"response": {
|
|
7506
|
+
"description": "Success",
|
|
7507
|
+
"schema": {
|
|
7508
|
+
"type": "object",
|
|
7509
|
+
"properties": {
|
|
7510
|
+
"baks": {
|
|
7511
|
+
"type": "array",
|
|
7512
|
+
"items": {
|
|
7513
|
+
"type": "object",
|
|
7514
|
+
"properties": {
|
|
7515
|
+
"id": {
|
|
7516
|
+
"type": "string"
|
|
7517
|
+
},
|
|
7518
|
+
"createdAt": {
|
|
7519
|
+
"type": "string",
|
|
7520
|
+
"format": "date-time"
|
|
7521
|
+
},
|
|
7522
|
+
"note": {
|
|
7523
|
+
"type": "string"
|
|
7524
|
+
}
|
|
7525
|
+
},
|
|
7526
|
+
"required": [
|
|
7527
|
+
"id",
|
|
7528
|
+
"createdAt",
|
|
7529
|
+
"note"
|
|
7530
|
+
]
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7533
|
+
},
|
|
7534
|
+
"required": [
|
|
7535
|
+
"baks"
|
|
7536
|
+
],
|
|
7537
|
+
"title": "listBotApiKeysResponse",
|
|
7538
|
+
"additionalProperties": false
|
|
7539
|
+
}
|
|
7540
|
+
}
|
|
7541
|
+
},
|
|
7542
|
+
"createBotApiKey": {
|
|
7543
|
+
"name": "createBotApiKey",
|
|
7544
|
+
"description": "Create a BAK",
|
|
7545
|
+
"method": "post",
|
|
7546
|
+
"section": "bot",
|
|
7547
|
+
"path": "/v1/admin/bots/baks",
|
|
7548
|
+
"requestBody": {
|
|
7549
|
+
"description": "BAK body",
|
|
7550
|
+
"schema": {
|
|
7551
|
+
"type": "object",
|
|
7552
|
+
"properties": {
|
|
7553
|
+
"botId": {
|
|
7554
|
+
"type": "string"
|
|
7555
|
+
},
|
|
7556
|
+
"note": {
|
|
7557
|
+
"type": "string"
|
|
7558
|
+
}
|
|
7559
|
+
},
|
|
7560
|
+
"required": [
|
|
7561
|
+
"botId"
|
|
7562
|
+
],
|
|
7563
|
+
"title": "createBotApiKeyBody",
|
|
7564
|
+
"additionalProperties": false
|
|
7565
|
+
}
|
|
7566
|
+
},
|
|
7567
|
+
"response": {
|
|
7568
|
+
"description": "Success",
|
|
7569
|
+
"schema": {
|
|
7570
|
+
"type": "object",
|
|
7571
|
+
"properties": {
|
|
7572
|
+
"id": {
|
|
7573
|
+
"type": "string"
|
|
7574
|
+
},
|
|
7575
|
+
"createdAt": {
|
|
7576
|
+
"type": "string",
|
|
7577
|
+
"format": "date-time"
|
|
7578
|
+
},
|
|
7579
|
+
"note": {
|
|
7580
|
+
"type": "string"
|
|
7581
|
+
},
|
|
7582
|
+
"value": {
|
|
7583
|
+
"type": "string",
|
|
7584
|
+
"description": "The BAK value. This will only be returned here when created and cannot be retrieved later."
|
|
7585
|
+
}
|
|
7586
|
+
},
|
|
7587
|
+
"required": [
|
|
7588
|
+
"id",
|
|
7589
|
+
"createdAt",
|
|
7590
|
+
"note",
|
|
7591
|
+
"value"
|
|
7592
|
+
],
|
|
7593
|
+
"title": "createBotApiKeyResponse",
|
|
7594
|
+
"additionalProperties": false
|
|
7595
|
+
}
|
|
7596
|
+
},
|
|
7597
|
+
"parameters": {}
|
|
7598
|
+
},
|
|
7599
|
+
"deleteBotApiKey": {
|
|
7600
|
+
"name": "deleteBotApiKey",
|
|
7601
|
+
"description": "Delete a BAK",
|
|
7602
|
+
"method": "delete",
|
|
7603
|
+
"section": "bot",
|
|
7604
|
+
"path": "/v1/admin/bots/baks/{id}",
|
|
7605
|
+
"parameters": {
|
|
7606
|
+
"id": {
|
|
7607
|
+
"type": "string",
|
|
7608
|
+
"description": "ID of Bot Api Key",
|
|
7609
|
+
"in": "path"
|
|
7610
|
+
}
|
|
7611
|
+
},
|
|
7612
|
+
"response": {
|
|
7613
|
+
"description": "Success",
|
|
7614
|
+
"schema": {
|
|
7615
|
+
"type": "object",
|
|
7616
|
+
"title": "deleteBotApiKeyResponse",
|
|
7617
|
+
"additionalProperties": false
|
|
7618
|
+
}
|
|
7619
|
+
}
|
|
7620
|
+
},
|
|
7490
7621
|
"listWorkspaceInvoices": {
|
|
7491
7622
|
"name": "listWorkspaceInvoices",
|
|
7492
7623
|
"description": "List invoices billed to workspace",
|
|
@@ -17009,7 +17140,7 @@ export const state = {
|
|
|
17009
17140
|
"title": "Botpress API",
|
|
17010
17141
|
"description": "API for Botpress Cloud",
|
|
17011
17142
|
"server": "https://api.botpress.cloud",
|
|
17012
|
-
"version": "1.
|
|
17143
|
+
"version": "1.7.0",
|
|
17013
17144
|
"prefix": "v1"
|
|
17014
17145
|
},
|
|
17015
17146
|
"errors": [
|
|
@@ -17170,6 +17301,7 @@ export const state = {
|
|
|
17170
17301
|
"createBotVersionBody": true,
|
|
17171
17302
|
"deployBotVersionBody": true,
|
|
17172
17303
|
"createIntegrationShareableIdBody": true,
|
|
17304
|
+
"createBotApiKeyBody": true,
|
|
17173
17305
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
17174
17306
|
"createWorkspaceBody": true,
|
|
17175
17307
|
"updateWorkspaceBody": true,
|
|
@@ -17286,6 +17418,9 @@ export const state = {
|
|
|
17286
17418
|
"createIntegrationShareableIdResponse": true,
|
|
17287
17419
|
"deleteIntegrationShareableIdResponse": true,
|
|
17288
17420
|
"getIntegrationShareableIdResponse": true,
|
|
17421
|
+
"listBotApiKeysResponse": true,
|
|
17422
|
+
"createBotApiKeyResponse": true,
|
|
17423
|
+
"deleteBotApiKeyResponse": true,
|
|
17289
17424
|
"listWorkspaceInvoicesResponse": true,
|
|
17290
17425
|
"getUpcomingInvoiceResponse": true,
|
|
17291
17426
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -20775,7 +20910,10 @@ export const state = {
|
|
|
20775
20910
|
"deployBotVersion",
|
|
20776
20911
|
"createIntegrationShareableId",
|
|
20777
20912
|
"deleteIntegrationShareableId",
|
|
20778
|
-
"getIntegrationShareableId"
|
|
20913
|
+
"getIntegrationShareableId",
|
|
20914
|
+
"listBotApiKeys",
|
|
20915
|
+
"createBotApiKey",
|
|
20916
|
+
"deleteBotApiKey"
|
|
20779
20917
|
],
|
|
20780
20918
|
"schema": "Bot"
|
|
20781
20919
|
},
|