@botpress/api 0.73.0 → 0.75.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
@@ -11722,6 +11722,25 @@ export const state = {
11722
11722
  "browser"
11723
11723
  ],
11724
11724
  "additionalProperties": false
11725
+ },
11726
+ "icon": {
11727
+ "type": "string",
11728
+ "description": "Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes."
11729
+ },
11730
+ "readme": {
11731
+ "type": "string",
11732
+ "description": "Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions."
11733
+ },
11734
+ "title": {
11735
+ "type": "string",
11736
+ "minLength": 1,
11737
+ "maxLength": 64,
11738
+ "description": "Title of the plugin. This is the name that will be displayed in the UI"
11739
+ },
11740
+ "description": {
11741
+ "type": "string",
11742
+ "maxLength": 256,
11743
+ "description": "Description of the plugin. This is the description that will be displayed in the UI"
11725
11744
  }
11726
11745
  },
11727
11746
  "required": [
@@ -12089,6 +12108,25 @@ export const state = {
12089
12108
  }
12090
12109
  },
12091
12110
  "additionalProperties": false
12111
+ },
12112
+ "icon": {
12113
+ "type": "string",
12114
+ "description": "Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes."
12115
+ },
12116
+ "readme": {
12117
+ "type": "string",
12118
+ "description": "Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions."
12119
+ },
12120
+ "title": {
12121
+ "type": "string",
12122
+ "minLength": 1,
12123
+ "maxLength": 64,
12124
+ "description": "Title of the plugin. This is the name that will be displayed in the UI"
12125
+ },
12126
+ "description": {
12127
+ "type": "string",
12128
+ "maxLength": 256,
12129
+ "description": "Description of the plugin. This is the description that will be displayed in the UI"
12092
12130
  }
12093
12131
  },
12094
12132
  "title": "updatePluginBody",
@@ -12866,10 +12904,10 @@ export const state = {
12866
12904
  "type": "object",
12867
12905
  "properties": {
12868
12906
  "transcribePages": {
12869
- "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 incur 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."
12907
+ "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 incur in AI Spend cost to use a vision-enabled LLM to index the PDF pages.\n- This is limited to a maximum of 100 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."
12870
12908
  },
12871
12909
  "indexPages": {
12872
- "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 index each page of the PDF as a standalone image.\n\nEnabling this feature will allow Autonomous Nodes in your bot to answer visual or higher-level questions about the content in these pages that can usually not be answered correctly by the default text-based indexing or visual transcription.\n\nThis feature is useful when a PDF has:\n- Tables with complex layouts\n- Charts, diagrams or infographics\n- Photos or images that can be used to answer user queries\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this will incur in extra AI Spend cost and additional File Storage usage, in order to use a vision-enabled LLM to visually index the PDF pages and store them as standalone page images in the bot's file storage.\n- Enabling this may increase the overall AI Spend cost of your bot as your bot may pass one or more indexed page images to a vision-enabled LLM for answering user queries.\n- This is limited to the first 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be vision-indexed. If you need to visually index the entire file, please split it into smaller files.\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."
12910
+ "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 index each page of the PDF as a standalone image.\n\nEnabling this feature will allow Autonomous Nodes in your bot to answer visual or higher-level questions about the content in these pages that can usually not be answered correctly by the default text-based indexing or visual transcription.\n\nThis feature is useful when a PDF has:\n- Tables with complex layouts\n- Charts, diagrams or infographics\n- Photos or images that can be used to answer user queries\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this will incur in extra AI Spend cost and additional File Storage usage, in order to use a vision-enabled LLM to visually index the PDF pages and store them as standalone page images in the bot's file storage.\n- Enabling this may increase the overall AI Spend cost of your bot as your bot may pass one or more indexed page images to a vision-enabled LLM for answering user queries.\n- This is limited to the first 100 pages of the PDF. If the file has more pages then the rest of the pages will NOT be vision-indexed. If you need to visually index the entire file, please split it into smaller files.\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."
12873
12911
  }
12874
12912
  },
12875
12913
  "additionalProperties": false
@@ -13582,7 +13620,7 @@ export const state = {
13582
13620
  "properties": {
13583
13621
  "overwrite": {
13584
13622
  "type": "boolean",
13585
- "description": "Set to `true` to overwrite the file if it already exists, otherwise an error will be returned. If overwriting, the existing file must be owned by the same user making the file copy request, otherwise an error will be returned."
13623
+ "description": "Set to `true` to overwrite the file if it already exists, otherwise an error will be returned.\n\nWhen this endpoint is called using bot authentication, the existing file must have been originally created by the same bot making the file copy request in order to overwrite it."
13586
13624
  }
13587
13625
  },
13588
13626
  "title": "copyFileBody",
@@ -15283,7 +15321,7 @@ export const state = {
15283
15321
  "title": "Botpress API",
15284
15322
  "description": "API for Botpress Cloud",
15285
15323
  "server": "https://api.botpress.cloud",
15286
- "version": "0.73.0",
15324
+ "version": "0.75.0",
15287
15325
  "prefix": "v1"
15288
15326
  },
15289
15327
  "errors": [
@@ -17330,6 +17368,25 @@ export const state = {
17330
17368
  ],
17331
17369
  "description": "Conversation object configuration",
17332
17370
  "additionalProperties": false
17371
+ },
17372
+ "title": {
17373
+ "type": "string",
17374
+ "minLength": 1,
17375
+ "maxLength": 64,
17376
+ "description": "Title of the plugin. This is the name that will be displayed in the UI"
17377
+ },
17378
+ "description": {
17379
+ "type": "string",
17380
+ "maxLength": 256,
17381
+ "description": "Description of the plugin. This is the description that will be displayed in the UI"
17382
+ },
17383
+ "iconUrl": {
17384
+ "type": "string",
17385
+ "description": "URL of the icon of the plugin. This is the icon that will be displayed in the UI"
17386
+ },
17387
+ "readmeUrl": {
17388
+ "type": "string",
17389
+ "description": "URL of the readme of the plugin. This is the readme that will be displayed in the UI"
17333
17390
  }
17334
17391
  },
17335
17392
  "required": [
@@ -17344,9 +17401,12 @@ export const state = {
17344
17401
  "actions",
17345
17402
  "dependencies",
17346
17403
  "user",
17347
- "conversation"
17404
+ "conversation",
17405
+ "title",
17406
+ "description",
17407
+ "iconUrl",
17408
+ "readmeUrl"
17348
17409
  ],
17349
- "description": "Plugin definition",
17350
17410
  "additionalProperties": false
17351
17411
  }
17352
17412
  },