@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/dist/index.js CHANGED
@@ -292990,7 +292990,10 @@ var state = {
292990
292990
  "type": "object",
292991
292991
  "properties": {
292992
292992
  "transcribePages": {
292993
- "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."
292993
+ "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."
292994
+ },
292995
+ "indexPages": {
292996
+ "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."
292994
292997
  }
292995
292998
  },
292996
292999
  "additionalProperties": false
@@ -293718,7 +293721,8 @@ var state = {
293718
293721
  "enum": [
293719
293722
  "chunk",
293720
293723
  "summary",
293721
- "consolidated"
293724
+ "consolidated",
293725
+ "image"
293722
293726
  ],
293723
293727
  "description": "The type of passage"
293724
293728
  },
@@ -293728,10 +293732,11 @@ var state = {
293728
293732
  "title",
293729
293733
  "subtitle",
293730
293734
  "paragraph",
293731
- "list",
293732
293735
  "blockquote",
293736
+ "list",
293733
293737
  "table",
293734
- "code"
293738
+ "code",
293739
+ "page"
293735
293740
  ],
293736
293741
  "description": "The subtype of passage, if available."
293737
293742
  },
@@ -293742,6 +293747,11 @@ var state = {
293742
293747
  "position": {
293743
293748
  "type": "integer",
293744
293749
  "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."
293750
+ },
293751
+ "sourceUrl": {
293752
+ "type": "string",
293753
+ "format": "uri",
293754
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
293745
293755
  }
293746
293756
  },
293747
293757
  "description": "The passage metadata."
@@ -293854,7 +293864,8 @@ var state = {
293854
293864
  "enum": [
293855
293865
  "chunk",
293856
293866
  "summary",
293857
- "consolidated"
293867
+ "consolidated",
293868
+ "image"
293858
293869
  ],
293859
293870
  "description": "The type of passage"
293860
293871
  },
@@ -293864,10 +293875,11 @@ var state = {
293864
293875
  "title",
293865
293876
  "subtitle",
293866
293877
  "paragraph",
293867
- "list",
293868
293878
  "blockquote",
293879
+ "list",
293869
293880
  "table",
293870
- "code"
293881
+ "code",
293882
+ "page"
293871
293883
  ],
293872
293884
  "description": "The subtype of passage, if available."
293873
293885
  },
@@ -293878,6 +293890,11 @@ var state = {
293878
293890
  "position": {
293879
293891
  "type": "integer",
293880
293892
  "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."
293893
+ },
293894
+ "sourceUrl": {
293895
+ "type": "string",
293896
+ "format": "uri",
293897
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
293881
293898
  }
293882
293899
  },
293883
293900
  "description": "The passage metadata."
@@ -294210,6 +294227,316 @@ var state = {
294210
294227
  }
294211
294228
  }
294212
294229
  },
294230
+ "exportTable": {
294231
+ "name": "exportTable",
294232
+ "path": "/v1/tables/{table}/export",
294233
+ "description": "Starts an export job for the table",
294234
+ "parameters": {
294235
+ "table": {
294236
+ "type": "string",
294237
+ "description": "The table's unique identifier",
294238
+ "in": "path"
294239
+ },
294240
+ "format": {
294241
+ "in": "query",
294242
+ "type": "object",
294243
+ "description": "The format of the exported file. CSV includes only the data while JSON includes the schema.",
294244
+ "schema": {
294245
+ "type": "string",
294246
+ "enum": [
294247
+ "csv",
294248
+ "json"
294249
+ ]
294250
+ }
294251
+ },
294252
+ "compress": {
294253
+ "in": "query",
294254
+ "type": "object",
294255
+ "description": "Whether or not the export is compressed (gzipped).",
294256
+ "schema": {
294257
+ "default": true,
294258
+ "type": "boolean"
294259
+ }
294260
+ }
294261
+ },
294262
+ "method": "get",
294263
+ "section": "tables",
294264
+ "response": {
294265
+ "description": "The export job",
294266
+ "schema": {
294267
+ "type": "object",
294268
+ "properties": {
294269
+ "job": {
294270
+ "type": "object",
294271
+ "properties": {
294272
+ "id": {
294273
+ "type": "string"
294274
+ },
294275
+ "botId": {
294276
+ "type": "string"
294277
+ },
294278
+ "tableId": {
294279
+ "type": "string"
294280
+ },
294281
+ "type": {
294282
+ "type": "string",
294283
+ "enum": [
294284
+ "export",
294285
+ "import"
294286
+ ]
294287
+ },
294288
+ "status": {
294289
+ "type": "string",
294290
+ "enum": [
294291
+ "pending",
294292
+ "in_progress",
294293
+ "finalizing",
294294
+ "completed",
294295
+ "failed"
294296
+ ]
294297
+ },
294298
+ "progress": {
294299
+ "default": 0,
294300
+ "type": "number"
294301
+ },
294302
+ "inputFileId": {
294303
+ "type": "string",
294304
+ "nullable": true
294305
+ },
294306
+ "outputFileId": {
294307
+ "type": "string",
294308
+ "nullable": true
294309
+ },
294310
+ "createdAt": {
294311
+ "type": "string",
294312
+ "format": "date-time"
294313
+ },
294314
+ "updatedAt": {
294315
+ "type": "string",
294316
+ "format": "date-time"
294317
+ }
294318
+ },
294319
+ "required": [
294320
+ "id",
294321
+ "botId",
294322
+ "tableId",
294323
+ "type",
294324
+ "status",
294325
+ "inputFileId",
294326
+ "outputFileId",
294327
+ "createdAt",
294328
+ "updatedAt"
294329
+ ],
294330
+ "additionalProperties": false
294331
+ }
294332
+ },
294333
+ "required": [
294334
+ "job"
294335
+ ],
294336
+ "title": "exportTableResponse",
294337
+ "additionalProperties": false
294338
+ }
294339
+ }
294340
+ },
294341
+ "getTableJobs": {
294342
+ "name": "getTableJobs",
294343
+ "path": "/v1/tables/{table}/jobs",
294344
+ "description": "Returns a list of recent jobs for the table (export/import operations)",
294345
+ "parameters": {
294346
+ "table": {
294347
+ "type": "string",
294348
+ "description": "The table's unique identifier",
294349
+ "in": "path"
294350
+ }
294351
+ },
294352
+ "method": "get",
294353
+ "section": "tables",
294354
+ "response": {
294355
+ "description": "The most recent jobs",
294356
+ "schema": {
294357
+ "type": "object",
294358
+ "properties": {
294359
+ "jobs": {
294360
+ "type": "array",
294361
+ "items": {
294362
+ "type": "object",
294363
+ "properties": {
294364
+ "id": {
294365
+ "type": "string"
294366
+ },
294367
+ "botId": {
294368
+ "type": "string"
294369
+ },
294370
+ "tableId": {
294371
+ "type": "string"
294372
+ },
294373
+ "type": {
294374
+ "type": "string",
294375
+ "enum": [
294376
+ "export",
294377
+ "import"
294378
+ ]
294379
+ },
294380
+ "status": {
294381
+ "type": "string",
294382
+ "enum": [
294383
+ "pending",
294384
+ "in_progress",
294385
+ "finalizing",
294386
+ "completed",
294387
+ "failed"
294388
+ ]
294389
+ },
294390
+ "progress": {
294391
+ "default": 0,
294392
+ "type": "number"
294393
+ },
294394
+ "inputFileId": {
294395
+ "type": "string",
294396
+ "nullable": true
294397
+ },
294398
+ "outputFileId": {
294399
+ "type": "string",
294400
+ "nullable": true
294401
+ },
294402
+ "createdAt": {
294403
+ "type": "string",
294404
+ "format": "date-time"
294405
+ },
294406
+ "updatedAt": {
294407
+ "type": "string",
294408
+ "format": "date-time"
294409
+ }
294410
+ },
294411
+ "required": [
294412
+ "id",
294413
+ "botId",
294414
+ "tableId",
294415
+ "type",
294416
+ "status",
294417
+ "inputFileId",
294418
+ "outputFileId",
294419
+ "createdAt",
294420
+ "updatedAt"
294421
+ ]
294422
+ }
294423
+ }
294424
+ },
294425
+ "required": [
294426
+ "jobs"
294427
+ ],
294428
+ "title": "getTableJobsResponse",
294429
+ "additionalProperties": false
294430
+ }
294431
+ }
294432
+ },
294433
+ "importTable": {
294434
+ "name": "importTable",
294435
+ "path": "/v1/tables/{table}/import",
294436
+ "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.",
294437
+ "method": "post",
294438
+ "parameters": {
294439
+ "table": {
294440
+ "type": "string",
294441
+ "description": "The table's name or unique identifier for targeting specific table operations.",
294442
+ "in": "path"
294443
+ }
294444
+ },
294445
+ "requestBody": {
294446
+ "description": "Content to import",
294447
+ "schema": {
294448
+ "type": "object",
294449
+ "properties": {
294450
+ "fileId": {
294451
+ "type": "string",
294452
+ "description": "The file ID to import. It must have been uploaded to the Files API before. Supported formats: CSV, JSON (gzipped or not)"
294453
+ }
294454
+ },
294455
+ "required": [
294456
+ "fileId"
294457
+ ],
294458
+ "title": "importTableBody",
294459
+ "additionalProperties": false
294460
+ }
294461
+ },
294462
+ "section": "tables",
294463
+ "response": {
294464
+ "description": "The import job",
294465
+ "schema": {
294466
+ "type": "object",
294467
+ "properties": {
294468
+ "job": {
294469
+ "type": "object",
294470
+ "properties": {
294471
+ "id": {
294472
+ "type": "string"
294473
+ },
294474
+ "botId": {
294475
+ "type": "string"
294476
+ },
294477
+ "tableId": {
294478
+ "type": "string"
294479
+ },
294480
+ "type": {
294481
+ "type": "string",
294482
+ "enum": [
294483
+ "export",
294484
+ "import"
294485
+ ]
294486
+ },
294487
+ "status": {
294488
+ "type": "string",
294489
+ "enum": [
294490
+ "pending",
294491
+ "in_progress",
294492
+ "finalizing",
294493
+ "completed",
294494
+ "failed"
294495
+ ]
294496
+ },
294497
+ "progress": {
294498
+ "default": 0,
294499
+ "type": "number"
294500
+ },
294501
+ "inputFileId": {
294502
+ "type": "string",
294503
+ "nullable": true
294504
+ },
294505
+ "outputFileId": {
294506
+ "type": "string",
294507
+ "nullable": true
294508
+ },
294509
+ "createdAt": {
294510
+ "type": "string",
294511
+ "format": "date-time"
294512
+ },
294513
+ "updatedAt": {
294514
+ "type": "string",
294515
+ "format": "date-time"
294516
+ }
294517
+ },
294518
+ "required": [
294519
+ "id",
294520
+ "botId",
294521
+ "tableId",
294522
+ "type",
294523
+ "status",
294524
+ "inputFileId",
294525
+ "outputFileId",
294526
+ "createdAt",
294527
+ "updatedAt"
294528
+ ],
294529
+ "additionalProperties": false
294530
+ }
294531
+ },
294532
+ "required": [
294533
+ "job"
294534
+ ],
294535
+ "title": "importTableResponse",
294536
+ "additionalProperties": false
294537
+ }
294538
+ }
294539
+ },
294213
294540
  "updateTable": {
294214
294541
  "name": "updateTable",
294215
294542
  "path": "/v1/tables/{table}",
@@ -294811,7 +295138,7 @@ var state = {
294811
295138
  "title": "Botpress API",
294812
295139
  "description": "API for Botpress Cloud",
294813
295140
  "server": "https://api.botpress.cloud",
294814
- "version": "0.53.0",
295141
+ "version": "0.55.0",
294815
295142
  "prefix": "v1"
294816
295143
  },
294817
295144
  "errors": [
@@ -294992,6 +295319,7 @@ var state = {
294992
295319
  "getOrCreateTableBody": true,
294993
295320
  "createTableBody": true,
294994
295321
  "duplicateTableBody": true,
295322
+ "importTableBody": true,
294995
295323
  "updateTableBody": true,
294996
295324
  "renameTableColumnBody": true,
294997
295325
  "findTableRowsBody": true,
@@ -295137,6 +295465,9 @@ var state = {
295137
295465
  "getOrCreateTableResponse": true,
295138
295466
  "createTableResponse": true,
295139
295467
  "duplicateTableResponse": true,
295468
+ "exportTableResponse": true,
295469
+ "getTableJobsResponse": true,
295470
+ "importTableResponse": true,
295140
295471
  "updateTableResponse": true,
295141
295472
  "renameTableColumnResponse": true,
295142
295473
  "deleteTableResponse": true,
@@ -297943,7 +298274,6 @@ var state = {
297943
298274
  }
297944
298275
  },
297945
298276
  "required": [
297946
- "$schema",
297947
298277
  "properties",
297948
298278
  "additionalProperties",
297949
298279
  "type"
@@ -298532,6 +298862,9 @@ var state = {
298532
298862
  "getOrCreateTable",
298533
298863
  "createTable",
298534
298864
  "duplicateTable",
298865
+ "exportTable",
298866
+ "getTableJobs",
298867
+ "importTable",
298535
298868
  "updateTable",
298536
298869
  "renameTableColumn",
298537
298870
  "deleteTable",