@botpress/api 0.41.3 → 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": {
@@ -293006,7 +293011,8 @@ var state = {
293006
293011
  "type": "string",
293007
293012
  "enum": [
293008
293013
  "chunk",
293009
- "summary"
293014
+ "summary",
293015
+ "consolidated"
293010
293016
  ],
293011
293017
  "description": "The type of passage"
293012
293018
  },
@@ -293141,7 +293147,8 @@ var state = {
293141
293147
  "type": "string",
293142
293148
  "enum": [
293143
293149
  "chunk",
293144
- "summary"
293150
+ "summary",
293151
+ "consolidated"
293145
293152
  ],
293146
293153
  "description": "The type of passage"
293147
293154
  },
@@ -294098,7 +294105,7 @@ var state = {
294098
294105
  "title": "Botpress API",
294099
294106
  "description": "API for Botpress Cloud",
294100
294107
  "server": "https://api.botpress.cloud",
294101
- "version": "0.41.3",
294108
+ "version": "0.42.0",
294102
294109
  "prefix": "v1"
294103
294110
  },
294104
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.3",
3
+ "version": "0.42.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {