@botpress/api 0.33.1 → 0.34.1
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 +72 -4
- package/dist/src/gen/state.d.ts +50 -0
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +72 -4
package/src/gen/state.ts
CHANGED
|
@@ -1300,10 +1300,23 @@ export const state = {
|
|
|
1300
1300
|
"properties": {
|
|
1301
1301
|
"state": {
|
|
1302
1302
|
"$ref": "#/components/schemas/State"
|
|
1303
|
+
},
|
|
1304
|
+
"meta": {
|
|
1305
|
+
"type": "object",
|
|
1306
|
+
"properties": {
|
|
1307
|
+
"cached": {
|
|
1308
|
+
"type": "boolean"
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
"required": [
|
|
1312
|
+
"cached"
|
|
1313
|
+
],
|
|
1314
|
+
"additionalProperties": false
|
|
1303
1315
|
}
|
|
1304
1316
|
},
|
|
1305
1317
|
"required": [
|
|
1306
|
-
"state"
|
|
1318
|
+
"state",
|
|
1319
|
+
"meta"
|
|
1307
1320
|
],
|
|
1308
1321
|
"title": "getStateResponse",
|
|
1309
1322
|
"additionalProperties": false
|
|
@@ -1443,10 +1456,23 @@ export const state = {
|
|
|
1443
1456
|
"properties": {
|
|
1444
1457
|
"state": {
|
|
1445
1458
|
"$ref": "#/components/schemas/State"
|
|
1459
|
+
},
|
|
1460
|
+
"meta": {
|
|
1461
|
+
"type": "object",
|
|
1462
|
+
"properties": {
|
|
1463
|
+
"cached": {
|
|
1464
|
+
"type": "boolean"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
"required": [
|
|
1468
|
+
"cached"
|
|
1469
|
+
],
|
|
1470
|
+
"additionalProperties": false
|
|
1446
1471
|
}
|
|
1447
1472
|
},
|
|
1448
1473
|
"required": [
|
|
1449
|
-
"state"
|
|
1474
|
+
"state",
|
|
1475
|
+
"meta"
|
|
1450
1476
|
],
|
|
1451
1477
|
"title": "getOrSetStateResponse",
|
|
1452
1478
|
"additionalProperties": false
|
|
@@ -1557,10 +1583,23 @@ export const state = {
|
|
|
1557
1583
|
"type": "object",
|
|
1558
1584
|
"additionalProperties": true,
|
|
1559
1585
|
"description": "Input of the action"
|
|
1586
|
+
},
|
|
1587
|
+
"meta": {
|
|
1588
|
+
"type": "object",
|
|
1589
|
+
"properties": {
|
|
1590
|
+
"cached": {
|
|
1591
|
+
"type": "boolean"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"required": [
|
|
1595
|
+
"cached"
|
|
1596
|
+
],
|
|
1597
|
+
"additionalProperties": false
|
|
1560
1598
|
}
|
|
1561
1599
|
},
|
|
1562
1600
|
"required": [
|
|
1563
|
-
"output"
|
|
1601
|
+
"output",
|
|
1602
|
+
"meta"
|
|
1564
1603
|
],
|
|
1565
1604
|
"title": "callActionResponse",
|
|
1566
1605
|
"additionalProperties": false
|
|
@@ -9943,6 +9982,34 @@ export const state = {
|
|
|
9943
9982
|
"type": "number",
|
|
9944
9983
|
"description": "The score indicating the similarity of the passage to the query. A higher score indicates higher similarity."
|
|
9945
9984
|
},
|
|
9985
|
+
"meta": {
|
|
9986
|
+
"type": "object",
|
|
9987
|
+
"properties": {
|
|
9988
|
+
"type": {
|
|
9989
|
+
"type": "string",
|
|
9990
|
+
"enum": [
|
|
9991
|
+
"chunk"
|
|
9992
|
+
],
|
|
9993
|
+
"description": "The type of passage"
|
|
9994
|
+
},
|
|
9995
|
+
"subtype": {
|
|
9996
|
+
"type": "string",
|
|
9997
|
+
"enum": [
|
|
9998
|
+
"title",
|
|
9999
|
+
"subtitle",
|
|
10000
|
+
"paragraph",
|
|
10001
|
+
"list",
|
|
10002
|
+
"note"
|
|
10003
|
+
],
|
|
10004
|
+
"description": "The subtype of passage, if any."
|
|
10005
|
+
},
|
|
10006
|
+
"pageNumber": {
|
|
10007
|
+
"type": "integer",
|
|
10008
|
+
"description": "Page number the passage is located on, if any. Only applicable if the passage was extracted from a multi-page document (e.g. PDF)."
|
|
10009
|
+
}
|
|
10010
|
+
},
|
|
10011
|
+
"description": "The passage metadata"
|
|
10012
|
+
},
|
|
9946
10013
|
"file": {
|
|
9947
10014
|
"type": "object",
|
|
9948
10015
|
"properties": {
|
|
@@ -9978,6 +10045,7 @@ export const state = {
|
|
|
9978
10045
|
"required": [
|
|
9979
10046
|
"content",
|
|
9980
10047
|
"score",
|
|
10048
|
+
"meta",
|
|
9981
10049
|
"file"
|
|
9982
10050
|
]
|
|
9983
10051
|
}
|
|
@@ -10892,7 +10960,7 @@ export const state = {
|
|
|
10892
10960
|
"title": "Botpress API",
|
|
10893
10961
|
"description": "API for Botpress Cloud",
|
|
10894
10962
|
"server": "https://api.botpress.cloud",
|
|
10895
|
-
"version": "0.
|
|
10963
|
+
"version": "0.34.1",
|
|
10896
10964
|
"prefix": "v1"
|
|
10897
10965
|
},
|
|
10898
10966
|
"errors": [
|