@botpress/api 0.43.0 → 0.43.2
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 +561 -24
- package/dist/src/gen/state.d.ts +460 -1
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +548 -11
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.25.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.25.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
|
|
@@ -236183,13 +236183,13 @@ var require_identifier = __commonJS({
|
|
|
236183
236183
|
exports.isIdentifierChar = isIdentifierChar;
|
|
236184
236184
|
exports.isIdentifierName = isIdentifierName;
|
|
236185
236185
|
exports.isIdentifierStart = isIdentifierStart;
|
|
236186
|
-
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\
|
|
236187
|
-
var nonASCIIidentifierChars = "\
|
|
236186
|
+
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
236187
|
+
var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
236188
236188
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
236189
236189
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
236190
236190
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
236191
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1,
|
|
236192
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9,
|
|
236191
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
236192
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
236193
236193
|
function isInAstralSet(code, set2) {
|
|
236194
236194
|
let pos = 65536;
|
|
236195
236195
|
for (let i = 0, length = set2.length; i < length; i += 2) {
|
|
@@ -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.25.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.25.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.25.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.25.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
|
|
@@ -236970,9 +236970,9 @@ var require_chalk = __commonJS({
|
|
|
236970
236970
|
}
|
|
236971
236971
|
});
|
|
236972
236972
|
|
|
236973
|
-
// ../../node_modules/.pnpm/@babel+highlight@7.
|
|
236973
|
+
// ../../node_modules/.pnpm/@babel+highlight@7.25.7/node_modules/@babel/highlight/lib/index.js
|
|
236974
236974
|
var require_lib5 = __commonJS({
|
|
236975
|
-
"../../node_modules/.pnpm/@babel+highlight@7.
|
|
236975
|
+
"../../node_modules/.pnpm/@babel+highlight@7.25.7/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
236976
236976
|
"use strict";
|
|
236977
236977
|
Object.defineProperty(exports, "__esModule", {
|
|
236978
236978
|
value: true
|
|
@@ -237114,9 +237114,9 @@ var require_lib5 = __commonJS({
|
|
|
237114
237114
|
}
|
|
237115
237115
|
});
|
|
237116
237116
|
|
|
237117
|
-
// ../../node_modules/.pnpm/@babel+code-frame@7.
|
|
237117
|
+
// ../../node_modules/.pnpm/@babel+code-frame@7.25.7/node_modules/@babel/code-frame/lib/index.js
|
|
237118
237118
|
var require_lib6 = __commonJS({
|
|
237119
|
-
"../../node_modules/.pnpm/@babel+code-frame@7.
|
|
237119
|
+
"../../node_modules/.pnpm/@babel+code-frame@7.25.7/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
237120
237120
|
"use strict";
|
|
237121
237121
|
Object.defineProperty(exports, "__esModule", {
|
|
237122
237122
|
value: true
|
|
@@ -283245,6 +283245,13 @@ var state = {
|
|
|
283245
283245
|
"status": {
|
|
283246
283246
|
"in": "query",
|
|
283247
283247
|
"type": "string",
|
|
283248
|
+
"enum": [
|
|
283249
|
+
"pending",
|
|
283250
|
+
"ignored",
|
|
283251
|
+
"processed",
|
|
283252
|
+
"failed",
|
|
283253
|
+
"scheduled"
|
|
283254
|
+
],
|
|
283248
283255
|
"description": "Filter by status. Allowed values: pending, ignored, processed, failed."
|
|
283249
283256
|
}
|
|
283250
283257
|
},
|
|
@@ -283927,7 +283934,8 @@ var state = {
|
|
|
283927
283934
|
"user",
|
|
283928
283935
|
"bot",
|
|
283929
283936
|
"integration",
|
|
283930
|
-
"task"
|
|
283937
|
+
"task",
|
|
283938
|
+
"workflow"
|
|
283931
283939
|
]
|
|
283932
283940
|
},
|
|
283933
283941
|
"id": {
|
|
@@ -283994,7 +284002,8 @@ var state = {
|
|
|
283994
284002
|
"user",
|
|
283995
284003
|
"bot",
|
|
283996
284004
|
"integration",
|
|
283997
|
-
"task"
|
|
284005
|
+
"task",
|
|
284006
|
+
"workflow"
|
|
283998
284007
|
]
|
|
283999
284008
|
},
|
|
284000
284009
|
"id": {
|
|
@@ -284054,7 +284063,8 @@ var state = {
|
|
|
284054
284063
|
"user",
|
|
284055
284064
|
"bot",
|
|
284056
284065
|
"integration",
|
|
284057
|
-
"task"
|
|
284066
|
+
"task",
|
|
284067
|
+
"workflow"
|
|
284058
284068
|
]
|
|
284059
284069
|
},
|
|
284060
284070
|
"id": {
|
|
@@ -284127,7 +284137,8 @@ var state = {
|
|
|
284127
284137
|
"user",
|
|
284128
284138
|
"bot",
|
|
284129
284139
|
"integration",
|
|
284130
|
-
"task"
|
|
284140
|
+
"task",
|
|
284141
|
+
"workflow"
|
|
284131
284142
|
]
|
|
284132
284143
|
},
|
|
284133
284144
|
"id": {
|
|
@@ -284212,7 +284223,8 @@ var state = {
|
|
|
284212
284223
|
"user",
|
|
284213
284224
|
"bot",
|
|
284214
284225
|
"integration",
|
|
284215
|
-
"task"
|
|
284226
|
+
"task",
|
|
284227
|
+
"workflow"
|
|
284216
284228
|
]
|
|
284217
284229
|
},
|
|
284218
284230
|
"id": {
|
|
@@ -284664,6 +284676,393 @@ var state = {
|
|
|
284664
284676
|
}
|
|
284665
284677
|
}
|
|
284666
284678
|
},
|
|
284679
|
+
"createWorkflow": {
|
|
284680
|
+
"name": "createWorkflow",
|
|
284681
|
+
"description": "Creates a new [Workflow](#schema_workflow).",
|
|
284682
|
+
"method": "post",
|
|
284683
|
+
"path": "/v1/chat/workflows",
|
|
284684
|
+
"requestBody": {
|
|
284685
|
+
"description": "Workflow data",
|
|
284686
|
+
"schema": {
|
|
284687
|
+
"type": "object",
|
|
284688
|
+
"properties": {
|
|
284689
|
+
"name": {
|
|
284690
|
+
"type": "string",
|
|
284691
|
+
"description": "Name of the workflow"
|
|
284692
|
+
},
|
|
284693
|
+
"input": {
|
|
284694
|
+
"type": "object",
|
|
284695
|
+
"additionalProperties": true,
|
|
284696
|
+
"description": "Content related to the workflow"
|
|
284697
|
+
},
|
|
284698
|
+
"parentWorkflowId": {
|
|
284699
|
+
"type": "string",
|
|
284700
|
+
"description": "Parent workflow id is the parent workflow that created this workflow"
|
|
284701
|
+
},
|
|
284702
|
+
"conversationId": {
|
|
284703
|
+
"type": "string",
|
|
284704
|
+
"description": "Conversation id related to this workflow"
|
|
284705
|
+
},
|
|
284706
|
+
"userId": {
|
|
284707
|
+
"type": "string",
|
|
284708
|
+
"description": "Specific user related to this workflow"
|
|
284709
|
+
},
|
|
284710
|
+
"timeoutAt": {
|
|
284711
|
+
"type": "string",
|
|
284712
|
+
"format": "date-time",
|
|
284713
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
284714
|
+
},
|
|
284715
|
+
"tags": {
|
|
284716
|
+
"type": "object",
|
|
284717
|
+
"additionalProperties": {
|
|
284718
|
+
"type": "string",
|
|
284719
|
+
"maxLength": 500
|
|
284720
|
+
},
|
|
284721
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
284722
|
+
},
|
|
284723
|
+
"status": {
|
|
284724
|
+
"type": "string",
|
|
284725
|
+
"enum": [
|
|
284726
|
+
"pending",
|
|
284727
|
+
"in_progress"
|
|
284728
|
+
]
|
|
284729
|
+
},
|
|
284730
|
+
"eventId": {
|
|
284731
|
+
"type": "string",
|
|
284732
|
+
"description": "Event id must be specified if the workflow is created with the status in_progress"
|
|
284733
|
+
}
|
|
284734
|
+
},
|
|
284735
|
+
"required": [
|
|
284736
|
+
"name",
|
|
284737
|
+
"status"
|
|
284738
|
+
],
|
|
284739
|
+
"title": "createWorkflowBody",
|
|
284740
|
+
"additionalProperties": false
|
|
284741
|
+
}
|
|
284742
|
+
},
|
|
284743
|
+
"section": "workflow",
|
|
284744
|
+
"response": {
|
|
284745
|
+
"description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
|
|
284746
|
+
"status": 201,
|
|
284747
|
+
"schema": {
|
|
284748
|
+
"type": "object",
|
|
284749
|
+
"properties": {
|
|
284750
|
+
"workflow": {
|
|
284751
|
+
"$ref": "#/components/schemas/Workflow"
|
|
284752
|
+
}
|
|
284753
|
+
},
|
|
284754
|
+
"required": [
|
|
284755
|
+
"workflow"
|
|
284756
|
+
],
|
|
284757
|
+
"title": "createWorkflowResponse",
|
|
284758
|
+
"additionalProperties": false
|
|
284759
|
+
}
|
|
284760
|
+
},
|
|
284761
|
+
"parameters": {}
|
|
284762
|
+
},
|
|
284763
|
+
"getWorkflow": {
|
|
284764
|
+
"name": "getWorkflow",
|
|
284765
|
+
"description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
|
|
284766
|
+
"method": "get",
|
|
284767
|
+
"path": "/v1/chat/workflows/{id}",
|
|
284768
|
+
"parameters": {
|
|
284769
|
+
"id": {
|
|
284770
|
+
"in": "path",
|
|
284771
|
+
"type": "string",
|
|
284772
|
+
"description": "Workflow id"
|
|
284773
|
+
}
|
|
284774
|
+
},
|
|
284775
|
+
"section": "workflow",
|
|
284776
|
+
"response": {
|
|
284777
|
+
"description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
|
|
284778
|
+
"schema": {
|
|
284779
|
+
"type": "object",
|
|
284780
|
+
"properties": {
|
|
284781
|
+
"workflow": {
|
|
284782
|
+
"$ref": "#/components/schemas/Workflow"
|
|
284783
|
+
}
|
|
284784
|
+
},
|
|
284785
|
+
"required": [
|
|
284786
|
+
"workflow"
|
|
284787
|
+
],
|
|
284788
|
+
"title": "getWorkflowResponse",
|
|
284789
|
+
"additionalProperties": false
|
|
284790
|
+
}
|
|
284791
|
+
}
|
|
284792
|
+
},
|
|
284793
|
+
"updateWorkflow": {
|
|
284794
|
+
"name": "updateWorkflow",
|
|
284795
|
+
"description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
|
|
284796
|
+
"method": "put",
|
|
284797
|
+
"path": "/v1/chat/workflows/{id}",
|
|
284798
|
+
"parameters": {
|
|
284799
|
+
"id": {
|
|
284800
|
+
"in": "path",
|
|
284801
|
+
"type": "string",
|
|
284802
|
+
"description": "Workflow id"
|
|
284803
|
+
}
|
|
284804
|
+
},
|
|
284805
|
+
"requestBody": {
|
|
284806
|
+
"description": "Workflow data",
|
|
284807
|
+
"schema": {
|
|
284808
|
+
"type": "object",
|
|
284809
|
+
"properties": {
|
|
284810
|
+
"output": {
|
|
284811
|
+
"type": "object",
|
|
284812
|
+
"additionalProperties": true,
|
|
284813
|
+
"description": "Content related to the workflow"
|
|
284814
|
+
},
|
|
284815
|
+
"timeoutAt": {
|
|
284816
|
+
"type": "string",
|
|
284817
|
+
"format": "date-time",
|
|
284818
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
284819
|
+
},
|
|
284820
|
+
"status": {
|
|
284821
|
+
"type": "string",
|
|
284822
|
+
"enum": [
|
|
284823
|
+
"completed",
|
|
284824
|
+
"cancelled",
|
|
284825
|
+
"listening",
|
|
284826
|
+
"paused",
|
|
284827
|
+
"failed"
|
|
284828
|
+
],
|
|
284829
|
+
"description": "Status of the workflow"
|
|
284830
|
+
},
|
|
284831
|
+
"failureReason": {
|
|
284832
|
+
"type": "string",
|
|
284833
|
+
"description": "Reason why the workflow failed"
|
|
284834
|
+
},
|
|
284835
|
+
"tags": {
|
|
284836
|
+
"type": "object",
|
|
284837
|
+
"additionalProperties": {
|
|
284838
|
+
"type": "string",
|
|
284839
|
+
"maxLength": 500
|
|
284840
|
+
},
|
|
284841
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
284842
|
+
},
|
|
284843
|
+
"userId": {
|
|
284844
|
+
"type": "string",
|
|
284845
|
+
"description": "Specific user related to this workflow"
|
|
284846
|
+
}
|
|
284847
|
+
},
|
|
284848
|
+
"title": "updateWorkflowBody",
|
|
284849
|
+
"additionalProperties": false
|
|
284850
|
+
}
|
|
284851
|
+
},
|
|
284852
|
+
"section": "workflow",
|
|
284853
|
+
"response": {
|
|
284854
|
+
"description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
|
|
284855
|
+
"schema": {
|
|
284856
|
+
"type": "object",
|
|
284857
|
+
"properties": {
|
|
284858
|
+
"workflow": {
|
|
284859
|
+
"$ref": "#/components/schemas/Workflow"
|
|
284860
|
+
}
|
|
284861
|
+
},
|
|
284862
|
+
"required": [
|
|
284863
|
+
"workflow"
|
|
284864
|
+
],
|
|
284865
|
+
"title": "updateWorkflowResponse",
|
|
284866
|
+
"additionalProperties": false
|
|
284867
|
+
}
|
|
284868
|
+
}
|
|
284869
|
+
},
|
|
284870
|
+
"deleteWorkflow": {
|
|
284871
|
+
"name": "deleteWorkflow",
|
|
284872
|
+
"description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
|
|
284873
|
+
"method": "delete",
|
|
284874
|
+
"path": "/v1/chat/workflows/{id}",
|
|
284875
|
+
"parameters": {
|
|
284876
|
+
"id": {
|
|
284877
|
+
"in": "path",
|
|
284878
|
+
"type": "string",
|
|
284879
|
+
"description": "Workflow id"
|
|
284880
|
+
}
|
|
284881
|
+
},
|
|
284882
|
+
"section": "workflow",
|
|
284883
|
+
"response": {
|
|
284884
|
+
"description": "Returns the [Workflow](#schema_workflow) object that was deleted",
|
|
284885
|
+
"schema": {
|
|
284886
|
+
"type": "object",
|
|
284887
|
+
"title": "deleteWorkflowResponse",
|
|
284888
|
+
"additionalProperties": false
|
|
284889
|
+
}
|
|
284890
|
+
}
|
|
284891
|
+
},
|
|
284892
|
+
"listWorkflows": {
|
|
284893
|
+
"name": "listWorkflows",
|
|
284894
|
+
"description": "Retrieves a list of [Workflow](#schema_workflow) you've previously created. The workflows are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
|
|
284895
|
+
"method": "get",
|
|
284896
|
+
"path": "/v1/chat/workflows",
|
|
284897
|
+
"parameters": {
|
|
284898
|
+
"nextToken": {
|
|
284899
|
+
"in": "query",
|
|
284900
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
284901
|
+
"type": "string"
|
|
284902
|
+
},
|
|
284903
|
+
"tags": {
|
|
284904
|
+
"in": "query",
|
|
284905
|
+
"type": "object",
|
|
284906
|
+
"schema": {
|
|
284907
|
+
"type": "object",
|
|
284908
|
+
"additionalProperties": {
|
|
284909
|
+
"type": "string"
|
|
284910
|
+
}
|
|
284911
|
+
},
|
|
284912
|
+
"description": "Filter by tags"
|
|
284913
|
+
},
|
|
284914
|
+
"conversationId": {
|
|
284915
|
+
"in": "query",
|
|
284916
|
+
"type": "string",
|
|
284917
|
+
"description": "Conversation id"
|
|
284918
|
+
},
|
|
284919
|
+
"userId": {
|
|
284920
|
+
"in": "query",
|
|
284921
|
+
"type": "string",
|
|
284922
|
+
"description": "User id"
|
|
284923
|
+
},
|
|
284924
|
+
"parentWorkflowId": {
|
|
284925
|
+
"in": "query",
|
|
284926
|
+
"type": "string",
|
|
284927
|
+
"description": "Parent workflow id"
|
|
284928
|
+
},
|
|
284929
|
+
"statuses": {
|
|
284930
|
+
"in": "query",
|
|
284931
|
+
"type": "string[]",
|
|
284932
|
+
"description": "Status",
|
|
284933
|
+
"enum": [
|
|
284934
|
+
"pending",
|
|
284935
|
+
"in_progress",
|
|
284936
|
+
"failed",
|
|
284937
|
+
"completed",
|
|
284938
|
+
"listening",
|
|
284939
|
+
"paused",
|
|
284940
|
+
"timedout",
|
|
284941
|
+
"cancelled"
|
|
284942
|
+
]
|
|
284943
|
+
},
|
|
284944
|
+
"name": {
|
|
284945
|
+
"in": "query",
|
|
284946
|
+
"description": "Workflow name",
|
|
284947
|
+
"type": "string"
|
|
284948
|
+
}
|
|
284949
|
+
},
|
|
284950
|
+
"section": "workflow",
|
|
284951
|
+
"response": {
|
|
284952
|
+
"description": "Returns a list of [Workflow](#schema_workflow) objects",
|
|
284953
|
+
"schema": {
|
|
284954
|
+
"type": "object",
|
|
284955
|
+
"properties": {
|
|
284956
|
+
"workflows": {
|
|
284957
|
+
"type": "array",
|
|
284958
|
+
"items": {
|
|
284959
|
+
"$ref": "#/components/schemas/Workflow"
|
|
284960
|
+
}
|
|
284961
|
+
},
|
|
284962
|
+
"meta": {
|
|
284963
|
+
"type": "object",
|
|
284964
|
+
"properties": {
|
|
284965
|
+
"nextToken": {
|
|
284966
|
+
"type": "string",
|
|
284967
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
284968
|
+
}
|
|
284969
|
+
},
|
|
284970
|
+
"additionalProperties": false
|
|
284971
|
+
}
|
|
284972
|
+
},
|
|
284973
|
+
"required": [
|
|
284974
|
+
"workflows",
|
|
284975
|
+
"meta"
|
|
284976
|
+
],
|
|
284977
|
+
"title": "listWorkflowsResponse",
|
|
284978
|
+
"additionalProperties": false
|
|
284979
|
+
}
|
|
284980
|
+
}
|
|
284981
|
+
},
|
|
284982
|
+
"getOrCreateWorkflow": {
|
|
284983
|
+
"name": "getOrCreateWorkflow",
|
|
284984
|
+
"description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
|
|
284985
|
+
"method": "post",
|
|
284986
|
+
"path": "/v1/chat/workflows/get-or-create",
|
|
284987
|
+
"requestBody": {
|
|
284988
|
+
"description": "Workflow data",
|
|
284989
|
+
"schema": {
|
|
284990
|
+
"type": "object",
|
|
284991
|
+
"properties": {
|
|
284992
|
+
"name": {
|
|
284993
|
+
"type": "string",
|
|
284994
|
+
"description": "Name of the workflow"
|
|
284995
|
+
},
|
|
284996
|
+
"input": {
|
|
284997
|
+
"type": "object",
|
|
284998
|
+
"additionalProperties": true,
|
|
284999
|
+
"description": "Content related to the workflow"
|
|
285000
|
+
},
|
|
285001
|
+
"parentWorkflowId": {
|
|
285002
|
+
"type": "string",
|
|
285003
|
+
"description": "Parent workflow id is the parent workflow that created this workflow"
|
|
285004
|
+
},
|
|
285005
|
+
"conversationId": {
|
|
285006
|
+
"type": "string",
|
|
285007
|
+
"description": "Conversation id related to this workflow"
|
|
285008
|
+
},
|
|
285009
|
+
"userId": {
|
|
285010
|
+
"type": "string",
|
|
285011
|
+
"description": "Specific user related to this workflow"
|
|
285012
|
+
},
|
|
285013
|
+
"timeoutAt": {
|
|
285014
|
+
"type": "string",
|
|
285015
|
+
"format": "date-time",
|
|
285016
|
+
"description": "The timeout date where the workflow should be failed in the ISO 8601 format"
|
|
285017
|
+
},
|
|
285018
|
+
"tags": {
|
|
285019
|
+
"type": "object",
|
|
285020
|
+
"additionalProperties": {
|
|
285021
|
+
"type": "string",
|
|
285022
|
+
"maxLength": 500
|
|
285023
|
+
},
|
|
285024
|
+
"description": "Tags for the [Workflow](#schema_workflow)"
|
|
285025
|
+
},
|
|
285026
|
+
"status": {
|
|
285027
|
+
"type": "string",
|
|
285028
|
+
"enum": [
|
|
285029
|
+
"pending",
|
|
285030
|
+
"in_progress"
|
|
285031
|
+
]
|
|
285032
|
+
},
|
|
285033
|
+
"eventId": {
|
|
285034
|
+
"type": "string",
|
|
285035
|
+
"description": "Event id must be specified if the workflow is created with the status in_progress"
|
|
285036
|
+
}
|
|
285037
|
+
},
|
|
285038
|
+
"required": [
|
|
285039
|
+
"name",
|
|
285040
|
+
"status"
|
|
285041
|
+
],
|
|
285042
|
+
"title": "getOrCreateWorkflowBody",
|
|
285043
|
+
"additionalProperties": false
|
|
285044
|
+
}
|
|
285045
|
+
},
|
|
285046
|
+
"section": "workflow",
|
|
285047
|
+
"response": {
|
|
285048
|
+
"description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
|
|
285049
|
+
"status": 200,
|
|
285050
|
+
"schema": {
|
|
285051
|
+
"type": "object",
|
|
285052
|
+
"properties": {
|
|
285053
|
+
"workflow": {
|
|
285054
|
+
"$ref": "#/components/schemas/Workflow"
|
|
285055
|
+
}
|
|
285056
|
+
},
|
|
285057
|
+
"required": [
|
|
285058
|
+
"workflow"
|
|
285059
|
+
],
|
|
285060
|
+
"title": "getOrCreateWorkflowResponse",
|
|
285061
|
+
"additionalProperties": false
|
|
285062
|
+
}
|
|
285063
|
+
},
|
|
285064
|
+
"parameters": {}
|
|
285065
|
+
},
|
|
284667
285066
|
"trackAnalytics": {
|
|
284668
285067
|
"name": "trackAnalytics",
|
|
284669
285068
|
"description": "Add an event to the analytics",
|
|
@@ -294232,7 +294631,7 @@ var state = {
|
|
|
294232
294631
|
"title": "Botpress API",
|
|
294233
294632
|
"description": "API for Botpress Cloud",
|
|
294234
294633
|
"server": "https://api.botpress.cloud",
|
|
294235
|
-
"version": "0.43.
|
|
294634
|
+
"version": "0.43.2",
|
|
294236
294635
|
"prefix": "v1"
|
|
294237
294636
|
},
|
|
294238
294637
|
"errors": [
|
|
@@ -294379,6 +294778,9 @@ var state = {
|
|
|
294379
294778
|
"configureIntegrationBody": true,
|
|
294380
294779
|
"createTaskBody": true,
|
|
294381
294780
|
"updateTaskBody": true,
|
|
294781
|
+
"createWorkflowBody": true,
|
|
294782
|
+
"updateWorkflowBody": true,
|
|
294783
|
+
"getOrCreateWorkflowBody": true,
|
|
294382
294784
|
"trackAnalyticsBody": true,
|
|
294383
294785
|
"runVrlBody": true,
|
|
294384
294786
|
"updateAccountBody": true,
|
|
@@ -294455,6 +294857,12 @@ var state = {
|
|
|
294455
294857
|
"updateTaskResponse": true,
|
|
294456
294858
|
"deleteTaskResponse": true,
|
|
294457
294859
|
"listTasksResponse": true,
|
|
294860
|
+
"createWorkflowResponse": true,
|
|
294861
|
+
"getWorkflowResponse": true,
|
|
294862
|
+
"updateWorkflowResponse": true,
|
|
294863
|
+
"deleteWorkflowResponse": true,
|
|
294864
|
+
"listWorkflowsResponse": true,
|
|
294865
|
+
"getOrCreateWorkflowResponse": true,
|
|
294458
294866
|
"trackAnalyticsResponse": true,
|
|
294459
294867
|
"runVrlResponse": true,
|
|
294460
294868
|
"getAccountResponse": true,
|
|
@@ -294570,6 +294978,7 @@ var state = {
|
|
|
294570
294978
|
"Message": true,
|
|
294571
294979
|
"State": true,
|
|
294572
294980
|
"Task": true,
|
|
294981
|
+
"Workflow": true,
|
|
294573
294982
|
"Table": true,
|
|
294574
294983
|
"Column": true,
|
|
294575
294984
|
"Row": true,
|
|
@@ -296352,6 +296761,12 @@ var state = {
|
|
|
296352
296761
|
"maxLength": 36,
|
|
296353
296762
|
"description": "Id of the current [Task](#schema_task)"
|
|
296354
296763
|
},
|
|
296764
|
+
"currentWorkflowId": {
|
|
296765
|
+
"type": "string",
|
|
296766
|
+
"minLength": 28,
|
|
296767
|
+
"maxLength": 36,
|
|
296768
|
+
"description": "Id of the current [Workflow](#schema_workflow)"
|
|
296769
|
+
},
|
|
296355
296770
|
"createdAt": {
|
|
296356
296771
|
"type": "string",
|
|
296357
296772
|
"format": "date-time",
|
|
@@ -296386,7 +296801,7 @@ var state = {
|
|
|
296386
296801
|
"integration",
|
|
296387
296802
|
"tags"
|
|
296388
296803
|
],
|
|
296389
|
-
"description": "The
|
|
296804
|
+
"description": "The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.",
|
|
296390
296805
|
"additionalProperties": false
|
|
296391
296806
|
}
|
|
296392
296807
|
},
|
|
@@ -296440,7 +296855,8 @@ var state = {
|
|
|
296440
296855
|
"pending",
|
|
296441
296856
|
"processed",
|
|
296442
296857
|
"ignored",
|
|
296443
|
-
"failed"
|
|
296858
|
+
"failed",
|
|
296859
|
+
"scheduled"
|
|
296444
296860
|
]
|
|
296445
296861
|
},
|
|
296446
296862
|
"failureReason": {
|
|
@@ -296581,9 +296997,10 @@ var state = {
|
|
|
296581
296997
|
"user",
|
|
296582
296998
|
"bot",
|
|
296583
296999
|
"task",
|
|
296584
|
-
"integration"
|
|
297000
|
+
"integration",
|
|
297001
|
+
"workflow"
|
|
296585
297002
|
],
|
|
296586
|
-
"description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `
|
|
297003
|
+
"description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to"
|
|
296587
297004
|
},
|
|
296588
297005
|
"payload": {
|
|
296589
297006
|
"type": "object",
|
|
@@ -296710,6 +297127,112 @@ var state = {
|
|
|
296710
297127
|
"additionalProperties": false
|
|
296711
297128
|
}
|
|
296712
297129
|
},
|
|
297130
|
+
"Workflow": {
|
|
297131
|
+
"section": "workflow",
|
|
297132
|
+
"schema": {
|
|
297133
|
+
"type": "object",
|
|
297134
|
+
"properties": {
|
|
297135
|
+
"id": {
|
|
297136
|
+
"type": "string",
|
|
297137
|
+
"minLength": 28,
|
|
297138
|
+
"maxLength": 36,
|
|
297139
|
+
"description": "Id of the [Workflow](#schema_workflow)"
|
|
297140
|
+
},
|
|
297141
|
+
"name": {
|
|
297142
|
+
"type": "string",
|
|
297143
|
+
"maxLength": 200,
|
|
297144
|
+
"description": "Name of the workflow"
|
|
297145
|
+
},
|
|
297146
|
+
"status": {
|
|
297147
|
+
"type": "string",
|
|
297148
|
+
"enum": [
|
|
297149
|
+
"pending",
|
|
297150
|
+
"in_progress",
|
|
297151
|
+
"failed",
|
|
297152
|
+
"completed",
|
|
297153
|
+
"listening",
|
|
297154
|
+
"paused",
|
|
297155
|
+
"timedout",
|
|
297156
|
+
"cancelled"
|
|
297157
|
+
],
|
|
297158
|
+
"description": "Status of the [Workflow](#schema_workflow)"
|
|
297159
|
+
},
|
|
297160
|
+
"input": {
|
|
297161
|
+
"type": "object",
|
|
297162
|
+
"additionalProperties": true,
|
|
297163
|
+
"description": "Input provided to the [Workflow](#schema_workflow)"
|
|
297164
|
+
},
|
|
297165
|
+
"output": {
|
|
297166
|
+
"type": "object",
|
|
297167
|
+
"additionalProperties": true,
|
|
297168
|
+
"description": "Data returned by the [Workflow](#schema_workflow) output"
|
|
297169
|
+
},
|
|
297170
|
+
"parentWorkflowId": {
|
|
297171
|
+
"type": "string",
|
|
297172
|
+
"minLength": 28,
|
|
297173
|
+
"maxLength": 36,
|
|
297174
|
+
"description": "Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)"
|
|
297175
|
+
},
|
|
297176
|
+
"conversationId": {
|
|
297177
|
+
"type": "string",
|
|
297178
|
+
"minLength": 28,
|
|
297179
|
+
"maxLength": 36,
|
|
297180
|
+
"description": "Conversation id related to this [Workflow](#schema_workflow)"
|
|
297181
|
+
},
|
|
297182
|
+
"userId": {
|
|
297183
|
+
"type": "string",
|
|
297184
|
+
"minLength": 28,
|
|
297185
|
+
"maxLength": 36,
|
|
297186
|
+
"description": "User id related to this [Workflow](#schema_workflow)"
|
|
297187
|
+
},
|
|
297188
|
+
"createdAt": {
|
|
297189
|
+
"type": "string",
|
|
297190
|
+
"format": "date-time",
|
|
297191
|
+
"description": "Creation date of the [Workflow](#schema_workflow) in ISO 8601 format"
|
|
297192
|
+
},
|
|
297193
|
+
"updatedAt": {
|
|
297194
|
+
"type": "string",
|
|
297195
|
+
"format": "date-time",
|
|
297196
|
+
"description": "Updating date of the [Workflow](#schema_workflow) in ISO 8601 format"
|
|
297197
|
+
},
|
|
297198
|
+
"completedAt": {
|
|
297199
|
+
"type": "string",
|
|
297200
|
+
"format": "date-time",
|
|
297201
|
+
"description": "The date when the [Workflow](#schema_workflow) completed in ISO 8601 format"
|
|
297202
|
+
},
|
|
297203
|
+
"failureReason": {
|
|
297204
|
+
"type": "string",
|
|
297205
|
+
"maxLength": 2e3,
|
|
297206
|
+
"description": "If the [Workflow](#schema_workflow) fails this is the reason behind it"
|
|
297207
|
+
},
|
|
297208
|
+
"timeoutAt": {
|
|
297209
|
+
"type": "string",
|
|
297210
|
+
"format": "date-time",
|
|
297211
|
+
"description": "The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format"
|
|
297212
|
+
},
|
|
297213
|
+
"tags": {
|
|
297214
|
+
"type": "object",
|
|
297215
|
+
"additionalProperties": {
|
|
297216
|
+
"type": "string"
|
|
297217
|
+
},
|
|
297218
|
+
"description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them."
|
|
297219
|
+
}
|
|
297220
|
+
},
|
|
297221
|
+
"required": [
|
|
297222
|
+
"id",
|
|
297223
|
+
"name",
|
|
297224
|
+
"status",
|
|
297225
|
+
"input",
|
|
297226
|
+
"output",
|
|
297227
|
+
"createdAt",
|
|
297228
|
+
"updatedAt",
|
|
297229
|
+
"timeoutAt",
|
|
297230
|
+
"tags"
|
|
297231
|
+
],
|
|
297232
|
+
"description": "Workflow definition",
|
|
297233
|
+
"additionalProperties": false
|
|
297234
|
+
}
|
|
297235
|
+
},
|
|
296713
297236
|
"Table": {
|
|
296714
297237
|
"section": "tables",
|
|
296715
297238
|
"schema": {
|
|
@@ -297335,6 +297858,20 @@ var state = {
|
|
|
297335
297858
|
],
|
|
297336
297859
|
"schema": "Task"
|
|
297337
297860
|
},
|
|
297861
|
+
{
|
|
297862
|
+
"description": "",
|
|
297863
|
+
"title": "Workflow",
|
|
297864
|
+
"name": "workflow",
|
|
297865
|
+
"operations": [
|
|
297866
|
+
"createWorkflow",
|
|
297867
|
+
"getWorkflow",
|
|
297868
|
+
"updateWorkflow",
|
|
297869
|
+
"deleteWorkflow",
|
|
297870
|
+
"listWorkflows",
|
|
297871
|
+
"getOrCreateWorkflow"
|
|
297872
|
+
],
|
|
297873
|
+
"schema": "Workflow"
|
|
297874
|
+
},
|
|
297338
297875
|
{
|
|
297339
297876
|
"title": "Bot",
|
|
297340
297877
|
"description": "",
|