@dereekb/firebase-server 13.43.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/calcom/index.esm.js +57 -96
  2. package/calcom/package.json +11 -11
  3. package/discord/index.esm.js +48 -74
  4. package/discord/package.json +11 -11
  5. package/index.esm.js +336 -583
  6. package/mailgun/index.esm.js +20 -32
  7. package/mailgun/package.json +9 -9
  8. package/mcp/index.esm.js +131 -185
  9. package/mcp/package.json +14 -14
  10. package/model/index.esm.js +699 -692
  11. package/model/package.json +14 -14
  12. package/model/src/lib/formspace/formspace.action.server.d.ts +79 -5
  13. package/model/src/lib/formspace/formspace.error.d.ts +21 -0
  14. package/model/src/lib/formspace/formspace.task.service.handler.d.ts +3 -2
  15. package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -3
  16. package/oidc/index.esm.js +144 -251
  17. package/oidc/package.json +14 -14
  18. package/package.json +24 -24
  19. package/src/lib/function/type.d.ts +0 -9
  20. package/src/lib/nest/app.d.ts +0 -4
  21. package/src/lib/nest/development/development.app.function.d.ts +2 -2
  22. package/src/lib/nest/model/analytics.handler.d.ts +0 -8
  23. package/src/lib/nest/model/api.details.d.ts +0 -8
  24. package/src/lib/nest/nest.provider.d.ts +0 -8
  25. package/test/index.esm.js +239 -395
  26. package/test/package.json +17 -17
  27. package/test/src/lib/firebase/firebase.admin.auth.d.ts +4 -25
  28. package/test/src/lib/firebase/firebase.admin.nest.d.ts +0 -4
  29. package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +7 -7
  30. package/test/src/lib/firebase/firebase.function.d.ts +20 -81
  31. package/test/src/lib/firebase/firebase.test.d.ts +0 -9
  32. package/twilio/index.esm.js +11 -14
  33. package/twilio/package.json +8 -8
  34. package/zoho/index.esm.js +72 -132
  35. package/zoho/package.json +12 -12
  36. package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +0 -10
package/mcp/index.esm.js CHANGED
@@ -10,9 +10,7 @@ import { arktypeToJsonSchemaForExport } from '@dereekb/model';
10
10
  import { toWebRequest, toNodeHandler, NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
11
11
 
12
12
  function _class_call_check$5(instance, Constructor) {
13
- if (!(instance instanceof Constructor)) {
14
- throw new TypeError("Cannot call a class as a function");
15
- }
13
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
16
14
  }
17
15
  function _define_property$a(obj, key, value) {
18
16
  if (key in obj) {
@@ -22,9 +20,7 @@ function _define_property$a(obj, key, value) {
22
20
  configurable: true,
23
21
  writable: true
24
22
  });
25
- } else {
26
- obj[key] = value;
27
- }
23
+ } else obj[key] = value;
28
24
  return obj;
29
25
  }
30
26
  /**
@@ -225,16 +221,16 @@ function _define_property$9(obj, key, value) {
225
221
  configurable: true,
226
222
  writable: true
227
223
  });
228
- } else {
229
- obj[key] = value;
230
- }
224
+ } else obj[key] = value;
231
225
  return obj;
232
226
  }
233
227
  function _iterable_to_array$7(iter) {
234
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
228
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
229
+ return Array.from(iter);
230
+ }
235
231
  }
236
232
  function _non_iterable_spread$7() {
237
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
233
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
238
234
  }
239
235
  function _object_spread$7(target) {
240
236
  for(var i = 1; i < arguments.length; i++){
@@ -261,9 +257,8 @@ function ownKeys$3(object, enumerableOnly) {
261
257
  }
262
258
  function _object_spread_props$3(target, source) {
263
259
  source = source != null ? source : {};
264
- if (Object.getOwnPropertyDescriptors) {
265
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
266
- } else {
260
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
261
+ else {
267
262
  ownKeys$3(Object(source)).forEach(function(key) {
268
263
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
269
264
  });
@@ -410,9 +405,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
410
405
  }
411
406
 
412
407
  function _class_call_check$4(instance, Constructor) {
413
- if (!(instance instanceof Constructor)) {
414
- throw new TypeError("Cannot call a class as a function");
415
- }
408
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
416
409
  }
417
410
  /**
418
411
  * Abstract analytics service that apps implement to process MCP analytics events.
@@ -497,7 +490,7 @@ function _iterable_to_array_limit$5(arr, i) {
497
490
  return _arr;
498
491
  }
499
492
  function _non_iterable_rest$5() {
500
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
493
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
501
494
  }
502
495
  function _sliced_to_array$5(arr, i) {
503
496
  return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$5();
@@ -755,11 +748,8 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
755
748
  reject(error);
756
749
  return;
757
750
  }
758
- if (info.done) {
759
- resolve(value);
760
- } else {
761
- Promise.resolve(value).then(_next, _throw);
762
- }
751
+ if (info.done) resolve(value);
752
+ else Promise.resolve(value).then(_next, _throw);
763
753
  }
764
754
  function _async_to_generator$7(fn) {
765
755
  return function() {
@@ -780,9 +770,7 @@ function _instanceof$1(left, right) {
780
770
  "@swc/helpers - instanceof";
781
771
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
782
772
  return !!right[Symbol.hasInstance](left);
783
- } else {
784
- return left instanceof right;
785
- }
773
+ } else return left instanceof right;
786
774
  }
787
775
  function _ts_generator$7(thisArg, body) {
788
776
  var f, y, t, _ = {
@@ -1133,7 +1121,7 @@ function _iterable_to_array_limit$4(arr, i) {
1133
1121
  return _arr;
1134
1122
  }
1135
1123
  function _non_iterable_rest$4() {
1136
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1124
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1137
1125
  }
1138
1126
  function _sliced_to_array$4(arr, i) {
1139
1127
  return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$4();
@@ -1782,11 +1770,8 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
1782
1770
  reject(error);
1783
1771
  return;
1784
1772
  }
1785
- if (info.done) {
1786
- resolve(value);
1787
- } else {
1788
- Promise.resolve(value).then(_next, _throw);
1789
- }
1773
+ if (info.done) resolve(value);
1774
+ else Promise.resolve(value).then(_next, _throw);
1790
1775
  }
1791
1776
  function _async_to_generator$6(fn) {
1792
1777
  return function() {
@@ -1804,22 +1789,16 @@ function _async_to_generator$6(fn) {
1804
1789
  };
1805
1790
  }
1806
1791
  function _iterable_to_array$6(iter) {
1807
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1792
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
1793
+ return Array.from(iter);
1794
+ }
1808
1795
  }
1809
1796
  function _non_iterable_spread$6() {
1810
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1797
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1811
1798
  }
1812
1799
  function _to_consumable_array$6(arr) {
1813
1800
  return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$6();
1814
1801
  }
1815
- function _unsupported_iterable_to_array$8(o, minLen) {
1816
- if (!o) return;
1817
- if (typeof o === "string") return _array_like_to_array$8(o, minLen);
1818
- var n = Object.prototype.toString.call(o).slice(8, -1);
1819
- if (n === "Object" && o.constructor) n = o.constructor.name;
1820
- if (n === "Map" || n === "Set") return Array.from(n);
1821
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
1822
- }
1823
1802
  function _ts_generator$6(thisArg, body) {
1824
1803
  var f, y, t, _ = {
1825
1804
  label: 0,
@@ -1919,6 +1898,14 @@ function _ts_generator$6(thisArg, body) {
1919
1898
  };
1920
1899
  }
1921
1900
  }
1901
+ function _unsupported_iterable_to_array$8(o, minLen) {
1902
+ if (!o) return;
1903
+ if (typeof o === "string") return _array_like_to_array$8(o, minLen);
1904
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1905
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1906
+ if (n === "Map" || n === "Set") return Array.from(n);
1907
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
1908
+ }
1922
1909
  // MARK: Constants
1923
1910
  /**
1924
1911
  * Reserved tool name for the built-in `model-get` static tool.
@@ -2214,11 +2201,8 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
2214
2201
  reject(error);
2215
2202
  return;
2216
2203
  }
2217
- if (info.done) {
2218
- resolve(value);
2219
- } else {
2220
- Promise.resolve(value).then(_next, _throw);
2221
- }
2204
+ if (info.done) resolve(value);
2205
+ else Promise.resolve(value).then(_next, _throw);
2222
2206
  }
2223
2207
  function _async_to_generator$5(fn) {
2224
2208
  return function() {
@@ -2243,9 +2227,7 @@ function _define_property$8(obj, key, value) {
2243
2227
  configurable: true,
2244
2228
  writable: true
2245
2229
  });
2246
- } else {
2247
- obj[key] = value;
2248
- }
2230
+ } else obj[key] = value;
2249
2231
  return obj;
2250
2232
  }
2251
2233
  function _object_spread$6(target) {
@@ -2728,16 +2710,16 @@ function _define_property$7(obj, key, value) {
2728
2710
  configurable: true,
2729
2711
  writable: true
2730
2712
  });
2731
- } else {
2732
- obj[key] = value;
2733
- }
2713
+ } else obj[key] = value;
2734
2714
  return obj;
2735
2715
  }
2736
2716
  function _iterable_to_array$5(iter) {
2737
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2717
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
2718
+ return Array.from(iter);
2719
+ }
2738
2720
  }
2739
2721
  function _non_iterable_spread$5() {
2740
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2722
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2741
2723
  }
2742
2724
  function _object_spread$5(target) {
2743
2725
  for(var i = 1; i < arguments.length; i++){
@@ -2764,9 +2746,8 @@ function ownKeys$2(object, enumerableOnly) {
2764
2746
  }
2765
2747
  function _object_spread_props$2(target, source) {
2766
2748
  source = source != null ? source : {};
2767
- if (Object.getOwnPropertyDescriptors) {
2768
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2769
- } else {
2749
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2750
+ else {
2770
2751
  ownKeys$2(Object(source)).forEach(function(key) {
2771
2752
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2772
2753
  });
@@ -3582,9 +3563,7 @@ function _define_property$6(obj, key, value) {
3582
3563
  configurable: true,
3583
3564
  writable: true
3584
3565
  });
3585
- } else {
3586
- obj[key] = value;
3587
- }
3566
+ } else obj[key] = value;
3588
3567
  return obj;
3589
3568
  }
3590
3569
  function _object_spread$4(target) {
@@ -4032,9 +4011,7 @@ function _define_property$5(obj, key, value) {
4032
4011
  configurable: true,
4033
4012
  writable: true
4034
4013
  });
4035
- } else {
4036
- obj[key] = value;
4037
- }
4014
+ } else obj[key] = value;
4038
4015
  return obj;
4039
4016
  }
4040
4017
  function _iterable_to_array_limit$3(arr, i) {
@@ -4062,7 +4039,7 @@ function _iterable_to_array_limit$3(arr, i) {
4062
4039
  return _arr;
4063
4040
  }
4064
4041
  function _non_iterable_rest$3() {
4065
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4042
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4066
4043
  }
4067
4044
  function _object_spread$3(target) {
4068
4045
  for(var i = 1; i < arguments.length; i++){
@@ -4487,11 +4464,8 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
4487
4464
  reject(error);
4488
4465
  return;
4489
4466
  }
4490
- if (info.done) {
4491
- resolve(value);
4492
- } else {
4493
- Promise.resolve(value).then(_next, _throw);
4494
- }
4467
+ if (info.done) resolve(value);
4468
+ else Promise.resolve(value).then(_next, _throw);
4495
4469
  }
4496
4470
  function _async_to_generator$4(fn) {
4497
4471
  return function() {
@@ -4516,13 +4490,13 @@ function _define_property$4(obj, key, value) {
4516
4490
  configurable: true,
4517
4491
  writable: true
4518
4492
  });
4519
- } else {
4520
- obj[key] = value;
4521
- }
4493
+ } else obj[key] = value;
4522
4494
  return obj;
4523
4495
  }
4524
4496
  function _iterable_to_array$4(iter) {
4525
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4497
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
4498
+ return Array.from(iter);
4499
+ }
4526
4500
  }
4527
4501
  function _iterable_to_array_limit$2(arr, i) {
4528
4502
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -4549,10 +4523,10 @@ function _iterable_to_array_limit$2(arr, i) {
4549
4523
  return _arr;
4550
4524
  }
4551
4525
  function _non_iterable_rest$2() {
4552
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4526
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4553
4527
  }
4554
4528
  function _non_iterable_spread$4() {
4555
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4529
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4556
4530
  }
4557
4531
  function _object_spread$2(target) {
4558
4532
  for(var i = 1; i < arguments.length; i++){
@@ -4579,9 +4553,8 @@ function ownKeys$1(object, enumerableOnly) {
4579
4553
  }
4580
4554
  function _object_spread_props$1(target, source) {
4581
4555
  source = source != null ? source : {};
4582
- if (Object.getOwnPropertyDescriptors) {
4583
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4584
- } else {
4556
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4557
+ else {
4585
4558
  ownKeys$1(Object(source)).forEach(function(key) {
4586
4559
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4587
4560
  });
@@ -4594,14 +4567,6 @@ function _sliced_to_array$2(arr, i) {
4594
4567
  function _to_consumable_array$4(arr) {
4595
4568
  return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$4();
4596
4569
  }
4597
- function _unsupported_iterable_to_array$5(o, minLen) {
4598
- if (!o) return;
4599
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
4600
- var n = Object.prototype.toString.call(o).slice(8, -1);
4601
- if (n === "Object" && o.constructor) n = o.constructor.name;
4602
- if (n === "Map" || n === "Set") return Array.from(n);
4603
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
4604
- }
4605
4570
  function _ts_generator$4(thisArg, body) {
4606
4571
  var f, y, t, _ = {
4607
4572
  label: 0,
@@ -4701,6 +4666,14 @@ function _ts_generator$4(thisArg, body) {
4701
4666
  };
4702
4667
  }
4703
4668
  }
4669
+ function _unsupported_iterable_to_array$5(o, minLen) {
4670
+ if (!o) return;
4671
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
4672
+ var n = Object.prototype.toString.call(o).slice(8, -1);
4673
+ if (n === "Object" && o.constructor) n = o.constructor.name;
4674
+ if (n === "Map" || n === "Set") return Array.from(n);
4675
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
4676
+ }
4704
4677
  // MARK: Constants
4705
4678
  /**
4706
4679
  * Reserved tool name for the built-in `url-models` static tool.
@@ -5458,11 +5431,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
5458
5431
  reject(error);
5459
5432
  return;
5460
5433
  }
5461
- if (info.done) {
5462
- resolve(value);
5463
- } else {
5464
- Promise.resolve(value).then(_next, _throw);
5465
- }
5434
+ if (info.done) resolve(value);
5435
+ else Promise.resolve(value).then(_next, _throw);
5466
5436
  }
5467
5437
  function _async_to_generator$3(fn) {
5468
5438
  return function() {
@@ -5483,9 +5453,7 @@ function _instanceof(left, right) {
5483
5453
  "@swc/helpers - instanceof";
5484
5454
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
5485
5455
  return !!right[Symbol.hasInstance](left);
5486
- } else {
5487
- return left instanceof right;
5488
- }
5456
+ } else return left instanceof right;
5489
5457
  }
5490
5458
  function _iterable_to_array_limit$1(arr, i) {
5491
5459
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -5512,23 +5480,11 @@ function _iterable_to_array_limit$1(arr, i) {
5512
5480
  return _arr;
5513
5481
  }
5514
5482
  function _non_iterable_rest$1() {
5515
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5483
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5516
5484
  }
5517
5485
  function _sliced_to_array$1(arr, i) {
5518
5486
  return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$1();
5519
5487
  }
5520
- function _type_of$2(obj) {
5521
- "@swc/helpers - typeof";
5522
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5523
- }
5524
- function _unsupported_iterable_to_array$4(o, minLen) {
5525
- if (!o) return;
5526
- if (typeof o === "string") return _array_like_to_array$4(o, minLen);
5527
- var n = Object.prototype.toString.call(o).slice(8, -1);
5528
- if (n === "Object" && o.constructor) n = o.constructor.name;
5529
- if (n === "Map" || n === "Set") return Array.from(n);
5530
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
5531
- }
5532
5488
  function _ts_generator$3(thisArg, body) {
5533
5489
  var f, y, t, _ = {
5534
5490
  label: 0,
@@ -5628,6 +5584,18 @@ function _ts_generator$3(thisArg, body) {
5628
5584
  };
5629
5585
  }
5630
5586
  }
5587
+ function _type_of$2(obj) {
5588
+ "@swc/helpers - typeof";
5589
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5590
+ }
5591
+ function _unsupported_iterable_to_array$4(o, minLen) {
5592
+ if (!o) return;
5593
+ if (typeof o === "string") return _array_like_to_array$4(o, minLen);
5594
+ var n = Object.prototype.toString.call(o).slice(8, -1);
5595
+ if (n === "Object" && o.constructor) n = o.constructor.name;
5596
+ if (n === "Map" || n === "Set") return Array.from(n);
5597
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
5598
+ }
5631
5599
  // MARK: Constants
5632
5600
  /**
5633
5601
  * Reserved tool name for the built-in `batch-execute` static tool.
@@ -6309,11 +6277,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
6309
6277
  reject(error);
6310
6278
  return;
6311
6279
  }
6312
- if (info.done) {
6313
- resolve(value);
6314
- } else {
6315
- Promise.resolve(value).then(_next, _throw);
6316
- }
6280
+ if (info.done) resolve(value);
6281
+ else Promise.resolve(value).then(_next, _throw);
6317
6282
  }
6318
6283
  function _async_to_generator$2(fn) {
6319
6284
  return function() {
@@ -6331,9 +6296,7 @@ function _async_to_generator$2(fn) {
6331
6296
  };
6332
6297
  }
6333
6298
  function _class_call_check$3(instance, Constructor) {
6334
- if (!(instance instanceof Constructor)) {
6335
- throw new TypeError("Cannot call a class as a function");
6336
- }
6299
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
6337
6300
  }
6338
6301
  function _defineProperties$3(target, props) {
6339
6302
  for(var i = 0; i < props.length; i++){
@@ -6356,13 +6319,13 @@ function _define_property$3(obj, key, value) {
6356
6319
  configurable: true,
6357
6320
  writable: true
6358
6321
  });
6359
- } else {
6360
- obj[key] = value;
6361
- }
6322
+ } else obj[key] = value;
6362
6323
  return obj;
6363
6324
  }
6364
6325
  function _iterable_to_array$3(iter) {
6365
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
6326
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
6327
+ return Array.from(iter);
6328
+ }
6366
6329
  }
6367
6330
  function _iterable_to_array_limit(arr, i) {
6368
6331
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -6389,10 +6352,10 @@ function _iterable_to_array_limit(arr, i) {
6389
6352
  return _arr;
6390
6353
  }
6391
6354
  function _non_iterable_rest() {
6392
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6355
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6393
6356
  }
6394
6357
  function _non_iterable_spread$3() {
6395
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6358
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6396
6359
  }
6397
6360
  function _object_spread$1(target) {
6398
6361
  for(var i = 1; i < arguments.length; i++){
@@ -6419,9 +6382,8 @@ function ownKeys(object, enumerableOnly) {
6419
6382
  }
6420
6383
  function _object_spread_props(target, source) {
6421
6384
  source = source != null ? source : {};
6422
- if (Object.getOwnPropertyDescriptors) {
6423
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6424
- } else {
6385
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6386
+ else {
6425
6387
  ownKeys(Object(source)).forEach(function(key) {
6426
6388
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6427
6389
  });
@@ -6434,18 +6396,6 @@ function _sliced_to_array(arr, i) {
6434
6396
  function _to_consumable_array$3(arr) {
6435
6397
  return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$3();
6436
6398
  }
6437
- function _type_of$1(obj) {
6438
- "@swc/helpers - typeof";
6439
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6440
- }
6441
- function _unsupported_iterable_to_array$3(o, minLen) {
6442
- if (!o) return;
6443
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
6444
- var n = Object.prototype.toString.call(o).slice(8, -1);
6445
- if (n === "Object" && o.constructor) n = o.constructor.name;
6446
- if (n === "Map" || n === "Set") return Array.from(n);
6447
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
6448
- }
6449
6399
  function _ts_generator$2(thisArg, body) {
6450
6400
  var f, y, t, _ = {
6451
6401
  label: 0,
@@ -6545,6 +6495,18 @@ function _ts_generator$2(thisArg, body) {
6545
6495
  };
6546
6496
  }
6547
6497
  }
6498
+ function _type_of$1(obj) {
6499
+ "@swc/helpers - typeof";
6500
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6501
+ }
6502
+ function _unsupported_iterable_to_array$3(o, minLen) {
6503
+ if (!o) return;
6504
+ if (typeof o === "string") return _array_like_to_array$3(o, minLen);
6505
+ var n = Object.prototype.toString.call(o).slice(8, -1);
6506
+ if (n === "Object" && o.constructor) n = o.constructor.name;
6507
+ if (n === "Map" || n === "Set") return Array.from(n);
6508
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
6509
+ }
6548
6510
  var McpServerFactoryService_1;
6549
6511
  /**
6550
6512
  * Injectable factory that builds {@link McpServer} instances pre-wired to the
@@ -7627,11 +7589,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
7627
7589
  reject(error);
7628
7590
  return;
7629
7591
  }
7630
- if (info.done) {
7631
- resolve(value);
7632
- } else {
7633
- Promise.resolve(value).then(_next, _throw);
7634
- }
7592
+ if (info.done) resolve(value);
7593
+ else Promise.resolve(value).then(_next, _throw);
7635
7594
  }
7636
7595
  function _async_to_generator$1(fn) {
7637
7596
  return function() {
@@ -7942,11 +7901,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
7942
7901
  reject(error);
7943
7902
  return;
7944
7903
  }
7945
- if (info.done) {
7946
- resolve(value);
7947
- } else {
7948
- Promise.resolve(value).then(_next, _throw);
7949
- }
7904
+ if (info.done) resolve(value);
7905
+ else Promise.resolve(value).then(_next, _throw);
7950
7906
  }
7951
7907
  function _async_to_generator(fn) {
7952
7908
  return function() {
@@ -7964,9 +7920,7 @@ function _async_to_generator(fn) {
7964
7920
  };
7965
7921
  }
7966
7922
  function _class_call_check$2(instance, Constructor) {
7967
- if (!(instance instanceof Constructor)) {
7968
- throw new TypeError("Cannot call a class as a function");
7969
- }
7923
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
7970
7924
  }
7971
7925
  function _defineProperties$2(target, props) {
7972
7926
  for(var i = 0; i < props.length; i++){
@@ -7989,9 +7943,7 @@ function _define_property$2(obj, key, value) {
7989
7943
  configurable: true,
7990
7944
  writable: true
7991
7945
  });
7992
- } else {
7993
- obj[key] = value;
7994
- }
7946
+ } else obj[key] = value;
7995
7947
  return obj;
7996
7948
  }
7997
7949
  function _ts_generator(thisArg, body) {
@@ -8238,9 +8190,7 @@ function _array_without_holes$2(arr) {
8238
8190
  if (Array.isArray(arr)) return _array_like_to_array$2(arr);
8239
8191
  }
8240
8192
  function _class_call_check$1(instance, Constructor) {
8241
- if (!(instance instanceof Constructor)) {
8242
- throw new TypeError("Cannot call a class as a function");
8243
- }
8193
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
8244
8194
  }
8245
8195
  function _defineProperties$1(target, props) {
8246
8196
  for(var i = 0; i < props.length; i++){
@@ -8263,16 +8213,16 @@ function _define_property$1(obj, key, value) {
8263
8213
  configurable: true,
8264
8214
  writable: true
8265
8215
  });
8266
- } else {
8267
- obj[key] = value;
8268
- }
8216
+ } else obj[key] = value;
8269
8217
  return obj;
8270
8218
  }
8271
8219
  function _iterable_to_array$2(iter) {
8272
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8220
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
8221
+ return Array.from(iter);
8222
+ }
8273
8223
  }
8274
8224
  function _non_iterable_spread$2() {
8275
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8225
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8276
8226
  }
8277
8227
  function _object_spread(target) {
8278
8228
  for(var i = 1; i < arguments.length; i++){
@@ -8381,10 +8331,12 @@ function _array_without_holes$1(arr) {
8381
8331
  if (Array.isArray(arr)) return _array_like_to_array$1(arr);
8382
8332
  }
8383
8333
  function _iterable_to_array$1(iter) {
8384
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8334
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
8335
+ return Array.from(iter);
8336
+ }
8385
8337
  }
8386
8338
  function _non_iterable_spread$1() {
8387
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8339
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8388
8340
  }
8389
8341
  function _to_consumable_array$1(arr) {
8390
8342
  return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
@@ -8461,9 +8413,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
8461
8413
  */ var FIREBASE_SERVER_MCP_ANALYTICS_CONFIG = 'FIREBASE_SERVER_MCP_ANALYTICS_CONFIG';
8462
8414
 
8463
8415
  function _assert_this_initialized(self) {
8464
- if (self === void 0) {
8465
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8466
- }
8416
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8467
8417
  return self;
8468
8418
  }
8469
8419
  function _call_super(_this, derived, args) {
@@ -8471,9 +8421,7 @@ function _call_super(_this, derived, args) {
8471
8421
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
8472
8422
  }
8473
8423
  function _class_call_check(instance, Constructor) {
8474
- if (!(instance instanceof Constructor)) {
8475
- throw new TypeError("Cannot call a class as a function");
8476
- }
8424
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
8477
8425
  }
8478
8426
  function _defineProperties(target, props) {
8479
8427
  for(var i = 0; i < props.length; i++){
@@ -8496,9 +8444,7 @@ function _define_property(obj, key, value) {
8496
8444
  configurable: true,
8497
8445
  writable: true
8498
8446
  });
8499
- } else {
8500
- obj[key] = value;
8501
- }
8447
+ } else obj[key] = value;
8502
8448
  return obj;
8503
8449
  }
8504
8450
  function _get_prototype_of(o) {
@@ -8520,10 +8466,16 @@ function _inherits(subClass, superClass) {
8520
8466
  });
8521
8467
  if (superClass) _set_prototype_of(subClass, superClass);
8522
8468
  }
8469
+ function _is_native_reflect_construct() {
8470
+ try {
8471
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
8472
+ } catch (_) {}
8473
+ return (_is_native_reflect_construct = function() {
8474
+ return !!result;
8475
+ })();
8476
+ }
8523
8477
  function _possible_constructor_return(self, call) {
8524
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
8525
- return call;
8526
- }
8478
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
8527
8479
  return _assert_this_initialized(self);
8528
8480
  }
8529
8481
  function _set_prototype_of(o, p) {
@@ -8537,14 +8489,6 @@ function _type_of(obj) {
8537
8489
  "@swc/helpers - typeof";
8538
8490
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
8539
8491
  }
8540
- function _is_native_reflect_construct() {
8541
- try {
8542
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
8543
- } catch (_) {}
8544
- return (_is_native_reflect_construct = function() {
8545
- return !!result;
8546
- })();
8547
- }
8548
8492
  var FirebaseServerMcpAnalyticsService_1;
8549
8493
  /**
8550
8494
  * Reusable {@link McpAnalyticsService} that forwards each completed MCP tool call to the app's
@@ -8613,10 +8557,12 @@ function _array_without_holes(arr) {
8613
8557
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8614
8558
  }
8615
8559
  function _iterable_to_array(iter) {
8616
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8560
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
8561
+ return Array.from(iter);
8562
+ }
8617
8563
  }
8618
8564
  function _non_iterable_spread() {
8619
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8565
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8620
8566
  }
8621
8567
  function _to_consumable_array(arr) {
8622
8568
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();