@botpress/api 0.41.3 → 0.42.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 +67 -4
- package/dist/src/gen/state.d.ts +42 -0
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +67 -4
package/src/gen/state.ts
CHANGED
|
@@ -10430,10 +10430,15 @@ export const state = {
|
|
|
10430
10430
|
"type": "integer",
|
|
10431
10431
|
"description": "The maximum number of passages to return."
|
|
10432
10432
|
},
|
|
10433
|
+
"consolidate": {
|
|
10434
|
+
"in": "query",
|
|
10435
|
+
"type": "boolean",
|
|
10436
|
+
"description": "Consolidate the results by merging matching passages from the same file into a single passage per file. The consolidated passage will include the matching passages ordered by their original position in the file (rather than by relevance score) and include hierarchical context such as the title/subtitle to which they belong."
|
|
10437
|
+
},
|
|
10433
10438
|
"includeBreadcrumb": {
|
|
10434
10439
|
"in": "query",
|
|
10435
10440
|
"type": "boolean",
|
|
10436
|
-
"description": "Prepend a breadcrumb to each passage, containing the title and subtitle(s) the passage belongs to in the file."
|
|
10441
|
+
"description": "Prepend a breadcrumb to each passage, containing the title and subtitle(s) the passage belongs to in the file. This option is ignored when the `consolidate` option is set to `true`."
|
|
10437
10442
|
}
|
|
10438
10443
|
},
|
|
10439
10444
|
"response": {
|
|
@@ -10461,7 +10466,8 @@ export const state = {
|
|
|
10461
10466
|
"type": "string",
|
|
10462
10467
|
"enum": [
|
|
10463
10468
|
"chunk",
|
|
10464
|
-
"summary"
|
|
10469
|
+
"summary",
|
|
10470
|
+
"consolidated"
|
|
10465
10471
|
],
|
|
10466
10472
|
"description": "The type of passage"
|
|
10467
10473
|
},
|
|
@@ -10596,7 +10602,8 @@ export const state = {
|
|
|
10596
10602
|
"type": "string",
|
|
10597
10603
|
"enum": [
|
|
10598
10604
|
"chunk",
|
|
10599
|
-
"summary"
|
|
10605
|
+
"summary",
|
|
10606
|
+
"consolidated"
|
|
10600
10607
|
],
|
|
10601
10608
|
"description": "The type of passage"
|
|
10602
10609
|
},
|
|
@@ -11553,7 +11560,7 @@ export const state = {
|
|
|
11553
11560
|
"title": "Botpress API",
|
|
11554
11561
|
"description": "API for Botpress Cloud",
|
|
11555
11562
|
"server": "https://api.botpress.cloud",
|
|
11556
|
-
"version": "0.
|
|
11563
|
+
"version": "0.42.1",
|
|
11557
11564
|
"prefix": "v1"
|
|
11558
11565
|
},
|
|
11559
11566
|
"errors": [
|
|
@@ -14055,6 +14062,7 @@ export const state = {
|
|
|
14055
14062
|
"number",
|
|
14056
14063
|
"boolean",
|
|
14057
14064
|
"object",
|
|
14065
|
+
"array",
|
|
14058
14066
|
"null"
|
|
14059
14067
|
]
|
|
14060
14068
|
},
|
|
@@ -14067,10 +14075,65 @@ export const state = {
|
|
|
14067
14075
|
"description": {
|
|
14068
14076
|
"type": "string"
|
|
14069
14077
|
},
|
|
14078
|
+
"pattern": {
|
|
14079
|
+
"type": "string",
|
|
14080
|
+
"description": "String properties must match this pattern"
|
|
14081
|
+
},
|
|
14082
|
+
"enum": {
|
|
14083
|
+
"type": "array",
|
|
14084
|
+
"items": {
|
|
14085
|
+
"type": "string"
|
|
14086
|
+
},
|
|
14087
|
+
"description": "String properties must be one of these values"
|
|
14088
|
+
},
|
|
14089
|
+
"items": {
|
|
14090
|
+
"type": "object",
|
|
14091
|
+
"properties": {
|
|
14092
|
+
"type": {
|
|
14093
|
+
"type": "string",
|
|
14094
|
+
"enum": [
|
|
14095
|
+
"string",
|
|
14096
|
+
"number",
|
|
14097
|
+
"boolean",
|
|
14098
|
+
"object",
|
|
14099
|
+
"array",
|
|
14100
|
+
"null"
|
|
14101
|
+
]
|
|
14102
|
+
}
|
|
14103
|
+
},
|
|
14104
|
+
"required": [
|
|
14105
|
+
"type"
|
|
14106
|
+
],
|
|
14107
|
+
"additionalProperties": true,
|
|
14108
|
+
"description": "Defines the shape of items in an array"
|
|
14109
|
+
},
|
|
14070
14110
|
"nullable": {
|
|
14071
14111
|
"default": true,
|
|
14072
14112
|
"type": "boolean"
|
|
14073
14113
|
},
|
|
14114
|
+
"properties": {
|
|
14115
|
+
"type": "object",
|
|
14116
|
+
"additionalProperties": {
|
|
14117
|
+
"type": "object",
|
|
14118
|
+
"properties": {
|
|
14119
|
+
"type": {
|
|
14120
|
+
"type": "string",
|
|
14121
|
+
"enum": [
|
|
14122
|
+
"string",
|
|
14123
|
+
"number",
|
|
14124
|
+
"boolean",
|
|
14125
|
+
"object",
|
|
14126
|
+
"array",
|
|
14127
|
+
"null"
|
|
14128
|
+
]
|
|
14129
|
+
}
|
|
14130
|
+
},
|
|
14131
|
+
"required": [
|
|
14132
|
+
"type"
|
|
14133
|
+
],
|
|
14134
|
+
"additionalProperties": true
|
|
14135
|
+
}
|
|
14136
|
+
},
|
|
14074
14137
|
"x-zui": {
|
|
14075
14138
|
"type": "object",
|
|
14076
14139
|
"properties": {
|