@botpress/api 1.22.0 → 1.24.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 +794 -14
- package/dist/src/gen/admin/state.d.ts +94 -0
- package/dist/src/gen/files/state.d.ts +14 -0
- package/dist/src/gen/runtime/state.d.ts +14 -0
- package/dist/src/gen/state.d.ts +94 -0
- package/dist/src/gen/tables/state.d.ts +14 -0
- package/package.json +1 -1
- package/src/gen/admin/metadata.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +103 -1
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +17 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +17 -1
- package/src/gen/state.ts +103 -1
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +17 -1
package/dist/index.js
CHANGED
|
@@ -164288,7 +164288,7 @@ var require_prettier = __commonJS({
|
|
|
164288
164288
|
module22.exports.default = module22.exports;
|
|
164289
164289
|
}
|
|
164290
164290
|
});
|
|
164291
|
-
var
|
|
164291
|
+
var require_common5 = __commonJS22({
|
|
164292
164292
|
"node_modules/vnopts/lib/handlers/deprecated/common.js"(exports2) {
|
|
164293
164293
|
"use strict";
|
|
164294
164294
|
Object.defineProperty(exports2, "__esModule", {
|
|
@@ -164313,7 +164313,7 @@ var require_prettier = __commonJS({
|
|
|
164313
164313
|
value: true
|
|
164314
164314
|
});
|
|
164315
164315
|
var tslib_1 = (init_tslib_es6(), __toCommonJS2(tslib_es6_exports));
|
|
164316
|
-
tslib_1.__exportStar(
|
|
164316
|
+
tslib_1.__exportStar(require_common5(), exports2);
|
|
164317
164317
|
}
|
|
164318
164318
|
});
|
|
164319
164319
|
var require_common22 = __commonJS22({
|
|
@@ -164903,7 +164903,7 @@ var require_prettier = __commonJS({
|
|
|
164903
164903
|
value: true
|
|
164904
164904
|
});
|
|
164905
164905
|
var api_1 = require_api3();
|
|
164906
|
-
var common_1 =
|
|
164906
|
+
var common_1 = require_common5();
|
|
164907
164907
|
var invalid_1 = require_invalid();
|
|
164908
164908
|
var leven_1 = require_leven22();
|
|
164909
164909
|
exports2.defaultDescriptor = api_1.apiDescriptor;
|
|
@@ -173716,7 +173716,7 @@ ${error2.message}`;
|
|
|
173716
173716
|
module22.exports = Function.prototype.bind || implementation;
|
|
173717
173717
|
}
|
|
173718
173718
|
});
|
|
173719
|
-
var
|
|
173719
|
+
var require_src6 = __commonJS22({
|
|
173720
173720
|
"node_modules/has/src/index.js"(exports2, module22) {
|
|
173721
173721
|
"use strict";
|
|
173722
173722
|
var bind2 = require_function_bind2();
|
|
@@ -173885,7 +173885,7 @@ ${error2.message}`;
|
|
|
173885
173885
|
var require_is_core_module = __commonJS22({
|
|
173886
173886
|
"node_modules/is-core-module/index.js"(exports2, module22) {
|
|
173887
173887
|
"use strict";
|
|
173888
|
-
var has =
|
|
173888
|
+
var has = require_src6();
|
|
173889
173889
|
function specifierIncluded(current, specifier) {
|
|
173890
173890
|
var nodeParts = current.split(".");
|
|
173891
173891
|
var parts = specifier.split(" ");
|
|
@@ -261190,6 +261190,534 @@ var require_src4 = __commonJS({
|
|
|
261190
261190
|
}
|
|
261191
261191
|
});
|
|
261192
261192
|
|
|
261193
|
+
// ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js
|
|
261194
|
+
var require_common4 = __commonJS({
|
|
261195
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
261196
|
+
function setup(env2) {
|
|
261197
|
+
createDebug.debug = createDebug;
|
|
261198
|
+
createDebug.default = createDebug;
|
|
261199
|
+
createDebug.coerce = coerce2;
|
|
261200
|
+
createDebug.disable = disable;
|
|
261201
|
+
createDebug.enable = enable;
|
|
261202
|
+
createDebug.enabled = enabled;
|
|
261203
|
+
createDebug.humanize = require_ms();
|
|
261204
|
+
createDebug.destroy = destroy;
|
|
261205
|
+
Object.keys(env2).forEach((key) => {
|
|
261206
|
+
createDebug[key] = env2[key];
|
|
261207
|
+
});
|
|
261208
|
+
createDebug.names = [];
|
|
261209
|
+
createDebug.skips = [];
|
|
261210
|
+
createDebug.formatters = {};
|
|
261211
|
+
function selectColor(namespace) {
|
|
261212
|
+
let hash = 0;
|
|
261213
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
261214
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
261215
|
+
hash |= 0;
|
|
261216
|
+
}
|
|
261217
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
261218
|
+
}
|
|
261219
|
+
createDebug.selectColor = selectColor;
|
|
261220
|
+
function createDebug(namespace) {
|
|
261221
|
+
let prevTime;
|
|
261222
|
+
let enableOverride = null;
|
|
261223
|
+
let namespacesCache;
|
|
261224
|
+
let enabledCache;
|
|
261225
|
+
function debug(...args) {
|
|
261226
|
+
if (!debug.enabled) {
|
|
261227
|
+
return;
|
|
261228
|
+
}
|
|
261229
|
+
const self2 = debug;
|
|
261230
|
+
const curr = Number(new Date());
|
|
261231
|
+
const ms = curr - (prevTime || curr);
|
|
261232
|
+
self2.diff = ms;
|
|
261233
|
+
self2.prev = prevTime;
|
|
261234
|
+
self2.curr = curr;
|
|
261235
|
+
prevTime = curr;
|
|
261236
|
+
args[0] = createDebug.coerce(args[0]);
|
|
261237
|
+
if (typeof args[0] !== "string") {
|
|
261238
|
+
args.unshift("%O");
|
|
261239
|
+
}
|
|
261240
|
+
let index = 0;
|
|
261241
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
261242
|
+
if (match === "%%") {
|
|
261243
|
+
return "%";
|
|
261244
|
+
}
|
|
261245
|
+
index++;
|
|
261246
|
+
const formatter = createDebug.formatters[format];
|
|
261247
|
+
if (typeof formatter === "function") {
|
|
261248
|
+
const val = args[index];
|
|
261249
|
+
match = formatter.call(self2, val);
|
|
261250
|
+
args.splice(index, 1);
|
|
261251
|
+
index--;
|
|
261252
|
+
}
|
|
261253
|
+
return match;
|
|
261254
|
+
});
|
|
261255
|
+
createDebug.formatArgs.call(self2, args);
|
|
261256
|
+
const logFn = self2.log || createDebug.log;
|
|
261257
|
+
logFn.apply(self2, args);
|
|
261258
|
+
}
|
|
261259
|
+
debug.namespace = namespace;
|
|
261260
|
+
debug.useColors = createDebug.useColors();
|
|
261261
|
+
debug.color = createDebug.selectColor(namespace);
|
|
261262
|
+
debug.extend = extend4;
|
|
261263
|
+
debug.destroy = createDebug.destroy;
|
|
261264
|
+
Object.defineProperty(debug, "enabled", {
|
|
261265
|
+
enumerable: true,
|
|
261266
|
+
configurable: false,
|
|
261267
|
+
get: () => {
|
|
261268
|
+
if (enableOverride !== null) {
|
|
261269
|
+
return enableOverride;
|
|
261270
|
+
}
|
|
261271
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
261272
|
+
namespacesCache = createDebug.namespaces;
|
|
261273
|
+
enabledCache = createDebug.enabled(namespace);
|
|
261274
|
+
}
|
|
261275
|
+
return enabledCache;
|
|
261276
|
+
},
|
|
261277
|
+
set: (v) => {
|
|
261278
|
+
enableOverride = v;
|
|
261279
|
+
}
|
|
261280
|
+
});
|
|
261281
|
+
if (typeof createDebug.init === "function") {
|
|
261282
|
+
createDebug.init(debug);
|
|
261283
|
+
}
|
|
261284
|
+
return debug;
|
|
261285
|
+
}
|
|
261286
|
+
function extend4(namespace, delimiter) {
|
|
261287
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
261288
|
+
newDebug.log = this.log;
|
|
261289
|
+
return newDebug;
|
|
261290
|
+
}
|
|
261291
|
+
function enable(namespaces) {
|
|
261292
|
+
createDebug.save(namespaces);
|
|
261293
|
+
createDebug.namespaces = namespaces;
|
|
261294
|
+
createDebug.names = [];
|
|
261295
|
+
createDebug.skips = [];
|
|
261296
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
261297
|
+
for (const ns of split) {
|
|
261298
|
+
if (ns[0] === "-") {
|
|
261299
|
+
createDebug.skips.push(ns.slice(1));
|
|
261300
|
+
} else {
|
|
261301
|
+
createDebug.names.push(ns);
|
|
261302
|
+
}
|
|
261303
|
+
}
|
|
261304
|
+
}
|
|
261305
|
+
function matchesTemplate(search, template2) {
|
|
261306
|
+
let searchIndex = 0;
|
|
261307
|
+
let templateIndex = 0;
|
|
261308
|
+
let starIndex = -1;
|
|
261309
|
+
let matchIndex = 0;
|
|
261310
|
+
while (searchIndex < search.length) {
|
|
261311
|
+
if (templateIndex < template2.length && (template2[templateIndex] === search[searchIndex] || template2[templateIndex] === "*")) {
|
|
261312
|
+
if (template2[templateIndex] === "*") {
|
|
261313
|
+
starIndex = templateIndex;
|
|
261314
|
+
matchIndex = searchIndex;
|
|
261315
|
+
templateIndex++;
|
|
261316
|
+
} else {
|
|
261317
|
+
searchIndex++;
|
|
261318
|
+
templateIndex++;
|
|
261319
|
+
}
|
|
261320
|
+
} else if (starIndex !== -1) {
|
|
261321
|
+
templateIndex = starIndex + 1;
|
|
261322
|
+
matchIndex++;
|
|
261323
|
+
searchIndex = matchIndex;
|
|
261324
|
+
} else {
|
|
261325
|
+
return false;
|
|
261326
|
+
}
|
|
261327
|
+
}
|
|
261328
|
+
while (templateIndex < template2.length && template2[templateIndex] === "*") {
|
|
261329
|
+
templateIndex++;
|
|
261330
|
+
}
|
|
261331
|
+
return templateIndex === template2.length;
|
|
261332
|
+
}
|
|
261333
|
+
function disable() {
|
|
261334
|
+
const namespaces = [
|
|
261335
|
+
...createDebug.names,
|
|
261336
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
261337
|
+
].join(",");
|
|
261338
|
+
createDebug.enable("");
|
|
261339
|
+
return namespaces;
|
|
261340
|
+
}
|
|
261341
|
+
function enabled(name) {
|
|
261342
|
+
for (const skip of createDebug.skips) {
|
|
261343
|
+
if (matchesTemplate(name, skip)) {
|
|
261344
|
+
return false;
|
|
261345
|
+
}
|
|
261346
|
+
}
|
|
261347
|
+
for (const ns of createDebug.names) {
|
|
261348
|
+
if (matchesTemplate(name, ns)) {
|
|
261349
|
+
return true;
|
|
261350
|
+
}
|
|
261351
|
+
}
|
|
261352
|
+
return false;
|
|
261353
|
+
}
|
|
261354
|
+
function coerce2(val) {
|
|
261355
|
+
if (val instanceof Error) {
|
|
261356
|
+
return val.stack || val.message;
|
|
261357
|
+
}
|
|
261358
|
+
return val;
|
|
261359
|
+
}
|
|
261360
|
+
function destroy() {
|
|
261361
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
261362
|
+
}
|
|
261363
|
+
createDebug.enable(createDebug.load());
|
|
261364
|
+
return createDebug;
|
|
261365
|
+
}
|
|
261366
|
+
module2.exports = setup;
|
|
261367
|
+
}
|
|
261368
|
+
});
|
|
261369
|
+
|
|
261370
|
+
// ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js
|
|
261371
|
+
var require_browser2 = __commonJS({
|
|
261372
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
261373
|
+
exports.formatArgs = formatArgs;
|
|
261374
|
+
exports.save = save;
|
|
261375
|
+
exports.load = load3;
|
|
261376
|
+
exports.useColors = useColors;
|
|
261377
|
+
exports.storage = localstorage();
|
|
261378
|
+
exports.destroy = (() => {
|
|
261379
|
+
let warned = false;
|
|
261380
|
+
return () => {
|
|
261381
|
+
if (!warned) {
|
|
261382
|
+
warned = true;
|
|
261383
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
261384
|
+
}
|
|
261385
|
+
};
|
|
261386
|
+
})();
|
|
261387
|
+
exports.colors = [
|
|
261388
|
+
"#0000CC",
|
|
261389
|
+
"#0000FF",
|
|
261390
|
+
"#0033CC",
|
|
261391
|
+
"#0033FF",
|
|
261392
|
+
"#0066CC",
|
|
261393
|
+
"#0066FF",
|
|
261394
|
+
"#0099CC",
|
|
261395
|
+
"#0099FF",
|
|
261396
|
+
"#00CC00",
|
|
261397
|
+
"#00CC33",
|
|
261398
|
+
"#00CC66",
|
|
261399
|
+
"#00CC99",
|
|
261400
|
+
"#00CCCC",
|
|
261401
|
+
"#00CCFF",
|
|
261402
|
+
"#3300CC",
|
|
261403
|
+
"#3300FF",
|
|
261404
|
+
"#3333CC",
|
|
261405
|
+
"#3333FF",
|
|
261406
|
+
"#3366CC",
|
|
261407
|
+
"#3366FF",
|
|
261408
|
+
"#3399CC",
|
|
261409
|
+
"#3399FF",
|
|
261410
|
+
"#33CC00",
|
|
261411
|
+
"#33CC33",
|
|
261412
|
+
"#33CC66",
|
|
261413
|
+
"#33CC99",
|
|
261414
|
+
"#33CCCC",
|
|
261415
|
+
"#33CCFF",
|
|
261416
|
+
"#6600CC",
|
|
261417
|
+
"#6600FF",
|
|
261418
|
+
"#6633CC",
|
|
261419
|
+
"#6633FF",
|
|
261420
|
+
"#66CC00",
|
|
261421
|
+
"#66CC33",
|
|
261422
|
+
"#9900CC",
|
|
261423
|
+
"#9900FF",
|
|
261424
|
+
"#9933CC",
|
|
261425
|
+
"#9933FF",
|
|
261426
|
+
"#99CC00",
|
|
261427
|
+
"#99CC33",
|
|
261428
|
+
"#CC0000",
|
|
261429
|
+
"#CC0033",
|
|
261430
|
+
"#CC0066",
|
|
261431
|
+
"#CC0099",
|
|
261432
|
+
"#CC00CC",
|
|
261433
|
+
"#CC00FF",
|
|
261434
|
+
"#CC3300",
|
|
261435
|
+
"#CC3333",
|
|
261436
|
+
"#CC3366",
|
|
261437
|
+
"#CC3399",
|
|
261438
|
+
"#CC33CC",
|
|
261439
|
+
"#CC33FF",
|
|
261440
|
+
"#CC6600",
|
|
261441
|
+
"#CC6633",
|
|
261442
|
+
"#CC9900",
|
|
261443
|
+
"#CC9933",
|
|
261444
|
+
"#CCCC00",
|
|
261445
|
+
"#CCCC33",
|
|
261446
|
+
"#FF0000",
|
|
261447
|
+
"#FF0033",
|
|
261448
|
+
"#FF0066",
|
|
261449
|
+
"#FF0099",
|
|
261450
|
+
"#FF00CC",
|
|
261451
|
+
"#FF00FF",
|
|
261452
|
+
"#FF3300",
|
|
261453
|
+
"#FF3333",
|
|
261454
|
+
"#FF3366",
|
|
261455
|
+
"#FF3399",
|
|
261456
|
+
"#FF33CC",
|
|
261457
|
+
"#FF33FF",
|
|
261458
|
+
"#FF6600",
|
|
261459
|
+
"#FF6633",
|
|
261460
|
+
"#FF9900",
|
|
261461
|
+
"#FF9933",
|
|
261462
|
+
"#FFCC00",
|
|
261463
|
+
"#FFCC33"
|
|
261464
|
+
];
|
|
261465
|
+
function useColors() {
|
|
261466
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
261467
|
+
return true;
|
|
261468
|
+
}
|
|
261469
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
261470
|
+
return false;
|
|
261471
|
+
}
|
|
261472
|
+
let m;
|
|
261473
|
+
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+)/);
|
|
261474
|
+
}
|
|
261475
|
+
function formatArgs(args) {
|
|
261476
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
261477
|
+
if (!this.useColors) {
|
|
261478
|
+
return;
|
|
261479
|
+
}
|
|
261480
|
+
const c2 = "color: " + this.color;
|
|
261481
|
+
args.splice(1, 0, c2, "color: inherit");
|
|
261482
|
+
let index = 0;
|
|
261483
|
+
let lastC = 0;
|
|
261484
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
261485
|
+
if (match === "%%") {
|
|
261486
|
+
return;
|
|
261487
|
+
}
|
|
261488
|
+
index++;
|
|
261489
|
+
if (match === "%c") {
|
|
261490
|
+
lastC = index;
|
|
261491
|
+
}
|
|
261492
|
+
});
|
|
261493
|
+
args.splice(lastC, 0, c2);
|
|
261494
|
+
}
|
|
261495
|
+
exports.log = console.debug || console.log || (() => {
|
|
261496
|
+
});
|
|
261497
|
+
function save(namespaces) {
|
|
261498
|
+
try {
|
|
261499
|
+
if (namespaces) {
|
|
261500
|
+
exports.storage.setItem("debug", namespaces);
|
|
261501
|
+
} else {
|
|
261502
|
+
exports.storage.removeItem("debug");
|
|
261503
|
+
}
|
|
261504
|
+
} catch (error2) {
|
|
261505
|
+
}
|
|
261506
|
+
}
|
|
261507
|
+
function load3() {
|
|
261508
|
+
let r;
|
|
261509
|
+
try {
|
|
261510
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
261511
|
+
} catch (error2) {
|
|
261512
|
+
}
|
|
261513
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
261514
|
+
r = process.env.DEBUG;
|
|
261515
|
+
}
|
|
261516
|
+
return r;
|
|
261517
|
+
}
|
|
261518
|
+
function localstorage() {
|
|
261519
|
+
try {
|
|
261520
|
+
return localStorage;
|
|
261521
|
+
} catch (error2) {
|
|
261522
|
+
}
|
|
261523
|
+
}
|
|
261524
|
+
module2.exports = require_common4()(exports);
|
|
261525
|
+
var { formatters } = module2.exports;
|
|
261526
|
+
formatters.j = function(v) {
|
|
261527
|
+
try {
|
|
261528
|
+
return JSON.stringify(v);
|
|
261529
|
+
} catch (error2) {
|
|
261530
|
+
return "[UnexpectedJSONParseError]: " + error2.message;
|
|
261531
|
+
}
|
|
261532
|
+
};
|
|
261533
|
+
}
|
|
261534
|
+
});
|
|
261535
|
+
|
|
261536
|
+
// ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js
|
|
261537
|
+
var require_node4 = __commonJS({
|
|
261538
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
261539
|
+
var tty2 = require("tty");
|
|
261540
|
+
var util4 = require("util");
|
|
261541
|
+
exports.init = init;
|
|
261542
|
+
exports.log = log;
|
|
261543
|
+
exports.formatArgs = formatArgs;
|
|
261544
|
+
exports.save = save;
|
|
261545
|
+
exports.load = load3;
|
|
261546
|
+
exports.useColors = useColors;
|
|
261547
|
+
exports.destroy = util4.deprecate(
|
|
261548
|
+
() => {
|
|
261549
|
+
},
|
|
261550
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
261551
|
+
);
|
|
261552
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
261553
|
+
try {
|
|
261554
|
+
const supportsColor2 = require_supports_color();
|
|
261555
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
261556
|
+
exports.colors = [
|
|
261557
|
+
20,
|
|
261558
|
+
21,
|
|
261559
|
+
26,
|
|
261560
|
+
27,
|
|
261561
|
+
32,
|
|
261562
|
+
33,
|
|
261563
|
+
38,
|
|
261564
|
+
39,
|
|
261565
|
+
40,
|
|
261566
|
+
41,
|
|
261567
|
+
42,
|
|
261568
|
+
43,
|
|
261569
|
+
44,
|
|
261570
|
+
45,
|
|
261571
|
+
56,
|
|
261572
|
+
57,
|
|
261573
|
+
62,
|
|
261574
|
+
63,
|
|
261575
|
+
68,
|
|
261576
|
+
69,
|
|
261577
|
+
74,
|
|
261578
|
+
75,
|
|
261579
|
+
76,
|
|
261580
|
+
77,
|
|
261581
|
+
78,
|
|
261582
|
+
79,
|
|
261583
|
+
80,
|
|
261584
|
+
81,
|
|
261585
|
+
92,
|
|
261586
|
+
93,
|
|
261587
|
+
98,
|
|
261588
|
+
99,
|
|
261589
|
+
112,
|
|
261590
|
+
113,
|
|
261591
|
+
128,
|
|
261592
|
+
129,
|
|
261593
|
+
134,
|
|
261594
|
+
135,
|
|
261595
|
+
148,
|
|
261596
|
+
149,
|
|
261597
|
+
160,
|
|
261598
|
+
161,
|
|
261599
|
+
162,
|
|
261600
|
+
163,
|
|
261601
|
+
164,
|
|
261602
|
+
165,
|
|
261603
|
+
166,
|
|
261604
|
+
167,
|
|
261605
|
+
168,
|
|
261606
|
+
169,
|
|
261607
|
+
170,
|
|
261608
|
+
171,
|
|
261609
|
+
172,
|
|
261610
|
+
173,
|
|
261611
|
+
178,
|
|
261612
|
+
179,
|
|
261613
|
+
184,
|
|
261614
|
+
185,
|
|
261615
|
+
196,
|
|
261616
|
+
197,
|
|
261617
|
+
198,
|
|
261618
|
+
199,
|
|
261619
|
+
200,
|
|
261620
|
+
201,
|
|
261621
|
+
202,
|
|
261622
|
+
203,
|
|
261623
|
+
204,
|
|
261624
|
+
205,
|
|
261625
|
+
206,
|
|
261626
|
+
207,
|
|
261627
|
+
208,
|
|
261628
|
+
209,
|
|
261629
|
+
214,
|
|
261630
|
+
215,
|
|
261631
|
+
220,
|
|
261632
|
+
221
|
|
261633
|
+
];
|
|
261634
|
+
}
|
|
261635
|
+
} catch (error2) {
|
|
261636
|
+
}
|
|
261637
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
261638
|
+
return /^debug_/i.test(key);
|
|
261639
|
+
}).reduce((obj, key) => {
|
|
261640
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_8, k) => {
|
|
261641
|
+
return k.toUpperCase();
|
|
261642
|
+
});
|
|
261643
|
+
let val = process.env[key];
|
|
261644
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
261645
|
+
val = true;
|
|
261646
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
261647
|
+
val = false;
|
|
261648
|
+
} else if (val === "null") {
|
|
261649
|
+
val = null;
|
|
261650
|
+
} else {
|
|
261651
|
+
val = Number(val);
|
|
261652
|
+
}
|
|
261653
|
+
obj[prop] = val;
|
|
261654
|
+
return obj;
|
|
261655
|
+
}, {});
|
|
261656
|
+
function useColors() {
|
|
261657
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
261658
|
+
}
|
|
261659
|
+
function formatArgs(args) {
|
|
261660
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
261661
|
+
if (useColors2) {
|
|
261662
|
+
const c2 = this.color;
|
|
261663
|
+
const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
|
|
261664
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
261665
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
261666
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
261667
|
+
} else {
|
|
261668
|
+
args[0] = getDate() + name + " " + args[0];
|
|
261669
|
+
}
|
|
261670
|
+
}
|
|
261671
|
+
function getDate() {
|
|
261672
|
+
if (exports.inspectOpts.hideDate) {
|
|
261673
|
+
return "";
|
|
261674
|
+
}
|
|
261675
|
+
return new Date().toISOString() + " ";
|
|
261676
|
+
}
|
|
261677
|
+
function log(...args) {
|
|
261678
|
+
return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
261679
|
+
}
|
|
261680
|
+
function save(namespaces) {
|
|
261681
|
+
if (namespaces) {
|
|
261682
|
+
process.env.DEBUG = namespaces;
|
|
261683
|
+
} else {
|
|
261684
|
+
delete process.env.DEBUG;
|
|
261685
|
+
}
|
|
261686
|
+
}
|
|
261687
|
+
function load3() {
|
|
261688
|
+
return process.env.DEBUG;
|
|
261689
|
+
}
|
|
261690
|
+
function init(debug) {
|
|
261691
|
+
debug.inspectOpts = {};
|
|
261692
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
261693
|
+
for (let i = 0; i < keys.length; i++) {
|
|
261694
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
261695
|
+
}
|
|
261696
|
+
}
|
|
261697
|
+
module2.exports = require_common4()(exports);
|
|
261698
|
+
var { formatters } = module2.exports;
|
|
261699
|
+
formatters.o = function(v) {
|
|
261700
|
+
this.inspectOpts.colors = this.useColors;
|
|
261701
|
+
return util4.inspect(v, this.inspectOpts).split("\n").map((str2) => str2.trim()).join(" ");
|
|
261702
|
+
};
|
|
261703
|
+
formatters.O = function(v) {
|
|
261704
|
+
this.inspectOpts.colors = this.useColors;
|
|
261705
|
+
return util4.inspect(v, this.inspectOpts);
|
|
261706
|
+
};
|
|
261707
|
+
}
|
|
261708
|
+
});
|
|
261709
|
+
|
|
261710
|
+
// ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js
|
|
261711
|
+
var require_src5 = __commonJS({
|
|
261712
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
261713
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
261714
|
+
module2.exports = require_browser2();
|
|
261715
|
+
} else {
|
|
261716
|
+
module2.exports = require_node4();
|
|
261717
|
+
}
|
|
261718
|
+
}
|
|
261719
|
+
});
|
|
261720
|
+
|
|
261193
261721
|
// ../../node_modules/.pnpm/cookiejar@2.1.4/node_modules/cookiejar/cookiejar.js
|
|
261194
261722
|
var require_cookiejar = __commonJS({
|
|
261195
261723
|
"../../node_modules/.pnpm/cookiejar@2.1.4/node_modules/cookiejar/cookiejar.js"(exports) {
|
|
@@ -264561,7 +265089,7 @@ var require_agent2 = __commonJS({
|
|
|
264561
265089
|
var _require3 = require_cookiejar();
|
|
264562
265090
|
var CookieAccessInfo = _require3.CookieAccessInfo;
|
|
264563
265091
|
var methods = require_methods3();
|
|
264564
|
-
var request =
|
|
265092
|
+
var request = require_node5();
|
|
264565
265093
|
var AgentBase = require_agent_base();
|
|
264566
265094
|
module2.exports = Agent;
|
|
264567
265095
|
function Agent(options) {
|
|
@@ -264728,7 +265256,7 @@ var require_parsers2 = __commonJS({
|
|
|
264728
265256
|
});
|
|
264729
265257
|
|
|
264730
265258
|
// ../../node_modules/.pnpm/superagent@7.1.6/node_modules/superagent/lib/node/index.js
|
|
264731
|
-
var
|
|
265259
|
+
var require_node5 = __commonJS({
|
|
264732
265260
|
"../../node_modules/.pnpm/superagent@7.1.6/node_modules/superagent/lib/node/index.js"(exports, module2) {
|
|
264733
265261
|
"use strict";
|
|
264734
265262
|
function _slicedToArray(arr, i) {
|
|
@@ -264866,7 +265394,7 @@ var require_node4 = __commonJS({
|
|
|
264866
265394
|
var methods = require_methods3();
|
|
264867
265395
|
var FormData3 = require_form_data();
|
|
264868
265396
|
var formidable = require_src4();
|
|
264869
|
-
var debug =
|
|
265397
|
+
var debug = require_src5()("superagent");
|
|
264870
265398
|
var CookieJar = require_cookiejar();
|
|
264871
265399
|
var semverGte = require_gte();
|
|
264872
265400
|
var safeStringify = require_fast_safe_stringify();
|
|
@@ -265633,7 +266161,7 @@ var require_node4 = __commonJS({
|
|
|
265633
266161
|
var require_http4 = __commonJS({
|
|
265634
266162
|
"../../node_modules/.pnpm/path-loader@1.0.12/node_modules/path-loader/lib/loaders/http.js"(exports, module2) {
|
|
265635
266163
|
"use strict";
|
|
265636
|
-
var request =
|
|
266164
|
+
var request = require_node5();
|
|
265637
266165
|
var supportedHttpMethods = ["delete", "get", "head", "patch", "post", "put"];
|
|
265638
266166
|
module2.exports.load = function(location2, options, callback) {
|
|
265639
266167
|
var realMethod = options.method ? options.method.toLowerCase() : "get";
|
|
@@ -284124,7 +284652,7 @@ var state = {
|
|
|
284124
284652
|
"title": "Botpress API",
|
|
284125
284653
|
"description": "API for Botpress Cloud",
|
|
284126
284654
|
"server": "https://api.botpress.cloud",
|
|
284127
|
-
"version": "1.
|
|
284655
|
+
"version": "1.24.0",
|
|
284128
284656
|
"prefix": "v1"
|
|
284129
284657
|
},
|
|
284130
284658
|
"errors": [
|
|
@@ -284531,6 +285059,22 @@ var state = {
|
|
|
284531
285059
|
"type": "object",
|
|
284532
285060
|
"additionalProperties": true
|
|
284533
285061
|
},
|
|
285062
|
+
"interfaces": {
|
|
285063
|
+
"type": "object",
|
|
285064
|
+
"additionalProperties": {
|
|
285065
|
+
"type": "object",
|
|
285066
|
+
"properties": {
|
|
285067
|
+
"integrationId": {
|
|
285068
|
+
"type": "string"
|
|
285069
|
+
}
|
|
285070
|
+
},
|
|
285071
|
+
"required": [
|
|
285072
|
+
"integrationId"
|
|
285073
|
+
],
|
|
285074
|
+
"additionalProperties": false
|
|
285075
|
+
},
|
|
285076
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
285077
|
+
},
|
|
284534
285078
|
"id": {
|
|
284535
285079
|
"type": "string",
|
|
284536
285080
|
"minLength": 28,
|
|
@@ -292551,6 +293095,22 @@ var state2 = {
|
|
|
292551
293095
|
"configuration": {
|
|
292552
293096
|
"type": "object",
|
|
292553
293097
|
"additionalProperties": true
|
|
293098
|
+
},
|
|
293099
|
+
"interfaces": {
|
|
293100
|
+
"type": "object",
|
|
293101
|
+
"additionalProperties": {
|
|
293102
|
+
"type": "object",
|
|
293103
|
+
"properties": {
|
|
293104
|
+
"integrationId": {
|
|
293105
|
+
"type": "string"
|
|
293106
|
+
}
|
|
293107
|
+
},
|
|
293108
|
+
"required": [
|
|
293109
|
+
"integrationId"
|
|
293110
|
+
],
|
|
293111
|
+
"additionalProperties": false
|
|
293112
|
+
},
|
|
293113
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
292554
293114
|
}
|
|
292555
293115
|
},
|
|
292556
293116
|
"required": [
|
|
@@ -292561,6 +293121,10 @@ var state2 = {
|
|
|
292561
293121
|
},
|
|
292562
293122
|
"description": "A mapping of plugin aliases to their configuration"
|
|
292563
293123
|
},
|
|
293124
|
+
"shouldMergePlugins": {
|
|
293125
|
+
"type": "boolean",
|
|
293126
|
+
"description": "If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true"
|
|
293127
|
+
},
|
|
292564
293128
|
"subscriptions": {
|
|
292565
293129
|
"type": "object",
|
|
292566
293130
|
"properties": {
|
|
@@ -293716,6 +294280,67 @@ var state2 = {
|
|
|
293716
294280
|
}
|
|
293717
294281
|
}
|
|
293718
294282
|
},
|
|
294283
|
+
"getBotJson": {
|
|
294284
|
+
"name": "getBotJson",
|
|
294285
|
+
"description": "Download the raw bot JSON for a bot. Optionally specify versionId to download a specific version.",
|
|
294286
|
+
"method": "get",
|
|
294287
|
+
"path": "/v1/admin/bots/{id}/bot-json",
|
|
294288
|
+
"section": "bot",
|
|
294289
|
+
"parameters": {
|
|
294290
|
+
"id": {
|
|
294291
|
+
"type": "string",
|
|
294292
|
+
"description": "Bot ID",
|
|
294293
|
+
"in": "path"
|
|
294294
|
+
}
|
|
294295
|
+
},
|
|
294296
|
+
"response": {
|
|
294297
|
+
"description": "Success",
|
|
294298
|
+
"schema": {
|
|
294299
|
+
"type": "object",
|
|
294300
|
+
"additionalProperties": true,
|
|
294301
|
+
"title": "getBotJsonResponse"
|
|
294302
|
+
}
|
|
294303
|
+
}
|
|
294304
|
+
},
|
|
294305
|
+
"publishFromBotJson": {
|
|
294306
|
+
"name": "publishFromBotJson",
|
|
294307
|
+
"description": "Deploy a bot using the provided raw bot JSON payload.",
|
|
294308
|
+
"method": "post",
|
|
294309
|
+
"path": "/v1/admin/bots/{id}/publish-from-bot-json",
|
|
294310
|
+
"section": "bot",
|
|
294311
|
+
"parameters": {
|
|
294312
|
+
"id": {
|
|
294313
|
+
"type": "string",
|
|
294314
|
+
"description": "Bot ID",
|
|
294315
|
+
"in": "path"
|
|
294316
|
+
}
|
|
294317
|
+
},
|
|
294318
|
+
"requestBody": {
|
|
294319
|
+
"description": "Raw bot JSON payload",
|
|
294320
|
+
"schema": {
|
|
294321
|
+
"type": "object",
|
|
294322
|
+
"properties": {
|
|
294323
|
+
"botJson": {
|
|
294324
|
+
"type": "object",
|
|
294325
|
+
"additionalProperties": true
|
|
294326
|
+
}
|
|
294327
|
+
},
|
|
294328
|
+
"required": [
|
|
294329
|
+
"botJson"
|
|
294330
|
+
],
|
|
294331
|
+
"title": "publishFromBotJsonBody",
|
|
294332
|
+
"additionalProperties": false
|
|
294333
|
+
}
|
|
294334
|
+
},
|
|
294335
|
+
"response": {
|
|
294336
|
+
"description": "Success",
|
|
294337
|
+
"schema": {
|
|
294338
|
+
"type": "object",
|
|
294339
|
+
"additionalProperties": true,
|
|
294340
|
+
"title": "publishFromBotJsonResponse"
|
|
294341
|
+
}
|
|
294342
|
+
}
|
|
294343
|
+
},
|
|
293719
294344
|
"createBotVersion": {
|
|
293720
294345
|
"name": "createBotVersion",
|
|
293721
294346
|
"description": "Create a new version for a bot",
|
|
@@ -301111,7 +301736,7 @@ var state2 = {
|
|
|
301111
301736
|
"title": "Botpress API",
|
|
301112
301737
|
"description": "API for Botpress Cloud",
|
|
301113
301738
|
"server": "https://api.botpress.cloud",
|
|
301114
|
-
"version": "1.
|
|
301739
|
+
"version": "1.24.0",
|
|
301115
301740
|
"prefix": "v1"
|
|
301116
301741
|
},
|
|
301117
301742
|
"errors": [
|
|
@@ -301247,6 +301872,7 @@ var state2 = {
|
|
|
301247
301872
|
"createBotBody": true,
|
|
301248
301873
|
"updateBotBody": true,
|
|
301249
301874
|
"transferBotBody": true,
|
|
301875
|
+
"publishFromBotJsonBody": true,
|
|
301250
301876
|
"createBotVersionBody": true,
|
|
301251
301877
|
"deployBotVersionBody": true,
|
|
301252
301878
|
"createIntegrationShareableIdBody": true,
|
|
@@ -301306,6 +301932,8 @@ var state2 = {
|
|
|
301306
301932
|
"listBotIssueEventsResponse": true,
|
|
301307
301933
|
"listBotVersionsResponse": true,
|
|
301308
301934
|
"getBotVersionResponse": true,
|
|
301935
|
+
"getBotJsonResponse": true,
|
|
301936
|
+
"publishFromBotJsonResponse": true,
|
|
301309
301937
|
"createBotVersionResponse": true,
|
|
301310
301938
|
"deployBotVersionResponse": true,
|
|
301311
301939
|
"createIntegrationShareableIdResponse": true,
|
|
@@ -301580,6 +302208,22 @@ var state2 = {
|
|
|
301580
302208
|
"type": "object",
|
|
301581
302209
|
"additionalProperties": true
|
|
301582
302210
|
},
|
|
302211
|
+
"interfaces": {
|
|
302212
|
+
"type": "object",
|
|
302213
|
+
"additionalProperties": {
|
|
302214
|
+
"type": "object",
|
|
302215
|
+
"properties": {
|
|
302216
|
+
"integrationId": {
|
|
302217
|
+
"type": "string"
|
|
302218
|
+
}
|
|
302219
|
+
},
|
|
302220
|
+
"required": [
|
|
302221
|
+
"integrationId"
|
|
302222
|
+
],
|
|
302223
|
+
"additionalProperties": false
|
|
302224
|
+
},
|
|
302225
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
302226
|
+
},
|
|
301583
302227
|
"id": {
|
|
301584
302228
|
"type": "string",
|
|
301585
302229
|
"minLength": 28,
|
|
@@ -304951,6 +305595,8 @@ var state2 = {
|
|
|
304951
305595
|
"listBotIssueEvents",
|
|
304952
305596
|
"listBotVersions",
|
|
304953
305597
|
"getBotVersion",
|
|
305598
|
+
"getBotJson",
|
|
305599
|
+
"publishFromBotJson",
|
|
304954
305600
|
"createBotVersion",
|
|
304955
305601
|
"deployBotVersion",
|
|
304956
305602
|
"createIntegrationShareableId",
|
|
@@ -306903,7 +307549,7 @@ var state3 = {
|
|
|
306903
307549
|
"title": "Botpress API",
|
|
306904
307550
|
"description": "API for Botpress Cloud",
|
|
306905
307551
|
"server": "https://api.botpress.cloud",
|
|
306906
|
-
"version": "1.
|
|
307552
|
+
"version": "1.24.0",
|
|
306907
307553
|
"prefix": "v1"
|
|
306908
307554
|
},
|
|
306909
307555
|
"errors": [
|
|
@@ -307263,6 +307909,22 @@ var state3 = {
|
|
|
307263
307909
|
"type": "object",
|
|
307264
307910
|
"additionalProperties": true
|
|
307265
307911
|
},
|
|
307912
|
+
"interfaces": {
|
|
307913
|
+
"type": "object",
|
|
307914
|
+
"additionalProperties": {
|
|
307915
|
+
"type": "object",
|
|
307916
|
+
"properties": {
|
|
307917
|
+
"integrationId": {
|
|
307918
|
+
"type": "string"
|
|
307919
|
+
}
|
|
307920
|
+
},
|
|
307921
|
+
"required": [
|
|
307922
|
+
"integrationId"
|
|
307923
|
+
],
|
|
307924
|
+
"additionalProperties": false
|
|
307925
|
+
},
|
|
307926
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
307927
|
+
},
|
|
307266
307928
|
"id": {
|
|
307267
307929
|
"type": "string",
|
|
307268
307930
|
"minLength": 28,
|
|
@@ -311933,7 +312595,7 @@ var state4 = {
|
|
|
311933
312595
|
"title": "Botpress API",
|
|
311934
312596
|
"description": "API for Botpress Cloud",
|
|
311935
312597
|
"server": "https://api.botpress.cloud",
|
|
311936
|
-
"version": "1.
|
|
312598
|
+
"version": "1.24.0",
|
|
311937
312599
|
"prefix": "v1"
|
|
311938
312600
|
},
|
|
311939
312601
|
"errors": [
|
|
@@ -312300,6 +312962,22 @@ var state4 = {
|
|
|
312300
312962
|
"type": "object",
|
|
312301
312963
|
"additionalProperties": true
|
|
312302
312964
|
},
|
|
312965
|
+
"interfaces": {
|
|
312966
|
+
"type": "object",
|
|
312967
|
+
"additionalProperties": {
|
|
312968
|
+
"type": "object",
|
|
312969
|
+
"properties": {
|
|
312970
|
+
"integrationId": {
|
|
312971
|
+
"type": "string"
|
|
312972
|
+
}
|
|
312973
|
+
},
|
|
312974
|
+
"required": [
|
|
312975
|
+
"integrationId"
|
|
312976
|
+
],
|
|
312977
|
+
"additionalProperties": false
|
|
312978
|
+
},
|
|
312979
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
312980
|
+
},
|
|
312303
312981
|
"id": {
|
|
312304
312982
|
"type": "string",
|
|
312305
312983
|
"minLength": 28,
|
|
@@ -322876,6 +323554,22 @@ var state5 = {
|
|
|
322876
323554
|
"configuration": {
|
|
322877
323555
|
"type": "object",
|
|
322878
323556
|
"additionalProperties": true
|
|
323557
|
+
},
|
|
323558
|
+
"interfaces": {
|
|
323559
|
+
"type": "object",
|
|
323560
|
+
"additionalProperties": {
|
|
323561
|
+
"type": "object",
|
|
323562
|
+
"properties": {
|
|
323563
|
+
"integrationId": {
|
|
323564
|
+
"type": "string"
|
|
323565
|
+
}
|
|
323566
|
+
},
|
|
323567
|
+
"required": [
|
|
323568
|
+
"integrationId"
|
|
323569
|
+
],
|
|
323570
|
+
"additionalProperties": false
|
|
323571
|
+
},
|
|
323572
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
322879
323573
|
}
|
|
322880
323574
|
},
|
|
322881
323575
|
"required": [
|
|
@@ -322886,6 +323580,10 @@ var state5 = {
|
|
|
322886
323580
|
},
|
|
322887
323581
|
"description": "A mapping of plugin aliases to their configuration"
|
|
322888
323582
|
},
|
|
323583
|
+
"shouldMergePlugins": {
|
|
323584
|
+
"type": "boolean",
|
|
323585
|
+
"description": "If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true"
|
|
323586
|
+
},
|
|
322889
323587
|
"subscriptions": {
|
|
322890
323588
|
"type": "object",
|
|
322891
323589
|
"properties": {
|
|
@@ -324041,6 +324739,67 @@ var state5 = {
|
|
|
324041
324739
|
}
|
|
324042
324740
|
}
|
|
324043
324741
|
},
|
|
324742
|
+
"getBotJson": {
|
|
324743
|
+
"name": "getBotJson",
|
|
324744
|
+
"description": "Download the raw bot JSON for a bot. Optionally specify versionId to download a specific version.",
|
|
324745
|
+
"method": "get",
|
|
324746
|
+
"path": "/v1/admin/bots/{id}/bot-json",
|
|
324747
|
+
"section": "bot",
|
|
324748
|
+
"parameters": {
|
|
324749
|
+
"id": {
|
|
324750
|
+
"type": "string",
|
|
324751
|
+
"description": "Bot ID",
|
|
324752
|
+
"in": "path"
|
|
324753
|
+
}
|
|
324754
|
+
},
|
|
324755
|
+
"response": {
|
|
324756
|
+
"description": "Success",
|
|
324757
|
+
"schema": {
|
|
324758
|
+
"type": "object",
|
|
324759
|
+
"additionalProperties": true,
|
|
324760
|
+
"title": "getBotJsonResponse"
|
|
324761
|
+
}
|
|
324762
|
+
}
|
|
324763
|
+
},
|
|
324764
|
+
"publishFromBotJson": {
|
|
324765
|
+
"name": "publishFromBotJson",
|
|
324766
|
+
"description": "Deploy a bot using the provided raw bot JSON payload.",
|
|
324767
|
+
"method": "post",
|
|
324768
|
+
"path": "/v1/admin/bots/{id}/publish-from-bot-json",
|
|
324769
|
+
"section": "bot",
|
|
324770
|
+
"parameters": {
|
|
324771
|
+
"id": {
|
|
324772
|
+
"type": "string",
|
|
324773
|
+
"description": "Bot ID",
|
|
324774
|
+
"in": "path"
|
|
324775
|
+
}
|
|
324776
|
+
},
|
|
324777
|
+
"requestBody": {
|
|
324778
|
+
"description": "Raw bot JSON payload",
|
|
324779
|
+
"schema": {
|
|
324780
|
+
"type": "object",
|
|
324781
|
+
"properties": {
|
|
324782
|
+
"botJson": {
|
|
324783
|
+
"type": "object",
|
|
324784
|
+
"additionalProperties": true
|
|
324785
|
+
}
|
|
324786
|
+
},
|
|
324787
|
+
"required": [
|
|
324788
|
+
"botJson"
|
|
324789
|
+
],
|
|
324790
|
+
"title": "publishFromBotJsonBody",
|
|
324791
|
+
"additionalProperties": false
|
|
324792
|
+
}
|
|
324793
|
+
},
|
|
324794
|
+
"response": {
|
|
324795
|
+
"description": "Success",
|
|
324796
|
+
"schema": {
|
|
324797
|
+
"type": "object",
|
|
324798
|
+
"additionalProperties": true,
|
|
324799
|
+
"title": "publishFromBotJsonResponse"
|
|
324800
|
+
}
|
|
324801
|
+
}
|
|
324802
|
+
},
|
|
324044
324803
|
"createBotVersion": {
|
|
324045
324804
|
"name": "createBotVersion",
|
|
324046
324805
|
"description": "Create a new version for a bot",
|
|
@@ -334411,7 +335170,7 @@ var state5 = {
|
|
|
334411
335170
|
"title": "Botpress API",
|
|
334412
335171
|
"description": "API for Botpress Cloud",
|
|
334413
335172
|
"server": "https://api.botpress.cloud",
|
|
334414
|
-
"version": "1.
|
|
335173
|
+
"version": "1.24.0",
|
|
334415
335174
|
"prefix": "v1"
|
|
334416
335175
|
},
|
|
334417
335176
|
"errors": [
|
|
@@ -334570,6 +335329,7 @@ var state5 = {
|
|
|
334570
335329
|
"createBotBody": true,
|
|
334571
335330
|
"updateBotBody": true,
|
|
334572
335331
|
"transferBotBody": true,
|
|
335332
|
+
"publishFromBotJsonBody": true,
|
|
334573
335333
|
"createBotVersionBody": true,
|
|
334574
335334
|
"deployBotVersionBody": true,
|
|
334575
335335
|
"createIntegrationShareableIdBody": true,
|
|
@@ -334691,6 +335451,8 @@ var state5 = {
|
|
|
334691
335451
|
"listBotIssueEventsResponse": true,
|
|
334692
335452
|
"listBotVersionsResponse": true,
|
|
334693
335453
|
"getBotVersionResponse": true,
|
|
335454
|
+
"getBotJsonResponse": true,
|
|
335455
|
+
"publishFromBotJsonResponse": true,
|
|
334694
335456
|
"createBotVersionResponse": true,
|
|
334695
335457
|
"deployBotVersionResponse": true,
|
|
334696
335458
|
"createIntegrationShareableIdResponse": true,
|
|
@@ -334997,6 +335759,22 @@ var state5 = {
|
|
|
334997
335759
|
"type": "object",
|
|
334998
335760
|
"additionalProperties": true
|
|
334999
335761
|
},
|
|
335762
|
+
"interfaces": {
|
|
335763
|
+
"type": "object",
|
|
335764
|
+
"additionalProperties": {
|
|
335765
|
+
"type": "object",
|
|
335766
|
+
"properties": {
|
|
335767
|
+
"integrationId": {
|
|
335768
|
+
"type": "string"
|
|
335769
|
+
}
|
|
335770
|
+
},
|
|
335771
|
+
"required": [
|
|
335772
|
+
"integrationId"
|
|
335773
|
+
],
|
|
335774
|
+
"additionalProperties": false
|
|
335775
|
+
},
|
|
335776
|
+
"description": "A mapping of plugin interface aliases to their backing integrations"
|
|
335777
|
+
},
|
|
335000
335778
|
"id": {
|
|
335001
335779
|
"type": "string",
|
|
335002
335780
|
"minLength": 28,
|
|
@@ -338422,6 +339200,8 @@ var state5 = {
|
|
|
338422
339200
|
"listBotIssueEvents",
|
|
338423
339201
|
"listBotVersions",
|
|
338424
339202
|
"getBotVersion",
|
|
339203
|
+
"getBotJson",
|
|
339204
|
+
"publishFromBotJson",
|
|
338425
339205
|
"createBotVersion",
|
|
338426
339206
|
"deployBotVersion",
|
|
338427
339207
|
"createIntegrationShareableId",
|