@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/admin/state.ts
CHANGED
|
@@ -4783,7 +4783,7 @@ export const state = {
|
|
|
4783
4783
|
},
|
|
4784
4784
|
"createIntegrationShareableId": {
|
|
4785
4785
|
"name": "createIntegrationShareableId",
|
|
4786
|
-
"description": "
|
|
4786
|
+
"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.",
|
|
4787
4787
|
"method": "post",
|
|
4788
4788
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
4789
4789
|
"section": "bot",
|
|
@@ -4826,7 +4826,7 @@ export const state = {
|
|
|
4826
4826
|
},
|
|
4827
4827
|
"deleteIntegrationShareableId": {
|
|
4828
4828
|
"name": "deleteIntegrationShareableId",
|
|
4829
|
-
"description": "
|
|
4829
|
+
"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.",
|
|
4830
4830
|
"method": "delete",
|
|
4831
4831
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
4832
4832
|
"section": "bot",
|
|
@@ -4853,7 +4853,7 @@ export const state = {
|
|
|
4853
4853
|
},
|
|
4854
4854
|
"getIntegrationShareableId": {
|
|
4855
4855
|
"name": "getIntegrationShareableId",
|
|
4856
|
-
"description": "
|
|
4856
|
+
"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.",
|
|
4857
4857
|
"method": "get",
|
|
4858
4858
|
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
4859
4859
|
"section": "bot",
|
|
@@ -4890,6 +4890,136 @@ export const state = {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
4892
4892
|
},
|
|
4893
|
+
"listBotApiKeys": {
|
|
4894
|
+
"name": "listBotApiKeys",
|
|
4895
|
+
"description": "List BAKs (Bot Api Keys) of a bot",
|
|
4896
|
+
"method": "get",
|
|
4897
|
+
"section": "bot",
|
|
4898
|
+
"path": "/v1/admin/bots/baks",
|
|
4899
|
+
"parameters": {
|
|
4900
|
+
"botId": {
|
|
4901
|
+
"in": "query",
|
|
4902
|
+
"description": "ID of the bot",
|
|
4903
|
+
"type": "string",
|
|
4904
|
+
"required": true
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
"response": {
|
|
4908
|
+
"description": "Success",
|
|
4909
|
+
"schema": {
|
|
4910
|
+
"type": "object",
|
|
4911
|
+
"properties": {
|
|
4912
|
+
"baks": {
|
|
4913
|
+
"type": "array",
|
|
4914
|
+
"items": {
|
|
4915
|
+
"type": "object",
|
|
4916
|
+
"properties": {
|
|
4917
|
+
"id": {
|
|
4918
|
+
"type": "string"
|
|
4919
|
+
},
|
|
4920
|
+
"createdAt": {
|
|
4921
|
+
"type": "string",
|
|
4922
|
+
"format": "date-time"
|
|
4923
|
+
},
|
|
4924
|
+
"note": {
|
|
4925
|
+
"type": "string"
|
|
4926
|
+
}
|
|
4927
|
+
},
|
|
4928
|
+
"required": [
|
|
4929
|
+
"id",
|
|
4930
|
+
"createdAt",
|
|
4931
|
+
"note"
|
|
4932
|
+
]
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
},
|
|
4936
|
+
"required": [
|
|
4937
|
+
"baks"
|
|
4938
|
+
],
|
|
4939
|
+
"title": "listBotApiKeysResponse",
|
|
4940
|
+
"additionalProperties": false
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
},
|
|
4944
|
+
"createBotApiKey": {
|
|
4945
|
+
"name": "createBotApiKey",
|
|
4946
|
+
"description": "Create a BAK",
|
|
4947
|
+
"method": "post",
|
|
4948
|
+
"section": "bot",
|
|
4949
|
+
"path": "/v1/admin/bots/baks",
|
|
4950
|
+
"requestBody": {
|
|
4951
|
+
"description": "BAK body",
|
|
4952
|
+
"schema": {
|
|
4953
|
+
"type": "object",
|
|
4954
|
+
"properties": {
|
|
4955
|
+
"botId": {
|
|
4956
|
+
"type": "string"
|
|
4957
|
+
},
|
|
4958
|
+
"note": {
|
|
4959
|
+
"type": "string"
|
|
4960
|
+
}
|
|
4961
|
+
},
|
|
4962
|
+
"required": [
|
|
4963
|
+
"botId"
|
|
4964
|
+
],
|
|
4965
|
+
"title": "createBotApiKeyBody",
|
|
4966
|
+
"additionalProperties": false
|
|
4967
|
+
}
|
|
4968
|
+
},
|
|
4969
|
+
"response": {
|
|
4970
|
+
"description": "Success",
|
|
4971
|
+
"schema": {
|
|
4972
|
+
"type": "object",
|
|
4973
|
+
"properties": {
|
|
4974
|
+
"id": {
|
|
4975
|
+
"type": "string"
|
|
4976
|
+
},
|
|
4977
|
+
"createdAt": {
|
|
4978
|
+
"type": "string",
|
|
4979
|
+
"format": "date-time"
|
|
4980
|
+
},
|
|
4981
|
+
"note": {
|
|
4982
|
+
"type": "string"
|
|
4983
|
+
},
|
|
4984
|
+
"value": {
|
|
4985
|
+
"type": "string",
|
|
4986
|
+
"description": "The BAK value. This will only be returned here when created and cannot be retrieved later."
|
|
4987
|
+
}
|
|
4988
|
+
},
|
|
4989
|
+
"required": [
|
|
4990
|
+
"id",
|
|
4991
|
+
"createdAt",
|
|
4992
|
+
"note",
|
|
4993
|
+
"value"
|
|
4994
|
+
],
|
|
4995
|
+
"title": "createBotApiKeyResponse",
|
|
4996
|
+
"additionalProperties": false
|
|
4997
|
+
}
|
|
4998
|
+
},
|
|
4999
|
+
"parameters": {}
|
|
5000
|
+
},
|
|
5001
|
+
"deleteBotApiKey": {
|
|
5002
|
+
"name": "deleteBotApiKey",
|
|
5003
|
+
"description": "Delete a BAK",
|
|
5004
|
+
"method": "delete",
|
|
5005
|
+
"section": "bot",
|
|
5006
|
+
"path": "/v1/admin/bots/baks/{id}",
|
|
5007
|
+
"parameters": {
|
|
5008
|
+
"id": {
|
|
5009
|
+
"type": "string",
|
|
5010
|
+
"description": "ID of Bot Api Key",
|
|
5011
|
+
"in": "path"
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
"response": {
|
|
5015
|
+
"description": "Success",
|
|
5016
|
+
"schema": {
|
|
5017
|
+
"type": "object",
|
|
5018
|
+
"title": "deleteBotApiKeyResponse",
|
|
5019
|
+
"additionalProperties": false
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
},
|
|
4893
5023
|
"listWorkspaceInvoices": {
|
|
4894
5024
|
"name": "listWorkspaceInvoices",
|
|
4895
5025
|
"description": "List invoices billed to workspace",
|
|
@@ -11636,7 +11766,7 @@ export const state = {
|
|
|
11636
11766
|
"title": "Botpress API",
|
|
11637
11767
|
"description": "API for Botpress Cloud",
|
|
11638
11768
|
"server": "https://api.botpress.cloud",
|
|
11639
|
-
"version": "1.
|
|
11769
|
+
"version": "1.7.0",
|
|
11640
11770
|
"prefix": "v1"
|
|
11641
11771
|
},
|
|
11642
11772
|
"errors": [
|
|
@@ -11774,6 +11904,7 @@ export const state = {
|
|
|
11774
11904
|
"createBotVersionBody": true,
|
|
11775
11905
|
"deployBotVersionBody": true,
|
|
11776
11906
|
"createIntegrationShareableIdBody": true,
|
|
11907
|
+
"createBotApiKeyBody": true,
|
|
11777
11908
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
11778
11909
|
"createWorkspaceBody": true,
|
|
11779
11910
|
"updateWorkspaceBody": true,
|
|
@@ -11829,6 +11960,9 @@ export const state = {
|
|
|
11829
11960
|
"createIntegrationShareableIdResponse": true,
|
|
11830
11961
|
"deleteIntegrationShareableIdResponse": true,
|
|
11831
11962
|
"getIntegrationShareableIdResponse": true,
|
|
11963
|
+
"listBotApiKeysResponse": true,
|
|
11964
|
+
"createBotApiKeyResponse": true,
|
|
11965
|
+
"deleteBotApiKeyResponse": true,
|
|
11832
11966
|
"listWorkspaceInvoicesResponse": true,
|
|
11833
11967
|
"getUpcomingInvoiceResponse": true,
|
|
11834
11968
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -15233,7 +15367,10 @@ export const state = {
|
|
|
15233
15367
|
"deployBotVersion",
|
|
15234
15368
|
"createIntegrationShareableId",
|
|
15235
15369
|
"deleteIntegrationShareableId",
|
|
15236
|
-
"getIntegrationShareableId"
|
|
15370
|
+
"getIntegrationShareableId",
|
|
15371
|
+
"listBotApiKeys",
|
|
15372
|
+
"createBotApiKey",
|
|
15373
|
+
"deleteBotApiKey"
|
|
15237
15374
|
],
|
|
15238
15375
|
"schema": "Bot"
|
|
15239
15376
|
},
|