@botpress/api 0.62.0 → 0.63.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
@@ -164274,7 +164274,7 @@ var require_prettier = __commonJS({
164274
164274
  module22.exports.default = module22.exports;
164275
164275
  }
164276
164276
  });
164277
- var require_common4 = __commonJS22({
164277
+ var require_common5 = __commonJS22({
164278
164278
  "node_modules/vnopts/lib/handlers/deprecated/common.js"(exports2) {
164279
164279
  "use strict";
164280
164280
  Object.defineProperty(exports2, "__esModule", {
@@ -164299,7 +164299,7 @@ var require_prettier = __commonJS({
164299
164299
  value: true
164300
164300
  });
164301
164301
  var tslib_1 = (init_tslib_es6(), __toCommonJS2(tslib_es6_exports));
164302
- tslib_1.__exportStar(require_common4(), exports2);
164302
+ tslib_1.__exportStar(require_common5(), exports2);
164303
164303
  }
164304
164304
  });
164305
164305
  var require_common22 = __commonJS22({
@@ -164889,7 +164889,7 @@ var require_prettier = __commonJS({
164889
164889
  value: true
164890
164890
  });
164891
164891
  var api_1 = require_api3();
164892
- var common_1 = require_common4();
164892
+ var common_1 = require_common5();
164893
164893
  var invalid_1 = require_invalid();
164894
164894
  var leven_1 = require_leven22();
164895
164895
  exports2.defaultDescriptor = api_1.apiDescriptor;
@@ -173702,7 +173702,7 @@ ${error2.message}`;
173702
173702
  module22.exports = Function.prototype.bind || implementation;
173703
173703
  }
173704
173704
  });
173705
- var require_src5 = __commonJS22({
173705
+ var require_src6 = __commonJS22({
173706
173706
  "node_modules/has/src/index.js"(exports2, module22) {
173707
173707
  "use strict";
173708
173708
  var bind2 = require_function_bind2();
@@ -173871,7 +173871,7 @@ ${error2.message}`;
173871
173871
  var require_is_core_module = __commonJS22({
173872
173872
  "node_modules/is-core-module/index.js"(exports2, module22) {
173873
173873
  "use strict";
173874
- var has = require_src5();
173874
+ var has = require_src6();
173875
173875
  function specifierIncluded(current, specifier) {
173876
173876
  var nodeParts = current.split(".");
173877
173877
  var parts = specifier.split(" ");
@@ -261169,6 +261169,534 @@ var require_src4 = __commonJS({
261169
261169
  }
261170
261170
  });
261171
261171
 
261172
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
261173
+ var require_common4 = __commonJS({
261174
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
261175
+ function setup(env2) {
261176
+ createDebug.debug = createDebug;
261177
+ createDebug.default = createDebug;
261178
+ createDebug.coerce = coerce2;
261179
+ createDebug.disable = disable;
261180
+ createDebug.enable = enable;
261181
+ createDebug.enabled = enabled;
261182
+ createDebug.humanize = require_ms();
261183
+ createDebug.destroy = destroy;
261184
+ Object.keys(env2).forEach((key) => {
261185
+ createDebug[key] = env2[key];
261186
+ });
261187
+ createDebug.names = [];
261188
+ createDebug.skips = [];
261189
+ createDebug.formatters = {};
261190
+ function selectColor(namespace) {
261191
+ let hash = 0;
261192
+ for (let i = 0; i < namespace.length; i++) {
261193
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
261194
+ hash |= 0;
261195
+ }
261196
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
261197
+ }
261198
+ createDebug.selectColor = selectColor;
261199
+ function createDebug(namespace) {
261200
+ let prevTime;
261201
+ let enableOverride = null;
261202
+ let namespacesCache;
261203
+ let enabledCache;
261204
+ function debug(...args) {
261205
+ if (!debug.enabled) {
261206
+ return;
261207
+ }
261208
+ const self2 = debug;
261209
+ const curr = Number(new Date());
261210
+ const ms = curr - (prevTime || curr);
261211
+ self2.diff = ms;
261212
+ self2.prev = prevTime;
261213
+ self2.curr = curr;
261214
+ prevTime = curr;
261215
+ args[0] = createDebug.coerce(args[0]);
261216
+ if (typeof args[0] !== "string") {
261217
+ args.unshift("%O");
261218
+ }
261219
+ let index = 0;
261220
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
261221
+ if (match === "%%") {
261222
+ return "%";
261223
+ }
261224
+ index++;
261225
+ const formatter = createDebug.formatters[format];
261226
+ if (typeof formatter === "function") {
261227
+ const val = args[index];
261228
+ match = formatter.call(self2, val);
261229
+ args.splice(index, 1);
261230
+ index--;
261231
+ }
261232
+ return match;
261233
+ });
261234
+ createDebug.formatArgs.call(self2, args);
261235
+ const logFn = self2.log || createDebug.log;
261236
+ logFn.apply(self2, args);
261237
+ }
261238
+ debug.namespace = namespace;
261239
+ debug.useColors = createDebug.useColors();
261240
+ debug.color = createDebug.selectColor(namespace);
261241
+ debug.extend = extend4;
261242
+ debug.destroy = createDebug.destroy;
261243
+ Object.defineProperty(debug, "enabled", {
261244
+ enumerable: true,
261245
+ configurable: false,
261246
+ get: () => {
261247
+ if (enableOverride !== null) {
261248
+ return enableOverride;
261249
+ }
261250
+ if (namespacesCache !== createDebug.namespaces) {
261251
+ namespacesCache = createDebug.namespaces;
261252
+ enabledCache = createDebug.enabled(namespace);
261253
+ }
261254
+ return enabledCache;
261255
+ },
261256
+ set: (v) => {
261257
+ enableOverride = v;
261258
+ }
261259
+ });
261260
+ if (typeof createDebug.init === "function") {
261261
+ createDebug.init(debug);
261262
+ }
261263
+ return debug;
261264
+ }
261265
+ function extend4(namespace, delimiter) {
261266
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
261267
+ newDebug.log = this.log;
261268
+ return newDebug;
261269
+ }
261270
+ function enable(namespaces) {
261271
+ createDebug.save(namespaces);
261272
+ createDebug.namespaces = namespaces;
261273
+ createDebug.names = [];
261274
+ createDebug.skips = [];
261275
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
261276
+ for (const ns of split) {
261277
+ if (ns[0] === "-") {
261278
+ createDebug.skips.push(ns.slice(1));
261279
+ } else {
261280
+ createDebug.names.push(ns);
261281
+ }
261282
+ }
261283
+ }
261284
+ function matchesTemplate(search, template2) {
261285
+ let searchIndex = 0;
261286
+ let templateIndex = 0;
261287
+ let starIndex = -1;
261288
+ let matchIndex = 0;
261289
+ while (searchIndex < search.length) {
261290
+ if (templateIndex < template2.length && (template2[templateIndex] === search[searchIndex] || template2[templateIndex] === "*")) {
261291
+ if (template2[templateIndex] === "*") {
261292
+ starIndex = templateIndex;
261293
+ matchIndex = searchIndex;
261294
+ templateIndex++;
261295
+ } else {
261296
+ searchIndex++;
261297
+ templateIndex++;
261298
+ }
261299
+ } else if (starIndex !== -1) {
261300
+ templateIndex = starIndex + 1;
261301
+ matchIndex++;
261302
+ searchIndex = matchIndex;
261303
+ } else {
261304
+ return false;
261305
+ }
261306
+ }
261307
+ while (templateIndex < template2.length && template2[templateIndex] === "*") {
261308
+ templateIndex++;
261309
+ }
261310
+ return templateIndex === template2.length;
261311
+ }
261312
+ function disable() {
261313
+ const namespaces = [
261314
+ ...createDebug.names,
261315
+ ...createDebug.skips.map((namespace) => "-" + namespace)
261316
+ ].join(",");
261317
+ createDebug.enable("");
261318
+ return namespaces;
261319
+ }
261320
+ function enabled(name) {
261321
+ for (const skip of createDebug.skips) {
261322
+ if (matchesTemplate(name, skip)) {
261323
+ return false;
261324
+ }
261325
+ }
261326
+ for (const ns of createDebug.names) {
261327
+ if (matchesTemplate(name, ns)) {
261328
+ return true;
261329
+ }
261330
+ }
261331
+ return false;
261332
+ }
261333
+ function coerce2(val) {
261334
+ if (val instanceof Error) {
261335
+ return val.stack || val.message;
261336
+ }
261337
+ return val;
261338
+ }
261339
+ function destroy() {
261340
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
261341
+ }
261342
+ createDebug.enable(createDebug.load());
261343
+ return createDebug;
261344
+ }
261345
+ module2.exports = setup;
261346
+ }
261347
+ });
261348
+
261349
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
261350
+ var require_browser2 = __commonJS({
261351
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
261352
+ exports.formatArgs = formatArgs;
261353
+ exports.save = save;
261354
+ exports.load = load3;
261355
+ exports.useColors = useColors;
261356
+ exports.storage = localstorage();
261357
+ exports.destroy = (() => {
261358
+ let warned = false;
261359
+ return () => {
261360
+ if (!warned) {
261361
+ warned = true;
261362
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
261363
+ }
261364
+ };
261365
+ })();
261366
+ exports.colors = [
261367
+ "#0000CC",
261368
+ "#0000FF",
261369
+ "#0033CC",
261370
+ "#0033FF",
261371
+ "#0066CC",
261372
+ "#0066FF",
261373
+ "#0099CC",
261374
+ "#0099FF",
261375
+ "#00CC00",
261376
+ "#00CC33",
261377
+ "#00CC66",
261378
+ "#00CC99",
261379
+ "#00CCCC",
261380
+ "#00CCFF",
261381
+ "#3300CC",
261382
+ "#3300FF",
261383
+ "#3333CC",
261384
+ "#3333FF",
261385
+ "#3366CC",
261386
+ "#3366FF",
261387
+ "#3399CC",
261388
+ "#3399FF",
261389
+ "#33CC00",
261390
+ "#33CC33",
261391
+ "#33CC66",
261392
+ "#33CC99",
261393
+ "#33CCCC",
261394
+ "#33CCFF",
261395
+ "#6600CC",
261396
+ "#6600FF",
261397
+ "#6633CC",
261398
+ "#6633FF",
261399
+ "#66CC00",
261400
+ "#66CC33",
261401
+ "#9900CC",
261402
+ "#9900FF",
261403
+ "#9933CC",
261404
+ "#9933FF",
261405
+ "#99CC00",
261406
+ "#99CC33",
261407
+ "#CC0000",
261408
+ "#CC0033",
261409
+ "#CC0066",
261410
+ "#CC0099",
261411
+ "#CC00CC",
261412
+ "#CC00FF",
261413
+ "#CC3300",
261414
+ "#CC3333",
261415
+ "#CC3366",
261416
+ "#CC3399",
261417
+ "#CC33CC",
261418
+ "#CC33FF",
261419
+ "#CC6600",
261420
+ "#CC6633",
261421
+ "#CC9900",
261422
+ "#CC9933",
261423
+ "#CCCC00",
261424
+ "#CCCC33",
261425
+ "#FF0000",
261426
+ "#FF0033",
261427
+ "#FF0066",
261428
+ "#FF0099",
261429
+ "#FF00CC",
261430
+ "#FF00FF",
261431
+ "#FF3300",
261432
+ "#FF3333",
261433
+ "#FF3366",
261434
+ "#FF3399",
261435
+ "#FF33CC",
261436
+ "#FF33FF",
261437
+ "#FF6600",
261438
+ "#FF6633",
261439
+ "#FF9900",
261440
+ "#FF9933",
261441
+ "#FFCC00",
261442
+ "#FFCC33"
261443
+ ];
261444
+ function useColors() {
261445
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
261446
+ return true;
261447
+ }
261448
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
261449
+ return false;
261450
+ }
261451
+ let m;
261452
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
261453
+ }
261454
+ function formatArgs(args) {
261455
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
261456
+ if (!this.useColors) {
261457
+ return;
261458
+ }
261459
+ const c2 = "color: " + this.color;
261460
+ args.splice(1, 0, c2, "color: inherit");
261461
+ let index = 0;
261462
+ let lastC = 0;
261463
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
261464
+ if (match === "%%") {
261465
+ return;
261466
+ }
261467
+ index++;
261468
+ if (match === "%c") {
261469
+ lastC = index;
261470
+ }
261471
+ });
261472
+ args.splice(lastC, 0, c2);
261473
+ }
261474
+ exports.log = console.debug || console.log || (() => {
261475
+ });
261476
+ function save(namespaces) {
261477
+ try {
261478
+ if (namespaces) {
261479
+ exports.storage.setItem("debug", namespaces);
261480
+ } else {
261481
+ exports.storage.removeItem("debug");
261482
+ }
261483
+ } catch (error2) {
261484
+ }
261485
+ }
261486
+ function load3() {
261487
+ let r;
261488
+ try {
261489
+ r = exports.storage.getItem("debug");
261490
+ } catch (error2) {
261491
+ }
261492
+ if (!r && typeof process !== "undefined" && "env" in process) {
261493
+ r = process.env.DEBUG;
261494
+ }
261495
+ return r;
261496
+ }
261497
+ function localstorage() {
261498
+ try {
261499
+ return localStorage;
261500
+ } catch (error2) {
261501
+ }
261502
+ }
261503
+ module2.exports = require_common4()(exports);
261504
+ var { formatters } = module2.exports;
261505
+ formatters.j = function(v) {
261506
+ try {
261507
+ return JSON.stringify(v);
261508
+ } catch (error2) {
261509
+ return "[UnexpectedJSONParseError]: " + error2.message;
261510
+ }
261511
+ };
261512
+ }
261513
+ });
261514
+
261515
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
261516
+ var require_node4 = __commonJS({
261517
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
261518
+ var tty2 = require("tty");
261519
+ var util4 = require("util");
261520
+ exports.init = init;
261521
+ exports.log = log;
261522
+ exports.formatArgs = formatArgs;
261523
+ exports.save = save;
261524
+ exports.load = load3;
261525
+ exports.useColors = useColors;
261526
+ exports.destroy = util4.deprecate(
261527
+ () => {
261528
+ },
261529
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
261530
+ );
261531
+ exports.colors = [6, 2, 3, 4, 5, 1];
261532
+ try {
261533
+ const supportsColor2 = require_supports_color();
261534
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
261535
+ exports.colors = [
261536
+ 20,
261537
+ 21,
261538
+ 26,
261539
+ 27,
261540
+ 32,
261541
+ 33,
261542
+ 38,
261543
+ 39,
261544
+ 40,
261545
+ 41,
261546
+ 42,
261547
+ 43,
261548
+ 44,
261549
+ 45,
261550
+ 56,
261551
+ 57,
261552
+ 62,
261553
+ 63,
261554
+ 68,
261555
+ 69,
261556
+ 74,
261557
+ 75,
261558
+ 76,
261559
+ 77,
261560
+ 78,
261561
+ 79,
261562
+ 80,
261563
+ 81,
261564
+ 92,
261565
+ 93,
261566
+ 98,
261567
+ 99,
261568
+ 112,
261569
+ 113,
261570
+ 128,
261571
+ 129,
261572
+ 134,
261573
+ 135,
261574
+ 148,
261575
+ 149,
261576
+ 160,
261577
+ 161,
261578
+ 162,
261579
+ 163,
261580
+ 164,
261581
+ 165,
261582
+ 166,
261583
+ 167,
261584
+ 168,
261585
+ 169,
261586
+ 170,
261587
+ 171,
261588
+ 172,
261589
+ 173,
261590
+ 178,
261591
+ 179,
261592
+ 184,
261593
+ 185,
261594
+ 196,
261595
+ 197,
261596
+ 198,
261597
+ 199,
261598
+ 200,
261599
+ 201,
261600
+ 202,
261601
+ 203,
261602
+ 204,
261603
+ 205,
261604
+ 206,
261605
+ 207,
261606
+ 208,
261607
+ 209,
261608
+ 214,
261609
+ 215,
261610
+ 220,
261611
+ 221
261612
+ ];
261613
+ }
261614
+ } catch (error2) {
261615
+ }
261616
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
261617
+ return /^debug_/i.test(key);
261618
+ }).reduce((obj, key) => {
261619
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_8, k) => {
261620
+ return k.toUpperCase();
261621
+ });
261622
+ let val = process.env[key];
261623
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
261624
+ val = true;
261625
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
261626
+ val = false;
261627
+ } else if (val === "null") {
261628
+ val = null;
261629
+ } else {
261630
+ val = Number(val);
261631
+ }
261632
+ obj[prop] = val;
261633
+ return obj;
261634
+ }, {});
261635
+ function useColors() {
261636
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
261637
+ }
261638
+ function formatArgs(args) {
261639
+ const { namespace: name, useColors: useColors2 } = this;
261640
+ if (useColors2) {
261641
+ const c2 = this.color;
261642
+ const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
261643
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
261644
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
261645
+ args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
261646
+ } else {
261647
+ args[0] = getDate() + name + " " + args[0];
261648
+ }
261649
+ }
261650
+ function getDate() {
261651
+ if (exports.inspectOpts.hideDate) {
261652
+ return "";
261653
+ }
261654
+ return new Date().toISOString() + " ";
261655
+ }
261656
+ function log(...args) {
261657
+ return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
261658
+ }
261659
+ function save(namespaces) {
261660
+ if (namespaces) {
261661
+ process.env.DEBUG = namespaces;
261662
+ } else {
261663
+ delete process.env.DEBUG;
261664
+ }
261665
+ }
261666
+ function load3() {
261667
+ return process.env.DEBUG;
261668
+ }
261669
+ function init(debug) {
261670
+ debug.inspectOpts = {};
261671
+ const keys = Object.keys(exports.inspectOpts);
261672
+ for (let i = 0; i < keys.length; i++) {
261673
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
261674
+ }
261675
+ }
261676
+ module2.exports = require_common4()(exports);
261677
+ var { formatters } = module2.exports;
261678
+ formatters.o = function(v) {
261679
+ this.inspectOpts.colors = this.useColors;
261680
+ return util4.inspect(v, this.inspectOpts).split("\n").map((str2) => str2.trim()).join(" ");
261681
+ };
261682
+ formatters.O = function(v) {
261683
+ this.inspectOpts.colors = this.useColors;
261684
+ return util4.inspect(v, this.inspectOpts);
261685
+ };
261686
+ }
261687
+ });
261688
+
261689
+ // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
261690
+ var require_src5 = __commonJS({
261691
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
261692
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
261693
+ module2.exports = require_browser2();
261694
+ } else {
261695
+ module2.exports = require_node4();
261696
+ }
261697
+ }
261698
+ });
261699
+
261172
261700
  // ../../node_modules/.pnpm/cookiejar@2.1.4/node_modules/cookiejar/cookiejar.js
261173
261701
  var require_cookiejar = __commonJS({
261174
261702
  "../../node_modules/.pnpm/cookiejar@2.1.4/node_modules/cookiejar/cookiejar.js"(exports) {
@@ -264540,7 +265068,7 @@ var require_agent2 = __commonJS({
264540
265068
  var _require3 = require_cookiejar();
264541
265069
  var CookieAccessInfo = _require3.CookieAccessInfo;
264542
265070
  var methods = require_methods3();
264543
- var request = require_node4();
265071
+ var request = require_node5();
264544
265072
  var AgentBase = require_agent_base();
264545
265073
  module2.exports = Agent;
264546
265074
  function Agent(options) {
@@ -264707,7 +265235,7 @@ var require_parsers2 = __commonJS({
264707
265235
  });
264708
265236
 
264709
265237
  // ../../node_modules/.pnpm/superagent@7.1.6/node_modules/superagent/lib/node/index.js
264710
- var require_node4 = __commonJS({
265238
+ var require_node5 = __commonJS({
264711
265239
  "../../node_modules/.pnpm/superagent@7.1.6/node_modules/superagent/lib/node/index.js"(exports, module2) {
264712
265240
  "use strict";
264713
265241
  function _slicedToArray(arr, i) {
@@ -264845,7 +265373,7 @@ var require_node4 = __commonJS({
264845
265373
  var methods = require_methods3();
264846
265374
  var FormData3 = require_form_data();
264847
265375
  var formidable = require_src4();
264848
- var debug = require_src2()("superagent");
265376
+ var debug = require_src5()("superagent");
264849
265377
  var CookieJar = require_cookiejar();
264850
265378
  var semverGte = require_gte();
264851
265379
  var safeStringify = require_fast_safe_stringify();
@@ -265612,7 +266140,7 @@ var require_node4 = __commonJS({
265612
266140
  var require_http4 = __commonJS({
265613
266141
  "../../node_modules/.pnpm/path-loader@1.0.12/node_modules/path-loader/lib/loaders/http.js"(exports, module2) {
265614
266142
  "use strict";
265615
- var request = require_node4();
266143
+ var request = require_node5();
265616
266144
  var supportedHttpMethods = ["delete", "get", "head", "patch", "post", "put"];
265617
266145
  module2.exports.load = function(location2, options, callback) {
265618
266146
  var realMethod = options.method ? options.method.toLowerCase() : "get";
@@ -292649,6 +293177,16 @@ var state = {
292649
293177
  "description": 'ID of a bot or a workspace, depending on the "type" parameter',
292650
293178
  "in": "path"
292651
293179
  },
293180
+ "timestampFrom": {
293181
+ "in": "query",
293182
+ "description": "Timestamp from (inclusive)",
293183
+ "type": "string"
293184
+ },
293185
+ "timestampUntil": {
293186
+ "in": "query",
293187
+ "description": "Timestamp until (exclusive)",
293188
+ "type": "string"
293189
+ },
292652
293190
  "nextToken": {
292653
293191
  "in": "query",
292654
293192
  "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
@@ -292708,6 +293246,97 @@ var state = {
292708
293246
  }
292709
293247
  }
292710
293248
  },
293249
+ "listUsageActivityDaily": {
293250
+ "name": "listUsageActivityDaily",
293251
+ "description": "List the aggregate daily usage activity (aggregate) for a given usage type and ID. The most recent activity is listed first.",
293252
+ "method": "get",
293253
+ "path": "/v1/admin/usages/{id}/daily-activity",
293254
+ "section": "usage",
293255
+ "parameters": {
293256
+ "type": {
293257
+ "in": "query",
293258
+ "description": "Usage type",
293259
+ "type": "string",
293260
+ "enum": [
293261
+ "invocation_timeout",
293262
+ "invocation_calls",
293263
+ "storage_count",
293264
+ "bot_count",
293265
+ "knowledgebase_vector_storage",
293266
+ "workspace_ratelimit",
293267
+ "table_row_count",
293268
+ "workspace_member_count",
293269
+ "integrations_owned_count",
293270
+ "ai_spend",
293271
+ "openai_spend",
293272
+ "bing_search_spend",
293273
+ "always_alive"
293274
+ ],
293275
+ "required": true
293276
+ },
293277
+ "id": {
293278
+ "type": "string",
293279
+ "description": 'ID of a bot or a workspace, depending on the "type" parameter',
293280
+ "in": "path"
293281
+ },
293282
+ "dateFrom": {
293283
+ "in": "query",
293284
+ "description": "Date from (inclusive)",
293285
+ "type": "string"
293286
+ },
293287
+ "dateUntil": {
293288
+ "in": "query",
293289
+ "description": "Date until (exclusive)",
293290
+ "type": "string"
293291
+ },
293292
+ "nextToken": {
293293
+ "in": "query",
293294
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
293295
+ "type": "string"
293296
+ }
293297
+ },
293298
+ "response": {
293299
+ "description": "Returns the daily usage activity.",
293300
+ "schema": {
293301
+ "type": "object",
293302
+ "properties": {
293303
+ "data": {
293304
+ "type": "array",
293305
+ "items": {
293306
+ "type": "object",
293307
+ "properties": {
293308
+ "date": {
293309
+ "type": "string"
293310
+ },
293311
+ "value": {
293312
+ "type": "number"
293313
+ }
293314
+ },
293315
+ "required": [
293316
+ "date",
293317
+ "value"
293318
+ ]
293319
+ }
293320
+ },
293321
+ "meta": {
293322
+ "type": "object",
293323
+ "properties": {
293324
+ "nextToken": {
293325
+ "type": "string"
293326
+ }
293327
+ },
293328
+ "additionalProperties": false
293329
+ }
293330
+ },
293331
+ "required": [
293332
+ "data",
293333
+ "meta"
293334
+ ],
293335
+ "title": "listUsageActivityDailyResponse",
293336
+ "additionalProperties": false
293337
+ }
293338
+ }
293339
+ },
292711
293340
  "changeAISpendQuota": {
292712
293341
  "name": "changeAISpendQuota",
292713
293342
  "path": "/v1/admin/quotas/ai-spend",
@@ -295113,7 +295742,7 @@ var state = {
295113
295742
  "title": "Botpress API",
295114
295743
  "description": "API for Botpress Cloud",
295115
295744
  "server": "https://api.botpress.cloud",
295116
- "version": "0.62.0",
295745
+ "version": "0.63.0",
295117
295746
  "prefix": "v1"
295118
295747
  },
295119
295748
  "errors": [
@@ -295426,6 +296055,7 @@ var state = {
295426
296055
  "getMultipleUsagesResponse": true,
295427
296056
  "listUsageHistoryResponse": true,
295428
296057
  "listUsageActivityResponse": true,
296058
+ "listUsageActivityDailyResponse": true,
295429
296059
  "changeAISpendQuotaResponse": true,
295430
296060
  "listActivitiesResponse": true,
295431
296061
  "introspectResponse": true,
@@ -298881,7 +299511,8 @@ var state = {
298881
299511
  "name": "usage",
298882
299512
  "operations": [
298883
299513
  "getUsage",
298884
- "getMultipleUsages"
299514
+ "getMultipleUsages",
299515
+ "listUsageActivityDaily"
298885
299516
  ],
298886
299517
  "schema": "Usage"
298887
299518
  },