@botpress/api 1.53.1 → 1.54.1

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
@@ -261210,9 +261210,9 @@ var require_src4 = __commonJS({
261210
261210
  }
261211
261211
  });
261212
261212
 
261213
- // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js
261213
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
261214
261214
  var require_common4 = __commonJS({
261215
- "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
261215
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module2) {
261216
261216
  function setup(env2) {
261217
261217
  createDebug.debug = createDebug;
261218
261218
  createDebug.default = createDebug;
@@ -261387,9 +261387,9 @@ var require_common4 = __commonJS({
261387
261387
  }
261388
261388
  });
261389
261389
 
261390
- // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js
261390
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
261391
261391
  var require_browser2 = __commonJS({
261392
- "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
261392
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module2) {
261393
261393
  exports.formatArgs = formatArgs;
261394
261394
  exports.save = save;
261395
261395
  exports.load = load3;
@@ -261553,9 +261553,9 @@ var require_browser2 = __commonJS({
261553
261553
  }
261554
261554
  });
261555
261555
 
261556
- // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js
261556
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
261557
261557
  var require_node4 = __commonJS({
261558
- "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module2) {
261558
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module2) {
261559
261559
  var tty2 = require("tty");
261560
261560
  var util4 = require("util");
261561
261561
  exports.init = init;
@@ -261727,9 +261727,9 @@ var require_node4 = __commonJS({
261727
261727
  }
261728
261728
  });
261729
261729
 
261730
- // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js
261730
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
261731
261731
  var require_src5 = __commonJS({
261732
- "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module2) {
261732
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module2) {
261733
261733
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
261734
261734
  module2.exports = require_browser2();
261735
261735
  } else {
@@ -286135,7 +286135,7 @@ var state = {
286135
286135
  "title": "Botpress Runtime API",
286136
286136
  "description": "API for Botpress Runtime",
286137
286137
  "server": "https://api.botpress.cloud",
286138
- "version": "1.53.1",
286138
+ "version": "1.54.1",
286139
286139
  "prefix": "v1"
286140
286140
  },
286141
286141
  "defaultParameters": {
@@ -297282,6 +297282,10 @@ var state2 = {
297282
297282
  },
297283
297283
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
297284
297284
  },
297285
+ "sdkVersion": {
297286
+ "type": "string",
297287
+ "maxLength": 200
297288
+ },
297285
297289
  "secrets": {
297286
297290
  "type": "object",
297287
297291
  "additionalProperties": {
@@ -297914,6 +297918,10 @@ var state2 = {
297914
297918
  },
297915
297919
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
297916
297920
  },
297921
+ "sdkVersion": {
297922
+ "type": "string",
297923
+ "maxLength": 200
297924
+ },
297917
297925
  "secrets": {
297918
297926
  "type": "object",
297919
297927
  "additionalProperties": {
@@ -298131,6 +298139,10 @@ var state2 = {
298131
298139
  },
298132
298140
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
298133
298141
  },
298142
+ "sdkVersion": {
298143
+ "type": "string",
298144
+ "maxLength": 200
298145
+ },
298134
298146
  "channels": {
298135
298147
  "type": "object",
298136
298148
  "additionalProperties": {
@@ -298768,6 +298780,10 @@ var state2 = {
298768
298780
  },
298769
298781
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
298770
298782
  },
298783
+ "sdkVersion": {
298784
+ "type": "string",
298785
+ "maxLength": 200
298786
+ },
298771
298787
  "channels": {
298772
298788
  "type": "object",
298773
298789
  "additionalProperties": {
@@ -300071,6 +300087,10 @@ var state2 = {
300071
300087
  },
300072
300088
  "description": "Optional attributes"
300073
300089
  },
300090
+ "sdkVersion": {
300091
+ "type": "string",
300092
+ "maxLength": 200
300093
+ },
300074
300094
  "icon": {
300075
300095
  "type": "string",
300076
300096
  "description": "Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes."
@@ -300435,6 +300455,10 @@ var state2 = {
300435
300455
  },
300436
300456
  "description": "Optional attributes. Set attributes to null to remove them"
300437
300457
  },
300458
+ "sdkVersion": {
300459
+ "type": "string",
300460
+ "maxLength": 200
300461
+ },
300438
300462
  "icon": {
300439
300463
  "type": "string",
300440
300464
  "description": "Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes."
@@ -300903,6 +300927,10 @@ var state2 = {
300903
300927
  },
300904
300928
  "description": "Optional attributes"
300905
300929
  },
300930
+ "sdkVersion": {
300931
+ "type": "string",
300932
+ "maxLength": 200
300933
+ },
300906
300934
  "code": {
300907
300935
  "type": "object",
300908
300936
  "properties": {
@@ -301436,6 +301464,10 @@ var state2 = {
301436
301464
  },
301437
301465
  "description": "Optional attributes. Set attributes to null to remove them"
301438
301466
  },
301467
+ "sdkVersion": {
301468
+ "type": "string",
301469
+ "maxLength": 200
301470
+ },
301439
301471
  "code": {
301440
301472
  "type": "object",
301441
301473
  "properties": {
@@ -302391,7 +302423,7 @@ var state2 = {
302391
302423
  "title": "Botpress Admin API",
302392
302424
  "description": "API for Botpress Cloud Manager",
302393
302425
  "server": "https://api.botpress.cloud",
302394
- "version": "1.53.1",
302426
+ "version": "1.54.1",
302395
302427
  "prefix": "v1"
302396
302428
  },
302397
302429
  "defaultParameters": {
@@ -305415,6 +305447,14 @@ var state3 = {
305415
305447
  "parsing": {
305416
305448
  "type": "object",
305417
305449
  "properties": {
305450
+ "mode": {
305451
+ "type": "string",
305452
+ "enum": [
305453
+ "agent",
305454
+ "standard"
305455
+ ],
305456
+ "description": "The parsing mode to index the file. Using `agent` will use agentic document processing to parse the file and will incurr in AI Spend cost, while `standard` will use a faster but less accurate parser that will not incur in AI Spend cost."
305457
+ },
305418
305458
  "minimumParagraphLength": {
305419
305459
  "type": "integer",
305420
305460
  "minimum": 50,
@@ -307818,7 +307858,7 @@ var state3 = {
307818
307858
  "title": "Botpress Files API",
307819
307859
  "description": "API for Botpress Files",
307820
307860
  "server": "https://api.botpress.cloud",
307821
- "version": "1.53.1",
307861
+ "version": "1.54.1",
307822
307862
  "prefix": "v1"
307823
307863
  },
307824
307864
  "defaultParameters": {
@@ -309172,6 +309212,13 @@ var state4 = {
309172
309212
  "type": "string",
309173
309213
  "minLength": 1
309174
309214
  },
309215
+ "factor": {
309216
+ "default": 1,
309217
+ "type": "number",
309218
+ "minimum": 1,
309219
+ "maximum": 30,
309220
+ "description": "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
309221
+ },
309175
309222
  "frozen": {
309176
309223
  "type": "boolean",
309177
309224
  "description": 'A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.'
@@ -310076,7 +310123,7 @@ var state4 = {
310076
310123
  "title": "Botpress Tables API",
310077
310124
  "description": "API for Botpress Tables",
310078
310125
  "server": "https://api.botpress.cloud",
310079
- "version": "1.53.1",
310126
+ "version": "1.54.1",
310080
310127
  "prefix": "v1"
310081
310128
  },
310082
310129
  "defaultParameters": {
@@ -323031,6 +323078,10 @@ var state5 = {
323031
323078
  },
323032
323079
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
323033
323080
  },
323081
+ "sdkVersion": {
323082
+ "type": "string",
323083
+ "maxLength": 200
323084
+ },
323034
323085
  "secrets": {
323035
323086
  "type": "object",
323036
323087
  "additionalProperties": {
@@ -323650,6 +323701,10 @@ var state5 = {
323650
323701
  },
323651
323702
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
323652
323703
  },
323704
+ "sdkVersion": {
323705
+ "type": "string",
323706
+ "maxLength": 200
323707
+ },
323653
323708
  "secrets": {
323654
323709
  "type": "object",
323655
323710
  "additionalProperties": {
@@ -323842,6 +323897,10 @@ var state5 = {
323842
323897
  },
323843
323898
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
323844
323899
  },
323900
+ "sdkVersion": {
323901
+ "type": "string",
323902
+ "maxLength": 200
323903
+ },
323845
323904
  "channels": {
323846
323905
  "type": "object",
323847
323906
  "additionalProperties": {
@@ -324467,6 +324526,10 @@ var state5 = {
324467
324526
  },
324468
324527
  "description": "**EXPERIMENTAL** Extra integration operations that should be sent or not to the integration instances. The key is the operation name."
324469
324528
  },
324529
+ "sdkVersion": {
324530
+ "type": "string",
324531
+ "maxLength": 200
324532
+ },
324470
324533
  "channels": {
324471
324534
  "type": "object",
324472
324535
  "additionalProperties": {
@@ -325684,6 +325747,10 @@ var state5 = {
325684
325747
  },
325685
325748
  "description": "Optional attributes"
325686
325749
  },
325750
+ "sdkVersion": {
325751
+ "type": "string",
325752
+ "maxLength": 200
325753
+ },
325687
325754
  "icon": {
325688
325755
  "type": "string",
325689
325756
  "description": "Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes."
@@ -326012,6 +326079,10 @@ var state5 = {
326012
326079
  },
326013
326080
  "description": "Optional attributes. Set attributes to null to remove them"
326014
326081
  },
326082
+ "sdkVersion": {
326083
+ "type": "string",
326084
+ "maxLength": 200
326085
+ },
326015
326086
  "icon": {
326016
326087
  "type": "string",
326017
326088
  "description": "Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes."
@@ -326443,6 +326514,10 @@ var state5 = {
326443
326514
  },
326444
326515
  "description": "Optional attributes"
326445
326516
  },
326517
+ "sdkVersion": {
326518
+ "type": "string",
326519
+ "maxLength": 200
326520
+ },
326446
326521
  "code": {
326447
326522
  "type": "object",
326448
326523
  "properties": {
@@ -326928,6 +327003,10 @@ var state5 = {
326928
327003
  },
326929
327004
  "description": "Optional attributes. Set attributes to null to remove them"
326930
327005
  },
327006
+ "sdkVersion": {
327007
+ "type": "string",
327008
+ "maxLength": 200
327009
+ },
326931
327010
  "code": {
326932
327011
  "type": "object",
326933
327012
  "properties": {
@@ -327802,6 +327881,14 @@ var state5 = {
327802
327881
  "parsing": {
327803
327882
  "type": "object",
327804
327883
  "properties": {
327884
+ "mode": {
327885
+ "type": "string",
327886
+ "enum": [
327887
+ "agent",
327888
+ "standard"
327889
+ ],
327890
+ "description": "The parsing mode to index the file. Using `agent` will use agentic document processing to parse the file and will incurr in AI Spend cost, while `standard` will use a faster but less accurate parser that will not incur in AI Spend cost."
327891
+ },
327805
327892
  "minimumParagraphLength": {
327806
327893
  "type": "integer",
327807
327894
  "minimum": 50,
@@ -330305,6 +330392,13 @@ var state5 = {
330305
330392
  "type": "string",
330306
330393
  "minLength": 1
330307
330394
  },
330395
+ "factor": {
330396
+ "default": 1,
330397
+ "type": "number",
330398
+ "minimum": 1,
330399
+ "maximum": 30,
330400
+ "description": "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
330401
+ },
330308
330402
  "frozen": {
330309
330403
  "type": "boolean",
330310
330404
  "description": 'A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.'
@@ -330921,7 +331015,7 @@ var state5 = {
330921
331015
  "title": "Botpress API",
330922
331016
  "description": "API for Botpress Cloud",
330923
331017
  "server": "https://api.botpress.cloud",
330924
- "version": "1.53.1",
331018
+ "version": "1.54.1",
330925
331019
  "prefix": "v1"
330926
331020
  },
330927
331021
  "errors": [
@@ -8908,6 +8908,10 @@ export declare const state: {
8908
8908
  };
8909
8909
  description: string;
8910
8910
  };
8911
+ sdkVersion: {
8912
+ type: "string";
8913
+ maxLength: number;
8914
+ };
8911
8915
  secrets: {
8912
8916
  type: "object";
8913
8917
  additionalProperties: {
@@ -9489,6 +9493,10 @@ export declare const state: {
9489
9493
  };
9490
9494
  description: string;
9491
9495
  };
9496
+ sdkVersion: {
9497
+ type: "string";
9498
+ maxLength: number;
9499
+ };
9492
9500
  secrets: {
9493
9501
  type: "object";
9494
9502
  additionalProperties: {
@@ -9695,6 +9703,10 @@ export declare const state: {
9695
9703
  };
9696
9704
  description: string;
9697
9705
  };
9706
+ sdkVersion: {
9707
+ type: "string";
9708
+ maxLength: number;
9709
+ };
9698
9710
  channels: {
9699
9711
  type: "object";
9700
9712
  additionalProperties: {
@@ -10286,6 +10298,10 @@ export declare const state: {
10286
10298
  };
10287
10299
  description: string;
10288
10300
  };
10301
+ sdkVersion: {
10302
+ type: "string";
10303
+ maxLength: number;
10304
+ };
10289
10305
  channels: {
10290
10306
  type: "object";
10291
10307
  additionalProperties: {
@@ -11462,6 +11478,10 @@ export declare const state: {
11462
11478
  };
11463
11479
  description: string;
11464
11480
  };
11481
+ sdkVersion: {
11482
+ type: "string";
11483
+ maxLength: number;
11484
+ };
11465
11485
  icon: {
11466
11486
  type: "string";
11467
11487
  description: string;
@@ -11801,6 +11821,10 @@ export declare const state: {
11801
11821
  };
11802
11822
  description: string;
11803
11823
  };
11824
+ sdkVersion: {
11825
+ type: "string";
11826
+ maxLength: number;
11827
+ };
11804
11828
  icon: {
11805
11829
  type: "string";
11806
11830
  description: string;
@@ -12230,6 +12254,10 @@ export declare const state: {
12230
12254
  };
12231
12255
  description: string;
12232
12256
  };
12257
+ sdkVersion: {
12258
+ type: "string";
12259
+ maxLength: number;
12260
+ };
12233
12261
  code: {
12234
12262
  type: "object";
12235
12263
  properties: {
@@ -12721,6 +12749,10 @@ export declare const state: {
12721
12749
  };
12722
12750
  description: string;
12723
12751
  };
12752
+ sdkVersion: {
12753
+ type: "string";
12754
+ maxLength: number;
12755
+ };
12724
12756
  code: {
12725
12757
  type: "object";
12726
12758
  properties: {
@@ -42,6 +42,11 @@ export declare const state: {
42
42
  parsing: {
43
43
  type: "object";
44
44
  properties: {
45
+ mode: {
46
+ type: "string";
47
+ enum: string[];
48
+ description: string;
49
+ };
45
50
  minimumParagraphLength: {
46
51
  type: "integer";
47
52
  minimum: number;
@@ -10646,6 +10646,10 @@ export declare const state: {
10646
10646
  };
10647
10647
  description: string;
10648
10648
  };
10649
+ sdkVersion: {
10650
+ type: "string";
10651
+ maxLength: number;
10652
+ };
10649
10653
  secrets: {
10650
10654
  type: "object";
10651
10655
  additionalProperties: {
@@ -11214,6 +11218,10 @@ export declare const state: {
11214
11218
  };
11215
11219
  description: string;
11216
11220
  };
11221
+ sdkVersion: {
11222
+ type: "string";
11223
+ maxLength: number;
11224
+ };
11217
11225
  secrets: {
11218
11226
  type: "object";
11219
11227
  additionalProperties: {
@@ -11395,6 +11403,10 @@ export declare const state: {
11395
11403
  };
11396
11404
  description: string;
11397
11405
  };
11406
+ sdkVersion: {
11407
+ type: "string";
11408
+ maxLength: number;
11409
+ };
11398
11410
  channels: {
11399
11411
  type: "object";
11400
11412
  additionalProperties: {
@@ -11974,6 +11986,10 @@ export declare const state: {
11974
11986
  };
11975
11987
  description: string;
11976
11988
  };
11989
+ sdkVersion: {
11990
+ type: "string";
11991
+ maxLength: number;
11992
+ };
11977
11993
  channels: {
11978
11994
  type: "object";
11979
11995
  additionalProperties: {
@@ -13064,6 +13080,10 @@ export declare const state: {
13064
13080
  };
13065
13081
  description: string;
13066
13082
  };
13083
+ sdkVersion: {
13084
+ type: "string";
13085
+ maxLength: number;
13086
+ };
13067
13087
  icon: {
13068
13088
  type: "string";
13069
13089
  description: string;
@@ -13367,6 +13387,10 @@ export declare const state: {
13367
13387
  };
13368
13388
  description: string;
13369
13389
  };
13390
+ sdkVersion: {
13391
+ type: "string";
13392
+ maxLength: number;
13393
+ };
13370
13394
  icon: {
13371
13395
  type: "string";
13372
13396
  description: string;
@@ -13759,6 +13783,10 @@ export declare const state: {
13759
13783
  };
13760
13784
  description: string;
13761
13785
  };
13786
+ sdkVersion: {
13787
+ type: "string";
13788
+ maxLength: number;
13789
+ };
13762
13790
  code: {
13763
13791
  type: "object";
13764
13792
  properties: {
@@ -14202,6 +14230,10 @@ export declare const state: {
14202
14230
  };
14203
14231
  description: string;
14204
14232
  };
14233
+ sdkVersion: {
14234
+ type: "string";
14235
+ maxLength: number;
14236
+ };
14205
14237
  code: {
14206
14238
  type: "object";
14207
14239
  properties: {
@@ -14950,6 +14982,11 @@ export declare const state: {
14950
14982
  parsing: {
14951
14983
  type: "object";
14952
14984
  properties: {
14985
+ mode: {
14986
+ type: "string";
14987
+ enum: string[];
14988
+ description: string;
14989
+ };
14953
14990
  minimumParagraphLength: {
14954
14991
  type: "integer";
14955
14992
  minimum: number;
@@ -17020,6 +17057,13 @@ export declare const state: {
17020
17057
  type: "string";
17021
17058
  minLength: number;
17022
17059
  };
17060
+ factor: {
17061
+ default: number;
17062
+ type: "number";
17063
+ minimum: number;
17064
+ maximum: number;
17065
+ description: string;
17066
+ };
17023
17067
  frozen: {
17024
17068
  type: "boolean";
17025
17069
  description: string;
@@ -873,6 +873,13 @@ export declare const state: {
873
873
  type: "string";
874
874
  minLength: number;
875
875
  };
876
+ factor: {
877
+ default: number;
878
+ type: "number";
879
+ minimum: number;
880
+ maximum: number;
881
+ description: string;
882
+ };
876
883
  frozen: {
877
884
  type: "boolean";
878
885
  description: string;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.53.1",
3
+ "version": "1.54.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "devDependencies": {
7
7
  "@bpinternal/es-node": "0.0.3",
8
8
  "esbuild": "^0.16.10",
9
9
  "zod": "^3.24.4",
10
+ "typescript": "5.5.4",
10
11
  "@botpress/bridge": "1.8.0",
11
12
  "@botpress/cloud-manager": "0.2.0",
12
13
  "@botpress/common": "0.5.0",