@botpress/api 1.31.0 → 1.33.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/.turbo/turbo-openapi.log +5 -5
- package/dist/index.js +235 -15
- package/dist/src/gen/admin/state.d.ts +89 -0
- package/dist/src/gen/files/state.d.ts +7 -0
- package/dist/src/gen/state.d.ts +96 -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 +104 -2
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +13 -5
- 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 +1 -1
- package/src/gen/state.ts +116 -6
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -1
package/src/gen/admin/state.ts
CHANGED
|
@@ -6576,6 +6576,103 @@ export const state = {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
6578
|
},
|
|
6579
|
+
"getBotAllowlist": {
|
|
6580
|
+
"name": "getBotAllowlist",
|
|
6581
|
+
"description": "Get the Bot Allowlist",
|
|
6582
|
+
"method": "get",
|
|
6583
|
+
"section": "bot",
|
|
6584
|
+
"path": "/v1/admin/bots/{botId}/allowlist",
|
|
6585
|
+
"parameters": {
|
|
6586
|
+
"botId": {
|
|
6587
|
+
"type": "string",
|
|
6588
|
+
"description": "Bot ID",
|
|
6589
|
+
"in": "path"
|
|
6590
|
+
}
|
|
6591
|
+
},
|
|
6592
|
+
"response": {
|
|
6593
|
+
"description": "Success",
|
|
6594
|
+
"schema": {
|
|
6595
|
+
"type": "object",
|
|
6596
|
+
"properties": {
|
|
6597
|
+
"setting": {
|
|
6598
|
+
"type": "string",
|
|
6599
|
+
"enum": [
|
|
6600
|
+
"ALL_WORKSPACE_USERS",
|
|
6601
|
+
"SELECTED_USERS"
|
|
6602
|
+
],
|
|
6603
|
+
"description": "Allowlist setting of the bot"
|
|
6604
|
+
},
|
|
6605
|
+
"users": {
|
|
6606
|
+
"type": "array",
|
|
6607
|
+
"items": {
|
|
6608
|
+
"type": "object",
|
|
6609
|
+
"properties": {
|
|
6610
|
+
"id": {
|
|
6611
|
+
"type": "string"
|
|
6612
|
+
}
|
|
6613
|
+
},
|
|
6614
|
+
"required": [
|
|
6615
|
+
"id"
|
|
6616
|
+
]
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6619
|
+
},
|
|
6620
|
+
"required": [
|
|
6621
|
+
"setting",
|
|
6622
|
+
"users"
|
|
6623
|
+
],
|
|
6624
|
+
"title": "getBotAllowlistResponse",
|
|
6625
|
+
"additionalProperties": false
|
|
6626
|
+
}
|
|
6627
|
+
}
|
|
6628
|
+
},
|
|
6629
|
+
"updateBotAllowlist": {
|
|
6630
|
+
"name": "updateBotAllowlist",
|
|
6631
|
+
"description": "Update the Bot Allowlist",
|
|
6632
|
+
"method": "put",
|
|
6633
|
+
"section": "bot",
|
|
6634
|
+
"path": "/v1/admin/bots/{botId}/allowlist",
|
|
6635
|
+
"parameters": {
|
|
6636
|
+
"botId": {
|
|
6637
|
+
"type": "string",
|
|
6638
|
+
"description": "Bot ID",
|
|
6639
|
+
"in": "path"
|
|
6640
|
+
}
|
|
6641
|
+
},
|
|
6642
|
+
"requestBody": {
|
|
6643
|
+
"description": "Allowlist body",
|
|
6644
|
+
"schema": {
|
|
6645
|
+
"type": "object",
|
|
6646
|
+
"properties": {
|
|
6647
|
+
"setting": {
|
|
6648
|
+
"type": "string",
|
|
6649
|
+
"enum": [
|
|
6650
|
+
"ALL_WORKSPACE_USERS",
|
|
6651
|
+
"SELECTED_USERS"
|
|
6652
|
+
],
|
|
6653
|
+
"description": "Allowlist setting of the bot"
|
|
6654
|
+
},
|
|
6655
|
+
"users": {
|
|
6656
|
+
"type": "object",
|
|
6657
|
+
"additionalProperties": {
|
|
6658
|
+
"type": "boolean",
|
|
6659
|
+
"description": "If `true`, the user should be added to the allowlist. If `false`, the user should be removed from the allowlist. This performs a partial update, so any existing users not included here will be kept in the allowlist"
|
|
6660
|
+
}
|
|
6661
|
+
}
|
|
6662
|
+
},
|
|
6663
|
+
"title": "updateBotAllowlistBody",
|
|
6664
|
+
"additionalProperties": false
|
|
6665
|
+
}
|
|
6666
|
+
},
|
|
6667
|
+
"response": {
|
|
6668
|
+
"description": "Success",
|
|
6669
|
+
"schema": {
|
|
6670
|
+
"type": "object",
|
|
6671
|
+
"title": "updateBotAllowlistResponse",
|
|
6672
|
+
"additionalProperties": false
|
|
6673
|
+
}
|
|
6674
|
+
}
|
|
6675
|
+
},
|
|
6579
6676
|
"listWorkspaceInvoices": {
|
|
6580
6677
|
"name": "listWorkspaceInvoices",
|
|
6581
6678
|
"description": "List invoices billed to workspace",
|
|
@@ -13784,7 +13881,7 @@ export const state = {
|
|
|
13784
13881
|
"title": "Botpress API",
|
|
13785
13882
|
"description": "API for Botpress Cloud",
|
|
13786
13883
|
"server": "https://api.botpress.cloud",
|
|
13787
|
-
"version": "1.
|
|
13884
|
+
"version": "1.33.0",
|
|
13788
13885
|
"prefix": "v1"
|
|
13789
13886
|
},
|
|
13790
13887
|
"errors": [
|
|
@@ -13925,6 +14022,7 @@ export const state = {
|
|
|
13925
14022
|
"deployBotVersionBody": true,
|
|
13926
14023
|
"createIntegrationShareableIdBody": true,
|
|
13927
14024
|
"createBotApiKeyBody": true,
|
|
14025
|
+
"updateBotAllowlistBody": true,
|
|
13928
14026
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
13929
14027
|
"createWorkspaceBody": true,
|
|
13930
14028
|
"updateWorkspaceBody": true,
|
|
@@ -13993,6 +14091,8 @@ export const state = {
|
|
|
13993
14091
|
"listBotApiKeysResponse": true,
|
|
13994
14092
|
"createBotApiKeyResponse": true,
|
|
13995
14093
|
"deleteBotApiKeyResponse": true,
|
|
14094
|
+
"getBotAllowlistResponse": true,
|
|
14095
|
+
"updateBotAllowlistResponse": true,
|
|
13996
14096
|
"listWorkspaceInvoicesResponse": true,
|
|
13997
14097
|
"getUpcomingInvoiceResponse": true,
|
|
13998
14098
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -17675,7 +17775,9 @@ export const state = {
|
|
|
17675
17775
|
"unlinkSandboxedConversations",
|
|
17676
17776
|
"listBotApiKeys",
|
|
17677
17777
|
"createBotApiKey",
|
|
17678
|
-
"deleteBotApiKey"
|
|
17778
|
+
"deleteBotApiKey",
|
|
17779
|
+
"getBotAllowlist",
|
|
17780
|
+
"updateBotAllowlist"
|
|
17679
17781
|
],
|
|
17680
17782
|
"schema": "Bot"
|
|
17681
17783
|
},
|