@botpress/api 0.42.1 → 0.43.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 +215 -69
- package/dist/src/gen/state.d.ts +59 -8
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +72 -12
package/dist/index.js
CHANGED
|
@@ -236173,9 +236173,9 @@ var require_js_tokens = __commonJS({
|
|
|
236173
236173
|
}
|
|
236174
236174
|
});
|
|
236175
236175
|
|
|
236176
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236176
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
236177
236177
|
var require_identifier = __commonJS({
|
|
236178
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236178
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
236179
236179
|
"use strict";
|
|
236180
236180
|
Object.defineProperty(exports, "__esModule", {
|
|
236181
236181
|
value: true
|
|
@@ -236258,9 +236258,9 @@ var require_identifier = __commonJS({
|
|
|
236258
236258
|
}
|
|
236259
236259
|
});
|
|
236260
236260
|
|
|
236261
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236261
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
236262
236262
|
var require_keyword = __commonJS({
|
|
236263
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236263
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
236264
236264
|
"use strict";
|
|
236265
236265
|
Object.defineProperty(exports, "__esModule", {
|
|
236266
236266
|
value: true
|
|
@@ -236296,9 +236296,9 @@ var require_keyword = __commonJS({
|
|
|
236296
236296
|
}
|
|
236297
236297
|
});
|
|
236298
236298
|
|
|
236299
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236299
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
236300
236300
|
var require_lib4 = __commonJS({
|
|
236301
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
236301
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
236302
236302
|
"use strict";
|
|
236303
236303
|
Object.defineProperty(exports, "__esModule", {
|
|
236304
236304
|
value: true
|
|
@@ -236356,6 +236356,79 @@ var require_lib4 = __commonJS({
|
|
|
236356
236356
|
}
|
|
236357
236357
|
});
|
|
236358
236358
|
|
|
236359
|
+
// ../../node_modules/.pnpm/picocolors@1.1.0/node_modules/picocolors/picocolors.js
|
|
236360
|
+
var require_picocolors = __commonJS({
|
|
236361
|
+
"../../node_modules/.pnpm/picocolors@1.1.0/node_modules/picocolors/picocolors.js"(exports, module2) {
|
|
236362
|
+
var argv = process.argv || [];
|
|
236363
|
+
var env2 = process.env;
|
|
236364
|
+
var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
|
|
236365
|
+
var formatter = (open, close, replace2 = open) => (input) => {
|
|
236366
|
+
let string = "" + input;
|
|
236367
|
+
let index = string.indexOf(close, open.length);
|
|
236368
|
+
return ~index ? open + replaceClose(string, close, replace2, index) + close : open + string + close;
|
|
236369
|
+
};
|
|
236370
|
+
var replaceClose = (string, close, replace2, index) => {
|
|
236371
|
+
let result = "";
|
|
236372
|
+
let cursor = 0;
|
|
236373
|
+
do {
|
|
236374
|
+
result += string.substring(cursor, index) + replace2;
|
|
236375
|
+
cursor = index + close.length;
|
|
236376
|
+
index = string.indexOf(close, cursor);
|
|
236377
|
+
} while (~index);
|
|
236378
|
+
return result + string.substring(cursor);
|
|
236379
|
+
};
|
|
236380
|
+
var createColors = (enabled = isColorSupported) => {
|
|
236381
|
+
let init = enabled ? formatter : () => String;
|
|
236382
|
+
return {
|
|
236383
|
+
isColorSupported: enabled,
|
|
236384
|
+
reset: init("\x1B[0m", "\x1B[0m"),
|
|
236385
|
+
bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
236386
|
+
dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
236387
|
+
italic: init("\x1B[3m", "\x1B[23m"),
|
|
236388
|
+
underline: init("\x1B[4m", "\x1B[24m"),
|
|
236389
|
+
inverse: init("\x1B[7m", "\x1B[27m"),
|
|
236390
|
+
hidden: init("\x1B[8m", "\x1B[28m"),
|
|
236391
|
+
strikethrough: init("\x1B[9m", "\x1B[29m"),
|
|
236392
|
+
black: init("\x1B[30m", "\x1B[39m"),
|
|
236393
|
+
red: init("\x1B[31m", "\x1B[39m"),
|
|
236394
|
+
green: init("\x1B[32m", "\x1B[39m"),
|
|
236395
|
+
yellow: init("\x1B[33m", "\x1B[39m"),
|
|
236396
|
+
blue: init("\x1B[34m", "\x1B[39m"),
|
|
236397
|
+
magenta: init("\x1B[35m", "\x1B[39m"),
|
|
236398
|
+
cyan: init("\x1B[36m", "\x1B[39m"),
|
|
236399
|
+
white: init("\x1B[37m", "\x1B[39m"),
|
|
236400
|
+
gray: init("\x1B[90m", "\x1B[39m"),
|
|
236401
|
+
bgBlack: init("\x1B[40m", "\x1B[49m"),
|
|
236402
|
+
bgRed: init("\x1B[41m", "\x1B[49m"),
|
|
236403
|
+
bgGreen: init("\x1B[42m", "\x1B[49m"),
|
|
236404
|
+
bgYellow: init("\x1B[43m", "\x1B[49m"),
|
|
236405
|
+
bgBlue: init("\x1B[44m", "\x1B[49m"),
|
|
236406
|
+
bgMagenta: init("\x1B[45m", "\x1B[49m"),
|
|
236407
|
+
bgCyan: init("\x1B[46m", "\x1B[49m"),
|
|
236408
|
+
bgWhite: init("\x1B[47m", "\x1B[49m"),
|
|
236409
|
+
blackBright: init("\x1B[90m", "\x1B[39m"),
|
|
236410
|
+
redBright: init("\x1B[91m", "\x1B[39m"),
|
|
236411
|
+
greenBright: init("\x1B[92m", "\x1B[39m"),
|
|
236412
|
+
yellowBright: init("\x1B[93m", "\x1B[39m"),
|
|
236413
|
+
blueBright: init("\x1B[94m", "\x1B[39m"),
|
|
236414
|
+
magentaBright: init("\x1B[95m", "\x1B[39m"),
|
|
236415
|
+
cyanBright: init("\x1B[96m", "\x1B[39m"),
|
|
236416
|
+
whiteBright: init("\x1B[97m", "\x1B[39m"),
|
|
236417
|
+
bgBlackBright: init("\x1B[100m", "\x1B[49m"),
|
|
236418
|
+
bgRedBright: init("\x1B[101m", "\x1B[49m"),
|
|
236419
|
+
bgGreenBright: init("\x1B[102m", "\x1B[49m"),
|
|
236420
|
+
bgYellowBright: init("\x1B[103m", "\x1B[49m"),
|
|
236421
|
+
bgBlueBright: init("\x1B[104m", "\x1B[49m"),
|
|
236422
|
+
bgMagentaBright: init("\x1B[105m", "\x1B[49m"),
|
|
236423
|
+
bgCyanBright: init("\x1B[106m", "\x1B[49m"),
|
|
236424
|
+
bgWhiteBright: init("\x1B[107m", "\x1B[49m")
|
|
236425
|
+
};
|
|
236426
|
+
};
|
|
236427
|
+
module2.exports = createColors();
|
|
236428
|
+
module2.exports.createColors = createColors;
|
|
236429
|
+
}
|
|
236430
|
+
});
|
|
236431
|
+
|
|
236359
236432
|
// ../../node_modules/.pnpm/escape-string-regexp@1.0.5/node_modules/escape-string-regexp/index.js
|
|
236360
236433
|
var require_escape_string_regexp = __commonJS({
|
|
236361
236434
|
"../../node_modules/.pnpm/escape-string-regexp@1.0.5/node_modules/escape-string-regexp/index.js"(exports, module2) {
|
|
@@ -236897,9 +236970,9 @@ var require_chalk = __commonJS({
|
|
|
236897
236970
|
}
|
|
236898
236971
|
});
|
|
236899
236972
|
|
|
236900
|
-
// ../../node_modules/.pnpm/@babel+highlight@7.
|
|
236973
|
+
// ../../node_modules/.pnpm/@babel+highlight@7.24.7/node_modules/@babel/highlight/lib/index.js
|
|
236901
236974
|
var require_lib5 = __commonJS({
|
|
236902
|
-
"../../node_modules/.pnpm/@babel+highlight@7.
|
|
236975
|
+
"../../node_modules/.pnpm/@babel+highlight@7.24.7/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
236903
236976
|
"use strict";
|
|
236904
236977
|
Object.defineProperty(exports, "__esModule", {
|
|
236905
236978
|
value: true
|
|
@@ -236908,7 +236981,7 @@ var require_lib5 = __commonJS({
|
|
|
236908
236981
|
exports.shouldHighlight = shouldHighlight;
|
|
236909
236982
|
var _jsTokens = require_js_tokens();
|
|
236910
236983
|
var _helperValidatorIdentifier = require_lib4();
|
|
236911
|
-
var
|
|
236984
|
+
var _picocolors = _interopRequireWildcard(require_picocolors(), true);
|
|
236912
236985
|
function _getRequireWildcardCache(e) {
|
|
236913
236986
|
if ("function" != typeof WeakMap)
|
|
236914
236987
|
return null;
|
|
@@ -236927,24 +237000,26 @@ var require_lib5 = __commonJS({
|
|
|
236927
237000
|
return t.get(e);
|
|
236928
237001
|
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
236929
237002
|
for (var u in e)
|
|
236930
|
-
if ("default" !== u &&
|
|
237003
|
+
if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
236931
237004
|
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
236932
237005
|
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
236933
237006
|
}
|
|
236934
237007
|
return n.default = e, t && t.set(e, n), n;
|
|
236935
237008
|
}
|
|
237009
|
+
var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
237010
|
+
var compose = (f, g) => (v) => f(g(v));
|
|
236936
237011
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
236937
|
-
function getDefs(
|
|
237012
|
+
function getDefs(colors2) {
|
|
236938
237013
|
return {
|
|
236939
|
-
keyword:
|
|
236940
|
-
capitalized:
|
|
236941
|
-
jsxIdentifier:
|
|
236942
|
-
punctuator:
|
|
236943
|
-
number:
|
|
236944
|
-
string:
|
|
236945
|
-
regex:
|
|
236946
|
-
comment:
|
|
236947
|
-
invalid:
|
|
237014
|
+
keyword: colors2.cyan,
|
|
237015
|
+
capitalized: colors2.yellow,
|
|
237016
|
+
jsxIdentifier: colors2.yellow,
|
|
237017
|
+
punctuator: colors2.yellow,
|
|
237018
|
+
number: colors2.magenta,
|
|
237019
|
+
string: colors2.green,
|
|
237020
|
+
regex: colors2.magenta,
|
|
237021
|
+
comment: colors2.gray,
|
|
237022
|
+
invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold)
|
|
236948
237023
|
};
|
|
236949
237024
|
}
|
|
236950
237025
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -236957,7 +237032,7 @@ var require_lib5 = __commonJS({
|
|
|
236957
237032
|
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) {
|
|
236958
237033
|
return "keyword";
|
|
236959
237034
|
}
|
|
236960
|
-
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset)
|
|
237035
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
|
236961
237036
|
return "jsxIdentifier";
|
|
236962
237037
|
}
|
|
236963
237038
|
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
@@ -236999,37 +237074,49 @@ var require_lib5 = __commonJS({
|
|
|
236999
237074
|
return highlighted;
|
|
237000
237075
|
}
|
|
237001
237076
|
function shouldHighlight(options) {
|
|
237002
|
-
return
|
|
237077
|
+
return colors.isColorSupported || options.forceColor;
|
|
237003
237078
|
}
|
|
237004
|
-
var
|
|
237005
|
-
function
|
|
237079
|
+
var pcWithForcedColor = void 0;
|
|
237080
|
+
function getColors(forceColor) {
|
|
237006
237081
|
if (forceColor) {
|
|
237007
|
-
var
|
|
237008
|
-
(
|
|
237009
|
-
|
|
237010
|
-
level: 1
|
|
237011
|
-
});
|
|
237012
|
-
return chalkWithForcedColor;
|
|
237082
|
+
var _pcWithForcedColor;
|
|
237083
|
+
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
237084
|
+
return pcWithForcedColor;
|
|
237013
237085
|
}
|
|
237014
|
-
return
|
|
237015
|
-
}
|
|
237016
|
-
{
|
|
237017
|
-
exports.getChalk = (options) => getChalk(options.forceColor);
|
|
237086
|
+
return colors;
|
|
237018
237087
|
}
|
|
237019
237088
|
function highlight(code, options = {}) {
|
|
237020
237089
|
if (code !== "" && shouldHighlight(options)) {
|
|
237021
|
-
const defs = getDefs(
|
|
237090
|
+
const defs = getDefs(getColors(options.forceColor));
|
|
237022
237091
|
return highlightTokens(defs, code);
|
|
237023
237092
|
} else {
|
|
237024
237093
|
return code;
|
|
237025
237094
|
}
|
|
237026
237095
|
}
|
|
237096
|
+
{
|
|
237097
|
+
let chalk3, chalkWithForcedColor;
|
|
237098
|
+
exports.getChalk = ({
|
|
237099
|
+
forceColor
|
|
237100
|
+
}) => {
|
|
237101
|
+
var _chalk;
|
|
237102
|
+
(_chalk = chalk3) != null ? _chalk : chalk3 = require_chalk();
|
|
237103
|
+
if (forceColor) {
|
|
237104
|
+
var _chalkWithForcedColor;
|
|
237105
|
+
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk3.constructor({
|
|
237106
|
+
enabled: true,
|
|
237107
|
+
level: 1
|
|
237108
|
+
});
|
|
237109
|
+
return chalkWithForcedColor;
|
|
237110
|
+
}
|
|
237111
|
+
return chalk3;
|
|
237112
|
+
};
|
|
237113
|
+
}
|
|
237027
237114
|
}
|
|
237028
237115
|
});
|
|
237029
237116
|
|
|
237030
|
-
// ../../node_modules/.pnpm/@babel+code-frame@7.
|
|
237117
|
+
// ../../node_modules/.pnpm/@babel+code-frame@7.24.7/node_modules/@babel/code-frame/lib/index.js
|
|
237031
237118
|
var require_lib6 = __commonJS({
|
|
237032
|
-
"../../node_modules/.pnpm/@babel+code-frame@7.
|
|
237119
|
+
"../../node_modules/.pnpm/@babel+code-frame@7.24.7/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
237033
237120
|
"use strict";
|
|
237034
237121
|
Object.defineProperty(exports, "__esModule", {
|
|
237035
237122
|
value: true
|
|
@@ -237037,7 +237124,7 @@ var require_lib6 = __commonJS({
|
|
|
237037
237124
|
exports.codeFrameColumns = codeFrameColumns;
|
|
237038
237125
|
exports.default = _default2;
|
|
237039
237126
|
var _highlight = require_lib5();
|
|
237040
|
-
var
|
|
237127
|
+
var _picocolors = _interopRequireWildcard(require_picocolors(), true);
|
|
237041
237128
|
function _getRequireWildcardCache(e) {
|
|
237042
237129
|
if ("function" != typeof WeakMap)
|
|
237043
237130
|
return null;
|
|
@@ -237056,30 +237143,29 @@ var require_lib6 = __commonJS({
|
|
|
237056
237143
|
return t.get(e);
|
|
237057
237144
|
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
237058
237145
|
for (var u in e)
|
|
237059
|
-
if ("default" !== u &&
|
|
237146
|
+
if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
237060
237147
|
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
237061
237148
|
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
237062
237149
|
}
|
|
237063
237150
|
return n.default = e, t && t.set(e, n), n;
|
|
237064
237151
|
}
|
|
237065
|
-
var
|
|
237066
|
-
|
|
237152
|
+
var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
237153
|
+
var compose = (f, g) => (v) => f(g(v));
|
|
237154
|
+
var pcWithForcedColor = void 0;
|
|
237155
|
+
function getColors(forceColor) {
|
|
237067
237156
|
if (forceColor) {
|
|
237068
|
-
var
|
|
237069
|
-
(
|
|
237070
|
-
|
|
237071
|
-
level: 1
|
|
237072
|
-
});
|
|
237073
|
-
return chalkWithForcedColor;
|
|
237157
|
+
var _pcWithForcedColor;
|
|
237158
|
+
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
237159
|
+
return pcWithForcedColor;
|
|
237074
237160
|
}
|
|
237075
|
-
return
|
|
237161
|
+
return colors;
|
|
237076
237162
|
}
|
|
237077
237163
|
var deprecationWarningShown = false;
|
|
237078
|
-
function getDefs(
|
|
237164
|
+
function getDefs(colors2) {
|
|
237079
237165
|
return {
|
|
237080
|
-
gutter:
|
|
237081
|
-
marker:
|
|
237082
|
-
message:
|
|
237166
|
+
gutter: colors2.gray,
|
|
237167
|
+
marker: compose(colors2.red, colors2.bold),
|
|
237168
|
+
message: compose(colors2.red, colors2.bold)
|
|
237083
237169
|
};
|
|
237084
237170
|
}
|
|
237085
237171
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -237141,10 +237227,10 @@ var require_lib6 = __commonJS({
|
|
|
237141
237227
|
}
|
|
237142
237228
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
237143
237229
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
237144
|
-
const
|
|
237145
|
-
const defs = getDefs(
|
|
237146
|
-
const maybeHighlight = (
|
|
237147
|
-
return highlighted ?
|
|
237230
|
+
const colors2 = getColors(opts.forceColor);
|
|
237231
|
+
const defs = getDefs(colors2);
|
|
237232
|
+
const maybeHighlight = (fmt, string) => {
|
|
237233
|
+
return highlighted ? fmt(string) : string;
|
|
237148
237234
|
};
|
|
237149
237235
|
const lines = rawLines.split(NEWLINE);
|
|
237150
237236
|
const {
|
|
@@ -237181,7 +237267,7 @@ var require_lib6 = __commonJS({
|
|
|
237181
237267
|
${frame}`;
|
|
237182
237268
|
}
|
|
237183
237269
|
if (highlighted) {
|
|
237184
|
-
return
|
|
237270
|
+
return colors2.reset(frame);
|
|
237185
237271
|
} else {
|
|
237186
237272
|
return frame;
|
|
237187
237273
|
}
|
|
@@ -291658,6 +291744,25 @@ var state = {
|
|
|
291658
291744
|
"description": "Entity definition",
|
|
291659
291745
|
"additionalProperties": false
|
|
291660
291746
|
}
|
|
291747
|
+
},
|
|
291748
|
+
"nameTemplate": {
|
|
291749
|
+
"type": "object",
|
|
291750
|
+
"properties": {
|
|
291751
|
+
"script": {
|
|
291752
|
+
"type": "string",
|
|
291753
|
+
"maxLength": 2e3
|
|
291754
|
+
},
|
|
291755
|
+
"language": {
|
|
291756
|
+
"type": "string",
|
|
291757
|
+
"maxLength": 200
|
|
291758
|
+
}
|
|
291759
|
+
},
|
|
291760
|
+
"required": [
|
|
291761
|
+
"script",
|
|
291762
|
+
"language"
|
|
291763
|
+
],
|
|
291764
|
+
"description": "Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.",
|
|
291765
|
+
"additionalProperties": false
|
|
291661
291766
|
}
|
|
291662
291767
|
},
|
|
291663
291768
|
"required": [
|
|
@@ -291883,6 +291988,26 @@ var state = {
|
|
|
291883
291988
|
"nullable": true,
|
|
291884
291989
|
"additionalProperties": false
|
|
291885
291990
|
}
|
|
291991
|
+
},
|
|
291992
|
+
"nameTemplate": {
|
|
291993
|
+
"type": "object",
|
|
291994
|
+
"properties": {
|
|
291995
|
+
"script": {
|
|
291996
|
+
"type": "string",
|
|
291997
|
+
"maxLength": 2e3
|
|
291998
|
+
},
|
|
291999
|
+
"language": {
|
|
292000
|
+
"type": "string",
|
|
292001
|
+
"maxLength": 200
|
|
292002
|
+
}
|
|
292003
|
+
},
|
|
292004
|
+
"required": [
|
|
292005
|
+
"script",
|
|
292006
|
+
"language"
|
|
292007
|
+
],
|
|
292008
|
+
"description": "Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.",
|
|
292009
|
+
"nullable": true,
|
|
292010
|
+
"additionalProperties": false
|
|
291886
292011
|
}
|
|
291887
292012
|
},
|
|
291888
292013
|
"title": "updateInterfaceBody",
|
|
@@ -292526,13 +292651,20 @@ var state = {
|
|
|
292526
292651
|
},
|
|
292527
292652
|
"tags": {
|
|
292528
292653
|
"in": "query",
|
|
292529
|
-
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file.",
|
|
292654
|
+
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file. An array of multiple string values for the same key are treated as an OR condition. To exclude a value, express it as an object with a nested `not` key with the string or string-array value(s) to exclude.",
|
|
292655
|
+
"type": "object",
|
|
292656
|
+
"schema": {}
|
|
292657
|
+
},
|
|
292658
|
+
"ids": {
|
|
292659
|
+
"in": "query",
|
|
292660
|
+
"description": "Filter files by IDs.",
|
|
292530
292661
|
"type": "object",
|
|
292531
292662
|
"schema": {
|
|
292532
|
-
"type": "
|
|
292533
|
-
"
|
|
292663
|
+
"type": "array",
|
|
292664
|
+
"items": {
|
|
292534
292665
|
"type": "string"
|
|
292535
|
-
}
|
|
292666
|
+
},
|
|
292667
|
+
"maxItems": 50
|
|
292536
292668
|
}
|
|
292537
292669
|
}
|
|
292538
292670
|
},
|
|
@@ -292950,14 +293082,9 @@ var state = {
|
|
|
292950
293082
|
"parameters": {
|
|
292951
293083
|
"tags": {
|
|
292952
293084
|
"in": "query",
|
|
292953
|
-
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file.",
|
|
293085
|
+
"description": "Filter files by tags. Tags should be passed as a URL-encoded JSON object of key-value pairs that must be present in the tags of a file. An array of multiple string values for the same key are treated as an OR condition. To exclude a value, express it as an object with a nested `not` key with the string or string-array value(s) to exclude.",
|
|
292954
293086
|
"type": "object",
|
|
292955
|
-
"schema": {
|
|
292956
|
-
"type": "object",
|
|
292957
|
-
"additionalProperties": {
|
|
292958
|
-
"type": "string"
|
|
292959
|
-
}
|
|
292960
|
-
}
|
|
293087
|
+
"schema": {}
|
|
292961
293088
|
},
|
|
292962
293089
|
"query": {
|
|
292963
293090
|
"in": "query",
|
|
@@ -294105,7 +294232,7 @@ var state = {
|
|
|
294105
294232
|
"title": "Botpress API",
|
|
294106
294233
|
"description": "API for Botpress Cloud",
|
|
294107
294234
|
"server": "https://api.botpress.cloud",
|
|
294108
|
-
"version": "0.
|
|
294235
|
+
"version": "0.43.0",
|
|
294109
294236
|
"prefix": "v1"
|
|
294110
294237
|
},
|
|
294111
294238
|
"errors": [
|
|
@@ -295716,6 +295843,25 @@ var state = {
|
|
|
295716
295843
|
"description": "Entity definition",
|
|
295717
295844
|
"additionalProperties": false
|
|
295718
295845
|
}
|
|
295846
|
+
},
|
|
295847
|
+
"nameTemplate": {
|
|
295848
|
+
"type": "object",
|
|
295849
|
+
"properties": {
|
|
295850
|
+
"script": {
|
|
295851
|
+
"type": "string",
|
|
295852
|
+
"maxLength": 2e3
|
|
295853
|
+
},
|
|
295854
|
+
"language": {
|
|
295855
|
+
"type": "string",
|
|
295856
|
+
"maxLength": 200
|
|
295857
|
+
}
|
|
295858
|
+
},
|
|
295859
|
+
"required": [
|
|
295860
|
+
"script",
|
|
295861
|
+
"language"
|
|
295862
|
+
],
|
|
295863
|
+
"description": "Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.",
|
|
295864
|
+
"additionalProperties": false
|
|
295719
295865
|
}
|
|
295720
295866
|
},
|
|
295721
295867
|
"required": [
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -8024,6 +8024,22 @@ export declare const state: {
|
|
|
8024
8024
|
additionalProperties: false;
|
|
8025
8025
|
};
|
|
8026
8026
|
};
|
|
8027
|
+
nameTemplate: {
|
|
8028
|
+
type: "object";
|
|
8029
|
+
properties: {
|
|
8030
|
+
script: {
|
|
8031
|
+
type: "string";
|
|
8032
|
+
maxLength: number;
|
|
8033
|
+
};
|
|
8034
|
+
language: {
|
|
8035
|
+
type: "string";
|
|
8036
|
+
maxLength: number;
|
|
8037
|
+
};
|
|
8038
|
+
};
|
|
8039
|
+
required: string[];
|
|
8040
|
+
description: string;
|
|
8041
|
+
additionalProperties: false;
|
|
8042
|
+
};
|
|
8027
8043
|
};
|
|
8028
8044
|
required: string[];
|
|
8029
8045
|
title: string;
|
|
@@ -8226,6 +8242,23 @@ export declare const state: {
|
|
|
8226
8242
|
additionalProperties: false;
|
|
8227
8243
|
};
|
|
8228
8244
|
};
|
|
8245
|
+
nameTemplate: {
|
|
8246
|
+
type: "object";
|
|
8247
|
+
properties: {
|
|
8248
|
+
script: {
|
|
8249
|
+
type: "string";
|
|
8250
|
+
maxLength: number;
|
|
8251
|
+
};
|
|
8252
|
+
language: {
|
|
8253
|
+
type: "string";
|
|
8254
|
+
maxLength: number;
|
|
8255
|
+
};
|
|
8256
|
+
};
|
|
8257
|
+
required: string[];
|
|
8258
|
+
description: string;
|
|
8259
|
+
nullable: true;
|
|
8260
|
+
additionalProperties: false;
|
|
8261
|
+
};
|
|
8229
8262
|
};
|
|
8230
8263
|
title: string;
|
|
8231
8264
|
additionalProperties: false;
|
|
@@ -8779,14 +8812,21 @@ export declare const state: {
|
|
|
8779
8812
|
type: "string";
|
|
8780
8813
|
};
|
|
8781
8814
|
tags: {
|
|
8815
|
+
in: "query";
|
|
8816
|
+
description: string;
|
|
8817
|
+
type: "object";
|
|
8818
|
+
schema: {};
|
|
8819
|
+
};
|
|
8820
|
+
ids: {
|
|
8782
8821
|
in: "query";
|
|
8783
8822
|
description: string;
|
|
8784
8823
|
type: "object";
|
|
8785
8824
|
schema: {
|
|
8786
|
-
type: "
|
|
8787
|
-
|
|
8825
|
+
type: "array";
|
|
8826
|
+
items: {
|
|
8788
8827
|
type: "string";
|
|
8789
8828
|
};
|
|
8829
|
+
maxItems: number;
|
|
8790
8830
|
};
|
|
8791
8831
|
};
|
|
8792
8832
|
};
|
|
@@ -9127,12 +9167,7 @@ export declare const state: {
|
|
|
9127
9167
|
in: "query";
|
|
9128
9168
|
description: string;
|
|
9129
9169
|
type: "object";
|
|
9130
|
-
schema: {
|
|
9131
|
-
type: "object";
|
|
9132
|
-
additionalProperties: {
|
|
9133
|
-
type: "string";
|
|
9134
|
-
};
|
|
9135
|
-
};
|
|
9170
|
+
schema: {};
|
|
9136
9171
|
};
|
|
9137
9172
|
query: {
|
|
9138
9173
|
in: "query";
|
|
@@ -11522,6 +11557,22 @@ export declare const state: {
|
|
|
11522
11557
|
additionalProperties: false;
|
|
11523
11558
|
};
|
|
11524
11559
|
};
|
|
11560
|
+
nameTemplate: {
|
|
11561
|
+
type: "object";
|
|
11562
|
+
properties: {
|
|
11563
|
+
script: {
|
|
11564
|
+
type: "string";
|
|
11565
|
+
maxLength: number;
|
|
11566
|
+
};
|
|
11567
|
+
language: {
|
|
11568
|
+
type: "string";
|
|
11569
|
+
maxLength: number;
|
|
11570
|
+
};
|
|
11571
|
+
};
|
|
11572
|
+
required: string[];
|
|
11573
|
+
description: string;
|
|
11574
|
+
additionalProperties: false;
|
|
11575
|
+
};
|
|
11525
11576
|
};
|
|
11526
11577
|
required: string[];
|
|
11527
11578
|
additionalProperties: false;
|