@botpress/api 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -198224,11 +198224,160 @@ var require_define_length = __commonJS({
198224
198224
  }
198225
198225
  });
198226
198226
 
198227
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/value/is.js
198228
+ var require_is6 = __commonJS({
198229
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/value/is.js"(exports, module2) {
198230
+ "use strict";
198231
+ var _undefined = void 0;
198232
+ module2.exports = function(value) {
198233
+ return value !== _undefined && value !== null;
198234
+ };
198235
+ }
198236
+ });
198237
+
198238
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/object/is.js
198239
+ var require_is7 = __commonJS({
198240
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/object/is.js"(exports, module2) {
198241
+ "use strict";
198242
+ var isValue = require_is6();
198243
+ var possibleTypes = { "object": true, "function": true, "undefined": true };
198244
+ module2.exports = function(value) {
198245
+ if (!isValue(value))
198246
+ return false;
198247
+ return hasOwnProperty.call(possibleTypes, typeof value);
198248
+ };
198249
+ }
198250
+ });
198251
+
198252
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/prototype/is.js
198253
+ var require_is8 = __commonJS({
198254
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/prototype/is.js"(exports, module2) {
198255
+ "use strict";
198256
+ var isObject3 = require_is7();
198257
+ module2.exports = function(value) {
198258
+ if (!isObject3(value))
198259
+ return false;
198260
+ try {
198261
+ if (!value.constructor)
198262
+ return false;
198263
+ return value.constructor.prototype === value;
198264
+ } catch (error2) {
198265
+ return false;
198266
+ }
198267
+ };
198268
+ }
198269
+ });
198270
+
198271
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/function/is.js
198272
+ var require_is9 = __commonJS({
198273
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/function/is.js"(exports, module2) {
198274
+ "use strict";
198275
+ var isPrototype = require_is8();
198276
+ module2.exports = function(value) {
198277
+ if (typeof value !== "function")
198278
+ return false;
198279
+ if (!hasOwnProperty.call(value, "length"))
198280
+ return false;
198281
+ try {
198282
+ if (typeof value.length !== "number")
198283
+ return false;
198284
+ if (typeof value.call !== "function")
198285
+ return false;
198286
+ if (typeof value.apply !== "function")
198287
+ return false;
198288
+ } catch (error2) {
198289
+ return false;
198290
+ }
198291
+ return !isPrototype(value);
198292
+ };
198293
+ }
198294
+ });
198295
+
198296
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/plain-function/is.js
198297
+ var require_is10 = __commonJS({
198298
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/plain-function/is.js"(exports, module2) {
198299
+ "use strict";
198300
+ var isFunction2 = require_is9();
198301
+ var classRe = /^\s*class[\s{/}]/;
198302
+ var functionToString = Function.prototype.toString;
198303
+ module2.exports = function(value) {
198304
+ if (!isFunction2(value))
198305
+ return false;
198306
+ if (classRe.test(functionToString.call(value)))
198307
+ return false;
198308
+ return true;
198309
+ };
198310
+ }
198311
+ });
198312
+
198313
+ // ../../node_modules/.pnpm/d@1.0.2/node_modules/d/index.js
198314
+ var require_d2 = __commonJS({
198315
+ "../../node_modules/.pnpm/d@1.0.2/node_modules/d/index.js"(exports, module2) {
198316
+ "use strict";
198317
+ var isValue = require_is6();
198318
+ var isPlainFunction = require_is10();
198319
+ var assign = require_assign();
198320
+ var normalizeOpts = require_normalize_options();
198321
+ var contains = require_contains();
198322
+ var d = module2.exports = function(dscr, value) {
198323
+ var c2, e, w, options, desc;
198324
+ if (arguments.length < 2 || typeof dscr !== "string") {
198325
+ options = value;
198326
+ value = dscr;
198327
+ dscr = null;
198328
+ } else {
198329
+ options = arguments[2];
198330
+ }
198331
+ if (isValue(dscr)) {
198332
+ c2 = contains.call(dscr, "c");
198333
+ e = contains.call(dscr, "e");
198334
+ w = contains.call(dscr, "w");
198335
+ } else {
198336
+ c2 = w = true;
198337
+ e = false;
198338
+ }
198339
+ desc = { value, configurable: c2, enumerable: e, writable: w };
198340
+ return !options ? desc : assign(normalizeOpts(options), desc);
198341
+ };
198342
+ d.gs = function(dscr, get, set2) {
198343
+ var c2, e, options, desc;
198344
+ if (typeof dscr !== "string") {
198345
+ options = set2;
198346
+ set2 = get;
198347
+ get = dscr;
198348
+ dscr = null;
198349
+ } else {
198350
+ options = arguments[3];
198351
+ }
198352
+ if (!isValue(get)) {
198353
+ get = void 0;
198354
+ } else if (!isPlainFunction(get)) {
198355
+ options = get;
198356
+ get = set2 = void 0;
198357
+ } else if (!isValue(set2)) {
198358
+ set2 = void 0;
198359
+ } else if (!isPlainFunction(set2)) {
198360
+ options = set2;
198361
+ set2 = void 0;
198362
+ }
198363
+ if (isValue(dscr)) {
198364
+ c2 = contains.call(dscr, "c");
198365
+ e = contains.call(dscr, "e");
198366
+ } else {
198367
+ c2 = true;
198368
+ e = false;
198369
+ }
198370
+ desc = { get, set: set2, configurable: c2, enumerable: e };
198371
+ return !options ? desc : assign(normalizeOpts(options), desc);
198372
+ };
198373
+ }
198374
+ });
198375
+
198227
198376
  // ../../node_modules/.pnpm/event-emitter@0.3.5/node_modules/event-emitter/index.js
198228
198377
  var require_event_emitter = __commonJS({
198229
198378
  "../../node_modules/.pnpm/event-emitter@0.3.5/node_modules/event-emitter/index.js"(exports, module2) {
198230
198379
  "use strict";
198231
- var d = require_d();
198380
+ var d = require_d2();
198232
198381
  var callable = require_valid_callable();
198233
198382
  var apply = Function.prototype.apply;
198234
198383
  var call = Function.prototype.call;
@@ -198489,7 +198638,7 @@ var require_validate_symbol = __commonJS({
198489
198638
  var require_generate_name = __commonJS({
198490
198639
  "../../node_modules/.pnpm/es6-symbol@3.1.3/node_modules/es6-symbol/lib/private/generate-name.js"(exports, module2) {
198491
198640
  "use strict";
198492
- var d = require_d();
198641
+ var d = require_d2();
198493
198642
  var create = Object.create;
198494
198643
  var defineProperty = Object.defineProperty;
198495
198644
  var objPrototype = Object.prototype;
@@ -198521,7 +198670,7 @@ var require_generate_name = __commonJS({
198521
198670
  var require_standard_symbols = __commonJS({
198522
198671
  "../../node_modules/.pnpm/es6-symbol@3.1.3/node_modules/es6-symbol/lib/private/setup/standard-symbols.js"(exports, module2) {
198523
198672
  "use strict";
198524
- var d = require_d();
198673
+ var d = require_d2();
198525
198674
  var NativeSymbol = require_global_this().Symbol;
198526
198675
  module2.exports = function(SymbolPolyfill) {
198527
198676
  return Object.defineProperties(SymbolPolyfill, {
@@ -198560,7 +198709,7 @@ var require_standard_symbols = __commonJS({
198560
198709
  var require_symbol_registry = __commonJS({
198561
198710
  "../../node_modules/.pnpm/es6-symbol@3.1.3/node_modules/es6-symbol/lib/private/setup/symbol-registry.js"(exports, module2) {
198562
198711
  "use strict";
198563
- var d = require_d();
198712
+ var d = require_d2();
198564
198713
  var validateSymbol = require_validate_symbol();
198565
198714
  var registry = /* @__PURE__ */ Object.create(null);
198566
198715
  module2.exports = function(SymbolPolyfill) {
@@ -198588,7 +198737,7 @@ var require_symbol_registry = __commonJS({
198588
198737
  var require_polyfill = __commonJS({
198589
198738
  "../../node_modules/.pnpm/es6-symbol@3.1.3/node_modules/es6-symbol/polyfill.js"(exports, module2) {
198590
198739
  "use strict";
198591
- var d = require_d();
198740
+ var d = require_d2();
198592
198741
  var validateSymbol = require_validate_symbol();
198593
198742
  var NativeSymbol = require_global_this().Symbol;
198594
198743
  var generateName = require_generate_name();
@@ -201239,7 +201388,7 @@ var require_is_array_like = __commonJS({
201239
201388
  });
201240
201389
 
201241
201390
  // ../../node_modules/.pnpm/es5-ext@0.10.64/node_modules/es5-ext/iterable/is.js
201242
- var require_is6 = __commonJS({
201391
+ var require_is11 = __commonJS({
201243
201392
  "../../node_modules/.pnpm/es5-ext@0.10.64/node_modules/es5-ext/iterable/is.js"(exports, module2) {
201244
201393
  "use strict";
201245
201394
  var iteratorSymbol = require_es6_symbol().iterator;
@@ -201260,7 +201409,7 @@ var require_validate_object = __commonJS({
201260
201409
  "../../node_modules/.pnpm/es5-ext@0.10.64/node_modules/es5-ext/iterable/validate-object.js"(exports, module2) {
201261
201410
  "use strict";
201262
201411
  var isObject3 = require_is_object();
201263
- var is = require_is6();
201412
+ var is = require_is11();
201264
201413
  module2.exports = function(value) {
201265
201414
  if (is(value) && isObject3(value))
201266
201415
  return value;
@@ -201636,16 +201785,172 @@ var require_clear = __commonJS({
201636
201785
  }
201637
201786
  });
201638
201787
 
201639
- // ../../node_modules/.pnpm/type@1.2.0/node_modules/type/plain-function/ensure.js
201788
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/string/coerce.js
201789
+ var require_coerce2 = __commonJS({
201790
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/string/coerce.js"(exports, module2) {
201791
+ "use strict";
201792
+ var isValue = require_is6();
201793
+ var isObject3 = require_is7();
201794
+ var objectToString = Object.prototype.toString;
201795
+ module2.exports = function(value) {
201796
+ if (!isValue(value))
201797
+ return null;
201798
+ if (isObject3(value)) {
201799
+ var valueToString = value.toString;
201800
+ if (typeof valueToString !== "function")
201801
+ return null;
201802
+ if (valueToString === objectToString)
201803
+ return null;
201804
+ }
201805
+ try {
201806
+ return "" + value;
201807
+ } catch (error2) {
201808
+ return null;
201809
+ }
201810
+ };
201811
+ }
201812
+ });
201813
+
201814
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/safe-to-string.js
201815
+ var require_safe_to_string3 = __commonJS({
201816
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/safe-to-string.js"(exports, module2) {
201817
+ "use strict";
201818
+ module2.exports = function(value) {
201819
+ try {
201820
+ return value.toString();
201821
+ } catch (error2) {
201822
+ try {
201823
+ return String(value);
201824
+ } catch (error22) {
201825
+ return null;
201826
+ }
201827
+ }
201828
+ };
201829
+ }
201830
+ });
201831
+
201832
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/to-short-string.js
201833
+ var require_to_short_string2 = __commonJS({
201834
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/to-short-string.js"(exports, module2) {
201835
+ "use strict";
201836
+ var safeToString = require_safe_to_string3();
201837
+ var reNewLine = /[\n\r\u2028\u2029]/g;
201838
+ module2.exports = function(value) {
201839
+ var string = safeToString(value);
201840
+ if (string === null)
201841
+ return "<Non-coercible to string value>";
201842
+ if (string.length > 100)
201843
+ string = string.slice(0, 99) + "\u2026";
201844
+ string = string.replace(reNewLine, function(char) {
201845
+ switch (char) {
201846
+ case "\n":
201847
+ return "\\n";
201848
+ case "\r":
201849
+ return "\\r";
201850
+ case "\u2028":
201851
+ return "\\u2028";
201852
+ case "\u2029":
201853
+ return "\\u2029";
201854
+ default:
201855
+ throw new Error("Unexpected character");
201856
+ }
201857
+ });
201858
+ return string;
201859
+ };
201860
+ }
201861
+ });
201862
+
201863
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/resolve-error-message.js
201864
+ var require_resolve_error_message = __commonJS({
201865
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/resolve-error-message.js"(exports, module2) {
201866
+ "use strict";
201867
+ var stringCoerce = require_coerce2();
201868
+ var toShortString = require_to_short_string2();
201869
+ module2.exports = function(errorMessage, value, inputOptions) {
201870
+ if (inputOptions && inputOptions.errorMessage) {
201871
+ errorMessage = stringCoerce(inputOptions.errorMessage);
201872
+ }
201873
+ var valueInsertIndex = errorMessage.indexOf("%v");
201874
+ var valueToken = valueInsertIndex > -1 ? toShortString(value) : null;
201875
+ if (inputOptions && inputOptions.name) {
201876
+ var nameInsertIndex = errorMessage.indexOf("%n");
201877
+ if (nameInsertIndex > -1) {
201878
+ if (valueInsertIndex > -1) {
201879
+ var firstToken, secondToken, firstInsertIndex, secondInsertIndex;
201880
+ if (nameInsertIndex > valueInsertIndex) {
201881
+ firstToken = valueToken;
201882
+ firstInsertIndex = valueInsertIndex;
201883
+ secondToken = inputOptions.name;
201884
+ secondInsertIndex = nameInsertIndex;
201885
+ } else {
201886
+ firstToken = inputOptions.name;
201887
+ firstInsertIndex = nameInsertIndex;
201888
+ secondToken = valueToken;
201889
+ secondInsertIndex = valueInsertIndex;
201890
+ }
201891
+ return errorMessage.slice(0, firstInsertIndex) + firstToken + errorMessage.slice(firstInsertIndex + 2, secondInsertIndex) + secondToken + errorMessage.slice(secondInsertIndex + 2);
201892
+ }
201893
+ return errorMessage.slice(0, nameInsertIndex) + inputOptions.name + errorMessage.slice(nameInsertIndex + 2);
201894
+ }
201895
+ }
201896
+ if (valueInsertIndex > -1) {
201897
+ return errorMessage.slice(0, valueInsertIndex) + valueToken + errorMessage.slice(valueInsertIndex + 2);
201898
+ }
201899
+ return errorMessage;
201900
+ };
201901
+ }
201902
+ });
201903
+
201904
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/resolve-exception.js
201905
+ var require_resolve_exception2 = __commonJS({
201906
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/lib/resolve-exception.js"(exports, module2) {
201907
+ "use strict";
201908
+ var isValue = require_is6();
201909
+ var resolveErrorMessage = require_resolve_error_message();
201910
+ module2.exports = function(value, defaultMessage, inputOptions) {
201911
+ if (inputOptions && !isValue(value)) {
201912
+ if ("default" in inputOptions)
201913
+ return inputOptions["default"];
201914
+ if (inputOptions.isOptional)
201915
+ return null;
201916
+ }
201917
+ var ErrorConstructor = inputOptions && inputOptions.Error || TypeError;
201918
+ var error2 = new ErrorConstructor(resolveErrorMessage(defaultMessage, value, inputOptions));
201919
+ if (inputOptions && inputOptions.errorCode)
201920
+ error2.code = inputOptions.errorCode;
201921
+ throw error2;
201922
+ };
201923
+ }
201924
+ });
201925
+
201926
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/value/ensure.js
201640
201927
  var require_ensure2 = __commonJS({
201641
- "../../node_modules/.pnpm/type@1.2.0/node_modules/type/plain-function/ensure.js"(exports, module2) {
201928
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/value/ensure.js"(exports, module2) {
201642
201929
  "use strict";
201643
- var resolveException = require_resolve_exception();
201644
- var is = require_is5();
201930
+ var resolveException = require_resolve_exception2();
201931
+ var is = require_is6();
201645
201932
  module2.exports = function(value) {
201646
201933
  if (is(value))
201647
201934
  return value;
201648
- return resolveException(value, "%v is not a plain function", arguments[1]);
201935
+ var options = arguments[1];
201936
+ var errorMessage = options && options.name ? "Expected a value for %n, received %v" : "Cannot use %v";
201937
+ return resolveException(value, errorMessage, options);
201938
+ };
201939
+ }
201940
+ });
201941
+
201942
+ // ../../node_modules/.pnpm/type@2.7.2/node_modules/type/plain-function/ensure.js
201943
+ var require_ensure3 = __commonJS({
201944
+ "../../node_modules/.pnpm/type@2.7.2/node_modules/type/plain-function/ensure.js"(exports, module2) {
201945
+ "use strict";
201946
+ var resolveException = require_resolve_exception2();
201947
+ var is = require_is10();
201948
+ module2.exports = function(value) {
201949
+ if (is(value))
201950
+ return value;
201951
+ var options = arguments[1];
201952
+ var errorMessage = options && options.name ? "Expected a plain function for %n, received %v" : "%v is not a plain function";
201953
+ return resolveException(value, errorMessage, options);
201649
201954
  };
201650
201955
  }
201651
201956
  });
@@ -201675,13 +201980,13 @@ var require_copy = __commonJS({
201675
201980
  }
201676
201981
  });
201677
201982
 
201678
- // ../../node_modules/.pnpm/d@1.0.1/node_modules/d/auto-bind.js
201983
+ // ../../node_modules/.pnpm/d@1.0.2/node_modules/d/auto-bind.js
201679
201984
  var require_auto_bind = __commonJS({
201680
- "../../node_modules/.pnpm/d@1.0.1/node_modules/d/auto-bind.js"(exports, module2) {
201985
+ "../../node_modules/.pnpm/d@1.0.2/node_modules/d/auto-bind.js"(exports, module2) {
201681
201986
  "use strict";
201682
- var isValue = require_is();
201683
- var ensureValue = require_ensure();
201684
- var ensurePlainFunction = require_ensure2();
201987
+ var isValue = require_is6();
201988
+ var ensureValue = require_ensure2();
201989
+ var ensurePlainFunction = require_ensure3();
201685
201990
  var copy = require_copy();
201686
201991
  var normalizeOptions = require_normalize_options();
201687
201992
  var map2 = require_map();
@@ -201722,7 +202027,7 @@ var require_es6_iterator = __commonJS({
201722
202027
  var assign = require_assign();
201723
202028
  var callable = require_valid_callable();
201724
202029
  var value = require_valid_value();
201725
- var d = require_d();
202030
+ var d = require_d2();
201726
202031
  var autoBind = require_auto_bind();
201727
202032
  var Symbol2 = require_es6_symbol();
201728
202033
  var defineProperty = Object.defineProperty;
@@ -201841,7 +202146,7 @@ var require_array = __commonJS({
201841
202146
  "use strict";
201842
202147
  var setPrototypeOf = require_set_prototype_of();
201843
202148
  var contains = require_contains();
201844
- var d = require_d();
202149
+ var d = require_d2();
201845
202150
  var Symbol2 = require_es6_symbol();
201846
202151
  var Iterator = require_es6_iterator();
201847
202152
  var defineProperty = Object.defineProperty;
@@ -201881,7 +202186,7 @@ var require_string = __commonJS({
201881
202186
  "../../node_modules/.pnpm/es6-iterator@2.0.3/node_modules/es6-iterator/string.js"(exports, module2) {
201882
202187
  "use strict";
201883
202188
  var setPrototypeOf = require_set_prototype_of();
201884
- var d = require_d();
202189
+ var d = require_d2();
201885
202190
  var Symbol2 = require_es6_symbol();
201886
202191
  var Iterator = require_es6_iterator();
201887
202192
  var defineProperty = Object.defineProperty;
@@ -258270,12 +258575,115 @@ var require_get_intrinsic = __commonJS({
258270
258575
  }
258271
258576
  });
258272
258577
 
258273
- // ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
258578
+ // ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
258579
+ var require_es_object_atoms = __commonJS({
258580
+ "../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module2) {
258581
+ "use strict";
258582
+ module2.exports = Object;
258583
+ }
258584
+ });
258585
+
258586
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
258587
+ var require_abs = __commonJS({
258588
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module2) {
258589
+ "use strict";
258590
+ module2.exports = Math.abs;
258591
+ }
258592
+ });
258593
+
258594
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
258595
+ var require_floor = __commonJS({
258596
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module2) {
258597
+ "use strict";
258598
+ module2.exports = Math.floor;
258599
+ }
258600
+ });
258601
+
258602
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
258603
+ var require_max2 = __commonJS({
258604
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module2) {
258605
+ "use strict";
258606
+ module2.exports = Math.max;
258607
+ }
258608
+ });
258609
+
258610
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
258611
+ var require_min = __commonJS({
258612
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module2) {
258613
+ "use strict";
258614
+ module2.exports = Math.min;
258615
+ }
258616
+ });
258617
+
258618
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
258619
+ var require_pow = __commonJS({
258620
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module2) {
258621
+ "use strict";
258622
+ module2.exports = Math.pow;
258623
+ }
258624
+ });
258625
+
258626
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
258627
+ var require_round = __commonJS({
258628
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module2) {
258629
+ "use strict";
258630
+ module2.exports = Math.round;
258631
+ }
258632
+ });
258633
+
258634
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
258635
+ var require_isNaN = __commonJS({
258636
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module2) {
258637
+ "use strict";
258638
+ module2.exports = Number.isNaN || function isNaN2(a) {
258639
+ return a !== a;
258640
+ };
258641
+ }
258642
+ });
258643
+
258644
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
258645
+ var require_sign2 = __commonJS({
258646
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module2) {
258647
+ "use strict";
258648
+ var $isNaN = require_isNaN();
258649
+ module2.exports = function sign(number) {
258650
+ if ($isNaN(number) || number === 0) {
258651
+ return number;
258652
+ }
258653
+ return number < 0 ? -1 : 1;
258654
+ };
258655
+ }
258656
+ });
258657
+
258658
+ // ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
258659
+ var require_gOPD = __commonJS({
258660
+ "../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module2) {
258661
+ "use strict";
258662
+ module2.exports = Object.getOwnPropertyDescriptor;
258663
+ }
258664
+ });
258665
+
258666
+ // ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
258667
+ var require_gopd = __commonJS({
258668
+ "../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module2) {
258669
+ "use strict";
258670
+ var $gOPD = require_gOPD();
258671
+ if ($gOPD) {
258672
+ try {
258673
+ $gOPD([], "length");
258674
+ } catch (e) {
258675
+ $gOPD = null;
258676
+ }
258677
+ }
258678
+ module2.exports = $gOPD;
258679
+ }
258680
+ });
258681
+
258682
+ // ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
258274
258683
  var require_es_define_property = __commonJS({
258275
- "../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module2) {
258684
+ "../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module2) {
258276
258685
  "use strict";
258277
- var GetIntrinsic = require_get_intrinsic();
258278
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
258686
+ var $defineProperty = Object.defineProperty || false;
258279
258687
  if ($defineProperty) {
258280
258688
  try {
258281
258689
  $defineProperty({}, "a", { value: 1 });
@@ -258287,20 +258695,533 @@ var require_es_define_property = __commonJS({
258287
258695
  }
258288
258696
  });
258289
258697
 
258290
- // ../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
258291
- var require_gopd = __commonJS({
258292
- "../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports, module2) {
258698
+ // ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
258699
+ var require_shams2 = __commonJS({
258700
+ "../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module2) {
258293
258701
  "use strict";
258294
- var GetIntrinsic = require_get_intrinsic();
258295
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
258296
- if ($gOPD) {
258702
+ module2.exports = function hasSymbols() {
258703
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
258704
+ return false;
258705
+ }
258706
+ if (typeof Symbol.iterator === "symbol") {
258707
+ return true;
258708
+ }
258709
+ var obj = {};
258710
+ var sym = Symbol("test");
258711
+ var symObj = Object(sym);
258712
+ if (typeof sym === "string") {
258713
+ return false;
258714
+ }
258715
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
258716
+ return false;
258717
+ }
258718
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
258719
+ return false;
258720
+ }
258721
+ var symVal = 42;
258722
+ obj[sym] = symVal;
258723
+ for (var _8 in obj) {
258724
+ return false;
258725
+ }
258726
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
258727
+ return false;
258728
+ }
258729
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
258730
+ return false;
258731
+ }
258732
+ var syms = Object.getOwnPropertySymbols(obj);
258733
+ if (syms.length !== 1 || syms[0] !== sym) {
258734
+ return false;
258735
+ }
258736
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
258737
+ return false;
258738
+ }
258739
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
258740
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
258741
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
258742
+ return false;
258743
+ }
258744
+ }
258745
+ return true;
258746
+ };
258747
+ }
258748
+ });
258749
+
258750
+ // ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
258751
+ var require_has_symbols2 = __commonJS({
258752
+ "../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module2) {
258753
+ "use strict";
258754
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
258755
+ var hasSymbolSham = require_shams2();
258756
+ module2.exports = function hasNativeSymbols() {
258757
+ if (typeof origSymbol !== "function") {
258758
+ return false;
258759
+ }
258760
+ if (typeof Symbol !== "function") {
258761
+ return false;
258762
+ }
258763
+ if (typeof origSymbol("foo") !== "symbol") {
258764
+ return false;
258765
+ }
258766
+ if (typeof Symbol("bar") !== "symbol") {
258767
+ return false;
258768
+ }
258769
+ return hasSymbolSham();
258770
+ };
258771
+ }
258772
+ });
258773
+
258774
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
258775
+ var require_Reflect_getPrototypeOf = __commonJS({
258776
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module2) {
258777
+ "use strict";
258778
+ module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
258779
+ }
258780
+ });
258781
+
258782
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
258783
+ var require_Object_getPrototypeOf = __commonJS({
258784
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module2) {
258785
+ "use strict";
258786
+ var $Object = require_es_object_atoms();
258787
+ module2.exports = $Object.getPrototypeOf || null;
258788
+ }
258789
+ });
258790
+
258791
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
258792
+ var require_functionCall = __commonJS({
258793
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module2) {
258794
+ "use strict";
258795
+ module2.exports = Function.prototype.call;
258796
+ }
258797
+ });
258798
+
258799
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
258800
+ var require_functionApply = __commonJS({
258801
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module2) {
258802
+ "use strict";
258803
+ module2.exports = Function.prototype.apply;
258804
+ }
258805
+ });
258806
+
258807
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
258808
+ var require_reflectApply = __commonJS({
258809
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module2) {
258810
+ "use strict";
258811
+ module2.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
258812
+ }
258813
+ });
258814
+
258815
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
258816
+ var require_actualApply = __commonJS({
258817
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module2) {
258818
+ "use strict";
258819
+ var bind2 = require_function_bind();
258820
+ var $apply = require_functionApply();
258821
+ var $call = require_functionCall();
258822
+ var $reflectApply = require_reflectApply();
258823
+ module2.exports = $reflectApply || bind2.call($call, $apply);
258824
+ }
258825
+ });
258826
+
258827
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
258828
+ var require_call_bind_apply_helpers = __commonJS({
258829
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module2) {
258830
+ "use strict";
258831
+ var bind2 = require_function_bind();
258832
+ var $TypeError = require_type2();
258833
+ var $call = require_functionCall();
258834
+ var $actualApply = require_actualApply();
258835
+ module2.exports = function callBindBasic(args) {
258836
+ if (args.length < 1 || typeof args[0] !== "function") {
258837
+ throw new $TypeError("a function is required");
258838
+ }
258839
+ return $actualApply(bind2, $call, args);
258840
+ };
258841
+ }
258842
+ });
258843
+
258844
+ // ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
258845
+ var require_get5 = __commonJS({
258846
+ "../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module2) {
258847
+ "use strict";
258848
+ var callBind = require_call_bind_apply_helpers();
258849
+ var gOPD = require_gopd();
258850
+ var hasProtoAccessor;
258851
+ try {
258852
+ hasProtoAccessor = [].__proto__ === Array.prototype;
258853
+ } catch (e) {
258854
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
258855
+ throw e;
258856
+ }
258857
+ }
258858
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
258859
+ var $Object = Object;
258860
+ var $getPrototypeOf = $Object.getPrototypeOf;
258861
+ module2.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
258862
+ return $getPrototypeOf(value == null ? value : $Object(value));
258863
+ } : false;
258864
+ }
258865
+ });
258866
+
258867
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
258868
+ var require_get_proto = __commonJS({
258869
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module2) {
258870
+ "use strict";
258871
+ var reflectGetProto = require_Reflect_getPrototypeOf();
258872
+ var originalGetProto = require_Object_getPrototypeOf();
258873
+ var getDunderProto = require_get5();
258874
+ module2.exports = reflectGetProto ? function getProto(O) {
258875
+ return reflectGetProto(O);
258876
+ } : originalGetProto ? function getProto(O) {
258877
+ if (!O || typeof O !== "object" && typeof O !== "function") {
258878
+ throw new TypeError("getProto: not an object");
258879
+ }
258880
+ return originalGetProto(O);
258881
+ } : getDunderProto ? function getProto(O) {
258882
+ return getDunderProto(O);
258883
+ } : null;
258884
+ }
258885
+ });
258886
+
258887
+ // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
258888
+ var require_hasown2 = __commonJS({
258889
+ "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
258890
+ "use strict";
258891
+ var call = Function.prototype.call;
258892
+ var $hasOwn = Object.prototype.hasOwnProperty;
258893
+ var bind2 = require_function_bind();
258894
+ module2.exports = bind2.call(call, $hasOwn);
258895
+ }
258896
+ });
258897
+
258898
+ // ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
258899
+ var require_get_intrinsic2 = __commonJS({
258900
+ "../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module2) {
258901
+ "use strict";
258902
+ var undefined2;
258903
+ var $Object = require_es_object_atoms();
258904
+ var $Error = require_es_errors();
258905
+ var $EvalError = require_eval();
258906
+ var $RangeError = require_range();
258907
+ var $ReferenceError = require_ref4();
258908
+ var $SyntaxError = require_syntax();
258909
+ var $TypeError = require_type2();
258910
+ var $URIError = require_uri2();
258911
+ var abs = require_abs();
258912
+ var floor = require_floor();
258913
+ var max2 = require_max2();
258914
+ var min2 = require_min();
258915
+ var pow = require_pow();
258916
+ var round = require_round();
258917
+ var sign = require_sign2();
258918
+ var $Function = Function;
258919
+ var getEvalledConstructor = function(expressionSyntax) {
258297
258920
  try {
258298
- $gOPD([], "length");
258921
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
258299
258922
  } catch (e) {
258300
- $gOPD = null;
258923
+ }
258924
+ };
258925
+ var $gOPD = require_gopd();
258926
+ var $defineProperty = require_es_define_property();
258927
+ var throwTypeError = function() {
258928
+ throw new $TypeError();
258929
+ };
258930
+ var ThrowTypeError = $gOPD ? function() {
258931
+ try {
258932
+ arguments.callee;
258933
+ return throwTypeError;
258934
+ } catch (calleeThrows) {
258935
+ try {
258936
+ return $gOPD(arguments, "callee").get;
258937
+ } catch (gOPDthrows) {
258938
+ return throwTypeError;
258939
+ }
258940
+ }
258941
+ }() : throwTypeError;
258942
+ var hasSymbols = require_has_symbols2()();
258943
+ var getProto = require_get_proto();
258944
+ var $ObjectGPO = require_Object_getPrototypeOf();
258945
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
258946
+ var $apply = require_functionApply();
258947
+ var $call = require_functionCall();
258948
+ var needsEval = {};
258949
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
258950
+ var INTRINSICS = {
258951
+ __proto__: null,
258952
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
258953
+ "%Array%": Array,
258954
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
258955
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
258956
+ "%AsyncFromSyncIteratorPrototype%": undefined2,
258957
+ "%AsyncFunction%": needsEval,
258958
+ "%AsyncGenerator%": needsEval,
258959
+ "%AsyncGeneratorFunction%": needsEval,
258960
+ "%AsyncIteratorPrototype%": needsEval,
258961
+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
258962
+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
258963
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
258964
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
258965
+ "%Boolean%": Boolean,
258966
+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
258967
+ "%Date%": Date,
258968
+ "%decodeURI%": decodeURI,
258969
+ "%decodeURIComponent%": decodeURIComponent,
258970
+ "%encodeURI%": encodeURI,
258971
+ "%encodeURIComponent%": encodeURIComponent,
258972
+ "%Error%": $Error,
258973
+ "%eval%": eval,
258974
+ "%EvalError%": $EvalError,
258975
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
258976
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
258977
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
258978
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
258979
+ "%Function%": $Function,
258980
+ "%GeneratorFunction%": needsEval,
258981
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
258982
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
258983
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
258984
+ "%isFinite%": isFinite,
258985
+ "%isNaN%": isNaN,
258986
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
258987
+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,
258988
+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,
258989
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
258990
+ "%Math%": Math,
258991
+ "%Number%": Number,
258992
+ "%Object%": $Object,
258993
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
258994
+ "%parseFloat%": parseFloat,
258995
+ "%parseInt%": parseInt,
258996
+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
258997
+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
258998
+ "%RangeError%": $RangeError,
258999
+ "%ReferenceError%": $ReferenceError,
259000
+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
259001
+ "%RegExp%": RegExp,
259002
+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,
259003
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
259004
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
259005
+ "%String%": String,
259006
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
259007
+ "%Symbol%": hasSymbols ? Symbol : undefined2,
259008
+ "%SyntaxError%": $SyntaxError,
259009
+ "%ThrowTypeError%": ThrowTypeError,
259010
+ "%TypedArray%": TypedArray,
259011
+ "%TypeError%": $TypeError,
259012
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
259013
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
259014
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
259015
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
259016
+ "%URIError%": $URIError,
259017
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
259018
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
259019
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
259020
+ "%Function.prototype.call%": $call,
259021
+ "%Function.prototype.apply%": $apply,
259022
+ "%Object.defineProperty%": $defineProperty,
259023
+ "%Object.getPrototypeOf%": $ObjectGPO,
259024
+ "%Math.abs%": abs,
259025
+ "%Math.floor%": floor,
259026
+ "%Math.max%": max2,
259027
+ "%Math.min%": min2,
259028
+ "%Math.pow%": pow,
259029
+ "%Math.round%": round,
259030
+ "%Math.sign%": sign,
259031
+ "%Reflect.getPrototypeOf%": $ReflectGPO
259032
+ };
259033
+ if (getProto) {
259034
+ try {
259035
+ null.error;
259036
+ } catch (e) {
259037
+ errorProto = getProto(getProto(e));
259038
+ INTRINSICS["%Error.prototype%"] = errorProto;
258301
259039
  }
258302
259040
  }
258303
- module2.exports = $gOPD;
259041
+ var errorProto;
259042
+ var doEval = function doEval2(name) {
259043
+ var value;
259044
+ if (name === "%AsyncFunction%") {
259045
+ value = getEvalledConstructor("async function () {}");
259046
+ } else if (name === "%GeneratorFunction%") {
259047
+ value = getEvalledConstructor("function* () {}");
259048
+ } else if (name === "%AsyncGeneratorFunction%") {
259049
+ value = getEvalledConstructor("async function* () {}");
259050
+ } else if (name === "%AsyncGenerator%") {
259051
+ var fn = doEval2("%AsyncGeneratorFunction%");
259052
+ if (fn) {
259053
+ value = fn.prototype;
259054
+ }
259055
+ } else if (name === "%AsyncIteratorPrototype%") {
259056
+ var gen = doEval2("%AsyncGenerator%");
259057
+ if (gen && getProto) {
259058
+ value = getProto(gen.prototype);
259059
+ }
259060
+ }
259061
+ INTRINSICS[name] = value;
259062
+ return value;
259063
+ };
259064
+ var LEGACY_ALIASES = {
259065
+ __proto__: null,
259066
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
259067
+ "%ArrayPrototype%": ["Array", "prototype"],
259068
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
259069
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
259070
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
259071
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
259072
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
259073
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
259074
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
259075
+ "%BooleanPrototype%": ["Boolean", "prototype"],
259076
+ "%DataViewPrototype%": ["DataView", "prototype"],
259077
+ "%DatePrototype%": ["Date", "prototype"],
259078
+ "%ErrorPrototype%": ["Error", "prototype"],
259079
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
259080
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
259081
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
259082
+ "%FunctionPrototype%": ["Function", "prototype"],
259083
+ "%Generator%": ["GeneratorFunction", "prototype"],
259084
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
259085
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
259086
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
259087
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
259088
+ "%JSONParse%": ["JSON", "parse"],
259089
+ "%JSONStringify%": ["JSON", "stringify"],
259090
+ "%MapPrototype%": ["Map", "prototype"],
259091
+ "%NumberPrototype%": ["Number", "prototype"],
259092
+ "%ObjectPrototype%": ["Object", "prototype"],
259093
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
259094
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
259095
+ "%PromisePrototype%": ["Promise", "prototype"],
259096
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
259097
+ "%Promise_all%": ["Promise", "all"],
259098
+ "%Promise_reject%": ["Promise", "reject"],
259099
+ "%Promise_resolve%": ["Promise", "resolve"],
259100
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
259101
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
259102
+ "%RegExpPrototype%": ["RegExp", "prototype"],
259103
+ "%SetPrototype%": ["Set", "prototype"],
259104
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
259105
+ "%StringPrototype%": ["String", "prototype"],
259106
+ "%SymbolPrototype%": ["Symbol", "prototype"],
259107
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
259108
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
259109
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
259110
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
259111
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
259112
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
259113
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
259114
+ "%URIErrorPrototype%": ["URIError", "prototype"],
259115
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
259116
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
259117
+ };
259118
+ var bind2 = require_function_bind();
259119
+ var hasOwn = require_hasown2();
259120
+ var $concat = bind2.call($call, Array.prototype.concat);
259121
+ var $spliceApply = bind2.call($apply, Array.prototype.splice);
259122
+ var $replace = bind2.call($call, String.prototype.replace);
259123
+ var $strSlice = bind2.call($call, String.prototype.slice);
259124
+ var $exec = bind2.call($call, RegExp.prototype.exec);
259125
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
259126
+ var reEscapeChar = /\\(\\)?/g;
259127
+ var stringToPath = function stringToPath2(string) {
259128
+ var first2 = $strSlice(string, 0, 1);
259129
+ var last2 = $strSlice(string, -1);
259130
+ if (first2 === "%" && last2 !== "%") {
259131
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
259132
+ } else if (last2 === "%" && first2 !== "%") {
259133
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
259134
+ }
259135
+ var result = [];
259136
+ $replace(string, rePropName, function(match, number, quote2, subString) {
259137
+ result[result.length] = quote2 ? $replace(subString, reEscapeChar, "$1") : number || match;
259138
+ });
259139
+ return result;
259140
+ };
259141
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
259142
+ var intrinsicName = name;
259143
+ var alias;
259144
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
259145
+ alias = LEGACY_ALIASES[intrinsicName];
259146
+ intrinsicName = "%" + alias[0] + "%";
259147
+ }
259148
+ if (hasOwn(INTRINSICS, intrinsicName)) {
259149
+ var value = INTRINSICS[intrinsicName];
259150
+ if (value === needsEval) {
259151
+ value = doEval(intrinsicName);
259152
+ }
259153
+ if (typeof value === "undefined" && !allowMissing) {
259154
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
259155
+ }
259156
+ return {
259157
+ alias,
259158
+ name: intrinsicName,
259159
+ value
259160
+ };
259161
+ }
259162
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
259163
+ };
259164
+ module2.exports = function GetIntrinsic(name, allowMissing) {
259165
+ if (typeof name !== "string" || name.length === 0) {
259166
+ throw new $TypeError("intrinsic name must be a non-empty string");
259167
+ }
259168
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
259169
+ throw new $TypeError('"allowMissing" argument must be a boolean');
259170
+ }
259171
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
259172
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
259173
+ }
259174
+ var parts = stringToPath(name);
259175
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
259176
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
259177
+ var intrinsicRealName = intrinsic.name;
259178
+ var value = intrinsic.value;
259179
+ var skipFurtherCaching = false;
259180
+ var alias = intrinsic.alias;
259181
+ if (alias) {
259182
+ intrinsicBaseName = alias[0];
259183
+ $spliceApply(parts, $concat([0, 1], alias));
259184
+ }
259185
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
259186
+ var part = parts[i];
259187
+ var first2 = $strSlice(part, 0, 1);
259188
+ var last2 = $strSlice(part, -1);
259189
+ if ((first2 === '"' || first2 === "'" || first2 === "`" || (last2 === '"' || last2 === "'" || last2 === "`")) && first2 !== last2) {
259190
+ throw new $SyntaxError("property names with quotes must have matching quotes");
259191
+ }
259192
+ if (part === "constructor" || !isOwn) {
259193
+ skipFurtherCaching = true;
259194
+ }
259195
+ intrinsicBaseName += "." + part;
259196
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
259197
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
259198
+ value = INTRINSICS[intrinsicRealName];
259199
+ } else if (value != null) {
259200
+ if (!(part in value)) {
259201
+ if (!allowMissing) {
259202
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
259203
+ }
259204
+ return void 0;
259205
+ }
259206
+ if ($gOPD && i + 1 >= parts.length) {
259207
+ var desc = $gOPD(value, part);
259208
+ isOwn = !!desc;
259209
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
259210
+ value = desc.get;
259211
+ } else {
259212
+ value = value[part];
259213
+ }
259214
+ } else {
259215
+ isOwn = hasOwn(value, part);
259216
+ value = value[part];
259217
+ }
259218
+ if (isOwn && !skipFurtherCaching) {
259219
+ INTRINSICS[intrinsicRealName] = value;
259220
+ }
259221
+ }
259222
+ }
259223
+ return value;
259224
+ };
258304
259225
  }
258305
259226
  });
258306
259227
 
@@ -258378,7 +259299,7 @@ var require_has_property_descriptors = __commonJS({
258378
259299
  var require_set_function_length = __commonJS({
258379
259300
  "../../node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js"(exports, module2) {
258380
259301
  "use strict";
258381
- var GetIntrinsic = require_get_intrinsic();
259302
+ var GetIntrinsic = require_get_intrinsic2();
258382
259303
  var define2 = require_define_data_property();
258383
259304
  var hasDescriptors = require_has_property_descriptors()();
258384
259305
  var gOPD = require_gopd();
@@ -258415,6 +259336,23 @@ var require_set_function_length = __commonJS({
258415
259336
  }
258416
259337
  });
258417
259338
 
259339
+ // ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
259340
+ var require_es_define_property2 = __commonJS({
259341
+ "../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module2) {
259342
+ "use strict";
259343
+ var GetIntrinsic = require_get_intrinsic2();
259344
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
259345
+ if ($defineProperty) {
259346
+ try {
259347
+ $defineProperty({}, "a", { value: 1 });
259348
+ } catch (e) {
259349
+ $defineProperty = false;
259350
+ }
259351
+ }
259352
+ module2.exports = $defineProperty;
259353
+ }
259354
+ });
259355
+
258418
259356
  // ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
258419
259357
  var require_call_bind = __commonJS({
258420
259358
  "../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports, module2) {
@@ -258426,7 +259364,7 @@ var require_call_bind = __commonJS({
258426
259364
  var $apply = GetIntrinsic("%Function.prototype.apply%");
258427
259365
  var $call = GetIntrinsic("%Function.prototype.call%");
258428
259366
  var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
258429
- var $defineProperty = require_es_define_property();
259367
+ var $defineProperty = require_es_define_property2();
258430
259368
  var $max = GetIntrinsic("%Math.max%");
258431
259369
  module2.exports = function callBind(originalFunction) {
258432
259370
  if (typeof originalFunction !== "function") {
@@ -259977,6 +260915,379 @@ var require_methods3 = __commonJS({
259977
260915
  }
259978
260916
  });
259979
260917
 
260918
+ // ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
260919
+ var require_shams3 = __commonJS({
260920
+ "../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module2) {
260921
+ "use strict";
260922
+ var hasSymbols = require_shams2();
260923
+ module2.exports = function hasToStringTagShams() {
260924
+ return hasSymbols() && !!Symbol.toStringTag;
260925
+ };
260926
+ }
260927
+ });
260928
+
260929
+ // ../../node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.js
260930
+ var require_es_set_tostringtag = __commonJS({
260931
+ "../../node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.js"(exports, module2) {
260932
+ "use strict";
260933
+ var GetIntrinsic = require_get_intrinsic2();
260934
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
260935
+ var hasToStringTag = require_shams3()();
260936
+ var hasOwn = require_hasown2();
260937
+ var $TypeError = require_type2();
260938
+ var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
260939
+ module2.exports = function setToStringTag(object, value) {
260940
+ var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
260941
+ var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
260942
+ if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
260943
+ throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
260944
+ }
260945
+ if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
260946
+ if ($defineProperty) {
260947
+ $defineProperty(object, toStringTag, {
260948
+ configurable: !nonConfigurable,
260949
+ enumerable: false,
260950
+ value,
260951
+ writable: false
260952
+ });
260953
+ } else {
260954
+ object[toStringTag] = value;
260955
+ }
260956
+ }
260957
+ };
260958
+ }
260959
+ });
260960
+
260961
+ // ../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.js
260962
+ var require_populate2 = __commonJS({
260963
+ "../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.js"(exports, module2) {
260964
+ "use strict";
260965
+ module2.exports = function(dst, src) {
260966
+ Object.keys(src).forEach(function(prop) {
260967
+ dst[prop] = dst[prop] || src[prop];
260968
+ });
260969
+ return dst;
260970
+ };
260971
+ }
260972
+ });
260973
+
260974
+ // ../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js
260975
+ var require_form_data2 = __commonJS({
260976
+ "../../node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js"(exports, module2) {
260977
+ "use strict";
260978
+ var CombinedStream = require_combined_stream();
260979
+ var util4 = require("util");
260980
+ var path2 = require("path");
260981
+ var http2 = require("http");
260982
+ var https2 = require("https");
260983
+ var parseUrl = require("url").parse;
260984
+ var fs9 = require("fs");
260985
+ var Stream = require("stream").Stream;
260986
+ var crypto = require("crypto");
260987
+ var mime = require_mime_types();
260988
+ var asynckit = require_asynckit();
260989
+ var setToStringTag = require_es_set_tostringtag();
260990
+ var hasOwn = require_hasown2();
260991
+ var populate = require_populate2();
260992
+ function FormData3(options) {
260993
+ if (!(this instanceof FormData3)) {
260994
+ return new FormData3(options);
260995
+ }
260996
+ this._overheadLength = 0;
260997
+ this._valueLength = 0;
260998
+ this._valuesToMeasure = [];
260999
+ CombinedStream.call(this);
261000
+ options = options || {};
261001
+ for (var option in options) {
261002
+ this[option] = options[option];
261003
+ }
261004
+ }
261005
+ util4.inherits(FormData3, CombinedStream);
261006
+ FormData3.LINE_BREAK = "\r\n";
261007
+ FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
261008
+ FormData3.prototype.append = function(field, value, options) {
261009
+ options = options || {};
261010
+ if (typeof options === "string") {
261011
+ options = { filename: options };
261012
+ }
261013
+ var append2 = CombinedStream.prototype.append.bind(this);
261014
+ if (typeof value === "number" || value == null) {
261015
+ value = String(value);
261016
+ }
261017
+ if (Array.isArray(value)) {
261018
+ this._error(new Error("Arrays are not supported."));
261019
+ return;
261020
+ }
261021
+ var header = this._multiPartHeader(field, value, options);
261022
+ var footer = this._multiPartFooter();
261023
+ append2(header);
261024
+ append2(value);
261025
+ append2(footer);
261026
+ this._trackLength(header, value, options);
261027
+ };
261028
+ FormData3.prototype._trackLength = function(header, value, options) {
261029
+ var valueLength = 0;
261030
+ if (options.knownLength != null) {
261031
+ valueLength += Number(options.knownLength);
261032
+ } else if (Buffer.isBuffer(value)) {
261033
+ valueLength = value.length;
261034
+ } else if (typeof value === "string") {
261035
+ valueLength = Buffer.byteLength(value);
261036
+ }
261037
+ this._valueLength += valueLength;
261038
+ this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
261039
+ if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
261040
+ return;
261041
+ }
261042
+ if (!options.knownLength) {
261043
+ this._valuesToMeasure.push(value);
261044
+ }
261045
+ };
261046
+ FormData3.prototype._lengthRetriever = function(value, callback) {
261047
+ if (hasOwn(value, "fd")) {
261048
+ if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
261049
+ callback(null, value.end + 1 - (value.start ? value.start : 0));
261050
+ } else {
261051
+ fs9.stat(value.path, function(err, stat) {
261052
+ if (err) {
261053
+ callback(err);
261054
+ return;
261055
+ }
261056
+ var fileSize = stat.size - (value.start ? value.start : 0);
261057
+ callback(null, fileSize);
261058
+ });
261059
+ }
261060
+ } else if (hasOwn(value, "httpVersion")) {
261061
+ callback(null, Number(value.headers["content-length"]));
261062
+ } else if (hasOwn(value, "httpModule")) {
261063
+ value.on("response", function(response) {
261064
+ value.pause();
261065
+ callback(null, Number(response.headers["content-length"]));
261066
+ });
261067
+ value.resume();
261068
+ } else {
261069
+ callback("Unknown stream");
261070
+ }
261071
+ };
261072
+ FormData3.prototype._multiPartHeader = function(field, value, options) {
261073
+ if (typeof options.header === "string") {
261074
+ return options.header;
261075
+ }
261076
+ var contentDisposition = this._getContentDisposition(value, options);
261077
+ var contentType = this._getContentType(value, options);
261078
+ var contents = "";
261079
+ var headers = {
261080
+ "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
261081
+ "Content-Type": [].concat(contentType || [])
261082
+ };
261083
+ if (typeof options.header === "object") {
261084
+ populate(headers, options.header);
261085
+ }
261086
+ var header;
261087
+ for (var prop in headers) {
261088
+ if (hasOwn(headers, prop)) {
261089
+ header = headers[prop];
261090
+ if (header == null) {
261091
+ continue;
261092
+ }
261093
+ if (!Array.isArray(header)) {
261094
+ header = [header];
261095
+ }
261096
+ if (header.length) {
261097
+ contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
261098
+ }
261099
+ }
261100
+ }
261101
+ return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
261102
+ };
261103
+ FormData3.prototype._getContentDisposition = function(value, options) {
261104
+ var filename;
261105
+ if (typeof options.filepath === "string") {
261106
+ filename = path2.normalize(options.filepath).replace(/\\/g, "/");
261107
+ } else if (options.filename || value && (value.name || value.path)) {
261108
+ filename = path2.basename(options.filename || value && (value.name || value.path));
261109
+ } else if (value && value.readable && hasOwn(value, "httpVersion")) {
261110
+ filename = path2.basename(value.client._httpMessage.path || "");
261111
+ }
261112
+ if (filename) {
261113
+ return 'filename="' + filename + '"';
261114
+ }
261115
+ };
261116
+ FormData3.prototype._getContentType = function(value, options) {
261117
+ var contentType = options.contentType;
261118
+ if (!contentType && value && value.name) {
261119
+ contentType = mime.lookup(value.name);
261120
+ }
261121
+ if (!contentType && value && value.path) {
261122
+ contentType = mime.lookup(value.path);
261123
+ }
261124
+ if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
261125
+ contentType = value.headers["content-type"];
261126
+ }
261127
+ if (!contentType && (options.filepath || options.filename)) {
261128
+ contentType = mime.lookup(options.filepath || options.filename);
261129
+ }
261130
+ if (!contentType && value && typeof value === "object") {
261131
+ contentType = FormData3.DEFAULT_CONTENT_TYPE;
261132
+ }
261133
+ return contentType;
261134
+ };
261135
+ FormData3.prototype._multiPartFooter = function() {
261136
+ return function(next) {
261137
+ var footer = FormData3.LINE_BREAK;
261138
+ var lastPart = this._streams.length === 0;
261139
+ if (lastPart) {
261140
+ footer += this._lastBoundary();
261141
+ }
261142
+ next(footer);
261143
+ }.bind(this);
261144
+ };
261145
+ FormData3.prototype._lastBoundary = function() {
261146
+ return "--" + this.getBoundary() + "--" + FormData3.LINE_BREAK;
261147
+ };
261148
+ FormData3.prototype.getHeaders = function(userHeaders) {
261149
+ var header;
261150
+ var formHeaders = {
261151
+ "content-type": "multipart/form-data; boundary=" + this.getBoundary()
261152
+ };
261153
+ for (header in userHeaders) {
261154
+ if (hasOwn(userHeaders, header)) {
261155
+ formHeaders[header.toLowerCase()] = userHeaders[header];
261156
+ }
261157
+ }
261158
+ return formHeaders;
261159
+ };
261160
+ FormData3.prototype.setBoundary = function(boundary) {
261161
+ if (typeof boundary !== "string") {
261162
+ throw new TypeError("FormData boundary must be a string");
261163
+ }
261164
+ this._boundary = boundary;
261165
+ };
261166
+ FormData3.prototype.getBoundary = function() {
261167
+ if (!this._boundary) {
261168
+ this._generateBoundary();
261169
+ }
261170
+ return this._boundary;
261171
+ };
261172
+ FormData3.prototype.getBuffer = function() {
261173
+ var dataBuffer = new Buffer.alloc(0);
261174
+ var boundary = this.getBoundary();
261175
+ for (var i = 0, len = this._streams.length; i < len; i++) {
261176
+ if (typeof this._streams[i] !== "function") {
261177
+ if (Buffer.isBuffer(this._streams[i])) {
261178
+ dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
261179
+ } else {
261180
+ dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
261181
+ }
261182
+ if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
261183
+ dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData3.LINE_BREAK)]);
261184
+ }
261185
+ }
261186
+ }
261187
+ return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
261188
+ };
261189
+ FormData3.prototype._generateBoundary = function() {
261190
+ this._boundary = "--------------------------" + crypto.randomBytes(12).toString("hex");
261191
+ };
261192
+ FormData3.prototype.getLengthSync = function() {
261193
+ var knownLength = this._overheadLength + this._valueLength;
261194
+ if (this._streams.length) {
261195
+ knownLength += this._lastBoundary().length;
261196
+ }
261197
+ if (!this.hasKnownLength()) {
261198
+ this._error(new Error("Cannot calculate proper length in synchronous way."));
261199
+ }
261200
+ return knownLength;
261201
+ };
261202
+ FormData3.prototype.hasKnownLength = function() {
261203
+ var hasKnownLength = true;
261204
+ if (this._valuesToMeasure.length) {
261205
+ hasKnownLength = false;
261206
+ }
261207
+ return hasKnownLength;
261208
+ };
261209
+ FormData3.prototype.getLength = function(cb) {
261210
+ var knownLength = this._overheadLength + this._valueLength;
261211
+ if (this._streams.length) {
261212
+ knownLength += this._lastBoundary().length;
261213
+ }
261214
+ if (!this._valuesToMeasure.length) {
261215
+ process.nextTick(cb.bind(this, null, knownLength));
261216
+ return;
261217
+ }
261218
+ asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
261219
+ if (err) {
261220
+ cb(err);
261221
+ return;
261222
+ }
261223
+ values.forEach(function(length) {
261224
+ knownLength += length;
261225
+ });
261226
+ cb(null, knownLength);
261227
+ });
261228
+ };
261229
+ FormData3.prototype.submit = function(params, cb) {
261230
+ var request;
261231
+ var options;
261232
+ var defaults2 = { method: "post" };
261233
+ if (typeof params === "string") {
261234
+ params = parseUrl(params);
261235
+ options = populate({
261236
+ port: params.port,
261237
+ path: params.pathname,
261238
+ host: params.hostname,
261239
+ protocol: params.protocol
261240
+ }, defaults2);
261241
+ } else {
261242
+ options = populate(params, defaults2);
261243
+ if (!options.port) {
261244
+ options.port = options.protocol === "https:" ? 443 : 80;
261245
+ }
261246
+ }
261247
+ options.headers = this.getHeaders(params.headers);
261248
+ if (options.protocol === "https:") {
261249
+ request = https2.request(options);
261250
+ } else {
261251
+ request = http2.request(options);
261252
+ }
261253
+ this.getLength(function(err, length) {
261254
+ if (err && err !== "Unknown stream") {
261255
+ this._error(err);
261256
+ return;
261257
+ }
261258
+ if (length) {
261259
+ request.setHeader("Content-Length", length);
261260
+ }
261261
+ this.pipe(request);
261262
+ if (cb) {
261263
+ var onResponse;
261264
+ var callback = function(error2, responce) {
261265
+ request.removeListener("error", callback);
261266
+ request.removeListener("response", onResponse);
261267
+ return cb.call(this, error2, responce);
261268
+ };
261269
+ onResponse = callback.bind(this, null);
261270
+ request.on("error", callback);
261271
+ request.on("response", onResponse);
261272
+ }
261273
+ }.bind(this));
261274
+ return request;
261275
+ };
261276
+ FormData3.prototype._error = function(err) {
261277
+ if (!this.error) {
261278
+ this.error = err;
261279
+ this.pause();
261280
+ this.emit("error", err);
261281
+ }
261282
+ };
261283
+ FormData3.prototype.toString = function() {
261284
+ return "[object FormData]";
261285
+ };
261286
+ setToStringTag(FormData3, "FormData");
261287
+ module2.exports = FormData3;
261288
+ }
261289
+ });
261290
+
259980
261291
  // ../../node_modules/.pnpm/formidable@2.1.2/node_modules/formidable/src/PersistentFile.js
259981
261292
  var require_PersistentFile = __commonJS({
259982
261293
  "../../node_modules/.pnpm/formidable@2.1.2/node_modules/formidable/src/PersistentFile.js"(exports, module2) {
@@ -263361,7 +264672,7 @@ var require_cmp = __commonJS({
263361
264672
  });
263362
264673
 
263363
264674
  // ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
263364
- var require_coerce2 = __commonJS({
264675
+ var require_coerce3 = __commonJS({
263365
264676
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module2) {
263366
264677
  var SemVer = require_semver();
263367
264678
  var parse = require_parse5();
@@ -264419,7 +265730,7 @@ var require_semver2 = __commonJS({
264419
265730
  var gte = require_gte();
264420
265731
  var lte = require_lte();
264421
265732
  var cmp = require_cmp();
264422
- var coerce2 = require_coerce2();
265733
+ var coerce2 = require_coerce3();
264423
265734
  var Comparator = require_comparator();
264424
265735
  var Range = require_range2();
264425
265736
  var satisfies = require_satisfies();
@@ -265732,7 +267043,7 @@ var require_node5 = __commonJS({
265732
267043
  var qs = require_lib11();
265733
267044
  var mime = require_mime();
265734
267045
  var methods = require_methods3();
265735
- var FormData3 = require_form_data();
267046
+ var FormData3 = require_form_data2();
265736
267047
  var formidable = require_src4();
265737
267048
  var debug = require_src5()("superagent");
265738
267049
  var CookieJar = require_cookiejar();
@@ -283458,6 +284769,12 @@ var state = {
283458
284769
  },
283459
284770
  "description": "Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.",
283460
284771
  "additionalProperties": false
284772
+ },
284773
+ "origin": {
284774
+ "type": "string",
284775
+ "enum": [
284776
+ "synthetic"
284777
+ ]
283461
284778
  }
283462
284779
  },
283463
284780
  "required": [
@@ -283548,6 +284865,12 @@ var state = {
283548
284865
  "description": "Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.",
283549
284866
  "additionalProperties": false
283550
284867
  },
284868
+ "origin": {
284869
+ "type": "string",
284870
+ "enum": [
284871
+ "synthetic"
284872
+ ]
284873
+ },
283551
284874
  "discriminateByTags": {
283552
284875
  "type": "array",
283553
284876
  "items": {
@@ -284880,315 +286203,317 @@ var state = {
284880
286203
  "type": "string",
284881
286204
  "enum": [
284882
286205
  "pending",
286206
+ "in_progress",
286207
+ "listening"
286208
+ ]
286209
+ },
286210
+ "eventId": {
286211
+ "type": "string",
286212
+ "description": "Event id must be specified if the workflow is created with the status in_progress"
286213
+ }
286214
+ },
286215
+ "required": [
286216
+ "name",
286217
+ "status"
286218
+ ],
286219
+ "title": "createWorkflowBody",
286220
+ "additionalProperties": false
286221
+ }
286222
+ },
286223
+ "section": "workflow",
286224
+ "response": {
286225
+ "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
286226
+ "status": 201,
286227
+ "schema": {
286228
+ "type": "object",
286229
+ "properties": {
286230
+ "workflow": {
286231
+ "$ref": "#/components/schemas/Workflow"
286232
+ }
286233
+ },
286234
+ "required": [
286235
+ "workflow"
286236
+ ],
286237
+ "title": "createWorkflowResponse",
286238
+ "additionalProperties": false
286239
+ }
286240
+ },
286241
+ "parameters": {}
286242
+ },
286243
+ "getWorkflow": {
286244
+ "name": "getWorkflow",
286245
+ "description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
286246
+ "method": "get",
286247
+ "path": "/v1/chat/workflows/{id}",
286248
+ "parameters": {
286249
+ "id": {
286250
+ "in": "path",
286251
+ "type": "string",
286252
+ "description": "Workflow id"
286253
+ }
286254
+ },
286255
+ "section": "workflow",
286256
+ "response": {
286257
+ "description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
286258
+ "schema": {
286259
+ "type": "object",
286260
+ "properties": {
286261
+ "workflow": {
286262
+ "$ref": "#/components/schemas/Workflow"
286263
+ }
286264
+ },
286265
+ "required": [
286266
+ "workflow"
286267
+ ],
286268
+ "title": "getWorkflowResponse",
286269
+ "additionalProperties": false
286270
+ }
286271
+ }
286272
+ },
286273
+ "updateWorkflow": {
286274
+ "name": "updateWorkflow",
286275
+ "description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
286276
+ "method": "put",
286277
+ "path": "/v1/chat/workflows/{id}",
286278
+ "parameters": {
286279
+ "id": {
286280
+ "in": "path",
286281
+ "type": "string",
286282
+ "description": "Workflow id"
286283
+ }
286284
+ },
286285
+ "requestBody": {
286286
+ "description": "Workflow data",
286287
+ "schema": {
286288
+ "type": "object",
286289
+ "properties": {
286290
+ "output": {
286291
+ "type": "object",
286292
+ "additionalProperties": true,
286293
+ "description": "Content related to the workflow"
286294
+ },
286295
+ "timeoutAt": {
286296
+ "type": "string",
286297
+ "format": "date-time",
286298
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
286299
+ },
286300
+ "status": {
286301
+ "type": "string",
286302
+ "enum": [
286303
+ "completed",
286304
+ "cancelled",
286305
+ "listening",
286306
+ "paused",
286307
+ "failed",
284883
286308
  "in_progress"
284884
- ]
284885
- },
284886
- "eventId": {
284887
- "type": "string",
284888
- "description": "Event id must be specified if the workflow is created with the status in_progress"
284889
- }
284890
- },
284891
- "required": [
284892
- "name",
284893
- "status"
284894
- ],
284895
- "title": "createWorkflowBody",
284896
- "additionalProperties": false
284897
- }
284898
- },
284899
- "section": "workflow",
284900
- "response": {
284901
- "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
284902
- "status": 201,
284903
- "schema": {
284904
- "type": "object",
284905
- "properties": {
284906
- "workflow": {
284907
- "$ref": "#/components/schemas/Workflow"
284908
- }
284909
- },
284910
- "required": [
284911
- "workflow"
284912
- ],
284913
- "title": "createWorkflowResponse",
284914
- "additionalProperties": false
284915
- }
284916
- },
284917
- "parameters": {}
284918
- },
284919
- "getWorkflow": {
284920
- "name": "getWorkflow",
284921
- "description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
284922
- "method": "get",
284923
- "path": "/v1/chat/workflows/{id}",
284924
- "parameters": {
284925
- "id": {
284926
- "in": "path",
284927
- "type": "string",
284928
- "description": "Workflow id"
284929
- }
284930
- },
284931
- "section": "workflow",
284932
- "response": {
284933
- "description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
284934
- "schema": {
284935
- "type": "object",
284936
- "properties": {
284937
- "workflow": {
284938
- "$ref": "#/components/schemas/Workflow"
284939
- }
284940
- },
284941
- "required": [
284942
- "workflow"
284943
- ],
284944
- "title": "getWorkflowResponse",
284945
- "additionalProperties": false
284946
- }
284947
- }
284948
- },
284949
- "updateWorkflow": {
284950
- "name": "updateWorkflow",
284951
- "description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
284952
- "method": "put",
284953
- "path": "/v1/chat/workflows/{id}",
284954
- "parameters": {
284955
- "id": {
284956
- "in": "path",
284957
- "type": "string",
284958
- "description": "Workflow id"
284959
- }
284960
- },
284961
- "requestBody": {
284962
- "description": "Workflow data",
284963
- "schema": {
284964
- "type": "object",
284965
- "properties": {
284966
- "output": {
284967
- "type": "object",
284968
- "additionalProperties": true,
284969
- "description": "Content related to the workflow"
284970
- },
284971
- "timeoutAt": {
284972
- "type": "string",
284973
- "format": "date-time",
284974
- "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
284975
- },
284976
- "status": {
284977
- "type": "string",
284978
- "enum": [
284979
- "completed",
284980
- "cancelled",
284981
- "listening",
284982
- "paused",
284983
- "failed",
284984
- "in_progress"
284985
- ],
284986
- "description": "Status of the workflow"
284987
- },
284988
- "failureReason": {
284989
- "type": "string",
284990
- "description": "Reason why the workflow failed"
284991
- },
284992
- "tags": {
284993
- "type": "object",
284994
- "additionalProperties": {
284995
- "type": "string",
284996
- "maxLength": 500
284997
- },
284998
- "description": "Tags for the [Workflow](#schema_workflow)"
284999
- },
285000
- "userId": {
285001
- "type": "string",
285002
- "description": "Specific user related to this workflow"
285003
- },
285004
- "eventId": {
285005
- "type": "string",
285006
- "description": "Event id must be specified if the workflow is updated with the status in_progress"
285007
- }
285008
- },
285009
- "title": "updateWorkflowBody",
285010
- "additionalProperties": false
285011
- }
285012
- },
285013
- "section": "workflow",
285014
- "response": {
285015
- "description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
285016
- "schema": {
285017
- "type": "object",
285018
- "properties": {
285019
- "workflow": {
285020
- "$ref": "#/components/schemas/Workflow"
285021
- }
285022
- },
285023
- "required": [
285024
- "workflow"
285025
- ],
285026
- "title": "updateWorkflowResponse",
285027
- "additionalProperties": false
285028
- }
285029
- }
285030
- },
285031
- "deleteWorkflow": {
285032
- "name": "deleteWorkflow",
285033
- "description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
285034
- "method": "delete",
285035
- "path": "/v1/chat/workflows/{id}",
285036
- "parameters": {
285037
- "id": {
285038
- "in": "path",
285039
- "type": "string",
285040
- "description": "Workflow id"
285041
- }
285042
- },
285043
- "section": "workflow",
285044
- "response": {
285045
- "description": "Returns the [Workflow](#schema_workflow) object that was deleted",
285046
- "schema": {
285047
- "type": "object",
285048
- "title": "deleteWorkflowResponse",
285049
- "additionalProperties": false
285050
- }
285051
- }
285052
- },
285053
- "listWorkflows": {
285054
- "name": "listWorkflows",
285055
- "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).",
285056
- "method": "get",
285057
- "path": "/v1/chat/workflows",
285058
- "parameters": {
285059
- "nextToken": {
285060
- "in": "query",
285061
- "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
285062
- "type": "string"
285063
- },
285064
- "tags": {
285065
- "in": "query",
285066
- "type": "object",
285067
- "schema": {
285068
- "type": "object",
285069
- "additionalProperties": {
285070
- "type": "string"
285071
- }
285072
- },
285073
- "description": "Filter by tags"
285074
- },
285075
- "conversationId": {
285076
- "in": "query",
285077
- "type": "string",
285078
- "description": "Conversation id"
285079
- },
285080
- "userId": {
285081
- "in": "query",
285082
- "type": "string",
285083
- "description": "User id"
285084
- },
285085
- "parentWorkflowId": {
285086
- "in": "query",
285087
- "type": "string",
285088
- "description": "Parent workflow id"
285089
- },
285090
- "statuses": {
285091
- "in": "query",
285092
- "type": "string[]",
285093
- "description": "Status",
285094
- "enum": [
285095
- "pending",
285096
- "in_progress",
285097
- "failed",
285098
- "completed",
285099
- "listening",
285100
- "paused",
285101
- "timedout",
285102
- "cancelled"
285103
- ]
285104
- },
285105
- "name": {
285106
- "in": "query",
285107
- "description": "Workflow name",
285108
- "type": "string"
285109
- }
285110
- },
285111
- "section": "workflow",
285112
- "response": {
285113
- "description": "Returns a list of [Workflow](#schema_workflow) objects",
285114
- "schema": {
285115
- "type": "object",
285116
- "properties": {
285117
- "workflows": {
285118
- "type": "array",
285119
- "items": {
285120
- "$ref": "#/components/schemas/Workflow"
285121
- }
285122
- },
285123
- "meta": {
285124
- "type": "object",
285125
- "properties": {
285126
- "nextToken": {
285127
- "type": "string",
285128
- "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."
285129
- }
285130
- },
285131
- "additionalProperties": false
285132
- }
285133
- },
285134
- "required": [
285135
- "workflows",
285136
- "meta"
285137
- ],
285138
- "title": "listWorkflowsResponse",
285139
- "additionalProperties": false
285140
- }
285141
- }
285142
- },
285143
- "getOrCreateWorkflow": {
285144
- "name": "getOrCreateWorkflow",
285145
- "description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
285146
- "method": "post",
285147
- "path": "/v1/chat/workflows/get-or-create",
285148
- "requestBody": {
285149
- "description": "Workflow data",
285150
- "schema": {
285151
- "type": "object",
285152
- "properties": {
285153
- "name": {
285154
- "type": "string",
285155
- "description": "Name of the workflow"
285156
- },
285157
- "input": {
285158
- "type": "object",
285159
- "additionalProperties": true,
285160
- "description": "Content related to the workflow"
285161
- },
285162
- "parentWorkflowId": {
285163
- "type": "string",
285164
- "description": "Parent workflow id is the parent workflow that created this workflow"
285165
- },
285166
- "conversationId": {
285167
- "type": "string",
285168
- "description": "Conversation id related to this workflow"
285169
- },
285170
- "userId": {
285171
- "type": "string",
285172
- "description": "Specific user related to this workflow"
285173
- },
285174
- "timeoutAt": {
285175
- "type": "string",
285176
- "format": "date-time",
285177
- "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
285178
- },
285179
- "tags": {
285180
- "type": "object",
285181
- "additionalProperties": {
285182
- "type": "string",
285183
- "maxLength": 500
285184
- },
285185
- "description": "Tags for the [Workflow](#schema_workflow)"
285186
- },
285187
- "status": {
285188
- "type": "string",
285189
- "enum": [
285190
- "pending",
285191
- "in_progress"
286309
+ ],
286310
+ "description": "Status of the workflow"
286311
+ },
286312
+ "failureReason": {
286313
+ "type": "string",
286314
+ "description": "Reason why the workflow failed"
286315
+ },
286316
+ "tags": {
286317
+ "type": "object",
286318
+ "additionalProperties": {
286319
+ "type": "string",
286320
+ "maxLength": 500
286321
+ },
286322
+ "description": "Tags for the [Workflow](#schema_workflow)"
286323
+ },
286324
+ "userId": {
286325
+ "type": "string",
286326
+ "description": "Specific user related to this workflow"
286327
+ },
286328
+ "eventId": {
286329
+ "type": "string",
286330
+ "description": "Event id must be specified if the workflow is updated with the status in_progress"
286331
+ }
286332
+ },
286333
+ "title": "updateWorkflowBody",
286334
+ "additionalProperties": false
286335
+ }
286336
+ },
286337
+ "section": "workflow",
286338
+ "response": {
286339
+ "description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
286340
+ "schema": {
286341
+ "type": "object",
286342
+ "properties": {
286343
+ "workflow": {
286344
+ "$ref": "#/components/schemas/Workflow"
286345
+ }
286346
+ },
286347
+ "required": [
286348
+ "workflow"
286349
+ ],
286350
+ "title": "updateWorkflowResponse",
286351
+ "additionalProperties": false
286352
+ }
286353
+ }
286354
+ },
286355
+ "deleteWorkflow": {
286356
+ "name": "deleteWorkflow",
286357
+ "description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
286358
+ "method": "delete",
286359
+ "path": "/v1/chat/workflows/{id}",
286360
+ "parameters": {
286361
+ "id": {
286362
+ "in": "path",
286363
+ "type": "string",
286364
+ "description": "Workflow id"
286365
+ }
286366
+ },
286367
+ "section": "workflow",
286368
+ "response": {
286369
+ "description": "Returns the [Workflow](#schema_workflow) object that was deleted",
286370
+ "schema": {
286371
+ "type": "object",
286372
+ "title": "deleteWorkflowResponse",
286373
+ "additionalProperties": false
286374
+ }
286375
+ }
286376
+ },
286377
+ "listWorkflows": {
286378
+ "name": "listWorkflows",
286379
+ "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).",
286380
+ "method": "get",
286381
+ "path": "/v1/chat/workflows",
286382
+ "parameters": {
286383
+ "nextToken": {
286384
+ "in": "query",
286385
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
286386
+ "type": "string"
286387
+ },
286388
+ "tags": {
286389
+ "in": "query",
286390
+ "type": "object",
286391
+ "schema": {
286392
+ "type": "object",
286393
+ "additionalProperties": {
286394
+ "type": "string"
286395
+ }
286396
+ },
286397
+ "description": "Filter by tags"
286398
+ },
286399
+ "conversationId": {
286400
+ "in": "query",
286401
+ "type": "string",
286402
+ "description": "Conversation id"
286403
+ },
286404
+ "userId": {
286405
+ "in": "query",
286406
+ "type": "string",
286407
+ "description": "User id"
286408
+ },
286409
+ "parentWorkflowId": {
286410
+ "in": "query",
286411
+ "type": "string",
286412
+ "description": "Parent workflow id"
286413
+ },
286414
+ "statuses": {
286415
+ "in": "query",
286416
+ "type": "string[]",
286417
+ "description": "Status",
286418
+ "enum": [
286419
+ "pending",
286420
+ "in_progress",
286421
+ "failed",
286422
+ "completed",
286423
+ "listening",
286424
+ "paused",
286425
+ "timedout",
286426
+ "cancelled"
286427
+ ]
286428
+ },
286429
+ "name": {
286430
+ "in": "query",
286431
+ "description": "Workflow name",
286432
+ "type": "string"
286433
+ }
286434
+ },
286435
+ "section": "workflow",
286436
+ "response": {
286437
+ "description": "Returns a list of [Workflow](#schema_workflow) objects",
286438
+ "schema": {
286439
+ "type": "object",
286440
+ "properties": {
286441
+ "workflows": {
286442
+ "type": "array",
286443
+ "items": {
286444
+ "$ref": "#/components/schemas/Workflow"
286445
+ }
286446
+ },
286447
+ "meta": {
286448
+ "type": "object",
286449
+ "properties": {
286450
+ "nextToken": {
286451
+ "type": "string",
286452
+ "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."
286453
+ }
286454
+ },
286455
+ "additionalProperties": false
286456
+ }
286457
+ },
286458
+ "required": [
286459
+ "workflows",
286460
+ "meta"
286461
+ ],
286462
+ "title": "listWorkflowsResponse",
286463
+ "additionalProperties": false
286464
+ }
286465
+ }
286466
+ },
286467
+ "getOrCreateWorkflow": {
286468
+ "name": "getOrCreateWorkflow",
286469
+ "description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
286470
+ "method": "post",
286471
+ "path": "/v1/chat/workflows/get-or-create",
286472
+ "requestBody": {
286473
+ "description": "Workflow data",
286474
+ "schema": {
286475
+ "type": "object",
286476
+ "properties": {
286477
+ "name": {
286478
+ "type": "string",
286479
+ "description": "Name of the workflow"
286480
+ },
286481
+ "input": {
286482
+ "type": "object",
286483
+ "additionalProperties": true,
286484
+ "description": "Content related to the workflow"
286485
+ },
286486
+ "parentWorkflowId": {
286487
+ "type": "string",
286488
+ "description": "Parent workflow id is the parent workflow that created this workflow"
286489
+ },
286490
+ "conversationId": {
286491
+ "type": "string",
286492
+ "description": "Conversation id related to this workflow"
286493
+ },
286494
+ "userId": {
286495
+ "type": "string",
286496
+ "description": "Specific user related to this workflow"
286497
+ },
286498
+ "timeoutAt": {
286499
+ "type": "string",
286500
+ "format": "date-time",
286501
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
286502
+ },
286503
+ "tags": {
286504
+ "type": "object",
286505
+ "additionalProperties": {
286506
+ "type": "string",
286507
+ "maxLength": 500
286508
+ },
286509
+ "description": "Tags for the [Workflow](#schema_workflow)"
286510
+ },
286511
+ "status": {
286512
+ "type": "string",
286513
+ "enum": [
286514
+ "pending",
286515
+ "in_progress",
286516
+ "listening"
285192
286517
  ]
285193
286518
  },
285194
286519
  "eventId": {
@@ -285344,7 +286669,7 @@ var state = {
285344
286669
  "title": "Botpress API",
285345
286670
  "description": "API for Botpress Cloud",
285346
286671
  "server": "https://api.botpress.cloud",
285347
- "version": "1.40.0",
286672
+ "version": "1.42.0",
285348
286673
  "prefix": "v1"
285349
286674
  },
285350
286675
  "errors": [
@@ -288212,6 +289537,13 @@ var state = {
288212
289537
  "type": "string"
288213
289538
  },
288214
289539
  "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
289540
+ },
289541
+ "origin": {
289542
+ "type": "string",
289543
+ "enum": [
289544
+ "synthetic"
289545
+ ],
289546
+ "description": "Origin of the message (`synthetic`)."
288215
289547
  }
288216
289548
  },
288217
289549
  "required": [
@@ -303294,7 +304626,7 @@ var state2 = {
303294
304626
  "title": "Botpress API",
303295
304627
  "description": "API for Botpress Cloud",
303296
304628
  "server": "https://api.botpress.cloud",
303297
- "version": "1.40.0",
304629
+ "version": "1.42.0",
303298
304630
  "prefix": "v1"
303299
304631
  },
303300
304632
  "errors": [
@@ -306235,6 +307567,13 @@ var state2 = {
306235
307567
  "type": "string"
306236
307568
  },
306237
307569
  "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
307570
+ },
307571
+ "origin": {
307572
+ "type": "string",
307573
+ "enum": [
307574
+ "synthetic"
307575
+ ],
307576
+ "description": "Origin of the message (`synthetic`)."
306238
307577
  }
306239
307578
  },
306240
307579
  "required": [
@@ -309257,7 +310596,7 @@ var state3 = {
309257
310596
  "title": "Botpress API",
309258
310597
  "description": "API for Botpress Cloud",
309259
310598
  "server": "https://api.botpress.cloud",
309260
- "version": "1.40.0",
310599
+ "version": "1.42.0",
309261
310600
  "prefix": "v1"
309262
310601
  },
309263
310602
  "errors": [
@@ -312080,6 +313419,13 @@ var state3 = {
312080
313419
  "type": "string"
312081
313420
  },
312082
313421
  "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
313422
+ },
313423
+ "origin": {
313424
+ "type": "string",
313425
+ "enum": [
313426
+ "synthetic"
313427
+ ],
313428
+ "description": "Origin of the message (`synthetic`)."
312083
313429
  }
312084
313430
  },
312085
313431
  "required": [
@@ -314349,7 +315695,7 @@ var state4 = {
314349
315695
  "title": "Botpress API",
314350
315696
  "description": "API for Botpress Cloud",
314351
315697
  "server": "https://api.botpress.cloud",
314352
- "version": "1.40.0",
315698
+ "version": "1.42.0",
314353
315699
  "prefix": "v1"
314354
315700
  },
314355
315701
  "errors": [
@@ -317179,6 +318525,13 @@ var state4 = {
317179
318525
  "type": "string"
317180
318526
  },
317181
318527
  "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
318528
+ },
318529
+ "origin": {
318530
+ "type": "string",
318531
+ "enum": [
318532
+ "synthetic"
318533
+ ],
318534
+ "description": "Origin of the message (`synthetic`)."
317182
318535
  }
317183
318536
  },
317184
318537
  "required": [
@@ -318965,6 +320318,12 @@ var state5 = {
318965
320318
  },
318966
320319
  "description": "Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.",
318967
320320
  "additionalProperties": false
320321
+ },
320322
+ "origin": {
320323
+ "type": "string",
320324
+ "enum": [
320325
+ "synthetic"
320326
+ ]
318968
320327
  }
318969
320328
  },
318970
320329
  "required": [
@@ -319055,6 +320414,12 @@ var state5 = {
319055
320414
  "description": "Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.",
319056
320415
  "additionalProperties": false
319057
320416
  },
320417
+ "origin": {
320418
+ "type": "string",
320419
+ "enum": [
320420
+ "synthetic"
320421
+ ]
320422
+ },
319058
320423
  "discriminateByTags": {
319059
320424
  "type": "array",
319060
320425
  "items": {
@@ -320387,315 +321752,317 @@ var state5 = {
320387
321752
  "type": "string",
320388
321753
  "enum": [
320389
321754
  "pending",
321755
+ "in_progress",
321756
+ "listening"
321757
+ ]
321758
+ },
321759
+ "eventId": {
321760
+ "type": "string",
321761
+ "description": "Event id must be specified if the workflow is created with the status in_progress"
321762
+ }
321763
+ },
321764
+ "required": [
321765
+ "name",
321766
+ "status"
321767
+ ],
321768
+ "title": "createWorkflowBody",
321769
+ "additionalProperties": false
321770
+ }
321771
+ },
321772
+ "section": "workflow",
321773
+ "response": {
321774
+ "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
321775
+ "status": 201,
321776
+ "schema": {
321777
+ "type": "object",
321778
+ "properties": {
321779
+ "workflow": {
321780
+ "$ref": "#/components/schemas/Workflow"
321781
+ }
321782
+ },
321783
+ "required": [
321784
+ "workflow"
321785
+ ],
321786
+ "title": "createWorkflowResponse",
321787
+ "additionalProperties": false
321788
+ }
321789
+ },
321790
+ "parameters": {}
321791
+ },
321792
+ "getWorkflow": {
321793
+ "name": "getWorkflow",
321794
+ "description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
321795
+ "method": "get",
321796
+ "path": "/v1/chat/workflows/{id}",
321797
+ "parameters": {
321798
+ "id": {
321799
+ "in": "path",
321800
+ "type": "string",
321801
+ "description": "Workflow id"
321802
+ }
321803
+ },
321804
+ "section": "workflow",
321805
+ "response": {
321806
+ "description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
321807
+ "schema": {
321808
+ "type": "object",
321809
+ "properties": {
321810
+ "workflow": {
321811
+ "$ref": "#/components/schemas/Workflow"
321812
+ }
321813
+ },
321814
+ "required": [
321815
+ "workflow"
321816
+ ],
321817
+ "title": "getWorkflowResponse",
321818
+ "additionalProperties": false
321819
+ }
321820
+ }
321821
+ },
321822
+ "updateWorkflow": {
321823
+ "name": "updateWorkflow",
321824
+ "description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
321825
+ "method": "put",
321826
+ "path": "/v1/chat/workflows/{id}",
321827
+ "parameters": {
321828
+ "id": {
321829
+ "in": "path",
321830
+ "type": "string",
321831
+ "description": "Workflow id"
321832
+ }
321833
+ },
321834
+ "requestBody": {
321835
+ "description": "Workflow data",
321836
+ "schema": {
321837
+ "type": "object",
321838
+ "properties": {
321839
+ "output": {
321840
+ "type": "object",
321841
+ "additionalProperties": true,
321842
+ "description": "Content related to the workflow"
321843
+ },
321844
+ "timeoutAt": {
321845
+ "type": "string",
321846
+ "format": "date-time",
321847
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
321848
+ },
321849
+ "status": {
321850
+ "type": "string",
321851
+ "enum": [
321852
+ "completed",
321853
+ "cancelled",
321854
+ "listening",
321855
+ "paused",
321856
+ "failed",
320390
321857
  "in_progress"
320391
- ]
320392
- },
320393
- "eventId": {
320394
- "type": "string",
320395
- "description": "Event id must be specified if the workflow is created with the status in_progress"
320396
- }
320397
- },
320398
- "required": [
320399
- "name",
320400
- "status"
320401
- ],
320402
- "title": "createWorkflowBody",
320403
- "additionalProperties": false
320404
- }
320405
- },
320406
- "section": "workflow",
320407
- "response": {
320408
- "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
320409
- "status": 201,
320410
- "schema": {
320411
- "type": "object",
320412
- "properties": {
320413
- "workflow": {
320414
- "$ref": "#/components/schemas/Workflow"
320415
- }
320416
- },
320417
- "required": [
320418
- "workflow"
320419
- ],
320420
- "title": "createWorkflowResponse",
320421
- "additionalProperties": false
320422
- }
320423
- },
320424
- "parameters": {}
320425
- },
320426
- "getWorkflow": {
320427
- "name": "getWorkflow",
320428
- "description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
320429
- "method": "get",
320430
- "path": "/v1/chat/workflows/{id}",
320431
- "parameters": {
320432
- "id": {
320433
- "in": "path",
320434
- "type": "string",
320435
- "description": "Workflow id"
320436
- }
320437
- },
320438
- "section": "workflow",
320439
- "response": {
320440
- "description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
320441
- "schema": {
320442
- "type": "object",
320443
- "properties": {
320444
- "workflow": {
320445
- "$ref": "#/components/schemas/Workflow"
320446
- }
320447
- },
320448
- "required": [
320449
- "workflow"
320450
- ],
320451
- "title": "getWorkflowResponse",
320452
- "additionalProperties": false
320453
- }
320454
- }
320455
- },
320456
- "updateWorkflow": {
320457
- "name": "updateWorkflow",
320458
- "description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
320459
- "method": "put",
320460
- "path": "/v1/chat/workflows/{id}",
320461
- "parameters": {
320462
- "id": {
320463
- "in": "path",
320464
- "type": "string",
320465
- "description": "Workflow id"
320466
- }
320467
- },
320468
- "requestBody": {
320469
- "description": "Workflow data",
320470
- "schema": {
320471
- "type": "object",
320472
- "properties": {
320473
- "output": {
320474
- "type": "object",
320475
- "additionalProperties": true,
320476
- "description": "Content related to the workflow"
320477
- },
320478
- "timeoutAt": {
320479
- "type": "string",
320480
- "format": "date-time",
320481
- "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
320482
- },
320483
- "status": {
320484
- "type": "string",
320485
- "enum": [
320486
- "completed",
320487
- "cancelled",
320488
- "listening",
320489
- "paused",
320490
- "failed",
320491
- "in_progress"
320492
- ],
320493
- "description": "Status of the workflow"
320494
- },
320495
- "failureReason": {
320496
- "type": "string",
320497
- "description": "Reason why the workflow failed"
320498
- },
320499
- "tags": {
320500
- "type": "object",
320501
- "additionalProperties": {
320502
- "type": "string",
320503
- "maxLength": 500
320504
- },
320505
- "description": "Tags for the [Workflow](#schema_workflow)"
320506
- },
320507
- "userId": {
320508
- "type": "string",
320509
- "description": "Specific user related to this workflow"
320510
- },
320511
- "eventId": {
320512
- "type": "string",
320513
- "description": "Event id must be specified if the workflow is updated with the status in_progress"
320514
- }
320515
- },
320516
- "title": "updateWorkflowBody",
320517
- "additionalProperties": false
320518
- }
320519
- },
320520
- "section": "workflow",
320521
- "response": {
320522
- "description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
320523
- "schema": {
320524
- "type": "object",
320525
- "properties": {
320526
- "workflow": {
320527
- "$ref": "#/components/schemas/Workflow"
320528
- }
320529
- },
320530
- "required": [
320531
- "workflow"
320532
- ],
320533
- "title": "updateWorkflowResponse",
320534
- "additionalProperties": false
320535
- }
320536
- }
320537
- },
320538
- "deleteWorkflow": {
320539
- "name": "deleteWorkflow",
320540
- "description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
320541
- "method": "delete",
320542
- "path": "/v1/chat/workflows/{id}",
320543
- "parameters": {
320544
- "id": {
320545
- "in": "path",
320546
- "type": "string",
320547
- "description": "Workflow id"
320548
- }
320549
- },
320550
- "section": "workflow",
320551
- "response": {
320552
- "description": "Returns the [Workflow](#schema_workflow) object that was deleted",
320553
- "schema": {
320554
- "type": "object",
320555
- "title": "deleteWorkflowResponse",
320556
- "additionalProperties": false
320557
- }
320558
- }
320559
- },
320560
- "listWorkflows": {
320561
- "name": "listWorkflows",
320562
- "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).",
320563
- "method": "get",
320564
- "path": "/v1/chat/workflows",
320565
- "parameters": {
320566
- "nextToken": {
320567
- "in": "query",
320568
- "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
320569
- "type": "string"
320570
- },
320571
- "tags": {
320572
- "in": "query",
320573
- "type": "object",
320574
- "schema": {
320575
- "type": "object",
320576
- "additionalProperties": {
320577
- "type": "string"
320578
- }
320579
- },
320580
- "description": "Filter by tags"
320581
- },
320582
- "conversationId": {
320583
- "in": "query",
320584
- "type": "string",
320585
- "description": "Conversation id"
320586
- },
320587
- "userId": {
320588
- "in": "query",
320589
- "type": "string",
320590
- "description": "User id"
320591
- },
320592
- "parentWorkflowId": {
320593
- "in": "query",
320594
- "type": "string",
320595
- "description": "Parent workflow id"
320596
- },
320597
- "statuses": {
320598
- "in": "query",
320599
- "type": "string[]",
320600
- "description": "Status",
320601
- "enum": [
320602
- "pending",
320603
- "in_progress",
320604
- "failed",
320605
- "completed",
320606
- "listening",
320607
- "paused",
320608
- "timedout",
320609
- "cancelled"
320610
- ]
320611
- },
320612
- "name": {
320613
- "in": "query",
320614
- "description": "Workflow name",
320615
- "type": "string"
320616
- }
320617
- },
320618
- "section": "workflow",
320619
- "response": {
320620
- "description": "Returns a list of [Workflow](#schema_workflow) objects",
320621
- "schema": {
320622
- "type": "object",
320623
- "properties": {
320624
- "workflows": {
320625
- "type": "array",
320626
- "items": {
320627
- "$ref": "#/components/schemas/Workflow"
320628
- }
320629
- },
320630
- "meta": {
320631
- "type": "object",
320632
- "properties": {
320633
- "nextToken": {
320634
- "type": "string",
320635
- "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."
320636
- }
320637
- },
320638
- "additionalProperties": false
320639
- }
320640
- },
320641
- "required": [
320642
- "workflows",
320643
- "meta"
320644
- ],
320645
- "title": "listWorkflowsResponse",
320646
- "additionalProperties": false
320647
- }
320648
- }
320649
- },
320650
- "getOrCreateWorkflow": {
320651
- "name": "getOrCreateWorkflow",
320652
- "description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
320653
- "method": "post",
320654
- "path": "/v1/chat/workflows/get-or-create",
320655
- "requestBody": {
320656
- "description": "Workflow data",
320657
- "schema": {
320658
- "type": "object",
320659
- "properties": {
320660
- "name": {
320661
- "type": "string",
320662
- "description": "Name of the workflow"
320663
- },
320664
- "input": {
320665
- "type": "object",
320666
- "additionalProperties": true,
320667
- "description": "Content related to the workflow"
320668
- },
320669
- "parentWorkflowId": {
320670
- "type": "string",
320671
- "description": "Parent workflow id is the parent workflow that created this workflow"
320672
- },
320673
- "conversationId": {
320674
- "type": "string",
320675
- "description": "Conversation id related to this workflow"
320676
- },
320677
- "userId": {
320678
- "type": "string",
320679
- "description": "Specific user related to this workflow"
320680
- },
320681
- "timeoutAt": {
320682
- "type": "string",
320683
- "format": "date-time",
320684
- "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
320685
- },
320686
- "tags": {
320687
- "type": "object",
320688
- "additionalProperties": {
320689
- "type": "string",
320690
- "maxLength": 500
320691
- },
320692
- "description": "Tags for the [Workflow](#schema_workflow)"
320693
- },
320694
- "status": {
320695
- "type": "string",
320696
- "enum": [
320697
- "pending",
320698
- "in_progress"
321858
+ ],
321859
+ "description": "Status of the workflow"
321860
+ },
321861
+ "failureReason": {
321862
+ "type": "string",
321863
+ "description": "Reason why the workflow failed"
321864
+ },
321865
+ "tags": {
321866
+ "type": "object",
321867
+ "additionalProperties": {
321868
+ "type": "string",
321869
+ "maxLength": 500
321870
+ },
321871
+ "description": "Tags for the [Workflow](#schema_workflow)"
321872
+ },
321873
+ "userId": {
321874
+ "type": "string",
321875
+ "description": "Specific user related to this workflow"
321876
+ },
321877
+ "eventId": {
321878
+ "type": "string",
321879
+ "description": "Event id must be specified if the workflow is updated with the status in_progress"
321880
+ }
321881
+ },
321882
+ "title": "updateWorkflowBody",
321883
+ "additionalProperties": false
321884
+ }
321885
+ },
321886
+ "section": "workflow",
321887
+ "response": {
321888
+ "description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
321889
+ "schema": {
321890
+ "type": "object",
321891
+ "properties": {
321892
+ "workflow": {
321893
+ "$ref": "#/components/schemas/Workflow"
321894
+ }
321895
+ },
321896
+ "required": [
321897
+ "workflow"
321898
+ ],
321899
+ "title": "updateWorkflowResponse",
321900
+ "additionalProperties": false
321901
+ }
321902
+ }
321903
+ },
321904
+ "deleteWorkflow": {
321905
+ "name": "deleteWorkflow",
321906
+ "description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
321907
+ "method": "delete",
321908
+ "path": "/v1/chat/workflows/{id}",
321909
+ "parameters": {
321910
+ "id": {
321911
+ "in": "path",
321912
+ "type": "string",
321913
+ "description": "Workflow id"
321914
+ }
321915
+ },
321916
+ "section": "workflow",
321917
+ "response": {
321918
+ "description": "Returns the [Workflow](#schema_workflow) object that was deleted",
321919
+ "schema": {
321920
+ "type": "object",
321921
+ "title": "deleteWorkflowResponse",
321922
+ "additionalProperties": false
321923
+ }
321924
+ }
321925
+ },
321926
+ "listWorkflows": {
321927
+ "name": "listWorkflows",
321928
+ "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).",
321929
+ "method": "get",
321930
+ "path": "/v1/chat/workflows",
321931
+ "parameters": {
321932
+ "nextToken": {
321933
+ "in": "query",
321934
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
321935
+ "type": "string"
321936
+ },
321937
+ "tags": {
321938
+ "in": "query",
321939
+ "type": "object",
321940
+ "schema": {
321941
+ "type": "object",
321942
+ "additionalProperties": {
321943
+ "type": "string"
321944
+ }
321945
+ },
321946
+ "description": "Filter by tags"
321947
+ },
321948
+ "conversationId": {
321949
+ "in": "query",
321950
+ "type": "string",
321951
+ "description": "Conversation id"
321952
+ },
321953
+ "userId": {
321954
+ "in": "query",
321955
+ "type": "string",
321956
+ "description": "User id"
321957
+ },
321958
+ "parentWorkflowId": {
321959
+ "in": "query",
321960
+ "type": "string",
321961
+ "description": "Parent workflow id"
321962
+ },
321963
+ "statuses": {
321964
+ "in": "query",
321965
+ "type": "string[]",
321966
+ "description": "Status",
321967
+ "enum": [
321968
+ "pending",
321969
+ "in_progress",
321970
+ "failed",
321971
+ "completed",
321972
+ "listening",
321973
+ "paused",
321974
+ "timedout",
321975
+ "cancelled"
321976
+ ]
321977
+ },
321978
+ "name": {
321979
+ "in": "query",
321980
+ "description": "Workflow name",
321981
+ "type": "string"
321982
+ }
321983
+ },
321984
+ "section": "workflow",
321985
+ "response": {
321986
+ "description": "Returns a list of [Workflow](#schema_workflow) objects",
321987
+ "schema": {
321988
+ "type": "object",
321989
+ "properties": {
321990
+ "workflows": {
321991
+ "type": "array",
321992
+ "items": {
321993
+ "$ref": "#/components/schemas/Workflow"
321994
+ }
321995
+ },
321996
+ "meta": {
321997
+ "type": "object",
321998
+ "properties": {
321999
+ "nextToken": {
322000
+ "type": "string",
322001
+ "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."
322002
+ }
322003
+ },
322004
+ "additionalProperties": false
322005
+ }
322006
+ },
322007
+ "required": [
322008
+ "workflows",
322009
+ "meta"
322010
+ ],
322011
+ "title": "listWorkflowsResponse",
322012
+ "additionalProperties": false
322013
+ }
322014
+ }
322015
+ },
322016
+ "getOrCreateWorkflow": {
322017
+ "name": "getOrCreateWorkflow",
322018
+ "description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
322019
+ "method": "post",
322020
+ "path": "/v1/chat/workflows/get-or-create",
322021
+ "requestBody": {
322022
+ "description": "Workflow data",
322023
+ "schema": {
322024
+ "type": "object",
322025
+ "properties": {
322026
+ "name": {
322027
+ "type": "string",
322028
+ "description": "Name of the workflow"
322029
+ },
322030
+ "input": {
322031
+ "type": "object",
322032
+ "additionalProperties": true,
322033
+ "description": "Content related to the workflow"
322034
+ },
322035
+ "parentWorkflowId": {
322036
+ "type": "string",
322037
+ "description": "Parent workflow id is the parent workflow that created this workflow"
322038
+ },
322039
+ "conversationId": {
322040
+ "type": "string",
322041
+ "description": "Conversation id related to this workflow"
322042
+ },
322043
+ "userId": {
322044
+ "type": "string",
322045
+ "description": "Specific user related to this workflow"
322046
+ },
322047
+ "timeoutAt": {
322048
+ "type": "string",
322049
+ "format": "date-time",
322050
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
322051
+ },
322052
+ "tags": {
322053
+ "type": "object",
322054
+ "additionalProperties": {
322055
+ "type": "string",
322056
+ "maxLength": 500
322057
+ },
322058
+ "description": "Tags for the [Workflow](#schema_workflow)"
322059
+ },
322060
+ "status": {
322061
+ "type": "string",
322062
+ "enum": [
322063
+ "pending",
322064
+ "in_progress",
322065
+ "listening"
320699
322066
  ]
320700
322067
  },
320701
322068
  "eventId": {
@@ -337899,7 +339266,7 @@ var state5 = {
337899
339266
  "title": "Botpress API",
337900
339267
  "description": "API for Botpress Cloud",
337901
339268
  "server": "https://api.botpress.cloud",
337902
- "version": "1.40.0",
339269
+ "version": "1.42.0",
337903
339270
  "prefix": "v1"
337904
339271
  },
337905
339272
  "errors": [
@@ -340959,6 +342326,13 @@ var state5 = {
340959
342326
  "type": "string"
340960
342327
  },
340961
342328
  "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
342329
+ },
342330
+ "origin": {
342331
+ "type": "string",
342332
+ "enum": [
342333
+ "synthetic"
342334
+ ],
342335
+ "description": "Origin of the message (`synthetic`)."
340962
342336
  }
340963
342337
  },
340964
342338
  "required": [