@botpress/api 0.64.1 → 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 +179 -10
- package/dist/src/gen/state.d.ts +155 -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 +179 -10
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}",
|
|
@@ -12690,6 +12764,99 @@ export const state = {
|
|
|
12690
12764
|
}
|
|
12691
12765
|
}
|
|
12692
12766
|
},
|
|
12767
|
+
"listFileTags": {
|
|
12768
|
+
"name": "listFileTags",
|
|
12769
|
+
"path": "/v1/files/tags",
|
|
12770
|
+
"description": "List available tags",
|
|
12771
|
+
"method": "get",
|
|
12772
|
+
"section": "files",
|
|
12773
|
+
"parameters": {
|
|
12774
|
+
"nextToken": {
|
|
12775
|
+
"in": "query",
|
|
12776
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
12777
|
+
"type": "string"
|
|
12778
|
+
}
|
|
12779
|
+
},
|
|
12780
|
+
"response": {
|
|
12781
|
+
"description": "Returns the list of available tags used across all files of the bot.",
|
|
12782
|
+
"schema": {
|
|
12783
|
+
"type": "object",
|
|
12784
|
+
"properties": {
|
|
12785
|
+
"tags": {
|
|
12786
|
+
"type": "array",
|
|
12787
|
+
"items": {
|
|
12788
|
+
"type": "string"
|
|
12789
|
+
}
|
|
12790
|
+
},
|
|
12791
|
+
"meta": {
|
|
12792
|
+
"type": "object",
|
|
12793
|
+
"properties": {
|
|
12794
|
+
"nextToken": {
|
|
12795
|
+
"type": "string",
|
|
12796
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
12797
|
+
}
|
|
12798
|
+
},
|
|
12799
|
+
"additionalProperties": false
|
|
12800
|
+
}
|
|
12801
|
+
},
|
|
12802
|
+
"required": [
|
|
12803
|
+
"tags",
|
|
12804
|
+
"meta"
|
|
12805
|
+
],
|
|
12806
|
+
"title": "listFileTagsResponse",
|
|
12807
|
+
"additionalProperties": false
|
|
12808
|
+
}
|
|
12809
|
+
}
|
|
12810
|
+
},
|
|
12811
|
+
"listFileTagValues": {
|
|
12812
|
+
"name": "listFileTagValues",
|
|
12813
|
+
"path": "/v1/files/tags/{tag}/values",
|
|
12814
|
+
"description": "List available tags",
|
|
12815
|
+
"method": "get",
|
|
12816
|
+
"section": "files",
|
|
12817
|
+
"parameters": {
|
|
12818
|
+
"nextToken": {
|
|
12819
|
+
"in": "query",
|
|
12820
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
12821
|
+
"type": "string"
|
|
12822
|
+
},
|
|
12823
|
+
"tag": {
|
|
12824
|
+
"type": "string",
|
|
12825
|
+
"description": "Tag name",
|
|
12826
|
+
"in": "path"
|
|
12827
|
+
}
|
|
12828
|
+
},
|
|
12829
|
+
"response": {
|
|
12830
|
+
"description": "Returns the list of available values used for a given tag across all files of the bot.",
|
|
12831
|
+
"schema": {
|
|
12832
|
+
"type": "object",
|
|
12833
|
+
"properties": {
|
|
12834
|
+
"values": {
|
|
12835
|
+
"type": "array",
|
|
12836
|
+
"items": {
|
|
12837
|
+
"type": "string"
|
|
12838
|
+
}
|
|
12839
|
+
},
|
|
12840
|
+
"meta": {
|
|
12841
|
+
"type": "object",
|
|
12842
|
+
"properties": {
|
|
12843
|
+
"nextToken": {
|
|
12844
|
+
"type": "string",
|
|
12845
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
12846
|
+
}
|
|
12847
|
+
},
|
|
12848
|
+
"additionalProperties": false
|
|
12849
|
+
}
|
|
12850
|
+
},
|
|
12851
|
+
"required": [
|
|
12852
|
+
"values",
|
|
12853
|
+
"meta"
|
|
12854
|
+
],
|
|
12855
|
+
"title": "listFileTagValuesResponse",
|
|
12856
|
+
"additionalProperties": false
|
|
12857
|
+
}
|
|
12858
|
+
}
|
|
12859
|
+
},
|
|
12693
12860
|
"listTables": {
|
|
12694
12861
|
"name": "listTables",
|
|
12695
12862
|
"path": "/v1/tables",
|
|
@@ -13901,7 +14068,7 @@ export const state = {
|
|
|
13901
14068
|
"title": "Botpress API",
|
|
13902
14069
|
"description": "API for Botpress Cloud",
|
|
13903
14070
|
"server": "https://api.botpress.cloud",
|
|
13904
|
-
"version": "0.
|
|
14071
|
+
"version": "0.66.0",
|
|
13905
14072
|
"prefix": "v1"
|
|
13906
14073
|
},
|
|
13907
14074
|
"errors": [
|
|
@@ -14211,6 +14378,7 @@ export const state = {
|
|
|
14211
14378
|
"updatePluginResponse": true,
|
|
14212
14379
|
"deletePluginResponse": true,
|
|
14213
14380
|
"listPluginsResponse": true,
|
|
14381
|
+
"getPluginCodeResponse": true,
|
|
14214
14382
|
"getUsageResponse": true,
|
|
14215
14383
|
"getMultipleUsagesResponse": true,
|
|
14216
14384
|
"listUsageHistoryResponse": true,
|
|
@@ -14227,6 +14395,8 @@ export const state = {
|
|
|
14227
14395
|
"copyFileResponse": true,
|
|
14228
14396
|
"searchFilesResponse": true,
|
|
14229
14397
|
"listFilePassagesResponse": true,
|
|
14398
|
+
"listFileTagsResponse": true,
|
|
14399
|
+
"listFileTagValuesResponse": true,
|
|
14230
14400
|
"listTablesResponse": true,
|
|
14231
14401
|
"getTableResponse": true,
|
|
14232
14402
|
"getOrCreateTableResponse": true,
|
|
@@ -15911,9 +16081,6 @@ export const state = {
|
|
|
15911
16081
|
],
|
|
15912
16082
|
"description": "User object configuration",
|
|
15913
16083
|
"additionalProperties": false
|
|
15914
|
-
},
|
|
15915
|
-
"code": {
|
|
15916
|
-
"type": "string"
|
|
15917
16084
|
}
|
|
15918
16085
|
},
|
|
15919
16086
|
"required": [
|
|
@@ -15927,8 +16094,7 @@ export const state = {
|
|
|
15927
16094
|
"events",
|
|
15928
16095
|
"actions",
|
|
15929
16096
|
"dependencies",
|
|
15930
|
-
"user"
|
|
15931
|
-
"code"
|
|
16097
|
+
"user"
|
|
15932
16098
|
],
|
|
15933
16099
|
"description": "Plugin definition",
|
|
15934
16100
|
"additionalProperties": false
|
|
@@ -17609,7 +17775,8 @@ export const state = {
|
|
|
17609
17775
|
"getPluginByName",
|
|
17610
17776
|
"updatePlugin",
|
|
17611
17777
|
"deletePlugin",
|
|
17612
|
-
"listPlugins"
|
|
17778
|
+
"listPlugins",
|
|
17779
|
+
"getPluginCode"
|
|
17613
17780
|
],
|
|
17614
17781
|
"schema": "Plugin"
|
|
17615
17782
|
},
|
|
@@ -17739,7 +17906,9 @@ export const state = {
|
|
|
17739
17906
|
"updateFileMetadata",
|
|
17740
17907
|
"copyFile",
|
|
17741
17908
|
"searchFiles",
|
|
17742
|
-
"listFilePassages"
|
|
17909
|
+
"listFilePassages",
|
|
17910
|
+
"listFileTags",
|
|
17911
|
+
"listFileTagValues"
|
|
17743
17912
|
],
|
|
17744
17913
|
"schema": "File"
|
|
17745
17914
|
}
|