@botpress/api 0.53.0 → 0.55.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
@@ -11253,7 +11253,10 @@ export const state = {
11253
11253
  "type": "object",
11254
11254
  "properties": {
11255
11255
  "transcribePages": {
11256
- "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."
11256
+ "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."
11257
+ },
11258
+ "indexPages": {
11259
+ "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."
11257
11260
  }
11258
11261
  },
11259
11262
  "additionalProperties": false
@@ -11981,7 +11984,8 @@ export const state = {
11981
11984
  "enum": [
11982
11985
  "chunk",
11983
11986
  "summary",
11984
- "consolidated"
11987
+ "consolidated",
11988
+ "image"
11985
11989
  ],
11986
11990
  "description": "The type of passage"
11987
11991
  },
@@ -11991,10 +11995,11 @@ export const state = {
11991
11995
  "title",
11992
11996
  "subtitle",
11993
11997
  "paragraph",
11994
- "list",
11995
11998
  "blockquote",
11999
+ "list",
11996
12000
  "table",
11997
- "code"
12001
+ "code",
12002
+ "page"
11998
12003
  ],
11999
12004
  "description": "The subtype of passage, if available."
12000
12005
  },
@@ -12005,6 +12010,11 @@ export const state = {
12005
12010
  "position": {
12006
12011
  "type": "integer",
12007
12012
  "description": "Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file."
12013
+ },
12014
+ "sourceUrl": {
12015
+ "type": "string",
12016
+ "format": "uri",
12017
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
12008
12018
  }
12009
12019
  },
12010
12020
  "description": "The passage metadata."
@@ -12117,7 +12127,8 @@ export const state = {
12117
12127
  "enum": [
12118
12128
  "chunk",
12119
12129
  "summary",
12120
- "consolidated"
12130
+ "consolidated",
12131
+ "image"
12121
12132
  ],
12122
12133
  "description": "The type of passage"
12123
12134
  },
@@ -12127,10 +12138,11 @@ export const state = {
12127
12138
  "title",
12128
12139
  "subtitle",
12129
12140
  "paragraph",
12130
- "list",
12131
12141
  "blockquote",
12142
+ "list",
12132
12143
  "table",
12133
- "code"
12144
+ "code",
12145
+ "page"
12134
12146
  ],
12135
12147
  "description": "The subtype of passage, if available."
12136
12148
  },
@@ -12141,6 +12153,11 @@ export const state = {
12141
12153
  "position": {
12142
12154
  "type": "integer",
12143
12155
  "description": "Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file."
12156
+ },
12157
+ "sourceUrl": {
12158
+ "type": "string",
12159
+ "format": "uri",
12160
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
12144
12161
  }
12145
12162
  },
12146
12163
  "description": "The passage metadata."
@@ -12473,6 +12490,316 @@ export const state = {
12473
12490
  }
12474
12491
  }
12475
12492
  },
12493
+ "exportTable": {
12494
+ "name": "exportTable",
12495
+ "path": "/v1/tables/{table}/export",
12496
+ "description": "Starts an export job for the table",
12497
+ "parameters": {
12498
+ "table": {
12499
+ "type": "string",
12500
+ "description": "The table's unique identifier",
12501
+ "in": "path"
12502
+ },
12503
+ "format": {
12504
+ "in": "query",
12505
+ "type": "object",
12506
+ "description": "The format of the exported file. CSV includes only the data while JSON includes the schema.",
12507
+ "schema": {
12508
+ "type": "string",
12509
+ "enum": [
12510
+ "csv",
12511
+ "json"
12512
+ ]
12513
+ }
12514
+ },
12515
+ "compress": {
12516
+ "in": "query",
12517
+ "type": "object",
12518
+ "description": "Whether or not the export is compressed (gzipped).",
12519
+ "schema": {
12520
+ "default": true,
12521
+ "type": "boolean"
12522
+ }
12523
+ }
12524
+ },
12525
+ "method": "get",
12526
+ "section": "tables",
12527
+ "response": {
12528
+ "description": "The export job",
12529
+ "schema": {
12530
+ "type": "object",
12531
+ "properties": {
12532
+ "job": {
12533
+ "type": "object",
12534
+ "properties": {
12535
+ "id": {
12536
+ "type": "string"
12537
+ },
12538
+ "botId": {
12539
+ "type": "string"
12540
+ },
12541
+ "tableId": {
12542
+ "type": "string"
12543
+ },
12544
+ "type": {
12545
+ "type": "string",
12546
+ "enum": [
12547
+ "export",
12548
+ "import"
12549
+ ]
12550
+ },
12551
+ "status": {
12552
+ "type": "string",
12553
+ "enum": [
12554
+ "pending",
12555
+ "in_progress",
12556
+ "finalizing",
12557
+ "completed",
12558
+ "failed"
12559
+ ]
12560
+ },
12561
+ "progress": {
12562
+ "default": 0,
12563
+ "type": "number"
12564
+ },
12565
+ "inputFileId": {
12566
+ "type": "string",
12567
+ "nullable": true
12568
+ },
12569
+ "outputFileId": {
12570
+ "type": "string",
12571
+ "nullable": true
12572
+ },
12573
+ "createdAt": {
12574
+ "type": "string",
12575
+ "format": "date-time"
12576
+ },
12577
+ "updatedAt": {
12578
+ "type": "string",
12579
+ "format": "date-time"
12580
+ }
12581
+ },
12582
+ "required": [
12583
+ "id",
12584
+ "botId",
12585
+ "tableId",
12586
+ "type",
12587
+ "status",
12588
+ "inputFileId",
12589
+ "outputFileId",
12590
+ "createdAt",
12591
+ "updatedAt"
12592
+ ],
12593
+ "additionalProperties": false
12594
+ }
12595
+ },
12596
+ "required": [
12597
+ "job"
12598
+ ],
12599
+ "title": "exportTableResponse",
12600
+ "additionalProperties": false
12601
+ }
12602
+ }
12603
+ },
12604
+ "getTableJobs": {
12605
+ "name": "getTableJobs",
12606
+ "path": "/v1/tables/{table}/jobs",
12607
+ "description": "Returns a list of recent jobs for the table (export/import operations)",
12608
+ "parameters": {
12609
+ "table": {
12610
+ "type": "string",
12611
+ "description": "The table's unique identifier",
12612
+ "in": "path"
12613
+ }
12614
+ },
12615
+ "method": "get",
12616
+ "section": "tables",
12617
+ "response": {
12618
+ "description": "The most recent jobs",
12619
+ "schema": {
12620
+ "type": "object",
12621
+ "properties": {
12622
+ "jobs": {
12623
+ "type": "array",
12624
+ "items": {
12625
+ "type": "object",
12626
+ "properties": {
12627
+ "id": {
12628
+ "type": "string"
12629
+ },
12630
+ "botId": {
12631
+ "type": "string"
12632
+ },
12633
+ "tableId": {
12634
+ "type": "string"
12635
+ },
12636
+ "type": {
12637
+ "type": "string",
12638
+ "enum": [
12639
+ "export",
12640
+ "import"
12641
+ ]
12642
+ },
12643
+ "status": {
12644
+ "type": "string",
12645
+ "enum": [
12646
+ "pending",
12647
+ "in_progress",
12648
+ "finalizing",
12649
+ "completed",
12650
+ "failed"
12651
+ ]
12652
+ },
12653
+ "progress": {
12654
+ "default": 0,
12655
+ "type": "number"
12656
+ },
12657
+ "inputFileId": {
12658
+ "type": "string",
12659
+ "nullable": true
12660
+ },
12661
+ "outputFileId": {
12662
+ "type": "string",
12663
+ "nullable": true
12664
+ },
12665
+ "createdAt": {
12666
+ "type": "string",
12667
+ "format": "date-time"
12668
+ },
12669
+ "updatedAt": {
12670
+ "type": "string",
12671
+ "format": "date-time"
12672
+ }
12673
+ },
12674
+ "required": [
12675
+ "id",
12676
+ "botId",
12677
+ "tableId",
12678
+ "type",
12679
+ "status",
12680
+ "inputFileId",
12681
+ "outputFileId",
12682
+ "createdAt",
12683
+ "updatedAt"
12684
+ ]
12685
+ }
12686
+ }
12687
+ },
12688
+ "required": [
12689
+ "jobs"
12690
+ ],
12691
+ "title": "getTableJobsResponse",
12692
+ "additionalProperties": false
12693
+ }
12694
+ }
12695
+ },
12696
+ "importTable": {
12697
+ "name": "importTable",
12698
+ "path": "/v1/tables/{table}/import",
12699
+ "description": "Import the content of a file into a table. The table must already have been created with the correct schema. Data already in the table will be kept.",
12700
+ "method": "post",
12701
+ "parameters": {
12702
+ "table": {
12703
+ "type": "string",
12704
+ "description": "The table's name or unique identifier for targeting specific table operations.",
12705
+ "in": "path"
12706
+ }
12707
+ },
12708
+ "requestBody": {
12709
+ "description": "Content to import",
12710
+ "schema": {
12711
+ "type": "object",
12712
+ "properties": {
12713
+ "fileId": {
12714
+ "type": "string",
12715
+ "description": "The file ID to import. It must have been uploaded to the Files API before. Supported formats: CSV, JSON (gzipped or not)"
12716
+ }
12717
+ },
12718
+ "required": [
12719
+ "fileId"
12720
+ ],
12721
+ "title": "importTableBody",
12722
+ "additionalProperties": false
12723
+ }
12724
+ },
12725
+ "section": "tables",
12726
+ "response": {
12727
+ "description": "The import job",
12728
+ "schema": {
12729
+ "type": "object",
12730
+ "properties": {
12731
+ "job": {
12732
+ "type": "object",
12733
+ "properties": {
12734
+ "id": {
12735
+ "type": "string"
12736
+ },
12737
+ "botId": {
12738
+ "type": "string"
12739
+ },
12740
+ "tableId": {
12741
+ "type": "string"
12742
+ },
12743
+ "type": {
12744
+ "type": "string",
12745
+ "enum": [
12746
+ "export",
12747
+ "import"
12748
+ ]
12749
+ },
12750
+ "status": {
12751
+ "type": "string",
12752
+ "enum": [
12753
+ "pending",
12754
+ "in_progress",
12755
+ "finalizing",
12756
+ "completed",
12757
+ "failed"
12758
+ ]
12759
+ },
12760
+ "progress": {
12761
+ "default": 0,
12762
+ "type": "number"
12763
+ },
12764
+ "inputFileId": {
12765
+ "type": "string",
12766
+ "nullable": true
12767
+ },
12768
+ "outputFileId": {
12769
+ "type": "string",
12770
+ "nullable": true
12771
+ },
12772
+ "createdAt": {
12773
+ "type": "string",
12774
+ "format": "date-time"
12775
+ },
12776
+ "updatedAt": {
12777
+ "type": "string",
12778
+ "format": "date-time"
12779
+ }
12780
+ },
12781
+ "required": [
12782
+ "id",
12783
+ "botId",
12784
+ "tableId",
12785
+ "type",
12786
+ "status",
12787
+ "inputFileId",
12788
+ "outputFileId",
12789
+ "createdAt",
12790
+ "updatedAt"
12791
+ ],
12792
+ "additionalProperties": false
12793
+ }
12794
+ },
12795
+ "required": [
12796
+ "job"
12797
+ ],
12798
+ "title": "importTableResponse",
12799
+ "additionalProperties": false
12800
+ }
12801
+ }
12802
+ },
12476
12803
  "updateTable": {
12477
12804
  "name": "updateTable",
12478
12805
  "path": "/v1/tables/{table}",
@@ -13074,7 +13401,7 @@ export const state = {
13074
13401
  "title": "Botpress API",
13075
13402
  "description": "API for Botpress Cloud",
13076
13403
  "server": "https://api.botpress.cloud",
13077
- "version": "0.53.0",
13404
+ "version": "0.55.0",
13078
13405
  "prefix": "v1"
13079
13406
  },
13080
13407
  "errors": [
@@ -13255,6 +13582,7 @@ export const state = {
13255
13582
  "getOrCreateTableBody": true,
13256
13583
  "createTableBody": true,
13257
13584
  "duplicateTableBody": true,
13585
+ "importTableBody": true,
13258
13586
  "updateTableBody": true,
13259
13587
  "renameTableColumnBody": true,
13260
13588
  "findTableRowsBody": true,
@@ -13400,6 +13728,9 @@ export const state = {
13400
13728
  "getOrCreateTableResponse": true,
13401
13729
  "createTableResponse": true,
13402
13730
  "duplicateTableResponse": true,
13731
+ "exportTableResponse": true,
13732
+ "getTableJobsResponse": true,
13733
+ "importTableResponse": true,
13403
13734
  "updateTableResponse": true,
13404
13735
  "renameTableColumnResponse": true,
13405
13736
  "deleteTableResponse": true,
@@ -16206,7 +16537,6 @@ export const state = {
16206
16537
  }
16207
16538
  },
16208
16539
  "required": [
16209
- "$schema",
16210
16540
  "properties",
16211
16541
  "additionalProperties",
16212
16542
  "type"
@@ -16795,6 +17125,9 @@ export const state = {
16795
17125
  "getOrCreateTable",
16796
17126
  "createTable",
16797
17127
  "duplicateTable",
17128
+ "exportTable",
17129
+ "getTableJobs",
17130
+ "importTable",
16798
17131
  "updateTable",
16799
17132
  "renameTableColumn",
16800
17133
  "deleteTable",