@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/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": {
@@ -10460,7 +10465,9 @@ export const state = {
10460
10465
  "type": {
10461
10466
  "type": "string",
10462
10467
  "enum": [
10463
- "chunk"
10468
+ "chunk",
10469
+ "summary",
10470
+ "consolidated"
10464
10471
  ],
10465
10472
  "description": "The type of passage"
10466
10473
  },
@@ -10594,7 +10601,9 @@ export const state = {
10594
10601
  "type": {
10595
10602
  "type": "string",
10596
10603
  "enum": [
10597
- "chunk"
10604
+ "chunk",
10605
+ "summary",
10606
+ "consolidated"
10598
10607
  ],
10599
10608
  "description": "The type of passage"
10600
10609
  },
@@ -11551,7 +11560,7 @@ export const state = {
11551
11560
  "title": "Botpress API",
11552
11561
  "description": "API for Botpress Cloud",
11553
11562
  "server": "https://api.botpress.cloud",
11554
- "version": "0.41.2",
11563
+ "version": "0.42.0",
11555
11564
  "prefix": "v1"
11556
11565
  },
11557
11566
  "errors": [