@meetkai/mka1 0.55.12 → 0.55.14

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.
Files changed (123) hide show
  1. package/bin/mcp-server.js +1021 -135
  2. package/bin/mcp-server.js.map +35 -29
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +2 -0
  8. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/addcatalogmodelrequest.js +2 -0
  10. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  11. package/dist/commonjs/models/components/agenttooldefinition.d.ts +35 -0
  12. package/dist/commonjs/models/components/agenttooldefinition.d.ts.map +1 -0
  13. package/dist/commonjs/models/components/agenttooldefinition.js +73 -0
  14. package/dist/commonjs/models/components/agenttooldefinition.js.map +1 -0
  15. package/dist/commonjs/models/components/index.d.ts +4 -0
  16. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/index.js +4 -0
  18. package/dist/commonjs/models/components/index.js.map +1 -1
  19. package/dist/commonjs/models/components/livekittokenrequest.d.ts +5 -4
  20. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/livekittokenrequest.js +5 -0
  22. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  23. package/dist/commonjs/models/components/responseagentcallcompletedevent.d.ts +25 -0
  24. package/dist/commonjs/models/components/responseagentcallcompletedevent.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/responseagentcallcompletedevent.js +81 -0
  26. package/dist/commonjs/models/components/responseagentcallcompletedevent.js.map +1 -0
  27. package/dist/commonjs/models/components/responseagentcallfailedevent.d.ts +25 -0
  28. package/dist/commonjs/models/components/responseagentcallfailedevent.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/responseagentcallfailedevent.js +79 -0
  30. package/dist/commonjs/models/components/responseagentcallfailedevent.js.map +1 -0
  31. package/dist/commonjs/models/components/responseagentcallinprogressevent.d.ts +25 -0
  32. package/dist/commonjs/models/components/responseagentcallinprogressevent.d.ts.map +1 -0
  33. package/dist/commonjs/models/components/responseagentcallinprogressevent.js +81 -0
  34. package/dist/commonjs/models/components/responseagentcallinprogressevent.js.map +1 -0
  35. package/dist/commonjs/models/components/responseobject.d.ts +5 -4
  36. package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/responseobject.js +5 -0
  38. package/dist/commonjs/models/components/responseobject.js.map +1 -1
  39. package/dist/commonjs/models/components/responsescreaterequest.d.ts +5 -4
  40. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/responsescreaterequest.js +5 -0
  42. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  43. package/dist/commonjs/models/components/responsestreamingevent.d.ts +5 -2
  44. package/dist/commonjs/models/components/responsestreamingevent.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/responsestreamingevent.js +9 -0
  46. package/dist/commonjs/models/components/responsestreamingevent.js.map +1 -1
  47. package/dist/commonjs/models/components/tooldefinition.d.ts +38 -8
  48. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/tooldefinition.js +51 -11
  50. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  51. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +2 -0
  52. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +2 -0
  54. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  55. package/dist/esm/lib/config.d.ts +2 -2
  56. package/dist/esm/lib/config.js +2 -2
  57. package/dist/esm/mcp-server/mcp-server.js +1 -1
  58. package/dist/esm/mcp-server/server.js +1 -1
  59. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +2 -0
  60. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  61. package/dist/esm/models/components/addcatalogmodelrequest.js +2 -0
  62. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  63. package/dist/esm/models/components/agenttooldefinition.d.ts +35 -0
  64. package/dist/esm/models/components/agenttooldefinition.d.ts.map +1 -0
  65. package/dist/esm/models/components/agenttooldefinition.js +35 -0
  66. package/dist/esm/models/components/agenttooldefinition.js.map +1 -0
  67. package/dist/esm/models/components/index.d.ts +4 -0
  68. package/dist/esm/models/components/index.d.ts.map +1 -1
  69. package/dist/esm/models/components/index.js +4 -0
  70. package/dist/esm/models/components/index.js.map +1 -1
  71. package/dist/esm/models/components/livekittokenrequest.d.ts +5 -4
  72. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  73. package/dist/esm/models/components/livekittokenrequest.js +5 -0
  74. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  75. package/dist/esm/models/components/responseagentcallcompletedevent.d.ts +25 -0
  76. package/dist/esm/models/components/responseagentcallcompletedevent.d.ts.map +1 -0
  77. package/dist/esm/models/components/responseagentcallcompletedevent.js +43 -0
  78. package/dist/esm/models/components/responseagentcallcompletedevent.js.map +1 -0
  79. package/dist/esm/models/components/responseagentcallfailedevent.d.ts +25 -0
  80. package/dist/esm/models/components/responseagentcallfailedevent.d.ts.map +1 -0
  81. package/dist/esm/models/components/responseagentcallfailedevent.js +41 -0
  82. package/dist/esm/models/components/responseagentcallfailedevent.js.map +1 -0
  83. package/dist/esm/models/components/responseagentcallinprogressevent.d.ts +25 -0
  84. package/dist/esm/models/components/responseagentcallinprogressevent.d.ts.map +1 -0
  85. package/dist/esm/models/components/responseagentcallinprogressevent.js +43 -0
  86. package/dist/esm/models/components/responseagentcallinprogressevent.js.map +1 -0
  87. package/dist/esm/models/components/responseobject.d.ts +5 -4
  88. package/dist/esm/models/components/responseobject.d.ts.map +1 -1
  89. package/dist/esm/models/components/responseobject.js +5 -0
  90. package/dist/esm/models/components/responseobject.js.map +1 -1
  91. package/dist/esm/models/components/responsescreaterequest.d.ts +5 -4
  92. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  93. package/dist/esm/models/components/responsescreaterequest.js +5 -0
  94. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  95. package/dist/esm/models/components/responsestreamingevent.d.ts +5 -2
  96. package/dist/esm/models/components/responsestreamingevent.d.ts.map +1 -1
  97. package/dist/esm/models/components/responsestreamingevent.js +9 -0
  98. package/dist/esm/models/components/responsestreamingevent.js.map +1 -1
  99. package/dist/esm/models/components/tooldefinition.d.ts +38 -8
  100. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  101. package/dist/esm/models/components/tooldefinition.js +47 -9
  102. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  103. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +2 -0
  104. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  105. package/dist/esm/models/components/updatecatalogmodelrequest.js +2 -0
  106. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  107. package/jsr.json +1 -1
  108. package/package.json +1 -1
  109. package/src/lib/config.ts +2 -2
  110. package/src/mcp-server/mcp-server.ts +1 -1
  111. package/src/mcp-server/server.ts +1 -1
  112. package/src/models/components/addcatalogmodelrequest.ts +4 -0
  113. package/src/models/components/agenttooldefinition.ts +84 -0
  114. package/src/models/components/index.ts +4 -0
  115. package/src/models/components/livekittokenrequest.ts +14 -0
  116. package/src/models/components/responseagentcallcompletedevent.ts +84 -0
  117. package/src/models/components/responseagentcallfailedevent.ts +82 -0
  118. package/src/models/components/responseagentcallinprogressevent.ts +84 -0
  119. package/src/models/components/responseobject.ts +14 -0
  120. package/src/models/components/responsescreaterequest.ts +14 -0
  121. package/src/models/components/responsestreamingevent.ts +32 -0
  122. package/src/models/components/tooldefinition.ts +95 -21
  123. package/src/models/components/updatecatalogmodelrequest.ts +4 -0
package/bin/mcp-server.js CHANGED
@@ -48337,7 +48337,7 @@ var init_stdio = __esm(() => {
48337
48337
  swallowsErrorsAfterClose = Symbol("swallowsErrorsAfterClose");
48338
48338
  });
48339
48339
 
48340
- // node_modules/statuses/codes.json
48340
+ // node_modules/body-parser/node_modules/statuses/codes.json
48341
48341
  var require_codes2 = __commonJS((exports, module) => {
48342
48342
  module.exports = {
48343
48343
  "100": "Continue",
@@ -48406,7 +48406,7 @@ var require_codes2 = __commonJS((exports, module) => {
48406
48406
  };
48407
48407
  });
48408
48408
 
48409
- // node_modules/statuses/index.js
48409
+ // node_modules/body-parser/node_modules/statuses/index.js
48410
48410
  var require_statuses2 = __commonJS((exports, module) => {
48411
48411
  /*!
48412
48412
  * statuses
@@ -48480,7 +48480,7 @@ var require_statuses2 = __commonJS((exports, module) => {
48480
48480
  }
48481
48481
  });
48482
48482
 
48483
- // node_modules/http-errors/index.js
48483
+ // node_modules/body-parser/node_modules/http-errors/index.js
48484
48484
  var require_http_errors2 = __commonJS((exports, module) => {
48485
48485
  /*!
48486
48486
  * http-errors
@@ -48643,7 +48643,7 @@ var require_http_errors2 = __commonJS((exports, module) => {
48643
48643
  });
48644
48644
  }
48645
48645
  function toClassName(name) {
48646
- return name.substr(-5) !== "Error" ? name + "Error" : name;
48646
+ return name.slice(-5) === "Error" ? name : name + "Error";
48647
48647
  }
48648
48648
  });
48649
48649
 
@@ -52781,6 +52781,12 @@ var require_read = __commonJS((exports, module) => {
52781
52781
  req._body = true;
52782
52782
  var encoding = opts.encoding !== null ? opts.encoding : null;
52783
52783
  var verify = opts.verify;
52784
+ if (verify && encoding !== null && !iconv.encodingExists(encoding)) {
52785
+ return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
52786
+ charset: encoding.toLowerCase(),
52787
+ type: "charset.unsupported"
52788
+ }));
52789
+ }
52784
52790
  try {
52785
52791
  stream = contentstream(req, debug, opts.inflate);
52786
52792
  length = stream.length;
@@ -52790,12 +52796,6 @@ var require_read = __commonJS((exports, module) => {
52790
52796
  }
52791
52797
  opts.length = length;
52792
52798
  opts.encoding = verify ? null : encoding;
52793
- if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
52794
- return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
52795
- charset: encoding.toLowerCase(),
52796
- type: "charset.unsupported"
52797
- }));
52798
- }
52799
52799
  debug("read body");
52800
52800
  getBody(stream, opts, function(error4, body) {
52801
52801
  if (error4) {
@@ -52817,6 +52817,16 @@ var require_read = __commonJS((exports, module) => {
52817
52817
  });
52818
52818
  return;
52819
52819
  }
52820
+ if (stream !== req) {
52821
+ if (typeof req.unpipe === "function") {
52822
+ req.unpipe(stream);
52823
+ } else {
52824
+ unpipe(req);
52825
+ }
52826
+ stream.on("error", function() {});
52827
+ destroy(stream, true);
52828
+ req.resume();
52829
+ }
52820
52830
  if (verify) {
52821
52831
  try {
52822
52832
  debug("verify body");
@@ -61771,12 +61781,15 @@ var require_json = __commonJS((exports, module) => {
61771
61781
  var JSON_SYNTAX_REGEXP = /#+/g;
61772
61782
  function json(options) {
61773
61783
  var opts = options || {};
61774
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
61784
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
61775
61785
  var inflate = opts.inflate !== false;
61776
61786
  var reviver = opts.reviver;
61777
61787
  var strict = opts.strict !== false;
61778
61788
  var type = opts.type || "application/json";
61779
61789
  var verify = opts.verify || false;
61790
+ if (limit === null) {
61791
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
61792
+ }
61780
61793
  if (verify !== false && typeof verify !== "function") {
61781
61794
  throw new TypeError("option verify must be function");
61782
61795
  }
@@ -61841,10 +61854,7 @@ var require_json = __commonJS((exports, module) => {
61841
61854
  var index = str.indexOf(char);
61842
61855
  var partial4 = "";
61843
61856
  if (index !== -1) {
61844
- partial4 = str.substring(0, index) + JSON_SYNTAX_CHAR;
61845
- for (var i = index + 1;i < str.length; i++) {
61846
- partial4 += JSON_SYNTAX_CHAR;
61847
- }
61857
+ partial4 = str.substring(0, index) + new Array(str.length - index + 1).join(JSON_SYNTAX_CHAR);
61848
61858
  }
61849
61859
  try {
61850
61860
  JSON.parse(partial4);
@@ -61903,9 +61913,12 @@ var require_raw = __commonJS((exports, module) => {
61903
61913
  function raw(options) {
61904
61914
  var opts = options || {};
61905
61915
  var inflate = opts.inflate !== false;
61906
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
61916
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
61907
61917
  var type = opts.type || "application/octet-stream";
61908
61918
  var verify = opts.verify || false;
61919
+ if (limit === null) {
61920
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
61921
+ }
61909
61922
  if (verify !== false && typeof verify !== "function") {
61910
61923
  throw new TypeError("option verify must be function");
61911
61924
  }
@@ -61963,9 +61976,12 @@ var require_text = __commonJS((exports, module) => {
61963
61976
  var opts = options || {};
61964
61977
  var defaultCharset = opts.defaultCharset || "utf-8";
61965
61978
  var inflate = opts.inflate !== false;
61966
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
61979
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
61967
61980
  var type = opts.type || "text/plain";
61968
61981
  var verify = opts.verify || false;
61982
+ if (limit === null) {
61983
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
61984
+ }
61969
61985
  if (verify !== false && typeof verify !== "function") {
61970
61986
  throw new TypeError("option verify must be function");
61971
61987
  }
@@ -62606,9 +62622,8 @@ var require_side_channel_list = __commonJS((exports, module) => {
62606
62622
  }
62607
62623
  },
62608
62624
  delete: function(key) {
62609
- var root = $o && $o.next;
62610
62625
  var deletedNode = listDelete($o, key);
62611
- if (deletedNode && root && root === deletedNode) {
62626
+ if (deletedNode && $o && !$o.next) {
62612
62627
  $o = undefined;
62613
62628
  }
62614
62629
  return !!deletedNode;
@@ -63454,7 +63469,8 @@ var require_side_channel = __commonJS((exports, module) => {
63454
63469
  var channel = {
63455
63470
  assert: function(key) {
63456
63471
  if (!channel.has(key)) {
63457
- throw new $TypeError("Side channel does not contain " + inspect(key));
63472
+ var keyDesc = key && Object(key) === key ? "the given object key" : inspect(key);
63473
+ throw new $TypeError("Side channel does not contain " + keyDesc);
63458
63474
  }
63459
63475
  },
63460
63476
  delete: function(key) {
@@ -63503,12 +63519,39 @@ var require_formats2 = __commonJS((exports, module) => {
63503
63519
  // node_modules/qs/lib/utils.js
63504
63520
  var require_utils2 = __commonJS((exports, module) => {
63505
63521
  var formats = require_formats2();
63522
+ var getSideChannel = require_side_channel();
63523
+ var defineProperty = require_es_define_property();
63506
63524
  var has = Object.prototype.hasOwnProperty;
63507
63525
  var isArray = Array.isArray;
63526
+ var overflowChannel = getSideChannel();
63527
+ var markOverflow = function markOverflow(obj, maxIndex) {
63528
+ overflowChannel.set(obj, maxIndex);
63529
+ return obj;
63530
+ };
63531
+ var isOverflow = function isOverflow(obj) {
63532
+ return overflowChannel.has(obj);
63533
+ };
63534
+ var getMaxIndex = function getMaxIndex(obj) {
63535
+ return overflowChannel.get(obj);
63536
+ };
63537
+ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
63538
+ overflowChannel.set(obj, maxIndex);
63539
+ };
63540
+ var conflictChannel = getSideChannel();
63541
+ var markConflict = function markConflict(obj, maxIndex) {
63542
+ conflictChannel.set(obj, maxIndex);
63543
+ return obj;
63544
+ };
63545
+ var isConflict = function isConflict(obj) {
63546
+ return conflictChannel.has(obj);
63547
+ };
63548
+ var getConflictIndex = function getConflictIndex(obj) {
63549
+ return conflictChannel.get(obj);
63550
+ };
63508
63551
  var hexTable = function() {
63509
63552
  var array4 = [];
63510
63553
  for (var i = 0;i < 256; ++i) {
63511
- array4.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
63554
+ array4[array4.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
63512
63555
  }
63513
63556
  return array4;
63514
63557
  }();
@@ -63520,7 +63563,7 @@ var require_utils2 = __commonJS((exports, module) => {
63520
63563
  var compacted = [];
63521
63564
  for (var j2 = 0;j2 < obj.length; ++j2) {
63522
63565
  if (typeof obj[j2] !== "undefined") {
63523
- compacted.push(obj[j2]);
63566
+ compacted[compacted.length] = obj[j2];
63524
63567
  }
63525
63568
  }
63526
63569
  item.obj[item.prop] = compacted;
@@ -63528,7 +63571,7 @@ var require_utils2 = __commonJS((exports, module) => {
63528
63571
  }
63529
63572
  };
63530
63573
  var arrayToObject = function arrayToObject(source, options) {
63531
- var obj = options && options.plainObjects ? Object.create(null) : {};
63574
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
63532
63575
  for (var i = 0;i < source.length; ++i) {
63533
63576
  if (typeof source[i] !== "undefined") {
63534
63577
  obj[i] = source[i];
@@ -63536,28 +63579,101 @@ var require_utils2 = __commonJS((exports, module) => {
63536
63579
  }
63537
63580
  return obj;
63538
63581
  };
63582
+ var setProperty = function setProperty(obj, key, value) {
63583
+ if (key === "__proto__" && defineProperty) {
63584
+ defineProperty(obj, key, {
63585
+ configurable: true,
63586
+ enumerable: true,
63587
+ value,
63588
+ writable: true
63589
+ });
63590
+ } else {
63591
+ obj[key] = value;
63592
+ }
63593
+ };
63594
+ var maxNumericIndex = function maxNumericIndex(obj, min) {
63595
+ var max = min;
63596
+ var keys = Object.keys(obj);
63597
+ for (var i = 0;i < keys.length; ++i) {
63598
+ var num = parseInt(keys[i], 10);
63599
+ if (String(num) === keys[i] && num > max) {
63600
+ max = num;
63601
+ }
63602
+ }
63603
+ return max;
63604
+ };
63605
+ var limitedPair = function limitedPair(first, second, options) {
63606
+ var pair = [first, second];
63607
+ if (options && typeof options.arrayLimit === "number" && pair.length > options.arrayLimit) {
63608
+ if (options.throwOnLimitExceeded) {
63609
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63610
+ }
63611
+ return markOverflow(arrayToObject(pair, options), 1);
63612
+ }
63613
+ return pair;
63614
+ };
63539
63615
  var merge4 = function merge(target, source, options) {
63540
63616
  if (!source) {
63541
63617
  return target;
63542
63618
  }
63543
- if (typeof source !== "object") {
63619
+ if (typeof source !== "object" && typeof source !== "function") {
63544
63620
  if (isArray(target)) {
63545
- target.push(source);
63621
+ var nextIndex = target.length;
63622
+ if (options && typeof options.arrayLimit === "number" && nextIndex >= options.arrayLimit) {
63623
+ if (options.throwOnLimitExceeded) {
63624
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63625
+ }
63626
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
63627
+ }
63628
+ target[nextIndex] = source;
63546
63629
  } else if (target && typeof target === "object") {
63547
- if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
63630
+ if (isOverflow(target)) {
63631
+ var newIndex = getMaxIndex(target) + 1;
63632
+ target[newIndex] = source;
63633
+ setMaxIndex(target, newIndex);
63634
+ } else if (options && options.strictMerge && isConflict(target)) {
63635
+ var nextConflict = getConflictIndex(target) + 1;
63636
+ if (options.throwOnLimitExceeded && typeof options.arrayLimit === "number" && nextConflict >= options.arrayLimit) {
63637
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63638
+ }
63639
+ target[nextConflict] = source;
63640
+ markConflict(target, nextConflict);
63641
+ } else if (options && options.strictMerge) {
63642
+ var conflict = limitedPair(target, source, options);
63643
+ return isArray(conflict) ? markConflict(conflict, 1) : conflict;
63644
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
63548
63645
  target[source] = true;
63549
63646
  }
63550
63647
  } else {
63551
- return [target, source];
63648
+ return limitedPair(target, source, options);
63552
63649
  }
63553
63650
  return target;
63554
63651
  }
63555
63652
  if (!target || typeof target !== "object") {
63556
- return [target].concat(source);
63653
+ if (isOverflow(source)) {
63654
+ var sourceKeys = Object.keys(source);
63655
+ var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
63656
+ for (var m = 0;m < sourceKeys.length; m++) {
63657
+ var oldKey = parseInt(sourceKeys[m], 10);
63658
+ result[oldKey + 1] = source[sourceKeys[m]];
63659
+ }
63660
+ return markOverflow(result, getMaxIndex(source) + 1);
63661
+ }
63662
+ var combined = [target].concat(source);
63663
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
63664
+ if (options.throwOnLimitExceeded) {
63665
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63666
+ }
63667
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
63668
+ }
63669
+ return combined;
63557
63670
  }
63558
63671
  var mergeTarget = target;
63559
63672
  if (isArray(target) && !isArray(source)) {
63560
63673
  mergeTarget = arrayToObject(target, options);
63674
+ if (isConflict(target)) {
63675
+ markConflict(mergeTarget, target.length - 1);
63676
+ }
63561
63677
  }
63562
63678
  if (isArray(target) && isArray(source)) {
63563
63679
  source.forEach(function(item, i) {
@@ -63566,31 +63682,55 @@ var require_utils2 = __commonJS((exports, module) => {
63566
63682
  if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
63567
63683
  target[i] = merge(targetItem, item, options);
63568
63684
  } else {
63569
- target.push(item);
63685
+ target[target.length] = item;
63570
63686
  }
63571
63687
  } else {
63572
63688
  target[i] = item;
63573
63689
  }
63574
63690
  });
63691
+ if (options && typeof options.arrayLimit === "number" && target.length > options.arrayLimit) {
63692
+ if (options.throwOnLimitExceeded) {
63693
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63694
+ }
63695
+ return markOverflow(arrayToObject(target, options), target.length - 1);
63696
+ }
63575
63697
  return target;
63576
63698
  }
63577
63699
  return Object.keys(source).reduce(function(acc, key) {
63578
63700
  var value = source[key];
63579
63701
  if (has.call(acc, key)) {
63580
- acc[key] = merge(acc[key], value, options);
63702
+ setProperty(acc, key, merge(acc[key], value, options));
63581
63703
  } else {
63582
- acc[key] = value;
63704
+ setProperty(acc, key, value);
63705
+ }
63706
+ if (isOverflow(source) && !isOverflow(acc)) {
63707
+ markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
63708
+ }
63709
+ if (isOverflow(acc)) {
63710
+ var keyNum = parseInt(key, 10);
63711
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
63712
+ setMaxIndex(acc, keyNum);
63713
+ }
63714
+ }
63715
+ if (isConflict(acc)) {
63716
+ var conflictKey = parseInt(key, 10);
63717
+ if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
63718
+ markConflict(acc, conflictKey);
63719
+ }
63583
63720
  }
63584
63721
  return acc;
63585
63722
  }, mergeTarget);
63586
63723
  };
63587
63724
  var assign = function assignSingleSource(target, source) {
63588
63725
  return Object.keys(source).reduce(function(acc, key) {
63589
- acc[key] = source[key];
63726
+ setProperty(acc, key, source[key]);
63590
63727
  return acc;
63591
63728
  }, target);
63592
63729
  };
63593
- var decode4 = function(str, decoder, charset) {
63730
+ var decode4 = function(str, defaultDecoder, charset) {
63731
+ if (typeof str === "string" && str.indexOf("%") === -1) {
63732
+ return str.indexOf("+") === -1 ? str : str.replace(/\+/g, " ");
63733
+ }
63594
63734
  var strWithoutPlus = str.replace(/\+/g, " ");
63595
63735
  if (charset === "iso-8859-1") {
63596
63736
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -63601,6 +63741,52 @@ var require_utils2 = __commonJS((exports, module) => {
63601
63741
  return strWithoutPlus;
63602
63742
  }
63603
63743
  };
63744
+ var hasToPrimitive = typeof Symbol === "function" && typeof Symbol.toPrimitive === "symbol";
63745
+ var arrayJoin = Array.prototype.join;
63746
+ var arrayToString = Array.prototype.toString;
63747
+ var objectToString = Object.prototype.toString;
63748
+ var toCoercible = function toCoercible(value, joining) {
63749
+ if (!value || typeof value !== "object" && typeof value !== "function") {
63750
+ return value;
63751
+ }
63752
+ if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
63753
+ return value;
63754
+ }
63755
+ if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
63756
+ var ancestors = joining || getSideChannel();
63757
+ if (ancestors.has(value)) {
63758
+ return "";
63759
+ }
63760
+ ancestors.set(value, true);
63761
+ var copy;
63762
+ for (var i = 0;i < value.length; i += 1) {
63763
+ var item = value[i];
63764
+ var coerced = toCoercible(item, ancestors);
63765
+ if (!copy && coerced !== item) {
63766
+ copy = [];
63767
+ for (var j2 = 0;j2 < i; j2 += 1) {
63768
+ copy[j2] = value[j2];
63769
+ }
63770
+ }
63771
+ if (copy) {
63772
+ copy[i] = coerced;
63773
+ }
63774
+ }
63775
+ ancestors["delete"](value);
63776
+ return copy || value;
63777
+ }
63778
+ if (typeof value.toString === "function") {
63779
+ return value;
63780
+ }
63781
+ var valueOf = value.valueOf;
63782
+ if (typeof valueOf === "function") {
63783
+ var primitive = valueOf.call(value);
63784
+ if (!primitive || typeof primitive !== "object" && typeof primitive !== "function") {
63785
+ return String(primitive);
63786
+ }
63787
+ }
63788
+ return objectToString.call(value);
63789
+ };
63604
63790
  var limit = 1024;
63605
63791
  var encode4 = function encode(str, defaultEncoder, charset, kind, format) {
63606
63792
  if (str.length === 0) {
@@ -63610,16 +63796,23 @@ var require_utils2 = __commonJS((exports, module) => {
63610
63796
  if (typeof str === "symbol") {
63611
63797
  string8 = Symbol.prototype.toString.call(str);
63612
63798
  } else if (typeof str !== "string") {
63613
- string8 = String(str);
63799
+ string8 = String(toCoercible(str));
63614
63800
  }
63615
63801
  if (charset === "iso-8859-1") {
63616
63802
  return escape(string8).replace(/%u[0-9a-f]{4}/gi, function($0) {
63617
63803
  return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
63618
- });
63804
+ }).replace(/\+/g, "%2B");
63619
63805
  }
63620
63806
  var out = "";
63621
63807
  for (var j2 = 0;j2 < string8.length; j2 += limit) {
63622
63808
  var segment = string8.length >= limit ? string8.slice(j2, j2 + limit) : string8;
63809
+ if (j2 + limit < string8.length) {
63810
+ var last = segment.charCodeAt(segment.length - 1);
63811
+ if (last >= 55296 && last <= 56319) {
63812
+ segment = segment.slice(0, -1);
63813
+ j2 -= 1;
63814
+ }
63815
+ }
63623
63816
  var arr = [];
63624
63817
  for (var i = 0;i < segment.length; ++i) {
63625
63818
  var c = segment.charCodeAt(i);
@@ -63649,7 +63842,7 @@ var require_utils2 = __commonJS((exports, module) => {
63649
63842
  };
63650
63843
  var compact = function compact(value) {
63651
63844
  var queue = [{ obj: { o: value }, prop: "o" }];
63652
- var refs = [];
63845
+ var refs = getSideChannel();
63653
63846
  for (var i = 0;i < queue.length; ++i) {
63654
63847
  var item = queue[i];
63655
63848
  var obj = item.obj[item.prop];
@@ -63657,9 +63850,9 @@ var require_utils2 = __commonJS((exports, module) => {
63657
63850
  for (var j2 = 0;j2 < keys.length; ++j2) {
63658
63851
  var key = keys[j2];
63659
63852
  var val = obj[key];
63660
- if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
63661
- queue.push({ obj, prop: key });
63662
- refs.push(val);
63853
+ if (typeof val === "object" && val !== null && !refs.has(val)) {
63854
+ queue[queue.length] = { obj, prop: key };
63855
+ refs.set(val, true);
63663
63856
  }
63664
63857
  }
63665
63858
  }
@@ -63673,16 +63866,36 @@ var require_utils2 = __commonJS((exports, module) => {
63673
63866
  if (!obj || typeof obj !== "object") {
63674
63867
  return false;
63675
63868
  }
63676
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
63869
+ return !!(obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj));
63677
63870
  };
63678
- var combine = function combine(a, b2) {
63679
- return [].concat(a, b2);
63871
+ var combine = function combine(a, b2, arrayLimit, plainObjects, throwOnLimitExceeded) {
63872
+ if (isOverflow(a)) {
63873
+ if (throwOnLimitExceeded) {
63874
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63875
+ }
63876
+ var bValues = isArray(b2) ? b2 : [b2];
63877
+ var newIndex = getMaxIndex(a);
63878
+ for (var i = 0;i < bValues.length; ++i) {
63879
+ newIndex += 1;
63880
+ a[newIndex] = bValues[i];
63881
+ }
63882
+ setMaxIndex(a, newIndex);
63883
+ return a;
63884
+ }
63885
+ var result = [].concat(a, b2);
63886
+ if (result.length > arrayLimit) {
63887
+ if (throwOnLimitExceeded) {
63888
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
63889
+ }
63890
+ return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
63891
+ }
63892
+ return result;
63680
63893
  };
63681
63894
  var maybeMap = function maybeMap(val, fn) {
63682
63895
  if (isArray(val)) {
63683
63896
  var mapped = [];
63684
63897
  for (var i = 0;i < val.length; i += 1) {
63685
- mapped.push(fn(val[i]));
63898
+ mapped[mapped.length] = fn(val[i]);
63686
63899
  }
63687
63900
  return mapped;
63688
63901
  }
@@ -63696,9 +63909,12 @@ var require_utils2 = __commonJS((exports, module) => {
63696
63909
  decode: decode4,
63697
63910
  encode: encode4,
63698
63911
  isBuffer,
63912
+ isOverflow,
63699
63913
  isRegExp,
63914
+ markOverflow,
63700
63915
  maybeMap,
63701
- merge: merge4
63916
+ merge: merge4,
63917
+ toCoercible
63702
63918
  };
63703
63919
  });
63704
63920
 
@@ -63734,11 +63950,14 @@ var require_stringify = __commonJS((exports, module) => {
63734
63950
  arrayFormat: "indices",
63735
63951
  charset: "utf-8",
63736
63952
  charsetSentinel: false,
63953
+ commaRoundTrip: false,
63737
63954
  delimiter: "&",
63955
+ depth: Infinity,
63738
63956
  encode: true,
63739
63957
  encodeDotInKeys: false,
63740
63958
  encoder: utils.encode,
63741
63959
  encodeValuesOnly: false,
63960
+ filter: undefined,
63742
63961
  format: defaultFormat,
63743
63962
  formatter: formats.formatters[defaultFormat],
63744
63963
  indices: false,
@@ -63752,8 +63971,11 @@ var require_stringify = __commonJS((exports, module) => {
63752
63971
  return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
63753
63972
  };
63754
63973
  var sentinel = {};
63755
- var stringify = function stringify(object4, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
63974
+ var stringify = function stringify(object4, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel, depth, currentDepth) {
63756
63975
  var obj = object4;
63976
+ if (currentDepth > depth) {
63977
+ throw new RangeError("Input depth exceeded depth option of " + depth);
63978
+ }
63757
63979
  var tmpSc = sideChannel;
63758
63980
  var step = 0;
63759
63981
  var findFlag = false;
@@ -63771,9 +63993,8 @@ var require_stringify = __commonJS((exports, module) => {
63771
63993
  step = 0;
63772
63994
  }
63773
63995
  }
63774
- if (typeof filter === "function") {
63775
- obj = filter(prefix, obj);
63776
- } else if (obj instanceof Date) {
63996
+ obj = typeof filter === "function" ? filter(prefix, obj) : obj;
63997
+ if (obj instanceof Date) {
63777
63998
  obj = serializeDate(obj);
63778
63999
  } else if (generateArrayPrefix === "comma" && isArray(obj)) {
63779
64000
  obj = utils.maybeMap(obj, function(value2) {
@@ -63785,7 +64006,7 @@ var require_stringify = __commonJS((exports, module) => {
63785
64006
  }
63786
64007
  if (obj === null) {
63787
64008
  if (strictNullHandling) {
63788
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
64009
+ return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
63789
64010
  }
63790
64011
  obj = "";
63791
64012
  }
@@ -63803,32 +64024,34 @@ var require_stringify = __commonJS((exports, module) => {
63803
64024
  var objKeys;
63804
64025
  if (generateArrayPrefix === "comma" && isArray(obj)) {
63805
64026
  if (encodeValuesOnly && encoder) {
63806
- obj = utils.maybeMap(obj, encoder);
64027
+ obj = utils.maybeMap(obj, function(v2) {
64028
+ return v2 == null ? v2 : encoder(v2, defaults.encoder, charset, "value", format);
64029
+ });
63807
64030
  }
63808
- objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }];
64031
+ objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(",") || null : undefined }];
63809
64032
  } else if (isArray(filter)) {
63810
64033
  objKeys = filter;
63811
64034
  } else {
63812
64035
  var keys = Object.keys(obj);
63813
64036
  objKeys = sort ? keys.sort(sort) : keys;
63814
64037
  }
63815
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
64038
+ var encodedPrefix = String(prefix);
63816
64039
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
63817
- if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
64040
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
63818
64041
  return adjustedPrefix + "[]";
63819
64042
  }
63820
64043
  for (var j2 = 0;j2 < objKeys.length; ++j2) {
63821
64044
  var key = objKeys[j2];
63822
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
64045
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
63823
64046
  if (skipNulls && value === null) {
63824
64047
  continue;
63825
64048
  }
63826
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
64049
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
63827
64050
  var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
63828
64051
  sideChannel.set(object4, step);
63829
64052
  var valueSideChannel = getSideChannel();
63830
64053
  valueSideChannel.set(sentinel, sideChannel);
63831
- pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
64054
+ pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel, depth, currentDepth + 1));
63832
64055
  }
63833
64056
  return values;
63834
64057
  };
@@ -63862,7 +64085,7 @@ var require_stringify = __commonJS((exports, module) => {
63862
64085
  filter = opts.filter;
63863
64086
  }
63864
64087
  var arrayFormat;
63865
- if (opts.arrayFormat in arrayPrefixGenerators) {
64088
+ if (has.call(arrayPrefixGenerators, opts.arrayFormat)) {
63866
64089
  arrayFormat = opts.arrayFormat;
63867
64090
  } else if ("indices" in opts) {
63868
64091
  arrayFormat = opts.indices ? "indices" : "repeat";
@@ -63880,8 +64103,9 @@ var require_stringify = __commonJS((exports, module) => {
63880
64103
  arrayFormat,
63881
64104
  charset,
63882
64105
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
63883
- commaRoundTrip: opts.commaRoundTrip,
64106
+ commaRoundTrip: !!opts.commaRoundTrip,
63884
64107
  delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
64108
+ depth: typeof opts.depth === "number" ? opts.depth : defaults.depth,
63885
64109
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
63886
64110
  encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
63887
64111
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
@@ -63922,18 +64146,23 @@ var require_stringify = __commonJS((exports, module) => {
63922
64146
  var sideChannel = getSideChannel();
63923
64147
  for (var i = 0;i < objKeys.length; ++i) {
63924
64148
  var key = objKeys[i];
63925
- if (options.skipNulls && obj[key] === null) {
64149
+ if (typeof key === "undefined" || key === null) {
63926
64150
  continue;
63927
64151
  }
63928
- pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
64152
+ var value = obj[key];
64153
+ if (options.skipNulls && value === null) {
64154
+ continue;
64155
+ }
64156
+ var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
64157
+ pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
63929
64158
  }
63930
64159
  var joined = keys.join(options.delimiter);
63931
64160
  var prefix = options.addQueryPrefix === true ? "?" : "";
63932
64161
  if (options.charsetSentinel) {
63933
64162
  if (options.charset === "iso-8859-1") {
63934
- prefix += "utf8=%26%2310003%3B&";
64163
+ prefix += "utf8=%26%2310003%3B" + options.delimiter;
63935
64164
  } else {
63936
- prefix += "utf8=%E2%9C%93&";
64165
+ prefix += "utf8=%E2%9C%93" + options.delimiter;
63937
64166
  }
63938
64167
  }
63939
64168
  return joined.length > 0 ? prefix + joined : "";
@@ -63942,9 +64171,53 @@ var require_stringify = __commonJS((exports, module) => {
63942
64171
 
63943
64172
  // node_modules/qs/lib/parse.js
63944
64173
  var require_parse = __commonJS((exports, module) => {
64174
+ var getSideChannel = require_side_channel();
63945
64175
  var utils = require_utils2();
63946
64176
  var has = Object.prototype.hasOwnProperty;
63947
64177
  var isArray = Array.isArray;
64178
+ var getPrototypeOf = Object.getPrototypeOf;
64179
+ var isPlainContainer = function isPlainContainer(value) {
64180
+ if (!value || typeof value !== "object") {
64181
+ return false;
64182
+ }
64183
+ if (isArray(value)) {
64184
+ return true;
64185
+ }
64186
+ var proto = getPrototypeOf(value);
64187
+ return proto === Object.prototype || proto === null;
64188
+ };
64189
+ var emptyCopyOf = function emptyCopyOf(value) {
64190
+ if (isArray(value)) {
64191
+ var arr = [];
64192
+ arr.length = value.length;
64193
+ return arr;
64194
+ }
64195
+ return getPrototypeOf(value) === null ? { __proto__: null } : {};
64196
+ };
64197
+ var copyInput = function copyInput(input) {
64198
+ var copies = getSideChannel();
64199
+ var result = {};
64200
+ var queue = [{ source: input, target: result }];
64201
+ for (var i = 0;i < queue.length; ++i) {
64202
+ var source = queue[i].source;
64203
+ var target = queue[i].target;
64204
+ var keys = Object.keys(source);
64205
+ for (var j2 = 0;j2 < keys.length; ++j2) {
64206
+ var value = source[keys[j2]];
64207
+ if (isPlainContainer(value)) {
64208
+ if (!copies.has(value)) {
64209
+ var copy = emptyCopyOf(value);
64210
+ copies.set(value, copy);
64211
+ queue[queue.length] = { source: value, target: copy };
64212
+ }
64213
+ target[keys[j2]] = copies.get(value);
64214
+ } else {
64215
+ target[keys[j2]] = value;
64216
+ }
64217
+ }
64218
+ }
64219
+ return result;
64220
+ };
63948
64221
  var defaults = {
63949
64222
  allowDots: false,
63950
64223
  allowEmptyArrays: false,
@@ -63965,17 +64238,33 @@ var require_parse = __commonJS((exports, module) => {
63965
64238
  parseArrays: true,
63966
64239
  plainObjects: false,
63967
64240
  strictDepth: false,
63968
- strictNullHandling: false
64241
+ strictMerge: true,
64242
+ strictNullHandling: false,
64243
+ throwOnLimitExceeded: false
63969
64244
  };
63970
64245
  var interpretNumericEntities = function(str) {
63971
64246
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
63972
64247
  return String.fromCharCode(parseInt(numberStr, 10));
63973
64248
  });
63974
64249
  };
63975
- var parseArrayValue = function(val, options) {
64250
+ var parseArrayValue = function(val, options, currentArrayLength) {
63976
64251
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
64252
+ if (options.throwOnLimitExceeded) {
64253
+ var commaCount = 0;
64254
+ var commaIndex = val.indexOf(",");
64255
+ while (commaIndex > -1) {
64256
+ commaCount += 1;
64257
+ if (commaCount >= options.arrayLimit) {
64258
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
64259
+ }
64260
+ commaIndex = val.indexOf(",", commaIndex + 1);
64261
+ }
64262
+ }
63977
64263
  return val.split(",");
63978
64264
  }
64265
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
64266
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
64267
+ }
63979
64268
  return val;
63980
64269
  };
63981
64270
  var isoSentinel = "utf8=%26%2310003%3B";
@@ -63985,7 +64274,10 @@ var require_parse = __commonJS((exports, module) => {
63985
64274
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
63986
64275
  cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
63987
64276
  var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
63988
- var parts = cleanStr.split(options.delimiter, limit);
64277
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit);
64278
+ if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
64279
+ throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
64280
+ }
63989
64281
  var skipIndex = -1;
63990
64282
  var i;
63991
64283
  var charset = options.charset;
@@ -64009,48 +64301,72 @@ var require_parse = __commonJS((exports, module) => {
64009
64301
  var part = parts[i];
64010
64302
  var bracketEqualsPos = part.indexOf("]=");
64011
64303
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
64012
- var key, val;
64304
+ var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === "[]";
64305
+ var key;
64306
+ var val;
64013
64307
  if (pos === -1) {
64014
64308
  key = options.decoder(part, defaults.decoder, charset, "key");
64015
64309
  val = options.strictNullHandling ? null : "";
64016
64310
  } else {
64017
64311
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
64018
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function(encodedVal) {
64019
- return options.decoder(encodedVal, defaults.decoder, charset, "value");
64020
- });
64312
+ if (key !== null) {
64313
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
64314
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
64315
+ });
64316
+ }
64021
64317
  }
64022
64318
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
64023
- val = interpretNumericEntities(val);
64319
+ val = interpretNumericEntities(String(val));
64024
64320
  }
64025
- if (part.indexOf("[]=") > -1) {
64321
+ if (isEmptyBracketKey) {
64026
64322
  val = isArray(val) ? [val] : val;
64027
64323
  }
64028
- var existing = has.call(obj, key);
64029
- if (existing && options.duplicates === "combine") {
64030
- obj[key] = utils.combine(obj[key], val);
64031
- } else if (!existing || options.duplicates === "last") {
64032
- obj[key] = val;
64324
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
64325
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
64326
+ }
64327
+ if (key !== null) {
64328
+ var existing = has.call(obj, key);
64329
+ if (existing && (options.duplicates === "combine" || isEmptyBracketKey)) {
64330
+ obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
64331
+ } else if (!existing || options.duplicates === "last") {
64332
+ obj[key] = val;
64333
+ }
64033
64334
  }
64034
64335
  }
64035
64336
  return obj;
64036
64337
  };
64037
64338
  var parseObject = function(chain, val, options, valuesParsed) {
64038
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
64339
+ var currentArrayLength = 0;
64340
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
64341
+ var parentKey = chain.slice(0, -1).join("");
64342
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
64343
+ }
64344
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
64039
64345
  for (var i = chain.length - 1;i >= 0; --i) {
64040
64346
  var obj;
64041
64347
  var root = chain[i];
64042
64348
  if (root === "[]" && options.parseArrays) {
64043
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
64349
+ if (utils.isOverflow(leaf)) {
64350
+ obj = leaf;
64351
+ } else {
64352
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
64353
+ }
64044
64354
  } else {
64045
- obj = options.plainObjects ? Object.create(null) : {};
64355
+ obj = options.plainObjects ? { __proto__: null } : {};
64046
64356
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
64047
64357
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
64048
64358
  var index = parseInt(decodedRoot, 10);
64359
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
64049
64360
  if (!options.parseArrays && decodedRoot === "") {
64050
64361
  obj = { 0: leaf };
64051
- } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
64362
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
64052
64363
  obj = [];
64053
64364
  obj[index] = leaf;
64365
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
64366
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
64367
+ } else if (isValidArrayIndex) {
64368
+ obj[index] = leaf;
64369
+ utils.markOverflow(obj, index);
64054
64370
  } else if (decodedRoot !== "__proto__") {
64055
64371
  obj[decodedRoot] = leaf;
64056
64372
  }
@@ -64059,39 +64375,101 @@ var require_parse = __commonJS((exports, module) => {
64059
64375
  }
64060
64376
  return leaf;
64061
64377
  };
64062
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
64063
- if (!givenKey) {
64064
- return;
64378
+ var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
64379
+ var result = "";
64380
+ var depth = 0;
64381
+ for (var i = 0;i < key.length; i += 1) {
64382
+ var cu = key.charCodeAt(i);
64383
+ if (cu === 91) {
64384
+ depth += 1;
64385
+ result += "[";
64386
+ } else if (cu === 93) {
64387
+ if (depth > 0) {
64388
+ depth -= 1;
64389
+ }
64390
+ result += "]";
64391
+ } else if (cu === 46 && depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 46 && key.charCodeAt(i + 1) !== 91) {
64392
+ var start = i + 1;
64393
+ var j2 = start;
64394
+ while (j2 < key.length && key.charCodeAt(j2) !== 46 && key.charCodeAt(j2) !== 91) {
64395
+ j2 += 1;
64396
+ }
64397
+ result += "[" + key.slice(start, j2) + "]";
64398
+ i = j2 - 1;
64399
+ } else {
64400
+ result += key.charAt(i);
64401
+ }
64065
64402
  }
64066
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
64067
- var brackets = /(\[[^[\]]*])/;
64068
- var child = /(\[[^[\]]*])/g;
64069
- var segment = options.depth > 0 && brackets.exec(key);
64070
- var parent = segment ? key.slice(0, segment.index) : key;
64071
- var keys = [];
64072
- if (parent) {
64073
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
64403
+ return result;
64404
+ };
64405
+ var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
64406
+ var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
64407
+ if (options.depth <= 0) {
64408
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
64074
64409
  if (!options.allowPrototypes) {
64075
64410
  return;
64076
64411
  }
64077
64412
  }
64078
- keys.push(parent);
64413
+ return [key];
64079
64414
  }
64080
- var i = 0;
64081
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
64082
- i += 1;
64083
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
64415
+ var segments = [];
64416
+ var first = key.indexOf("[");
64417
+ var parent = first >= 0 ? key.slice(0, first) : key;
64418
+ if (parent) {
64419
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
64084
64420
  if (!options.allowPrototypes) {
64085
64421
  return;
64086
64422
  }
64087
64423
  }
64088
- keys.push(segment[1]);
64424
+ segments[segments.length] = parent;
64425
+ }
64426
+ var n = key.length;
64427
+ var open4 = first;
64428
+ var collected = 0;
64429
+ while (open4 >= 0 && collected < options.depth) {
64430
+ var level = 1;
64431
+ var i = open4 + 1;
64432
+ var close = -1;
64433
+ while (i < n && close < 0) {
64434
+ var cu = key.charCodeAt(i);
64435
+ if (cu === 91) {
64436
+ level += 1;
64437
+ } else if (cu === 93) {
64438
+ level -= 1;
64439
+ if (level === 0) {
64440
+ close = i;
64441
+ }
64442
+ }
64443
+ i += 1;
64444
+ }
64445
+ if (close < 0) {
64446
+ segments[segments.length] = "[" + key.slice(open4) + "]";
64447
+ return segments;
64448
+ }
64449
+ var seg = key.slice(open4, close + 1);
64450
+ var content = seg.slice(1, -1);
64451
+ if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
64452
+ return;
64453
+ }
64454
+ segments[segments.length] = seg;
64455
+ collected += 1;
64456
+ open4 = key.indexOf("[", close + 1);
64089
64457
  }
64090
- if (segment) {
64458
+ if (open4 >= 0) {
64091
64459
  if (options.strictDepth === true) {
64092
64460
  throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
64093
64461
  }
64094
- keys.push("[" + key.slice(segment.index) + "]");
64462
+ segments[segments.length] = "[" + key.slice(open4) + "]";
64463
+ }
64464
+ return segments;
64465
+ };
64466
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
64467
+ if (!givenKey) {
64468
+ return;
64469
+ }
64470
+ var keys = splitKeyIntoSegments(givenKey, options);
64471
+ if (!keys) {
64472
+ return;
64095
64473
  }
64096
64474
  return parseObject(keys, val, options, valuesParsed);
64097
64475
  };
@@ -64111,6 +64489,9 @@ var require_parse = __commonJS((exports, module) => {
64111
64489
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
64112
64490
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
64113
64491
  }
64492
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
64493
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
64494
+ }
64114
64495
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
64115
64496
  var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
64116
64497
  if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
@@ -64137,16 +64518,18 @@ var require_parse = __commonJS((exports, module) => {
64137
64518
  parseArrays: opts.parseArrays !== false,
64138
64519
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
64139
64520
  strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
64140
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
64521
+ strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
64522
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
64523
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
64141
64524
  };
64142
64525
  };
64143
64526
  module.exports = function(str, opts) {
64144
64527
  var options = normalizeParseOptions(opts);
64145
64528
  if (str === "" || str === null || typeof str === "undefined") {
64146
- return options.plainObjects ? Object.create(null) : {};
64529
+ return options.plainObjects ? { __proto__: null } : {};
64147
64530
  }
64148
- var tempObj = typeof str === "string" ? parseValues(str, options) : str;
64149
- var obj = options.plainObjects ? Object.create(null) : {};
64531
+ var tempObj = typeof str === "string" ? parseValues(str, options) : copyInput(str);
64532
+ var obj = options.plainObjects ? { __proto__: null } : {};
64150
64533
  var keys = Object.keys(tempObj);
64151
64534
  for (var i = 0;i < keys.length; ++i) {
64152
64535
  var key = keys[i];
@@ -64196,10 +64579,12 @@ var require_urlencoded = __commonJS((exports, module) => {
64196
64579
  }
64197
64580
  var extended4 = opts.extended !== false;
64198
64581
  var inflate = opts.inflate !== false;
64199
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
64582
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
64200
64583
  var type = opts.type || "application/x-www-form-urlencoded";
64201
64584
  var verify = opts.verify || false;
64202
- var depth = typeof opts.depth !== "number" ? Number(opts.depth || 32) : opts.depth;
64585
+ if (limit === null) {
64586
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
64587
+ }
64203
64588
  if (verify !== false && typeof verify !== "function") {
64204
64589
  throw new TypeError("option verify must be function");
64205
64590
  }
@@ -64240,14 +64625,13 @@ var require_urlencoded = __commonJS((exports, module) => {
64240
64625
  encoding: charset,
64241
64626
  inflate,
64242
64627
  limit,
64243
- verify,
64244
- depth
64628
+ verify
64245
64629
  });
64246
64630
  };
64247
64631
  }
64248
64632
  function extendedparser(options) {
64249
64633
  var parameterLimit = options.parameterLimit !== undefined ? options.parameterLimit : 1000;
64250
- var depth = typeof options.depth !== "number" ? Number(options.depth || 32) : options.depth;
64634
+ var depth = options.depth !== undefined ? options.depth : 32;
64251
64635
  var parse10 = parser("qs");
64252
64636
  if (isNaN(parameterLimit) || parameterLimit < 1) {
64253
64637
  throw new TypeError("option parameterLimit must be a positive number");
@@ -64296,14 +64680,14 @@ var require_urlencoded = __commonJS((exports, module) => {
64296
64680
  }
64297
64681
  function parameterCount(body, limit) {
64298
64682
  var count = 0;
64299
- var index = 0;
64300
- while ((index = body.indexOf("&", index)) !== -1) {
64683
+ var index = -1;
64684
+ do {
64301
64685
  count++;
64302
- index++;
64303
- if (count === limit) {
64686
+ if (count > limit) {
64304
64687
  return;
64305
64688
  }
64306
- }
64689
+ index = body.indexOf("&", index + 1);
64690
+ } while (index !== -1);
64307
64691
  return count;
64308
64692
  }
64309
64693
  function parser(name) {
@@ -65022,6 +65406,149 @@ var require_parseurl = __commonJS((exports, module) => {
65022
65406
  }
65023
65407
  });
65024
65408
 
65409
+ // node_modules/statuses/codes.json
65410
+ var require_codes3 = __commonJS((exports, module) => {
65411
+ module.exports = {
65412
+ "100": "Continue",
65413
+ "101": "Switching Protocols",
65414
+ "102": "Processing",
65415
+ "103": "Early Hints",
65416
+ "200": "OK",
65417
+ "201": "Created",
65418
+ "202": "Accepted",
65419
+ "203": "Non-Authoritative Information",
65420
+ "204": "No Content",
65421
+ "205": "Reset Content",
65422
+ "206": "Partial Content",
65423
+ "207": "Multi-Status",
65424
+ "208": "Already Reported",
65425
+ "226": "IM Used",
65426
+ "300": "Multiple Choices",
65427
+ "301": "Moved Permanently",
65428
+ "302": "Found",
65429
+ "303": "See Other",
65430
+ "304": "Not Modified",
65431
+ "305": "Use Proxy",
65432
+ "307": "Temporary Redirect",
65433
+ "308": "Permanent Redirect",
65434
+ "400": "Bad Request",
65435
+ "401": "Unauthorized",
65436
+ "402": "Payment Required",
65437
+ "403": "Forbidden",
65438
+ "404": "Not Found",
65439
+ "405": "Method Not Allowed",
65440
+ "406": "Not Acceptable",
65441
+ "407": "Proxy Authentication Required",
65442
+ "408": "Request Timeout",
65443
+ "409": "Conflict",
65444
+ "410": "Gone",
65445
+ "411": "Length Required",
65446
+ "412": "Precondition Failed",
65447
+ "413": "Payload Too Large",
65448
+ "414": "URI Too Long",
65449
+ "415": "Unsupported Media Type",
65450
+ "416": "Range Not Satisfiable",
65451
+ "417": "Expectation Failed",
65452
+ "418": "I'm a Teapot",
65453
+ "421": "Misdirected Request",
65454
+ "422": "Unprocessable Entity",
65455
+ "423": "Locked",
65456
+ "424": "Failed Dependency",
65457
+ "425": "Too Early",
65458
+ "426": "Upgrade Required",
65459
+ "428": "Precondition Required",
65460
+ "429": "Too Many Requests",
65461
+ "431": "Request Header Fields Too Large",
65462
+ "451": "Unavailable For Legal Reasons",
65463
+ "500": "Internal Server Error",
65464
+ "501": "Not Implemented",
65465
+ "502": "Bad Gateway",
65466
+ "503": "Service Unavailable",
65467
+ "504": "Gateway Timeout",
65468
+ "505": "HTTP Version Not Supported",
65469
+ "506": "Variant Also Negotiates",
65470
+ "507": "Insufficient Storage",
65471
+ "508": "Loop Detected",
65472
+ "509": "Bandwidth Limit Exceeded",
65473
+ "510": "Not Extended",
65474
+ "511": "Network Authentication Required"
65475
+ };
65476
+ });
65477
+
65478
+ // node_modules/statuses/index.js
65479
+ var require_statuses3 = __commonJS((exports, module) => {
65480
+ /*!
65481
+ * statuses
65482
+ * Copyright(c) 2014 Jonathan Ong
65483
+ * Copyright(c) 2016 Douglas Christopher Wilson
65484
+ * MIT Licensed
65485
+ */
65486
+ var codes = require_codes3();
65487
+ module.exports = status;
65488
+ status.message = codes;
65489
+ status.code = createMessageToStatusCodeMap(codes);
65490
+ status.codes = createStatusCodeList(codes);
65491
+ status.redirect = {
65492
+ 300: true,
65493
+ 301: true,
65494
+ 302: true,
65495
+ 303: true,
65496
+ 305: true,
65497
+ 307: true,
65498
+ 308: true
65499
+ };
65500
+ status.empty = {
65501
+ 204: true,
65502
+ 205: true,
65503
+ 304: true
65504
+ };
65505
+ status.retry = {
65506
+ 502: true,
65507
+ 503: true,
65508
+ 504: true
65509
+ };
65510
+ function createMessageToStatusCodeMap(codes2) {
65511
+ var map = {};
65512
+ Object.keys(codes2).forEach(function forEachCode(code) {
65513
+ var message = codes2[code];
65514
+ var status2 = Number(code);
65515
+ map[message.toLowerCase()] = status2;
65516
+ });
65517
+ return map;
65518
+ }
65519
+ function createStatusCodeList(codes2) {
65520
+ return Object.keys(codes2).map(function mapCode(code) {
65521
+ return Number(code);
65522
+ });
65523
+ }
65524
+ function getStatusCode(message) {
65525
+ var msg = message.toLowerCase();
65526
+ if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
65527
+ throw new Error('invalid status message: "' + message + '"');
65528
+ }
65529
+ return status.code[msg];
65530
+ }
65531
+ function getStatusMessage(code) {
65532
+ if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
65533
+ throw new Error("invalid status code: " + code);
65534
+ }
65535
+ return status.message[code];
65536
+ }
65537
+ function status(code) {
65538
+ if (typeof code === "number") {
65539
+ return getStatusMessage(code);
65540
+ }
65541
+ if (typeof code !== "string") {
65542
+ throw new TypeError("code must be a number or string");
65543
+ }
65544
+ var n = parseInt(code, 10);
65545
+ if (!isNaN(n)) {
65546
+ return getStatusMessage(n);
65547
+ }
65548
+ return getStatusCode(code);
65549
+ }
65550
+ });
65551
+
65025
65552
  // node_modules/finalhandler/index.js
65026
65553
  var require_finalhandler = __commonJS((exports, module) => {
65027
65554
  /*!
@@ -65034,7 +65561,7 @@ var require_finalhandler = __commonJS((exports, module) => {
65034
65561
  var escapeHtml = require_escape_html();
65035
65562
  var onFinished = require_on_finished();
65036
65563
  var parseUrl = require_parseurl();
65037
- var statuses = require_statuses2();
65564
+ var statuses = require_statuses3();
65038
65565
  var unpipe = require_unpipe();
65039
65566
  var DOUBLE_SPACE_REGEXP = /\x20{2}/g;
65040
65567
  var NEWLINE_REGEXP = /\n/g;
@@ -65691,6 +66218,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
65691
66218
  }
65692
66219
  pos = offset + match.length;
65693
66220
  if (match === "*") {
66221
+ backtrack = "";
65694
66222
  extraOffset += 3;
65695
66223
  return "(.*)";
65696
66224
  }
@@ -65711,6 +66239,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
65711
66239
  offset: offset + extraOffset
65712
66240
  });
65713
66241
  var result = "(?:" + format + slash + capture + (star ? "((?:[/" + format + "].+?)?)" : "") + ")" + optional4;
66242
+ backtrack = "";
65714
66243
  extraOffset += result.length - match.length;
65715
66244
  return result;
65716
66245
  });
@@ -66763,6 +67292,173 @@ var require_content_disposition = __commonJS((exports, module) => {
66763
67292
  }
66764
67293
  });
66765
67294
 
67295
+ // node_modules/http-errors/index.js
67296
+ var require_http_errors3 = __commonJS((exports, module) => {
67297
+ /*!
67298
+ * http-errors
67299
+ * Copyright(c) 2014 Jonathan Ong
67300
+ * Copyright(c) 2016 Douglas Christopher Wilson
67301
+ * MIT Licensed
67302
+ */
67303
+ var deprecate = require_depd()("http-errors");
67304
+ var setPrototypeOf = require_setprototypeof();
67305
+ var statuses = require_statuses3();
67306
+ var inherits = require_inherits();
67307
+ var toIdentifier = require_toidentifier();
67308
+ module.exports = createError;
67309
+ module.exports.HttpError = createHttpErrorConstructor();
67310
+ module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError);
67311
+ populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError);
67312
+ function codeClass(status) {
67313
+ return Number(String(status).charAt(0) + "00");
67314
+ }
67315
+ function createError() {
67316
+ var err;
67317
+ var msg;
67318
+ var status = 500;
67319
+ var props = {};
67320
+ for (var i = 0;i < arguments.length; i++) {
67321
+ var arg = arguments[i];
67322
+ var type = typeof arg;
67323
+ if (type === "object" && arg instanceof Error) {
67324
+ err = arg;
67325
+ status = err.status || err.statusCode || status;
67326
+ } else if (type === "number" && i === 0) {
67327
+ status = arg;
67328
+ } else if (type === "string") {
67329
+ msg = arg;
67330
+ } else if (type === "object") {
67331
+ props = arg;
67332
+ } else {
67333
+ throw new TypeError("argument #" + (i + 1) + " unsupported type " + type);
67334
+ }
67335
+ }
67336
+ if (typeof status === "number" && (status < 400 || status >= 600)) {
67337
+ deprecate("non-error status code; use only 4xx or 5xx status codes");
67338
+ }
67339
+ if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
67340
+ status = 500;
67341
+ }
67342
+ var HttpError = createError[status] || createError[codeClass(status)];
67343
+ if (!err) {
67344
+ err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
67345
+ Error.captureStackTrace(err, createError);
67346
+ }
67347
+ if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
67348
+ err.expose = status < 500;
67349
+ err.status = err.statusCode = status;
67350
+ }
67351
+ for (var key in props) {
67352
+ if (key !== "status" && key !== "statusCode") {
67353
+ err[key] = props[key];
67354
+ }
67355
+ }
67356
+ return err;
67357
+ }
67358
+ function createHttpErrorConstructor() {
67359
+ function HttpError() {
67360
+ throw new TypeError("cannot construct abstract class");
67361
+ }
67362
+ inherits(HttpError, Error);
67363
+ return HttpError;
67364
+ }
67365
+ function createClientErrorConstructor(HttpError, name, code) {
67366
+ var className = toClassName(name);
67367
+ function ClientError(message) {
67368
+ var msg = message != null ? message : statuses.message[code];
67369
+ var err = new Error(msg);
67370
+ Error.captureStackTrace(err, ClientError);
67371
+ setPrototypeOf(err, ClientError.prototype);
67372
+ Object.defineProperty(err, "message", {
67373
+ enumerable: true,
67374
+ configurable: true,
67375
+ value: msg,
67376
+ writable: true
67377
+ });
67378
+ Object.defineProperty(err, "name", {
67379
+ enumerable: false,
67380
+ configurable: true,
67381
+ value: className,
67382
+ writable: true
67383
+ });
67384
+ return err;
67385
+ }
67386
+ inherits(ClientError, HttpError);
67387
+ nameFunc(ClientError, className);
67388
+ ClientError.prototype.status = code;
67389
+ ClientError.prototype.statusCode = code;
67390
+ ClientError.prototype.expose = true;
67391
+ return ClientError;
67392
+ }
67393
+ function createIsHttpErrorFunction(HttpError) {
67394
+ return function isHttpError(val) {
67395
+ if (!val || typeof val !== "object") {
67396
+ return false;
67397
+ }
67398
+ if (val instanceof HttpError) {
67399
+ return true;
67400
+ }
67401
+ return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
67402
+ };
67403
+ }
67404
+ function createServerErrorConstructor(HttpError, name, code) {
67405
+ var className = toClassName(name);
67406
+ function ServerError(message) {
67407
+ var msg = message != null ? message : statuses.message[code];
67408
+ var err = new Error(msg);
67409
+ Error.captureStackTrace(err, ServerError);
67410
+ setPrototypeOf(err, ServerError.prototype);
67411
+ Object.defineProperty(err, "message", {
67412
+ enumerable: true,
67413
+ configurable: true,
67414
+ value: msg,
67415
+ writable: true
67416
+ });
67417
+ Object.defineProperty(err, "name", {
67418
+ enumerable: false,
67419
+ configurable: true,
67420
+ value: className,
67421
+ writable: true
67422
+ });
67423
+ return err;
67424
+ }
67425
+ inherits(ServerError, HttpError);
67426
+ nameFunc(ServerError, className);
67427
+ ServerError.prototype.status = code;
67428
+ ServerError.prototype.statusCode = code;
67429
+ ServerError.prototype.expose = false;
67430
+ return ServerError;
67431
+ }
67432
+ function nameFunc(func, name) {
67433
+ var desc = Object.getOwnPropertyDescriptor(func, "name");
67434
+ if (desc && desc.configurable) {
67435
+ desc.value = name;
67436
+ Object.defineProperty(func, "name", desc);
67437
+ }
67438
+ }
67439
+ function populateConstructorExports(exports2, codes, HttpError) {
67440
+ codes.forEach(function forEachCode(code) {
67441
+ var CodeError;
67442
+ var name = toIdentifier(statuses.message[code]);
67443
+ switch (codeClass(code)) {
67444
+ case 400:
67445
+ CodeError = createClientErrorConstructor(HttpError, name, code);
67446
+ break;
67447
+ case 500:
67448
+ CodeError = createServerErrorConstructor(HttpError, name, code);
67449
+ break;
67450
+ }
67451
+ if (CodeError) {
67452
+ exports2[code] = CodeError;
67453
+ exports2[name] = CodeError;
67454
+ }
67455
+ });
67456
+ }
67457
+ function toClassName(name) {
67458
+ return name.substr(-5) !== "Error" ? name + "Error" : name;
67459
+ }
67460
+ });
67461
+
66766
67462
  // node_modules/send/node_modules/debug/node_modules/ms/index.js
66767
67463
  var require_ms4 = __commonJS((exports, module) => {
66768
67464
  var s = 1000;
@@ -67574,7 +68270,7 @@ var require_send = __commonJS((exports, module) => {
67574
68270
  * Copyright(c) 2014-2022 Douglas Christopher Wilson
67575
68271
  * MIT Licensed
67576
68272
  */
67577
- var createError = require_http_errors2();
68273
+ var createError = require_http_errors3();
67578
68274
  var debug = require_src4()("send");
67579
68275
  var deprecate = require_depd()("send");
67580
68276
  var destroy = require_destroy();
@@ -67588,7 +68284,7 @@ var require_send = __commonJS((exports, module) => {
67588
68284
  var onFinished = require_on_finished();
67589
68285
  var parseRange = require_range_parser();
67590
68286
  var path = __require("path");
67591
- var statuses = require_statuses2();
68287
+ var statuses = require_statuses3();
67592
68288
  var Stream = __require("stream");
67593
68289
  var util3 = __require("util");
67594
68290
  var extname = path.extname;
@@ -69090,7 +69786,8 @@ var require_utils3 = __commonJS((exports) => {
69090
69786
  }
69091
69787
  function parseExtendedQueryString(str) {
69092
69788
  return qs.parse(str, {
69093
- allowPrototypes: true
69789
+ allowPrototypes: true,
69790
+ arrayLimit: 1000
69094
69791
  });
69095
69792
  }
69096
69793
  function newObject() {
@@ -70100,7 +70797,7 @@ var require_request = __commonJS((exports, module) => {
70100
70797
  var method = this.method;
70101
70798
  var res = this.res;
70102
70799
  var status = res.statusCode;
70103
- if (method !== "GET" && method !== "HEAD")
70800
+ if (method !== "GET" && method !== "HEAD" && method !== "QUERY")
70104
70801
  return false;
70105
70802
  if (status >= 200 && status < 300 || status === 304) {
70106
70803
  return fresh(this.headers, {
@@ -70407,7 +71104,7 @@ var require_response = __commonJS((exports, module) => {
70407
71104
  */
70408
71105
  var Buffer2 = require_safe_buffer().Buffer;
70409
71106
  var contentDisposition = require_content_disposition();
70410
- var createError = require_http_errors2();
71107
+ var createError = require_http_errors3();
70411
71108
  var deprecate = require_depd()("express");
70412
71109
  var encodeUrl = require_encodeurl();
70413
71110
  var escapeHtml = require_escape_html();
@@ -70415,7 +71112,7 @@ var require_response = __commonJS((exports, module) => {
70415
71112
  var isAbsolute = require_utils3().isAbsolute;
70416
71113
  var onFinished = require_on_finished();
70417
71114
  var path = __require("path");
70418
- var statuses = require_statuses2();
71115
+ var statuses = require_statuses3();
70419
71116
  var merge4 = require_utils_merge();
70420
71117
  var sign = require_cookie_signature().sign;
70421
71118
  var normalizeType = require_utils3().normalizeType;
@@ -71397,9 +72094,9 @@ var init_config = __esm(() => {
71397
72094
  SDK_METADATA = {
71398
72095
  language: "typescript",
71399
72096
  openapiDocVersion: "1.1.0",
71400
- sdkVersion: "0.55.12",
72097
+ sdkVersion: "0.55.14",
71401
72098
  genVersion: "2.950.2",
71402
- userAgent: "speakeasy-sdk/typescript 0.55.12 2.950.2 1.1.0 @meetkai/mka1"
72099
+ userAgent: "speakeasy-sdk/typescript 0.55.14 2.950.2 1.1.0 @meetkai/mka1"
71403
72100
  };
71404
72101
  });
71405
72102
 
@@ -79861,6 +80558,7 @@ var init_addcatalogmodelrequest = __esm(() => {
79861
80558
  Dimensions$outboundSchema = unionType([lazyType(() => Dimensions2$outboundSchema), numberType().int()]);
79862
80559
  EmbeddingLimits$inboundSchema = objectType({
79863
80560
  maxBatchSize: numberType().int().optional(),
80561
+ maxBatchTokens: numberType().int().optional(),
79864
80562
  dimensions: unionType([
79865
80563
  lazyType(() => Dimensions2$inboundSchema),
79866
80564
  numberType().int()
@@ -79868,6 +80566,7 @@ var init_addcatalogmodelrequest = __esm(() => {
79868
80566
  });
79869
80567
  EmbeddingLimits$outboundSchema = objectType({
79870
80568
  maxBatchSize: numberType().int().optional(),
80569
+ maxBatchTokens: numberType().int().optional(),
79871
80570
  dimensions: unionType([
79872
80571
  lazyType(() => Dimensions2$outboundSchema),
79873
80572
  numberType().int()
@@ -80270,7 +80969,7 @@ var init_mcptoolfilter = __esm(() => {
80270
80969
  });
80271
80970
 
80272
80971
  // src/models/components/tooldefinition.ts
80273
- var ToolDefinition8Type, ToolDefinitionEnvironmentAccess, EnvironmentAccess, ToolDefinition7Type, ToolDefinition6Type, ToolDefinition5Type, ToolDefinition4Type, ToolDefinitionRequireApproval1, FourType, RequireApproval1, ToolDefinition3Type, ToolDefinitionType, ToolDefinitionSearchContextSize, ToolDefinition2Type, ToolDefinition8Type$inboundSchema, ToolDefinition8Type$outboundSchema, ToolDefinitionEnvironmentAccess$inboundSchema, ToolDefinitionEnvironmentAccess$outboundSchema, EnvironmentMemoryStores$inboundSchema, EnvironmentMemoryStores$outboundSchema, Environment2$inboundSchema, Environment2$outboundSchema, EnvironmentAccess$inboundSchema, EnvironmentAccess$outboundSchema, MemoryStores$inboundSchema, MemoryStores$outboundSchema, Environment1$inboundSchema, Environment1$outboundSchema, Environment$inboundSchema, Environment$outboundSchema, Eight$inboundSchema, Eight$outboundSchema, ToolDefinition7Type$inboundSchema, ToolDefinition7Type$outboundSchema, Seven$inboundSchema, Seven$outboundSchema, ToolDefinition6Type$inboundSchema, ToolDefinition6Type$outboundSchema, ToolDefinition6$inboundSchema, ToolDefinition6$outboundSchema, ToolDefinition5Type$inboundSchema, ToolDefinition5Type$outboundSchema, ToolDefinition5Filters$inboundSchema, ToolDefinition5Filters$outboundSchema, ToolDefinitionRankingOptions$inboundSchema, ToolDefinitionRankingOptions$outboundSchema, ToolDefinition5$inboundSchema, ToolDefinition5$outboundSchema, ToolDefinition4Type$inboundSchema, ToolDefinition4Type$outboundSchema, ToolDefinitionRequireApproval2$inboundSchema, ToolDefinitionRequireApproval2$outboundSchema, ToolDefinitionRequireApproval1$inboundSchema, ToolDefinitionRequireApproval1$outboundSchema, FourRequireApproval$inboundSchema, FourRequireApproval$outboundSchema, ToolDefinition4AllowedTools$inboundSchema, ToolDefinition4AllowedTools$outboundSchema, Four2$inboundSchema, Four2$outboundSchema, FourType$inboundSchema, FourType$outboundSchema, RequireApproval2$inboundSchema, RequireApproval2$outboundSchema, RequireApproval1$inboundSchema, RequireApproval1$outboundSchema, RequireApproval$inboundSchema, RequireApproval$outboundSchema, FourAllowedTools$inboundSchema, FourAllowedTools$outboundSchema, Four1$inboundSchema, Four1$outboundSchema, ToolDefinition4$inboundSchema, ToolDefinition4$outboundSchema, ToolDefinition3Type$inboundSchema, ToolDefinition3Type$outboundSchema, ToolDefinition3$inboundSchema, ToolDefinition3$outboundSchema, ToolDefinitionType$inboundSchema, ToolDefinitionType$outboundSchema, ToolDefinitionSearchContextSize$inboundSchema, ToolDefinitionSearchContextSize$outboundSchema, ToolDefinition2Type$inboundSchema, ToolDefinition2Type$outboundSchema, ToolDefinitionUserLocation$inboundSchema, ToolDefinitionUserLocation$outboundSchema, ToolDefinitionFilters$inboundSchema, ToolDefinitionFilters$outboundSchema, ToolDefinition2$inboundSchema, ToolDefinition2$outboundSchema, ToolDefinition$inboundSchema, ToolDefinition$outboundSchema;
80972
+ var ToolDefinition9Type, ToolDefinitionEnvironmentAccess, EnvironmentAccess, ToolDefinition8Type, ToolDefinition7Type, ToolDefinition6Type, ToolDefinition5Type, ToolDefinition4Type, ToolDefinitionRequireApproval1, FourType, RequireApproval1, ToolDefinition3Type, ToolDefinitionType, ToolDefinitionSearchContextSize, ToolDefinition2Type, ToolDefinition9Type$inboundSchema, ToolDefinition9Type$outboundSchema, ToolDefinitionEnvironmentAccess$inboundSchema, ToolDefinitionEnvironmentAccess$outboundSchema, EnvironmentMemoryStores$inboundSchema, EnvironmentMemoryStores$outboundSchema, Environment2$inboundSchema, Environment2$outboundSchema, EnvironmentAccess$inboundSchema, EnvironmentAccess$outboundSchema, MemoryStores$inboundSchema, MemoryStores$outboundSchema, Environment1$inboundSchema, Environment1$outboundSchema, Environment$inboundSchema, Environment$outboundSchema, Nine$inboundSchema, Nine$outboundSchema, ToolDefinition8Type$inboundSchema, ToolDefinition8Type$outboundSchema, Eight$inboundSchema, Eight$outboundSchema, ToolDefinition7Type$inboundSchema, ToolDefinition7Type$outboundSchema, Seven$inboundSchema, Seven$outboundSchema, ToolDefinition6Type$inboundSchema, ToolDefinition6Type$outboundSchema, ToolDefinition6$inboundSchema, ToolDefinition6$outboundSchema, ToolDefinition5Type$inboundSchema, ToolDefinition5Type$outboundSchema, ToolDefinition5Filters$inboundSchema, ToolDefinition5Filters$outboundSchema, ToolDefinitionRankingOptions$inboundSchema, ToolDefinitionRankingOptions$outboundSchema, ToolDefinition5$inboundSchema, ToolDefinition5$outboundSchema, ToolDefinition4Type$inboundSchema, ToolDefinition4Type$outboundSchema, ToolDefinitionRequireApproval2$inboundSchema, ToolDefinitionRequireApproval2$outboundSchema, ToolDefinitionRequireApproval1$inboundSchema, ToolDefinitionRequireApproval1$outboundSchema, FourRequireApproval$inboundSchema, FourRequireApproval$outboundSchema, ToolDefinition4AllowedTools$inboundSchema, ToolDefinition4AllowedTools$outboundSchema, Four2$inboundSchema, Four2$outboundSchema, FourType$inboundSchema, FourType$outboundSchema, RequireApproval2$inboundSchema, RequireApproval2$outboundSchema, RequireApproval1$inboundSchema, RequireApproval1$outboundSchema, RequireApproval$inboundSchema, RequireApproval$outboundSchema, FourAllowedTools$inboundSchema, FourAllowedTools$outboundSchema, Four1$inboundSchema, Four1$outboundSchema, ToolDefinition4$inboundSchema, ToolDefinition4$outboundSchema, ToolDefinition3Type$inboundSchema, ToolDefinition3Type$outboundSchema, ToolDefinition3$inboundSchema, ToolDefinition3$outboundSchema, ToolDefinitionType$inboundSchema, ToolDefinitionType$outboundSchema, ToolDefinitionSearchContextSize$inboundSchema, ToolDefinitionSearchContextSize$outboundSchema, ToolDefinition2Type$inboundSchema, ToolDefinition2Type$outboundSchema, ToolDefinitionUserLocation$inboundSchema, ToolDefinitionUserLocation$outboundSchema, ToolDefinitionFilters$inboundSchema, ToolDefinitionFilters$outboundSchema, ToolDefinition2$inboundSchema, ToolDefinition2$outboundSchema, ToolDefinition$inboundSchema, ToolDefinition$outboundSchema;
80274
80973
  var init_tooldefinition = __esm(() => {
80275
80974
  init_v3();
80276
80975
  init_primitives();
@@ -80279,7 +80978,7 @@ var init_tooldefinition = __esm(() => {
80279
80978
  init_filesearchcompoundfilter();
80280
80979
  init_functiontoolreference();
80281
80980
  init_mcptoolfilter();
80282
- ToolDefinition8Type = {
80981
+ ToolDefinition9Type = {
80283
80982
  Shell: "shell"
80284
80983
  };
80285
80984
  ToolDefinitionEnvironmentAccess = {
@@ -80290,6 +80989,9 @@ var init_tooldefinition = __esm(() => {
80290
80989
  ReadOnly: "read_only",
80291
80990
  ReadWrite: "read_write"
80292
80991
  };
80992
+ ToolDefinition8Type = {
80993
+ Agent: "agent"
80994
+ };
80293
80995
  ToolDefinition7Type = {
80294
80996
  Sleep: "sleep"
80295
80997
  };
@@ -80333,8 +81035,8 @@ var init_tooldefinition = __esm(() => {
80333
81035
  ToolDefinition2Type = {
80334
81036
  Approximate: "approximate"
80335
81037
  };
80336
- ToolDefinition8Type$inboundSchema = nativeEnumType(ToolDefinition8Type);
80337
- ToolDefinition8Type$outboundSchema = ToolDefinition8Type$inboundSchema;
81038
+ ToolDefinition9Type$inboundSchema = nativeEnumType(ToolDefinition9Type);
81039
+ ToolDefinition9Type$outboundSchema = ToolDefinition9Type$inboundSchema;
80338
81040
  ToolDefinitionEnvironmentAccess$inboundSchema = nativeEnumType(ToolDefinitionEnvironmentAccess);
80339
81041
  ToolDefinitionEnvironmentAccess$outboundSchema = ToolDefinitionEnvironmentAccess$inboundSchema;
80340
81042
  EnvironmentMemoryStores$inboundSchema = objectType({
@@ -80439,20 +81141,42 @@ var init_tooldefinition = __esm(() => {
80439
81141
  lazyType(() => Environment1$outboundSchema),
80440
81142
  lazyType(() => Environment2$outboundSchema)
80441
81143
  ]);
80442
- Eight$inboundSchema = objectType({
80443
- type: ToolDefinition8Type$inboundSchema,
81144
+ Nine$inboundSchema = objectType({
81145
+ type: ToolDefinition9Type$inboundSchema,
80444
81146
  environment: discriminatedUnion5("type", {
80445
81147
  container_auto: lazyType(() => Environment1$inboundSchema),
80446
81148
  container_reference: lazyType(() => Environment2$inboundSchema)
80447
81149
  }).optional()
80448
81150
  });
80449
- Eight$outboundSchema = objectType({
80450
- type: ToolDefinition8Type$outboundSchema,
81151
+ Nine$outboundSchema = objectType({
81152
+ type: ToolDefinition9Type$outboundSchema,
80451
81153
  environment: unionType([
80452
81154
  lazyType(() => Environment1$outboundSchema),
80453
81155
  lazyType(() => Environment2$outboundSchema)
80454
81156
  ]).optional()
80455
81157
  });
81158
+ ToolDefinition8Type$inboundSchema = nativeEnumType(ToolDefinition8Type);
81159
+ ToolDefinition8Type$outboundSchema = ToolDefinition8Type$inboundSchema;
81160
+ Eight$inboundSchema = objectType({
81161
+ type: ToolDefinition8Type$inboundSchema,
81162
+ agent_id: stringType(),
81163
+ name: stringType().optional(),
81164
+ description: stringType().optional()
81165
+ }).transform((v2) => {
81166
+ return remap(v2, {
81167
+ agent_id: "agentId"
81168
+ });
81169
+ });
81170
+ Eight$outboundSchema = objectType({
81171
+ type: ToolDefinition8Type$outboundSchema,
81172
+ agentId: stringType(),
81173
+ name: stringType().optional(),
81174
+ description: stringType().optional()
81175
+ }).transform((v2) => {
81176
+ return remap(v2, {
81177
+ agentId: "agent_id"
81178
+ });
81179
+ });
80456
81180
  ToolDefinition7Type$inboundSchema = nativeEnumType(ToolDefinition7Type);
80457
81181
  ToolDefinition7Type$outboundSchema = ToolDefinition7Type$inboundSchema;
80458
81182
  Seven$inboundSchema = objectType({
@@ -80789,10 +81513,11 @@ var init_tooldefinition = __esm(() => {
80789
81513
  lazyType(() => ToolDefinition3$inboundSchema),
80790
81514
  FunctionToolReference$inboundSchema,
80791
81515
  lazyType(() => ToolDefinition5$inboundSchema),
81516
+ lazyType(() => Eight$inboundSchema),
80792
81517
  lazyType(() => ToolDefinition2$inboundSchema),
80793
81518
  lazyType(() => ToolDefinition6$inboundSchema),
80794
81519
  lazyType(() => Seven$inboundSchema),
80795
- lazyType(() => Eight$inboundSchema),
81520
+ lazyType(() => Nine$inboundSchema),
80796
81521
  unionType([
80797
81522
  lazyType(() => Four1$inboundSchema),
80798
81523
  lazyType(() => Four2$inboundSchema)
@@ -80802,10 +81527,11 @@ var init_tooldefinition = __esm(() => {
80802
81527
  lazyType(() => ToolDefinition3$outboundSchema),
80803
81528
  FunctionToolReference$outboundSchema,
80804
81529
  lazyType(() => ToolDefinition5$outboundSchema),
81530
+ lazyType(() => Eight$outboundSchema),
80805
81531
  lazyType(() => ToolDefinition2$outboundSchema),
80806
81532
  lazyType(() => ToolDefinition6$outboundSchema),
80807
81533
  lazyType(() => Seven$outboundSchema),
80808
- lazyType(() => Eight$outboundSchema),
81534
+ lazyType(() => Nine$outboundSchema),
80809
81535
  unionType([
80810
81536
  lazyType(() => Four1$outboundSchema),
80811
81537
  lazyType(() => Four2$outboundSchema)
@@ -81526,6 +82252,33 @@ var init_agentsfunctiontooldefinition = __esm(() => {
81526
82252
  });
81527
82253
  });
81528
82254
 
82255
+ // src/models/components/agenttooldefinition.ts
82256
+ var AgentToolDefinition$inboundSchema, AgentToolDefinition$outboundSchema;
82257
+ var init_agenttooldefinition = __esm(() => {
82258
+ init_v3();
82259
+ init_primitives();
82260
+ AgentToolDefinition$inboundSchema = objectType({
82261
+ type: literalType("agent"),
82262
+ agent_id: stringType(),
82263
+ name: stringType().optional(),
82264
+ description: stringType().optional()
82265
+ }).transform((v2) => {
82266
+ return remap(v2, {
82267
+ agent_id: "agentId"
82268
+ });
82269
+ });
82270
+ AgentToolDefinition$outboundSchema = objectType({
82271
+ type: literalType("agent"),
82272
+ agentId: stringType(),
82273
+ name: stringType().optional(),
82274
+ description: stringType().optional()
82275
+ }).transform((v2) => {
82276
+ return remap(v2, {
82277
+ agentId: "agent_id"
82278
+ });
82279
+ });
82280
+ });
82281
+
81529
82282
  // src/models/components/agentversion.ts
81530
82283
  var AgentVersionObject, AgentVersionObject$inboundSchema, AgentVersionObject$outboundSchema, AgentVersion$inboundSchema, AgentVersion$outboundSchema;
81531
82284
  var init_agentversion = __esm(() => {
@@ -99355,6 +100108,7 @@ var LivekitTokenRequestTruncation, LivekitTokenRequestServiceTier, LivekitTokenR
99355
100108
  var init_livekittokenrequest = __esm(() => {
99356
100109
  init_v3();
99357
100110
  init_primitives();
100111
+ init_agenttooldefinition();
99358
100112
  init_codeinterpretertoolrequest();
99359
100113
  init_compactioncontextmanagement();
99360
100114
  init_computerusetooldefinition();
@@ -99418,6 +100172,7 @@ var init_livekittokenrequest = __esm(() => {
99418
100172
  FileSearchToolDefinition$inboundSchema,
99419
100173
  CodeInterpreterToolRequest$inboundSchema,
99420
100174
  CustomToolDefinition$inboundSchema,
100175
+ AgentToolDefinition$inboundSchema,
99421
100176
  WebSearchToolDefinition$inboundSchema,
99422
100177
  MCPToolDefinition$inboundSchema,
99423
100178
  ImageGenerationToolDefinition$inboundSchema,
@@ -99434,6 +100189,7 @@ var init_livekittokenrequest = __esm(() => {
99434
100189
  FileSearchToolDefinition$outboundSchema,
99435
100190
  CodeInterpreterToolRequest$outboundSchema,
99436
100191
  CustomToolDefinition$outboundSchema,
100192
+ AgentToolDefinition$outboundSchema,
99437
100193
  WebSearchToolDefinition$outboundSchema,
99438
100194
  MCPToolDefinition$outboundSchema,
99439
100195
  ImageGenerationToolDefinition$outboundSchema,
@@ -99460,6 +100216,7 @@ var init_livekittokenrequest = __esm(() => {
99460
100216
  FileSearchToolDefinition$inboundSchema,
99461
100217
  CodeInterpreterToolRequest$inboundSchema,
99462
100218
  CustomToolDefinition$inboundSchema,
100219
+ AgentToolDefinition$inboundSchema,
99463
100220
  WebSearchToolDefinition$inboundSchema,
99464
100221
  MCPToolDefinition$inboundSchema,
99465
100222
  ImageGenerationToolDefinition$inboundSchema,
@@ -99510,6 +100267,7 @@ var init_livekittokenrequest = __esm(() => {
99510
100267
  FileSearchToolDefinition$outboundSchema,
99511
100268
  CodeInterpreterToolRequest$outboundSchema,
99512
100269
  CustomToolDefinition$outboundSchema,
100270
+ AgentToolDefinition$outboundSchema,
99513
100271
  WebSearchToolDefinition$outboundSchema,
99514
100272
  MCPToolDefinition$outboundSchema,
99515
100273
  ImageGenerationToolDefinition$outboundSchema,
@@ -102326,6 +103084,109 @@ var init_resolvereferencerequest = __esm(() => {
102326
103084
  });
102327
103085
  });
102328
103086
 
103087
+ // src/models/components/responseagentcallcompletedevent.ts
103088
+ var ResponseAgentCallCompletedEvent$inboundSchema, ResponseAgentCallCompletedEvent$outboundSchema;
103089
+ var init_responseagentcallcompletedevent = __esm(() => {
103090
+ init_v3();
103091
+ init_primitives();
103092
+ ResponseAgentCallCompletedEvent$inboundSchema = objectType({
103093
+ type: literalType("response.agent_call.completed"),
103094
+ sequence_number: numberType().int(),
103095
+ item_id: stringType(),
103096
+ output_index: numberType().int(),
103097
+ function_call_output: stringType().optional()
103098
+ }).transform((v2) => {
103099
+ return remap(v2, {
103100
+ sequence_number: "sequenceNumber",
103101
+ item_id: "itemId",
103102
+ output_index: "outputIndex",
103103
+ function_call_output: "functionCallOutput"
103104
+ });
103105
+ });
103106
+ ResponseAgentCallCompletedEvent$outboundSchema = objectType({
103107
+ type: literalType("response.agent_call.completed"),
103108
+ sequenceNumber: numberType().int(),
103109
+ itemId: stringType(),
103110
+ outputIndex: numberType().int(),
103111
+ functionCallOutput: stringType().optional()
103112
+ }).transform((v2) => {
103113
+ return remap(v2, {
103114
+ sequenceNumber: "sequence_number",
103115
+ itemId: "item_id",
103116
+ outputIndex: "output_index",
103117
+ functionCallOutput: "function_call_output"
103118
+ });
103119
+ });
103120
+ });
103121
+
103122
+ // src/models/components/responseagentcallfailedevent.ts
103123
+ var ResponseAgentCallFailedEvent$inboundSchema, ResponseAgentCallFailedEvent$outboundSchema;
103124
+ var init_responseagentcallfailedevent = __esm(() => {
103125
+ init_v3();
103126
+ init_primitives();
103127
+ ResponseAgentCallFailedEvent$inboundSchema = objectType({
103128
+ type: literalType("response.agent_call.failed"),
103129
+ sequence_number: numberType().int(),
103130
+ item_id: stringType(),
103131
+ output_index: numberType().int(),
103132
+ error: stringType()
103133
+ }).transform((v2) => {
103134
+ return remap(v2, {
103135
+ sequence_number: "sequenceNumber",
103136
+ item_id: "itemId",
103137
+ output_index: "outputIndex"
103138
+ });
103139
+ });
103140
+ ResponseAgentCallFailedEvent$outboundSchema = objectType({
103141
+ type: literalType("response.agent_call.failed"),
103142
+ sequenceNumber: numberType().int(),
103143
+ itemId: stringType(),
103144
+ outputIndex: numberType().int(),
103145
+ error: stringType()
103146
+ }).transform((v2) => {
103147
+ return remap(v2, {
103148
+ sequenceNumber: "sequence_number",
103149
+ itemId: "item_id",
103150
+ outputIndex: "output_index"
103151
+ });
103152
+ });
103153
+ });
103154
+
103155
+ // src/models/components/responseagentcallinprogressevent.ts
103156
+ var ResponseAgentCallInProgressEvent$inboundSchema, ResponseAgentCallInProgressEvent$outboundSchema;
103157
+ var init_responseagentcallinprogressevent = __esm(() => {
103158
+ init_v3();
103159
+ init_primitives();
103160
+ ResponseAgentCallInProgressEvent$inboundSchema = objectType({
103161
+ type: literalType("response.agent_call.in_progress"),
103162
+ sequence_number: numberType().int(),
103163
+ item_id: stringType(),
103164
+ output_index: numberType().int(),
103165
+ agent_id: stringType()
103166
+ }).transform((v2) => {
103167
+ return remap(v2, {
103168
+ sequence_number: "sequenceNumber",
103169
+ item_id: "itemId",
103170
+ output_index: "outputIndex",
103171
+ agent_id: "agentId"
103172
+ });
103173
+ });
103174
+ ResponseAgentCallInProgressEvent$outboundSchema = objectType({
103175
+ type: literalType("response.agent_call.in_progress"),
103176
+ sequenceNumber: numberType().int(),
103177
+ itemId: stringType(),
103178
+ outputIndex: numberType().int(),
103179
+ agentId: stringType()
103180
+ }).transform((v2) => {
103181
+ return remap(v2, {
103182
+ sequenceNumber: "sequence_number",
103183
+ itemId: "item_id",
103184
+ outputIndex: "output_index",
103185
+ agentId: "agent_id"
103186
+ });
103187
+ });
103188
+ });
103189
+
102329
103190
  // src/models/components/responsestatus.ts
102330
103191
  var ResponseStatus, ResponseStatus$inboundSchema, ResponseStatus$outboundSchema;
102331
103192
  var init_responsestatus = __esm(() => {
@@ -102348,6 +103209,7 @@ var init_responseobject = __esm(() => {
102348
103209
  init_v3();
102349
103210
  init_primitives();
102350
103211
  init_discriminatedUnion();
103212
+ init_agenttooldefinition();
102351
103213
  init_codeinterpretertooldefinition();
102352
103214
  init_compactioncontextmanagement();
102353
103215
  init_comparisonfilter();
@@ -102523,6 +103385,7 @@ var init_responseobject = __esm(() => {
102523
103385
  lazyType(() => ToolsFileSearchToolDefinition$inboundSchema),
102524
103386
  CodeInterpreterToolDefinition$inboundSchema,
102525
103387
  CustomToolDefinition$inboundSchema,
103388
+ AgentToolDefinition$inboundSchema,
102526
103389
  WebSearchToolDefinition$inboundSchema,
102527
103390
  ImageGenerationToolDefinition$inboundSchema,
102528
103391
  LocalShellToolDefinition$inboundSchema,
@@ -102539,6 +103402,7 @@ var init_responseobject = __esm(() => {
102539
103402
  lazyType(() => ToolsFileSearchToolDefinition$outboundSchema),
102540
103403
  CodeInterpreterToolDefinition$outboundSchema,
102541
103404
  CustomToolDefinition$outboundSchema,
103405
+ AgentToolDefinition$outboundSchema,
102542
103406
  WebSearchToolDefinition$outboundSchema,
102543
103407
  ImageGenerationToolDefinition$outboundSchema,
102544
103408
  LocalShellToolDefinition$outboundSchema,
@@ -102590,6 +103454,7 @@ var init_responseobject = __esm(() => {
102590
103454
  lazyType(() => ToolsFileSearchToolDefinition$inboundSchema),
102591
103455
  CodeInterpreterToolDefinition$inboundSchema,
102592
103456
  CustomToolDefinition$inboundSchema,
103457
+ AgentToolDefinition$inboundSchema,
102593
103458
  WebSearchToolDefinition$inboundSchema,
102594
103459
  ImageGenerationToolDefinition$inboundSchema,
102595
103460
  LocalShellToolDefinition$inboundSchema,
@@ -102669,6 +103534,7 @@ var init_responseobject = __esm(() => {
102669
103534
  lazyType(() => ToolsFileSearchToolDefinition$outboundSchema),
102670
103535
  CodeInterpreterToolDefinition$outboundSchema,
102671
103536
  CustomToolDefinition$outboundSchema,
103537
+ AgentToolDefinition$outboundSchema,
102672
103538
  WebSearchToolDefinition$outboundSchema,
102673
103539
  ImageGenerationToolDefinition$outboundSchema,
102674
103540
  LocalShellToolDefinition$outboundSchema,
@@ -104648,6 +105514,7 @@ var Include, ResponsesCreateRequestTruncation, ResponsesCreateRequestServiceTier
104648
105514
  var init_responsescreaterequest = __esm(() => {
104649
105515
  init_v3();
104650
105516
  init_primitives();
105517
+ init_agenttooldefinition();
104651
105518
  init_codeinterpretertoolrequest();
104652
105519
  init_compactioncontextmanagement();
104653
105520
  init_computerusetooldefinition();
@@ -104729,6 +105596,7 @@ var init_responsescreaterequest = __esm(() => {
104729
105596
  FileSearchToolDefinition$inboundSchema,
104730
105597
  CodeInterpreterToolRequest$inboundSchema,
104731
105598
  CustomToolDefinition$inboundSchema,
105599
+ AgentToolDefinition$inboundSchema,
104732
105600
  WebSearchToolDefinition$inboundSchema,
104733
105601
  MCPToolDefinition$inboundSchema,
104734
105602
  ImageGenerationToolDefinition$inboundSchema,
@@ -104745,6 +105613,7 @@ var init_responsescreaterequest = __esm(() => {
104745
105613
  FileSearchToolDefinition$outboundSchema,
104746
105614
  CodeInterpreterToolRequest$outboundSchema,
104747
105615
  CustomToolDefinition$outboundSchema,
105616
+ AgentToolDefinition$outboundSchema,
104748
105617
  WebSearchToolDefinition$outboundSchema,
104749
105618
  MCPToolDefinition$outboundSchema,
104750
105619
  ImageGenerationToolDefinition$outboundSchema,
@@ -104798,6 +105667,7 @@ var init_responsescreaterequest = __esm(() => {
104798
105667
  FileSearchToolDefinition$inboundSchema,
104799
105668
  CodeInterpreterToolRequest$inboundSchema,
104800
105669
  CustomToolDefinition$inboundSchema,
105670
+ AgentToolDefinition$inboundSchema,
104801
105671
  WebSearchToolDefinition$inboundSchema,
104802
105672
  MCPToolDefinition$inboundSchema,
104803
105673
  ImageGenerationToolDefinition$inboundSchema,
@@ -104889,6 +105759,7 @@ var init_responsescreaterequest = __esm(() => {
104889
105759
  FileSearchToolDefinition$outboundSchema,
104890
105760
  CodeInterpreterToolRequest$outboundSchema,
104891
105761
  CustomToolDefinition$outboundSchema,
105762
+ AgentToolDefinition$outboundSchema,
104892
105763
  WebSearchToolDefinition$outboundSchema,
104893
105764
  MCPToolDefinition$outboundSchema,
104894
105765
  ImageGenerationToolDefinition$outboundSchema,
@@ -105497,6 +106368,9 @@ var init_responsestreamingevent = __esm(() => {
105497
106368
  init_v3();
105498
106369
  init_discriminatedUnion();
105499
106370
  init_errorevent();
106371
+ init_responseagentcallcompletedevent();
106372
+ init_responseagentcallfailedevent();
106373
+ init_responseagentcallinprogressevent();
105500
106374
  init_responsecancelledevent();
105501
106375
  init_responsecodeinterpretercallcodedeltaevent();
105502
106376
  init_responsecodeinterpretercallcodedoneevent();
@@ -105613,6 +106487,9 @@ var init_responsestreamingevent = __esm(() => {
105613
106487
  ["response.mcp_call.in_progress"]: ResponseMCPCallInProgressEvent$inboundSchema,
105614
106488
  ["response.mcp_call.completed"]: ResponseMCPCallCompletedEvent$inboundSchema,
105615
106489
  ["response.mcp_call.failed"]: ResponseMCPCallFailedEvent$inboundSchema,
106490
+ ["response.agent_call.in_progress"]: ResponseAgentCallInProgressEvent$inboundSchema,
106491
+ ["response.agent_call.completed"]: ResponseAgentCallCompletedEvent$inboundSchema,
106492
+ ["response.agent_call.failed"]: ResponseAgentCallFailedEvent$inboundSchema,
105616
106493
  ["response.mcp_list_tools.in_progress"]: ResponseMCPListToolsInProgressEvent$inboundSchema,
105617
106494
  ["response.mcp_list_tools.completed"]: ResponseMCPListToolsCompletedEvent$inboundSchema,
105618
106495
  ["response.mcp_list_tools.failed"]: ResponseMCPListToolsFailedEvent$inboundSchema,
@@ -105682,6 +106559,9 @@ var init_responsestreamingevent = __esm(() => {
105682
106559
  ResponseMCPCallInProgressEvent$outboundSchema,
105683
106560
  ResponseMCPCallCompletedEvent$outboundSchema,
105684
106561
  ResponseMCPCallFailedEvent$outboundSchema,
106562
+ ResponseAgentCallInProgressEvent$outboundSchema,
106563
+ ResponseAgentCallCompletedEvent$outboundSchema,
106564
+ ResponseAgentCallFailedEvent$outboundSchema,
105685
106565
  ResponseMCPListToolsInProgressEvent$outboundSchema,
105686
106566
  ResponseMCPListToolsCompletedEvent$outboundSchema,
105687
106567
  ResponseMCPListToolsFailedEvent$outboundSchema,
@@ -108088,6 +108968,7 @@ var init_updatecatalogmodelrequest = __esm(() => {
108088
108968
  ]);
108089
108969
  UpdateCatalogModelRequestEmbeddingLimits$inboundSchema = objectType({
108090
108970
  maxBatchSize: numberType().int().optional(),
108971
+ maxBatchTokens: numberType().int().optional(),
108091
108972
  dimensions: unionType([
108092
108973
  lazyType(() => UpdateCatalogModelRequestDimensions2$inboundSchema),
108093
108974
  numberType().int()
@@ -108095,6 +108976,7 @@ var init_updatecatalogmodelrequest = __esm(() => {
108095
108976
  });
108096
108977
  UpdateCatalogModelRequestEmbeddingLimits$outboundSchema = objectType({
108097
108978
  maxBatchSize: numberType().int().optional(),
108979
+ maxBatchTokens: numberType().int().optional(),
108098
108980
  dimensions: unionType([
108099
108981
  lazyType(() => UpdateCatalogModelRequestDimensions2$outboundSchema),
108100
108982
  numberType().int()
@@ -109476,6 +110358,7 @@ var init_components = __esm(() => {
109476
110358
  init_agentschedulespec();
109477
110359
  init_agentsfunctiontooldefinition();
109478
110360
  init_agenttextconfiguration();
110361
+ init_agenttooldefinition();
109479
110362
  init_agentversion();
109480
110363
  init_agentversionlist();
109481
110364
  init_allowedtools();
@@ -110020,6 +110903,9 @@ var init_components = __esm(() => {
110020
110903
  init_resolvereferencerequest();
110021
110904
  init_resourcerole();
110022
110905
  init_resources2();
110906
+ init_responseagentcallcompletedevent();
110907
+ init_responseagentcallfailedevent();
110908
+ init_responseagentcallinprogressevent();
110023
110909
  init_responsecancelledevent();
110024
110910
  init_responsecodeinterpretercallcodedeltaevent();
110025
110911
  init_responsecodeinterpretercallcodedoneevent();
@@ -202923,7 +203809,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
202923
203809
  function createMCPServer(deps) {
202924
203810
  const server = new McpServer({
202925
203811
  name: "SDK",
202926
- version: "0.55.12"
203812
+ version: "0.55.14"
202927
203813
  });
202928
203814
  const client = new SDKCore({
202929
203815
  bearerAuth: deps.bearerAuth,
@@ -205094,7 +205980,7 @@ var routes = rn({
205094
205980
  var app = Ve(routes, {
205095
205981
  name: "mcp",
205096
205982
  versionInfo: {
205097
- currentVersion: "0.55.12"
205983
+ currentVersion: "0.55.14"
205098
205984
  }
205099
205985
  });
205100
205986
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -205102,5 +205988,5 @@ export {
205102
205988
  app
205103
205989
  };
205104
205990
 
205105
- //# debugId=C5BB1CDF93E340DD64756E2164756E21
205991
+ //# debugId=082C4C3BF75B41E364756E2164756E21
205106
205992
  //# sourceMappingURL=mcp-server.js.map