@botpress/api 0.20.0 → 0.21.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
@@ -68666,9 +68666,9 @@ var require_lib4 = __commonJS({
68666
68666
  }
68667
68667
  });
68668
68668
 
68669
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/interopRequireDefault.js
68669
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/interopRequireDefault.js
68670
68670
  var require_interopRequireDefault = __commonJS({
68671
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module2) {
68671
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module2) {
68672
68672
  function _interopRequireDefault(obj) {
68673
68673
  return obj && obj.__esModule ? obj : {
68674
68674
  "default": obj
@@ -69365,9 +69365,9 @@ var require_api2 = __commonJS({
69365
69365
  }
69366
69366
  });
69367
69367
 
69368
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/typeof.js
69368
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/typeof.js
69369
69369
  var require_typeof = __commonJS({
69370
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/typeof.js"(exports, module2) {
69370
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/typeof.js"(exports, module2) {
69371
69371
  function _typeof(o) {
69372
69372
  "@babel/helpers - typeof";
69373
69373
  return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -69380,9 +69380,9 @@ var require_typeof = __commonJS({
69380
69380
  }
69381
69381
  });
69382
69382
 
69383
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toPrimitive.js
69383
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toPrimitive.js
69384
69384
  var require_toPrimitive = __commonJS({
69385
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module2) {
69385
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module2) {
69386
69386
  var _typeof = require_typeof()["default"];
69387
69387
  function toPrimitive(t, r) {
69388
69388
  if ("object" != _typeof(t) || !t)
@@ -69400,22 +69400,22 @@ var require_toPrimitive = __commonJS({
69400
69400
  }
69401
69401
  });
69402
69402
 
69403
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toPropertyKey.js
69403
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toPropertyKey.js
69404
69404
  var require_toPropertyKey = __commonJS({
69405
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module2) {
69405
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module2) {
69406
69406
  var _typeof = require_typeof()["default"];
69407
69407
  var toPrimitive = require_toPrimitive();
69408
69408
  function toPropertyKey(t) {
69409
69409
  var i = toPrimitive(t, "string");
69410
- return "symbol" == _typeof(i) ? i : String(i);
69410
+ return "symbol" == _typeof(i) ? i : i + "";
69411
69411
  }
69412
69412
  module2.exports = toPropertyKey, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
69413
69413
  }
69414
69414
  });
69415
69415
 
69416
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/defineProperty.js
69416
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/defineProperty.js
69417
69417
  var require_defineProperty = __commonJS({
69418
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module2) {
69418
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module2) {
69419
69419
  var toPropertyKey = require_toPropertyKey();
69420
69420
  function _defineProperty(obj, key, value) {
69421
69421
  key = toPropertyKey(key);
@@ -69435,9 +69435,9 @@ var require_defineProperty = __commonJS({
69435
69435
  }
69436
69436
  });
69437
69437
 
69438
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
69438
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
69439
69439
  var require_arrayLikeToArray = __commonJS({
69440
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports, module2) {
69440
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports, module2) {
69441
69441
  function _arrayLikeToArray(arr, len) {
69442
69442
  if (len == null || len > arr.length)
69443
69443
  len = arr.length;
@@ -69449,9 +69449,9 @@ var require_arrayLikeToArray = __commonJS({
69449
69449
  }
69450
69450
  });
69451
69451
 
69452
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
69452
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
69453
69453
  var require_arrayWithoutHoles = __commonJS({
69454
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports, module2) {
69454
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports, module2) {
69455
69455
  var arrayLikeToArray = require_arrayLikeToArray();
69456
69456
  function _arrayWithoutHoles(arr) {
69457
69457
  if (Array.isArray(arr))
@@ -69461,9 +69461,9 @@ var require_arrayWithoutHoles = __commonJS({
69461
69461
  }
69462
69462
  });
69463
69463
 
69464
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/iterableToArray.js
69464
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/iterableToArray.js
69465
69465
  var require_iterableToArray = __commonJS({
69466
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/iterableToArray.js"(exports, module2) {
69466
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/iterableToArray.js"(exports, module2) {
69467
69467
  function _iterableToArray(iter) {
69468
69468
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
69469
69469
  return Array.from(iter);
@@ -69472,9 +69472,9 @@ var require_iterableToArray = __commonJS({
69472
69472
  }
69473
69473
  });
69474
69474
 
69475
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
69475
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
69476
69476
  var require_unsupportedIterableToArray = __commonJS({
69477
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports, module2) {
69477
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports, module2) {
69478
69478
  var arrayLikeToArray = require_arrayLikeToArray();
69479
69479
  function _unsupportedIterableToArray(o, minLen) {
69480
69480
  if (!o)
@@ -69493,9 +69493,9 @@ var require_unsupportedIterableToArray = __commonJS({
69493
69493
  }
69494
69494
  });
69495
69495
 
69496
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/nonIterableSpread.js
69496
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/nonIterableSpread.js
69497
69497
  var require_nonIterableSpread = __commonJS({
69498
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports, module2) {
69498
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports, module2) {
69499
69499
  function _nonIterableSpread() {
69500
69500
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69501
69501
  }
@@ -69503,9 +69503,9 @@ var require_nonIterableSpread = __commonJS({
69503
69503
  }
69504
69504
  });
69505
69505
 
69506
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toConsumableArray.js
69506
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toConsumableArray.js
69507
69507
  var require_toConsumableArray = __commonJS({
69508
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports, module2) {
69508
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports, module2) {
69509
69509
  var arrayWithoutHoles = require_arrayWithoutHoles();
69510
69510
  var iterableToArray = require_iterableToArray();
69511
69511
  var unsupportedIterableToArray = require_unsupportedIterableToArray();
@@ -69517,9 +69517,9 @@ var require_toConsumableArray = __commonJS({
69517
69517
  }
69518
69518
  });
69519
69519
 
69520
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayWithHoles.js
69520
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayWithHoles.js
69521
69521
  var require_arrayWithHoles = __commonJS({
69522
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports, module2) {
69522
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports, module2) {
69523
69523
  function _arrayWithHoles(arr) {
69524
69524
  if (Array.isArray(arr))
69525
69525
  return arr;
@@ -69528,9 +69528,9 @@ var require_arrayWithHoles = __commonJS({
69528
69528
  }
69529
69529
  });
69530
69530
 
69531
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
69531
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
69532
69532
  var require_iterableToArrayLimit = __commonJS({
69533
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports, module2) {
69533
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports, module2) {
69534
69534
  function _iterableToArrayLimit(r, l) {
69535
69535
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69536
69536
  if (null != t) {
@@ -69561,9 +69561,9 @@ var require_iterableToArrayLimit = __commonJS({
69561
69561
  }
69562
69562
  });
69563
69563
 
69564
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/nonIterableRest.js
69564
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/nonIterableRest.js
69565
69565
  var require_nonIterableRest = __commonJS({
69566
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports, module2) {
69566
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports, module2) {
69567
69567
  function _nonIterableRest() {
69568
69568
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69569
69569
  }
@@ -69571,9 +69571,9 @@ var require_nonIterableRest = __commonJS({
69571
69571
  }
69572
69572
  });
69573
69573
 
69574
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/slicedToArray.js
69574
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/slicedToArray.js
69575
69575
  var require_slicedToArray = __commonJS({
69576
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/slicedToArray.js"(exports, module2) {
69576
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/slicedToArray.js"(exports, module2) {
69577
69577
  var arrayWithHoles = require_arrayWithHoles();
69578
69578
  var iterableToArrayLimit = require_iterableToArrayLimit();
69579
69579
  var unsupportedIterableToArray = require_unsupportedIterableToArray();
@@ -69646,9 +69646,9 @@ var require_utils2 = __commonJS({
69646
69646
  }
69647
69647
  });
69648
69648
 
69649
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
69649
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
69650
69650
  var require_taggedTemplateLiteral = __commonJS({
69651
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"(exports, module2) {
69651
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"(exports, module2) {
69652
69652
  function _taggedTemplateLiteral(strings, raw) {
69653
69653
  if (!raw) {
69654
69654
  raw = strings.slice(0);
@@ -69663,9 +69663,9 @@ var require_taggedTemplateLiteral = __commonJS({
69663
69663
  }
69664
69664
  });
69665
69665
 
69666
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/classCallCheck.js
69666
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/classCallCheck.js
69667
69667
  var require_classCallCheck = __commonJS({
69668
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/classCallCheck.js"(exports, module2) {
69668
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/classCallCheck.js"(exports, module2) {
69669
69669
  function _classCallCheck(instance, Constructor) {
69670
69670
  if (!(instance instanceof Constructor)) {
69671
69671
  throw new TypeError("Cannot call a class as a function");
@@ -69675,9 +69675,9 @@ var require_classCallCheck = __commonJS({
69675
69675
  }
69676
69676
  });
69677
69677
 
69678
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/createClass.js
69678
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/createClass.js
69679
69679
  var require_createClass = __commonJS({
69680
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/createClass.js"(exports, module2) {
69680
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/createClass.js"(exports, module2) {
69681
69681
  var toPropertyKey = require_toPropertyKey();
69682
69682
  function _defineProperties(target, props) {
69683
69683
  for (var i = 0; i < props.length; i++) {
@@ -69703,9 +69703,9 @@ var require_createClass = __commonJS({
69703
69703
  }
69704
69704
  });
69705
69705
 
69706
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/setPrototypeOf.js
69706
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/setPrototypeOf.js
69707
69707
  var require_setPrototypeOf = __commonJS({
69708
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports, module2) {
69708
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports, module2) {
69709
69709
  function _setPrototypeOf(o, p) {
69710
69710
  module2.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
69711
69711
  o2.__proto__ = p2;
@@ -69717,9 +69717,9 @@ var require_setPrototypeOf = __commonJS({
69717
69717
  }
69718
69718
  });
69719
69719
 
69720
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/inherits.js
69720
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/inherits.js
69721
69721
  var require_inherits2 = __commonJS({
69722
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/inherits.js"(exports, module2) {
69722
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/inherits.js"(exports, module2) {
69723
69723
  var setPrototypeOf = require_setPrototypeOf();
69724
69724
  function _inherits(subClass, superClass) {
69725
69725
  if (typeof superClass !== "function" && superClass !== null) {
@@ -69742,9 +69742,9 @@ var require_inherits2 = __commonJS({
69742
69742
  }
69743
69743
  });
69744
69744
 
69745
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/assertThisInitialized.js
69745
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/assertThisInitialized.js
69746
69746
  var require_assertThisInitialized = __commonJS({
69747
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports, module2) {
69747
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports, module2) {
69748
69748
  function _assertThisInitialized(self2) {
69749
69749
  if (self2 === void 0) {
69750
69750
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -69755,9 +69755,9 @@ var require_assertThisInitialized = __commonJS({
69755
69755
  }
69756
69756
  });
69757
69757
 
69758
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
69758
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
69759
69759
  var require_possibleConstructorReturn = __commonJS({
69760
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports, module2) {
69760
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports, module2) {
69761
69761
  var _typeof = require_typeof()["default"];
69762
69762
  var assertThisInitialized = require_assertThisInitialized();
69763
69763
  function _possibleConstructorReturn(self2, call) {
@@ -69772,9 +69772,9 @@ var require_possibleConstructorReturn = __commonJS({
69772
69772
  }
69773
69773
  });
69774
69774
 
69775
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/getPrototypeOf.js
69775
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/getPrototypeOf.js
69776
69776
  var require_getPrototypeOf = __commonJS({
69777
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports, module2) {
69777
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports, module2) {
69778
69778
  function _getPrototypeOf(o) {
69779
69779
  module2.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
69780
69780
  return o2.__proto__ || Object.getPrototypeOf(o2);
@@ -71682,9 +71682,9 @@ var require_pattern = __commonJS({
71682
71682
  }
71683
71683
  });
71684
71684
 
71685
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/superPropBase.js
71685
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/superPropBase.js
71686
71686
  var require_superPropBase = __commonJS({
71687
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/superPropBase.js"(exports, module2) {
71687
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/superPropBase.js"(exports, module2) {
71688
71688
  var getPrototypeOf2 = require_getPrototypeOf();
71689
71689
  function _superPropBase(object, property) {
71690
71690
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
@@ -71698,9 +71698,9 @@ var require_superPropBase = __commonJS({
71698
71698
  }
71699
71699
  });
71700
71700
 
71701
- // ../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/get.js
71701
+ // ../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/get.js
71702
71702
  var require_get = __commonJS({
71703
- "../../node_modules/.pnpm/@babel+runtime@7.23.9/node_modules/@babel/runtime/helpers/get.js"(exports, module2) {
71703
+ "../../node_modules/.pnpm/@babel+runtime@7.24.1/node_modules/@babel/runtime/helpers/get.js"(exports, module2) {
71704
71704
  var superPropBase = require_superPropBase();
71705
71705
  function _get() {
71706
71706
  if (typeof Reflect !== "undefined" && Reflect.get) {
@@ -259141,7 +259141,7 @@ __export(src_exports, {
259141
259141
  });
259142
259142
  module.exports = __toCommonJS(src_exports);
259143
259143
 
259144
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
259144
+ // ../../node_modules/.pnpm/@bpinternal+opapi@0.9.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
259145
259145
  var import_zod_openapi = __toESM(require_src(), 1);
259146
259146
  var import_zod_openapi2 = __toESM(require_src(), 1);
259147
259147
  var import_chalk = __toESM(require_source(), 1);
@@ -259185,7 +259185,7 @@ var title = (str2) => {
259185
259185
  return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => capitalize(s.toLowerCase())).join(" ");
259186
259186
  };
259187
259187
 
259188
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
259188
+ // ../../node_modules/.pnpm/@bpinternal+opapi@0.9.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
259189
259189
  var import_decompress = __toESM(require_decompress(), 1);
259190
259190
  var import_fs2 = __toESM(require("fs"), 1);
259191
259191
  var import_promises = __toESM(require("fs/promises"), 1);
@@ -266428,7 +266428,7 @@ async function openapiTS(schema3, options = {}) {
266428
266428
  }
266429
266429
  var dist_default = openapiTS;
266430
266430
 
266431
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
266431
+ // ../../node_modules/.pnpm/@bpinternal+opapi@0.9.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
266432
266432
  var import_zod_openapi3 = __toESM(require_src(), 1);
266433
266433
  var import_openapi3_ts = __toESM(require_dist3(), 1);
266434
266434
  var import_verror2 = __toESM(require_verror(), 1);
@@ -270070,7 +270070,7 @@ var z = /* @__PURE__ */ Object.freeze({
270070
270070
  ZodError
270071
270071
  });
270072
270072
 
270073
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
270073
+ // ../../node_modules/.pnpm/@bpinternal+opapi@0.9.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
270074
270074
  var import_openapi_parser = __toESM(require_lib10(), 1);
270075
270075
  var import_json_schema_to_typescript = __toESM(require_src3(), 1);
270076
270076
  var import_zod_openapi4 = __toESM(require_src(), 1);
@@ -270197,7 +270197,7 @@ var generateParameterFields = ({
270197
270197
  ].filter((v) => !!v).join("\n");
270198
270198
  var generateField = (name, type2, parameter, required) => ` '${name}': req.${type2}['${name}'] ${generateTypeAnnotation(parameter, required)},`;
270199
270199
  var generateTypeAnnotation = (parameter, required) => {
270200
- let typeAnnotation = "as";
270200
+ let typeAnnotation = "as unknown as";
270201
270201
  const parameterType = parameter.type;
270202
270202
  switch (parameterType) {
270203
270203
  case "string":
@@ -270220,6 +270220,12 @@ var generateTypeAnnotation = (parameter, required) => {
270220
270220
  case "boolean":
270221
270221
  typeAnnotation += " boolean";
270222
270222
  break;
270223
+ case "integer":
270224
+ typeAnnotation += " number";
270225
+ break;
270226
+ case "number":
270227
+ typeAnnotation += " number";
270228
+ break;
270223
270229
  default:
270224
270230
  throw new Error(`Unsupported parameter type: ${parameterType}`);
270225
270231
  }
@@ -270925,7 +270931,7 @@ var createOpenapi = (state2) => {
270925
270931
  }
270926
270932
  if (operationObject.parameters) {
270927
270933
  objects.entries(operationObject.parameters).forEach(([parameterName, parameter]) => {
270928
- var _a2, _b, _c, _d;
270934
+ var _a2, _b, _c, _d, _e, _f;
270929
270935
  const parameterType = parameter.type;
270930
270936
  switch (parameterType) {
270931
270937
  case "string":
@@ -270975,6 +270981,28 @@ var createOpenapi = (state2) => {
270975
270981
  }
270976
270982
  });
270977
270983
  break;
270984
+ case "integer":
270985
+ (_e = operation.parameters) == null ? void 0 : _e.push({
270986
+ name: parameterName,
270987
+ in: parameter.in,
270988
+ description: parameter.description,
270989
+ required: parameter.required,
270990
+ schema: {
270991
+ type: "integer"
270992
+ }
270993
+ });
270994
+ break;
270995
+ case "number":
270996
+ (_f = operation.parameters) == null ? void 0 : _f.push({
270997
+ name: parameterName,
270998
+ in: parameter.in,
270999
+ description: parameter.description,
271000
+ required: parameter.required,
271001
+ schema: {
271002
+ type: "number"
271003
+ }
271004
+ });
271005
+ break;
270978
271006
  default:
270979
271007
  throw new import_verror2.default(`Parameter type ${parameterType} is not supported`);
270980
271008
  }
@@ -278225,6 +278253,136 @@ var state = {
278225
278253
  }
278226
278254
  }
278227
278255
  },
278256
+ "listIntegrationApiKeys": {
278257
+ "name": "listIntegrationApiKeys",
278258
+ "description": "List IAKs (Integration Api Keys) of an integration",
278259
+ "method": "get",
278260
+ "section": "integration",
278261
+ "path": "/v1/admin/integrations/iaks",
278262
+ "parameters": {
278263
+ "integrationVersionId": {
278264
+ "in": "query",
278265
+ "description": "ID of the integration version",
278266
+ "type": "string",
278267
+ "required": true
278268
+ }
278269
+ },
278270
+ "response": {
278271
+ "description": "Success",
278272
+ "schema": {
278273
+ "type": "object",
278274
+ "properties": {
278275
+ "iaks": {
278276
+ "type": "array",
278277
+ "items": {
278278
+ "type": "object",
278279
+ "properties": {
278280
+ "id": {
278281
+ "type": "string"
278282
+ },
278283
+ "createdAt": {
278284
+ "type": "string",
278285
+ "format": "date-time"
278286
+ },
278287
+ "note": {
278288
+ "type": "string"
278289
+ }
278290
+ },
278291
+ "required": [
278292
+ "id",
278293
+ "createdAt",
278294
+ "note"
278295
+ ]
278296
+ }
278297
+ }
278298
+ },
278299
+ "required": [
278300
+ "iaks"
278301
+ ],
278302
+ "title": "listIntegrationApiKeysResponse",
278303
+ "additionalProperties": false
278304
+ }
278305
+ }
278306
+ },
278307
+ "createIntegrationApiKey": {
278308
+ "name": "createIntegrationApiKey",
278309
+ "description": "Create an IAK",
278310
+ "method": "post",
278311
+ "section": "integration",
278312
+ "path": "/v1/admin/integrations/iaks",
278313
+ "requestBody": {
278314
+ "description": "IAK metadata",
278315
+ "schema": {
278316
+ "type": "object",
278317
+ "properties": {
278318
+ "integrationVersionId": {
278319
+ "type": "string"
278320
+ },
278321
+ "note": {
278322
+ "type": "string"
278323
+ }
278324
+ },
278325
+ "required": [
278326
+ "integrationVersionId"
278327
+ ],
278328
+ "title": "createIntegrationApiKeyBody",
278329
+ "additionalProperties": false
278330
+ }
278331
+ },
278332
+ "response": {
278333
+ "description": "Success",
278334
+ "schema": {
278335
+ "type": "object",
278336
+ "properties": {
278337
+ "id": {
278338
+ "type": "string"
278339
+ },
278340
+ "createdAt": {
278341
+ "type": "string",
278342
+ "format": "date-time"
278343
+ },
278344
+ "note": {
278345
+ "type": "string"
278346
+ },
278347
+ "value": {
278348
+ "type": "string",
278349
+ "description": "The IAK value. This will only be returned here when created and cannot be retrieved later."
278350
+ }
278351
+ },
278352
+ "required": [
278353
+ "id",
278354
+ "createdAt",
278355
+ "note",
278356
+ "value"
278357
+ ],
278358
+ "title": "createIntegrationApiKeyResponse",
278359
+ "additionalProperties": false
278360
+ }
278361
+ },
278362
+ "parameters": {}
278363
+ },
278364
+ "deleteIntegrationApiKey": {
278365
+ "name": "deleteIntegrationApiKey",
278366
+ "description": "Delete an IAK",
278367
+ "method": "delete",
278368
+ "section": "integration",
278369
+ "path": "/v1/admin/integrations/iaks/{id}",
278370
+ "parameters": {
278371
+ "id": {
278372
+ "type": "string",
278373
+ "description": "ID of Integration Api Key",
278374
+ "in": "path"
278375
+ }
278376
+ },
278377
+ "response": {
278378
+ "description": "Success",
278379
+ "schema": {
278380
+ "type": "object",
278381
+ "title": "deleteIntegrationApiKeyResponse",
278382
+ "additionalProperties": false
278383
+ }
278384
+ }
278385
+ },
278228
278386
  "createIntegration": {
278229
278387
  "name": "createIntegration",
278230
278388
  "description": "Create integration",
@@ -279634,7 +279792,7 @@ var state = {
279634
279792
  "in": "header"
279635
279793
  },
279636
279794
  "x-index": {
279637
- "type": "string",
279795
+ "type": "boolean",
279638
279796
  "description": 'Set to a value of "true" to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota.',
279639
279797
  "in": "header"
279640
279798
  },
@@ -279660,20 +279818,26 @@ var state = {
279660
279818
  "type": "object",
279661
279819
  "properties": {
279662
279820
  "id": {
279663
- "type": "string"
279821
+ "type": "string",
279822
+ "description": "File ID"
279664
279823
  },
279665
279824
  "botId": {
279666
- "type": "string"
279825
+ "type": "string",
279826
+ "description": "The ID of the bot the file belongs to"
279667
279827
  },
279668
279828
  "name": {
279669
- "type": "string"
279829
+ "type": "string",
279830
+ "description": "File name",
279831
+ "nullable": true
279670
279832
  },
279671
279833
  "size": {
279672
279834
  "type": "number",
279835
+ "description": "File size in bytes",
279673
279836
  "nullable": true
279674
279837
  },
279675
279838
  "contentType": {
279676
- "type": "string"
279839
+ "type": "string",
279840
+ "description": "MIME type of the file's content"
279677
279841
  },
279678
279842
  "tags": {
279679
279843
  "type": "object",
@@ -279681,19 +279845,22 @@ var state = {
279681
279845
  "type": "string",
279682
279846
  "maxLength": 1e3
279683
279847
  },
279684
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
279848
+ "description": "The tags of the file as an object of key/value pairs"
279685
279849
  },
279686
279850
  "createdAt": {
279687
- "type": "string"
279851
+ "type": "string",
279852
+ "description": "File creation timestamp in ISO 8601 format"
279688
279853
  },
279689
279854
  "updatedAt": {
279690
- "type": "string"
279855
+ "type": "string",
279856
+ "description": "File last update timestamp in ISO 8601 format"
279691
279857
  },
279692
279858
  "accessPolicies": {
279693
279859
  "type": "array",
279694
279860
  "items": {
279695
279861
  "type": "string"
279696
- }
279862
+ },
279863
+ "description": "Access policies configured for the file."
279697
279864
  },
279698
279865
  "indexingStatus": {
279699
279866
  "type": "string",
@@ -279702,10 +279869,12 @@ var state = {
279702
279869
  "IN_PROGRESS",
279703
279870
  "COMPLETE",
279704
279871
  "FAILED"
279705
- ]
279872
+ ],
279873
+ "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
279706
279874
  },
279707
279875
  "indexingFailureReason": {
279708
- "type": "string"
279876
+ "type": "string",
279877
+ "description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
279709
279878
  }
279710
279879
  },
279711
279880
  "required": [
@@ -279792,20 +279961,26 @@ var state = {
279792
279961
  "type": "object",
279793
279962
  "properties": {
279794
279963
  "id": {
279795
- "type": "string"
279964
+ "type": "string",
279965
+ "description": "File ID"
279796
279966
  },
279797
279967
  "botId": {
279798
- "type": "string"
279968
+ "type": "string",
279969
+ "description": "The ID of the bot the file belongs to"
279799
279970
  },
279800
279971
  "name": {
279801
- "type": "string"
279972
+ "type": "string",
279973
+ "description": "File name",
279974
+ "nullable": true
279802
279975
  },
279803
279976
  "size": {
279804
279977
  "type": "number",
279978
+ "description": "File size in bytes",
279805
279979
  "nullable": true
279806
279980
  },
279807
279981
  "contentType": {
279808
- "type": "string"
279982
+ "type": "string",
279983
+ "description": "MIME type of the file's content"
279809
279984
  },
279810
279985
  "tags": {
279811
279986
  "type": "object",
@@ -279813,19 +279988,22 @@ var state = {
279813
279988
  "type": "string",
279814
279989
  "maxLength": 1e3
279815
279990
  },
279816
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
279991
+ "description": "The tags of the file as an object of key/value pairs"
279817
279992
  },
279818
279993
  "createdAt": {
279819
- "type": "string"
279994
+ "type": "string",
279995
+ "description": "File creation timestamp in ISO 8601 format"
279820
279996
  },
279821
279997
  "updatedAt": {
279822
- "type": "string"
279998
+ "type": "string",
279999
+ "description": "File last update timestamp in ISO 8601 format"
279823
280000
  },
279824
280001
  "accessPolicies": {
279825
280002
  "type": "array",
279826
280003
  "items": {
279827
280004
  "type": "string"
279828
- }
280005
+ },
280006
+ "description": "Access policies configured for the file."
279829
280007
  },
279830
280008
  "indexingStatus": {
279831
280009
  "type": "string",
@@ -279834,10 +280012,12 @@ var state = {
279834
280012
  "IN_PROGRESS",
279835
280013
  "COMPLETE",
279836
280014
  "FAILED"
279837
- ]
280015
+ ],
280016
+ "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
279838
280017
  },
279839
280018
  "indexingFailureReason": {
279840
- "type": "string"
280019
+ "type": "string",
280020
+ "description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
279841
280021
  }
279842
280022
  },
279843
280023
  "required": [
@@ -279895,20 +280075,26 @@ var state = {
279895
280075
  "type": "object",
279896
280076
  "properties": {
279897
280077
  "id": {
279898
- "type": "string"
280078
+ "type": "string",
280079
+ "description": "File ID"
279899
280080
  },
279900
280081
  "botId": {
279901
- "type": "string"
280082
+ "type": "string",
280083
+ "description": "The ID of the bot the file belongs to"
279902
280084
  },
279903
280085
  "name": {
279904
- "type": "string"
280086
+ "type": "string",
280087
+ "description": "File name",
280088
+ "nullable": true
279905
280089
  },
279906
280090
  "size": {
279907
280091
  "type": "number",
280092
+ "description": "File size in bytes",
279908
280093
  "nullable": true
279909
280094
  },
279910
280095
  "contentType": {
279911
- "type": "string"
280096
+ "type": "string",
280097
+ "description": "MIME type of the file's content"
279912
280098
  },
279913
280099
  "tags": {
279914
280100
  "type": "object",
@@ -279916,19 +280102,22 @@ var state = {
279916
280102
  "type": "string",
279917
280103
  "maxLength": 1e3
279918
280104
  },
279919
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
280105
+ "description": "The tags of the file as an object of key/value pairs"
279920
280106
  },
279921
280107
  "createdAt": {
279922
- "type": "string"
280108
+ "type": "string",
280109
+ "description": "File creation timestamp in ISO 8601 format"
279923
280110
  },
279924
280111
  "updatedAt": {
279925
- "type": "string"
280112
+ "type": "string",
280113
+ "description": "File last update timestamp in ISO 8601 format"
279926
280114
  },
279927
280115
  "accessPolicies": {
279928
280116
  "type": "array",
279929
280117
  "items": {
279930
280118
  "type": "string"
279931
- }
280119
+ },
280120
+ "description": "Access policies configured for the file."
279932
280121
  },
279933
280122
  "indexingStatus": {
279934
280123
  "type": "string",
@@ -279937,10 +280126,12 @@ var state = {
279937
280126
  "IN_PROGRESS",
279938
280127
  "COMPLETE",
279939
280128
  "FAILED"
279940
- ]
280129
+ ],
280130
+ "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
279941
280131
  },
279942
280132
  "indexingFailureReason": {
279943
- "type": "string"
280133
+ "type": "string",
280134
+ "description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
279944
280135
  }
279945
280136
  },
279946
280137
  "required": [
@@ -280020,7 +280211,7 @@ var state = {
280020
280211
  "type": "string",
280021
280212
  "maxLength": 1e3
280022
280213
  },
280023
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
280214
+ "description": "The tags to update as an object of key/value pairs. A tag key can be set to a null value to delete it."
280024
280215
  }
280025
280216
  },
280026
280217
  "required": [
@@ -280041,7 +280232,7 @@ var state = {
280041
280232
  "type": "string",
280042
280233
  "maxLength": 1e3
280043
280234
  },
280044
- "description": "The tags to update as an object of key/value pairs. A tag key can be set to a null value to delete it."
280235
+ "description": "The updated tags of the file."
280045
280236
  }
280046
280237
  },
280047
280238
  "required": [
@@ -280078,22 +280269,22 @@ var state = {
280078
280269
  "query": {
280079
280270
  "in": "query",
280080
280271
  "type": "string",
280081
- "description": "Query expressed in natural language to retrieve matching text passages within all files using semantical search.",
280272
+ "description": "Query expressed in natural language to retrieve matching text passages within all indexed files in the bot using semantical search.",
280082
280273
  "required": true
280083
280274
  },
280084
280275
  "contextDepth": {
280085
280276
  "in": "query",
280086
- "type": "string",
280277
+ "type": "integer",
280087
280278
  "description": "The number of neighbor passages to prepend and append as surrounding context to the content of each returned passage. Default: 0, Maximum: 10"
280088
280279
  },
280089
280280
  "limit": {
280090
280281
  "in": "query",
280091
- "type": "string",
280282
+ "type": "integer",
280092
280283
  "description": "The maximum number of passages to return."
280093
280284
  }
280094
280285
  },
280095
280286
  "response": {
280096
- "description": "Returns the passages matching the query.",
280287
+ "description": "Returns the text passages within all indexed files that matched the query.",
280097
280288
  "schema": {
280098
280289
  "type": "object",
280099
280290
  "properties": {
@@ -280102,29 +280293,56 @@ var state = {
280102
280293
  "items": {
280103
280294
  "type": "object",
280104
280295
  "properties": {
280105
- "fileId": {
280106
- "type": "string"
280296
+ "content": {
280297
+ "type": "string",
280298
+ "description": "The content of the matching passage in the file including surrounding context, if any."
280107
280299
  },
280108
280300
  "score": {
280109
- "type": "number"
280110
- },
280111
- "content": {
280112
- "type": "string"
280301
+ "type": "number",
280302
+ "description": "The score indicating the similarity of the passage to the query. A higher score indicates higher similarity."
280113
280303
  },
280114
- "tags": {
280304
+ "file": {
280115
280305
  "type": "object",
280116
- "additionalProperties": {
280117
- "type": "string",
280118
- "maxLength": 1e3
280306
+ "properties": {
280307
+ "id": {
280308
+ "type": "string",
280309
+ "description": "File ID"
280310
+ },
280311
+ "name": {
280312
+ "type": "string",
280313
+ "description": "File name",
280314
+ "nullable": true
280315
+ },
280316
+ "tags": {
280317
+ "type": "object",
280318
+ "additionalProperties": {
280319
+ "type": "string",
280320
+ "maxLength": 1e3
280321
+ },
280322
+ "description": "The tags of the file as an object of key/value pairs."
280323
+ },
280324
+ "createdAt": {
280325
+ "type": "string",
280326
+ "description": "File creation timestamp in ISO 8601 format"
280327
+ },
280328
+ "updatedAt": {
280329
+ "type": "string",
280330
+ "description": "File last update timestamp in ISO 8601 format"
280331
+ }
280119
280332
  },
280120
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
280333
+ "required": [
280334
+ "id",
280335
+ "name",
280336
+ "tags",
280337
+ "createdAt",
280338
+ "updatedAt"
280339
+ ]
280121
280340
  }
280122
280341
  },
280123
280342
  "required": [
280124
- "fileId",
280125
- "score",
280126
280343
  "content",
280127
- "tags"
280344
+ "score",
280345
+ "file"
280128
280346
  ]
280129
280347
  }
280130
280348
  }
@@ -280216,6 +280434,83 @@ var state = {
280216
280434
  }
280217
280435
  }
280218
280436
  },
280437
+ "getOrCreateTable": {
280438
+ "name": "getOrCreateTable",
280439
+ "path": "/v1/tables/{table}",
280440
+ "description": "Retrieves information about a specific table if it exists; otherwise, creates a new table based on the provided schema.",
280441
+ "parameters": {
280442
+ "table": {
280443
+ "type": "string",
280444
+ "description": "The table's name or unique identifier for targeting specific table operations.",
280445
+ "in": "path"
280446
+ }
280447
+ },
280448
+ "method": "post",
280449
+ "requestBody": {
280450
+ "description": "Schema defining the structure of the table",
280451
+ "schema": {
280452
+ "type": "object",
280453
+ "properties": {
280454
+ "factor": {
280455
+ "default": 1,
280456
+ "type": "number",
280457
+ "minimum": 1,
280458
+ "maximum": 30,
280459
+ "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."
280460
+ },
280461
+ "schema": {
280462
+ "type": "object",
280463
+ "additionalProperties": true,
280464
+ "description": "Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed."
280465
+ },
280466
+ "tags": {
280467
+ "type": "object",
280468
+ "additionalProperties": {
280469
+ "type": "string"
280470
+ },
280471
+ "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
280472
+ }
280473
+ },
280474
+ "required": [
280475
+ "schema"
280476
+ ],
280477
+ "title": "getOrCreateTableBody",
280478
+ "additionalProperties": false
280479
+ }
280480
+ },
280481
+ "section": "tables",
280482
+ "response": {
280483
+ "description": "The retrieved or created table object.",
280484
+ "schema": {
280485
+ "type": "object",
280486
+ "properties": {
280487
+ "table": {
280488
+ "$ref": "#/components/schemas/Table"
280489
+ },
280490
+ "created": {
280491
+ "type": "boolean",
280492
+ "description": "Flag indicating if the table was newly created."
280493
+ },
280494
+ "rows": {
280495
+ "type": "number",
280496
+ "description": "The total number of rows present in the table."
280497
+ },
280498
+ "indexingCount": {
280499
+ "type": "number",
280500
+ "description": "The number of rows pending indexing, relevant for search functionalities."
280501
+ }
280502
+ },
280503
+ "required": [
280504
+ "table",
280505
+ "created",
280506
+ "rows",
280507
+ "indexingCount"
280508
+ ],
280509
+ "title": "getOrCreateTableResponse",
280510
+ "additionalProperties": false
280511
+ }
280512
+ }
280513
+ },
280219
280514
  "createTable": {
280220
280515
  "name": "createTable",
280221
280516
  "path": "/v1/tables",
@@ -280278,6 +280573,62 @@ var state = {
280278
280573
  },
280279
280574
  "parameters": {}
280280
280575
  },
280576
+ "duplicateTable": {
280577
+ "name": "duplicateTable",
280578
+ "path": "/v1/tables/{sourceTableId}/duplicate",
280579
+ "description": "Duplicates the table schema & content",
280580
+ "parameters": {
280581
+ "sourceTableId": {
280582
+ "type": "string",
280583
+ "description": "The table's unique identifier",
280584
+ "in": "path"
280585
+ }
280586
+ },
280587
+ "method": "post",
280588
+ "requestBody": {
280589
+ "description": "Parameters for the duplication operation.",
280590
+ "schema": {
280591
+ "type": "object",
280592
+ "properties": {
280593
+ "tableName": {
280594
+ "type": "string"
280595
+ },
280596
+ "schemaOnly": {
280597
+ "type": "boolean",
280598
+ "description": "Only duplicate the schema, not the content"
280599
+ },
280600
+ "factor": {
280601
+ "type": "number",
280602
+ "description": "Use a different factor for the table. Leave empty to use the same as the duplicated table."
280603
+ }
280604
+ },
280605
+ "title": "duplicateTableBody",
280606
+ "additionalProperties": false
280607
+ }
280608
+ },
280609
+ "section": "tables",
280610
+ "response": {
280611
+ "description": "The created table object.",
280612
+ "schema": {
280613
+ "type": "object",
280614
+ "properties": {
280615
+ "table": {
280616
+ "$ref": "#/components/schemas/Table"
280617
+ },
280618
+ "rows": {
280619
+ "type": "number",
280620
+ "description": "The total number of rows present in the table."
280621
+ }
280622
+ },
280623
+ "required": [
280624
+ "table",
280625
+ "rows"
280626
+ ],
280627
+ "title": "duplicateTableResponse",
280628
+ "additionalProperties": false
280629
+ }
280630
+ }
280631
+ },
280281
280632
  "updateTable": {
280282
280633
  "name": "updateTable",
280283
280634
  "path": "/v1/tables/{table}",
@@ -280845,7 +281196,7 @@ var state = {
280845
281196
  "title": "Botpress API",
280846
281197
  "description": "API for Botpress Cloud",
280847
281198
  "server": "https://api.botpress.cloud",
280848
- "version": "0.20.0",
281199
+ "version": "0.21.0",
280849
281200
  "prefix": "v1"
280850
281201
  },
280851
281202
  "errors": [
@@ -281001,13 +281352,16 @@ var state = {
281001
281352
  "changeWorkspacePlanBody": true,
281002
281353
  "createWorkspaceMemberBody": true,
281003
281354
  "updateWorkspaceMemberBody": true,
281355
+ "createIntegrationApiKeyBody": true,
281004
281356
  "createIntegrationBody": true,
281005
281357
  "updateIntegrationBody": true,
281006
281358
  "changeAISpendQuotaBody": true,
281007
281359
  "introspectBody": true,
281008
281360
  "createFileBody": true,
281009
281361
  "updateFileMetadataBody": true,
281362
+ "getOrCreateTableBody": true,
281010
281363
  "createTableBody": true,
281364
+ "duplicateTableBody": true,
281011
281365
  "updateTableBody": true,
281012
281366
  "renameTableColumnBody": true,
281013
281367
  "findTableRowsBody": true,
@@ -281099,6 +281453,9 @@ var state = {
281099
281453
  "deleteWorkspaceMemberResponse": true,
281100
281454
  "createWorkspaceMemberResponse": true,
281101
281455
  "updateWorkspaceMemberResponse": true,
281456
+ "listIntegrationApiKeysResponse": true,
281457
+ "createIntegrationApiKeyResponse": true,
281458
+ "deleteIntegrationApiKeyResponse": true,
281102
281459
  "createIntegrationResponse": true,
281103
281460
  "updateIntegrationResponse": true,
281104
281461
  "listIntegrationsResponse": true,
@@ -281120,7 +281477,9 @@ var state = {
281120
281477
  "searchFilesResponse": true,
281121
281478
  "listTablesResponse": true,
281122
281479
  "getTableResponse": true,
281480
+ "getOrCreateTableResponse": true,
281123
281481
  "createTableResponse": true,
281482
+ "duplicateTableResponse": true,
281124
281483
  "updateTableResponse": true,
281125
281484
  "renameTableColumnResponse": true,
281126
281485
  "deleteTableResponse": true,
@@ -283148,20 +283507,26 @@ var state = {
283148
283507
  "type": "object",
283149
283508
  "properties": {
283150
283509
  "id": {
283151
- "type": "string"
283510
+ "type": "string",
283511
+ "description": "File ID"
283152
283512
  },
283153
283513
  "botId": {
283154
- "type": "string"
283514
+ "type": "string",
283515
+ "description": "The ID of the bot the file belongs to"
283155
283516
  },
283156
283517
  "name": {
283157
- "type": "string"
283518
+ "type": "string",
283519
+ "description": "File name",
283520
+ "nullable": true
283158
283521
  },
283159
283522
  "size": {
283160
283523
  "type": "number",
283524
+ "description": "File size in bytes",
283161
283525
  "nullable": true
283162
283526
  },
283163
283527
  "contentType": {
283164
- "type": "string"
283528
+ "type": "string",
283529
+ "description": "MIME type of the file's content"
283165
283530
  },
283166
283531
  "tags": {
283167
283532
  "type": "object",
@@ -283169,19 +283534,22 @@ var state = {
283169
283534
  "type": "string",
283170
283535
  "maxLength": 1e3
283171
283536
  },
283172
- "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
283537
+ "description": "The tags of the file as an object of key/value pairs"
283173
283538
  },
283174
283539
  "createdAt": {
283175
- "type": "string"
283540
+ "type": "string",
283541
+ "description": "File creation timestamp in ISO 8601 format"
283176
283542
  },
283177
283543
  "updatedAt": {
283178
- "type": "string"
283544
+ "type": "string",
283545
+ "description": "File last update timestamp in ISO 8601 format"
283179
283546
  },
283180
283547
  "accessPolicies": {
283181
283548
  "type": "array",
283182
283549
  "items": {
283183
283550
  "type": "string"
283184
- }
283551
+ },
283552
+ "description": "Access policies configured for the file."
283185
283553
  },
283186
283554
  "indexingStatus": {
283187
283555
  "type": "string",
@@ -283190,10 +283558,12 @@ var state = {
283190
283558
  "IN_PROGRESS",
283191
283559
  "COMPLETE",
283192
283560
  "FAILED"
283193
- ]
283561
+ ],
283562
+ "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
283194
283563
  },
283195
283564
  "indexingFailureReason": {
283196
- "type": "string"
283565
+ "type": "string",
283566
+ "description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
283197
283567
  }
283198
283568
  },
283199
283569
  "required": [
@@ -283343,6 +283713,9 @@ var state = {
283343
283713
  "description": "",
283344
283714
  "name": "integration",
283345
283715
  "operations": [
283716
+ "listIntegrationApiKeys",
283717
+ "createIntegrationApiKey",
283718
+ "deleteIntegrationApiKey",
283346
283719
  "createIntegration",
283347
283720
  "updateIntegration",
283348
283721
  "listIntegrations",
@@ -283448,7 +283821,9 @@ var state = {
283448
283821
  "operations": [
283449
283822
  "listTables",
283450
283823
  "getTable",
283824
+ "getOrCreateTable",
283451
283825
  "createTable",
283826
+ "duplicateTable",
283452
283827
  "updateTable",
283453
283828
  "renameTableColumn",
283454
283829
  "deleteTable",