@botpress/api 0.41.2 → 0.42.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 CHANGED
@@ -292975,10 +292975,15 @@ var state = {
292975
292975
  "type": "integer",
292976
292976
  "description": "The maximum number of passages to return."
292977
292977
  },
292978
+ "consolidate": {
292979
+ "in": "query",
292980
+ "type": "boolean",
292981
+ "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."
292982
+ },
292978
292983
  "includeBreadcrumb": {
292979
292984
  "in": "query",
292980
292985
  "type": "boolean",
292981
- "description": "Prepend a breadcrumb to each passage, containing the title and subtitle(s) the passage belongs to in the file."
292986
+ "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`."
292982
292987
  }
292983
292988
  },
292984
292989
  "response": {
@@ -293005,7 +293010,9 @@ var state = {
293005
293010
  "type": {
293006
293011
  "type": "string",
293007
293012
  "enum": [
293008
- "chunk"
293013
+ "chunk",
293014
+ "summary",
293015
+ "consolidated"
293009
293016
  ],
293010
293017
  "description": "The type of passage"
293011
293018
  },
@@ -293139,7 +293146,9 @@ var state = {
293139
293146
  "type": {
293140
293147
  "type": "string",
293141
293148
  "enum": [
293142
- "chunk"
293149
+ "chunk",
293150
+ "summary",
293151
+ "consolidated"
293143
293152
  ],
293144
293153
  "description": "The type of passage"
293145
293154
  },
@@ -294096,7 +294105,7 @@ var state = {
294096
294105
  "title": "Botpress API",
294097
294106
  "description": "API for Botpress Cloud",
294098
294107
  "server": "https://api.botpress.cloud",
294099
- "version": "0.41.2",
294108
+ "version": "0.42.0",
294100
294109
  "prefix": "v1"
294101
294110
  },
294102
294111
  "errors": [
@@ -9150,6 +9150,11 @@ export declare const state: {
9150
9150
  type: "integer";
9151
9151
  description: string;
9152
9152
  };
9153
+ consolidate: {
9154
+ in: "query";
9155
+ type: "boolean";
9156
+ description: string;
9157
+ };
9153
9158
  includeBreadcrumb: {
9154
9159
  in: "query";
9155
9160
  type: "boolean";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.41.2",
3
+ "version": "0.42.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {