@botpress/api 0.50.5 → 0.52.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
@@ -288184,7 +288184,8 @@ var state = {
288184
288184
  "type": "string",
288185
288185
  "enum": [
288186
288186
  "v1",
288187
- "v2"
288187
+ "v2",
288188
+ "v3"
288188
288189
  ]
288189
288190
  },
288190
288191
  "plan": {
@@ -288365,7 +288366,8 @@ var state = {
288365
288366
  "type": "string",
288366
288367
  "enum": [
288367
288368
  "v1",
288368
- "v2"
288369
+ "v2",
288370
+ "v3"
288369
288371
  ]
288370
288372
  },
288371
288373
  "plan": {
@@ -288879,7 +288881,8 @@ var state = {
288879
288881
  "type": "string",
288880
288882
  "enum": [
288881
288883
  "v1",
288882
- "v2"
288884
+ "v2",
288885
+ "v3"
288883
288886
  ]
288884
288887
  },
288885
288888
  "plan": {
@@ -289048,7 +289051,8 @@ var state = {
289048
289051
  "type": "string",
289049
289052
  "enum": [
289050
289053
  "v1",
289051
- "v2"
289054
+ "v2",
289055
+ "v3"
289052
289056
  ]
289053
289057
  },
289054
289058
  "plan": {
@@ -292368,6 +292372,15 @@ var state = {
292368
292372
  }
292369
292373
  },
292370
292374
  "additionalProperties": false
292375
+ },
292376
+ "vision": {
292377
+ "type": "object",
292378
+ "properties": {
292379
+ "transcribePages": {
292380
+ "description": "(Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.\n\nThis feature is useful when a PDF file contains custom designs or layouts, or when your document has many infographics, which require visual processing in order to index the file effectively, as the default text-based indexing may not be enough to allow your bot to correctly understand the content in your PDFs.\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this feature will incurr in AI Spend cost to use a vision-enabled LLM to index the PDF pages.\n- This is limited to a maximum of 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be transcribed using this vision feature, and will be processed using the default text-based indexing instead. If you need to transcribe the entire file using vision, please split it into smaller files.\n- Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.\n- This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred."
292381
+ }
292382
+ },
292383
+ "additionalProperties": false
292371
292384
  }
292372
292385
  },
292373
292386
  "description": "Configuration to use for indexing the file, will be stored in the file's metadata for reference.",
@@ -294185,7 +294198,7 @@ var state = {
294185
294198
  "title": "Botpress API",
294186
294199
  "description": "API for Botpress Cloud",
294187
294200
  "server": "https://api.botpress.cloud",
294188
- "version": "0.50.5",
294201
+ "version": "0.52.0",
294189
294202
  "prefix": "v1"
294190
294203
  },
294191
294204
  "errors": [
@@ -295932,7 +295945,8 @@ var state = {
295932
295945
  "type": "string",
295933
295946
  "enum": [
295934
295947
  "v1",
295935
- "v2"
295948
+ "v2",
295949
+ "v3"
295936
295950
  ]
295937
295951
  },
295938
295952
  "plan": {
@@ -9349,6 +9349,15 @@ export declare const state: {
9349
9349
  };
9350
9350
  additionalProperties: false;
9351
9351
  };
9352
+ vision: {
9353
+ type: "object";
9354
+ properties: {
9355
+ transcribePages: {
9356
+ description: string;
9357
+ };
9358
+ };
9359
+ additionalProperties: false;
9360
+ };
9352
9361
  };
9353
9362
  description: string;
9354
9363
  additionalProperties: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.50.5",
3
+ "version": "0.52.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {