@botpress/api 0.65.0 → 0.66.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 +81 -9
- package/dist/src/gen/state.d.ts +66 -5
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +81 -9
package/src/gen/state.ts
CHANGED
|
@@ -10497,7 +10497,22 @@ export const state = {
|
|
|
10497
10497
|
"additionalProperties": false
|
|
10498
10498
|
},
|
|
10499
10499
|
"code": {
|
|
10500
|
-
"type": "
|
|
10500
|
+
"type": "object",
|
|
10501
|
+
"properties": {
|
|
10502
|
+
"node": {
|
|
10503
|
+
"type": "string",
|
|
10504
|
+
"description": "Code of plugin bundled for Node.JS"
|
|
10505
|
+
},
|
|
10506
|
+
"browser": {
|
|
10507
|
+
"type": "string",
|
|
10508
|
+
"description": "Code of plugin bundled for the browser"
|
|
10509
|
+
}
|
|
10510
|
+
},
|
|
10511
|
+
"required": [
|
|
10512
|
+
"node",
|
|
10513
|
+
"browser"
|
|
10514
|
+
],
|
|
10515
|
+
"additionalProperties": false
|
|
10501
10516
|
},
|
|
10502
10517
|
"dependencies": {
|
|
10503
10518
|
"type": "object",
|
|
@@ -10822,7 +10837,22 @@ export const state = {
|
|
|
10822
10837
|
"additionalProperties": false
|
|
10823
10838
|
},
|
|
10824
10839
|
"code": {
|
|
10825
|
-
"type": "
|
|
10840
|
+
"type": "object",
|
|
10841
|
+
"properties": {
|
|
10842
|
+
"node": {
|
|
10843
|
+
"type": "string",
|
|
10844
|
+
"description": "Code of plugin bundled for Node.JS"
|
|
10845
|
+
},
|
|
10846
|
+
"browser": {
|
|
10847
|
+
"type": "string",
|
|
10848
|
+
"description": "Code of plugin bundled for the browser"
|
|
10849
|
+
}
|
|
10850
|
+
},
|
|
10851
|
+
"required": [
|
|
10852
|
+
"node",
|
|
10853
|
+
"browser"
|
|
10854
|
+
],
|
|
10855
|
+
"additionalProperties": false
|
|
10826
10856
|
},
|
|
10827
10857
|
"dependencies": {
|
|
10828
10858
|
"type": "object",
|
|
@@ -10991,6 +11021,50 @@ export const state = {
|
|
|
10991
11021
|
}
|
|
10992
11022
|
}
|
|
10993
11023
|
},
|
|
11024
|
+
"getPluginCode": {
|
|
11025
|
+
"name": "getPluginCode",
|
|
11026
|
+
"description": "Get Plugin Code",
|
|
11027
|
+
"method": "get",
|
|
11028
|
+
"path": "/v1/admin/plugins/{id}/code/{platform}",
|
|
11029
|
+
"section": "plugin",
|
|
11030
|
+
"parameters": {
|
|
11031
|
+
"nextToken": {
|
|
11032
|
+
"in": "query",
|
|
11033
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
11034
|
+
"type": "string"
|
|
11035
|
+
},
|
|
11036
|
+
"id": {
|
|
11037
|
+
"in": "path",
|
|
11038
|
+
"type": "string",
|
|
11039
|
+
"description": "Plugin id"
|
|
11040
|
+
},
|
|
11041
|
+
"platform": {
|
|
11042
|
+
"in": "path",
|
|
11043
|
+
"type": "string",
|
|
11044
|
+
"enum": [
|
|
11045
|
+
"node",
|
|
11046
|
+
"browser"
|
|
11047
|
+
],
|
|
11048
|
+
"description": "Platform"
|
|
11049
|
+
}
|
|
11050
|
+
},
|
|
11051
|
+
"response": {
|
|
11052
|
+
"description": "Plugin code",
|
|
11053
|
+
"schema": {
|
|
11054
|
+
"type": "object",
|
|
11055
|
+
"properties": {
|
|
11056
|
+
"code": {
|
|
11057
|
+
"type": "string"
|
|
11058
|
+
}
|
|
11059
|
+
},
|
|
11060
|
+
"required": [
|
|
11061
|
+
"code"
|
|
11062
|
+
],
|
|
11063
|
+
"title": "getPluginCodeResponse",
|
|
11064
|
+
"additionalProperties": false
|
|
11065
|
+
}
|
|
11066
|
+
}
|
|
11067
|
+
},
|
|
10994
11068
|
"getUsage": {
|
|
10995
11069
|
"name": "getUsage",
|
|
10996
11070
|
"path": "/v1/admin/usages/{id}",
|
|
@@ -13994,7 +14068,7 @@ export const state = {
|
|
|
13994
14068
|
"title": "Botpress API",
|
|
13995
14069
|
"description": "API for Botpress Cloud",
|
|
13996
14070
|
"server": "https://api.botpress.cloud",
|
|
13997
|
-
"version": "0.
|
|
14071
|
+
"version": "0.66.0",
|
|
13998
14072
|
"prefix": "v1"
|
|
13999
14073
|
},
|
|
14000
14074
|
"errors": [
|
|
@@ -14304,6 +14378,7 @@ export const state = {
|
|
|
14304
14378
|
"updatePluginResponse": true,
|
|
14305
14379
|
"deletePluginResponse": true,
|
|
14306
14380
|
"listPluginsResponse": true,
|
|
14381
|
+
"getPluginCodeResponse": true,
|
|
14307
14382
|
"getUsageResponse": true,
|
|
14308
14383
|
"getMultipleUsagesResponse": true,
|
|
14309
14384
|
"listUsageHistoryResponse": true,
|
|
@@ -16006,9 +16081,6 @@ export const state = {
|
|
|
16006
16081
|
],
|
|
16007
16082
|
"description": "User object configuration",
|
|
16008
16083
|
"additionalProperties": false
|
|
16009
|
-
},
|
|
16010
|
-
"code": {
|
|
16011
|
-
"type": "string"
|
|
16012
16084
|
}
|
|
16013
16085
|
},
|
|
16014
16086
|
"required": [
|
|
@@ -16022,8 +16094,7 @@ export const state = {
|
|
|
16022
16094
|
"events",
|
|
16023
16095
|
"actions",
|
|
16024
16096
|
"dependencies",
|
|
16025
|
-
"user"
|
|
16026
|
-
"code"
|
|
16097
|
+
"user"
|
|
16027
16098
|
],
|
|
16028
16099
|
"description": "Plugin definition",
|
|
16029
16100
|
"additionalProperties": false
|
|
@@ -17704,7 +17775,8 @@ export const state = {
|
|
|
17704
17775
|
"getPluginByName",
|
|
17705
17776
|
"updatePlugin",
|
|
17706
17777
|
"deletePlugin",
|
|
17707
|
-
"listPlugins"
|
|
17778
|
+
"listPlugins",
|
|
17779
|
+
"getPluginCode"
|
|
17708
17780
|
],
|
|
17709
17781
|
"schema": "Plugin"
|
|
17710
17782
|
},
|