@fedify/fedify 1.2.10 → 1.2.12

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 (87) hide show
  1. package/CHANGES.md +110 -0
  2. package/esm/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.js +1 -1
  3. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
  4. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
  5. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.js +1 -1
  6. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.js +1 -1
  7. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.js +1 -1
  8. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.js +1 -1
  9. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.js +1 -1
  10. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.js +1 -1
  11. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.js +1 -1
  12. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.js +1 -1
  13. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.js +1 -1
  14. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
  15. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
  16. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.js +1 -1
  17. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.js +1 -1
  18. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
  19. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.js +1 -1
  20. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.js +1 -1
  21. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.js +1 -1
  22. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.js +1 -1
  23. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.js +1 -1
  24. package/esm/federation/collection.js +1 -1
  25. package/esm/federation/handler.js +1 -1
  26. package/esm/runtime/key.js +4 -4
  27. package/esm/runtime/url.js +7 -1
  28. package/esm/sig/http.js +2 -2
  29. package/esm/sig/ld.js +2 -2
  30. package/esm/vocab/lookup.js +1 -1
  31. package/esm/vocab/vocab.js +408 -264
  32. package/esm/webfinger/lookup.js +21 -1
  33. package/package.json +3 -3
  34. package/types/deps/jsr.io/@std/async/1.0.10/delay.d.ts.map +1 -0
  35. package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  36. package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  37. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
  38. package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  39. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts.map +1 -1
  40. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts.map +1 -1
  41. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts.map +1 -1
  42. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts.map +1 -1
  43. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts.map +1 -1
  44. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts.map +1 -1
  45. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts.map +1 -1
  46. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.d.ts +3 -1
  47. package/types/deps/jsr.io/@std/bytes/1.0.5/repeat.d.ts.map +1 -0
  48. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts.map +1 -1
  49. package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  50. package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  51. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
  52. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.d.ts +3 -1
  53. package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
  54. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.d.ts +3 -1
  55. package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
  56. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.d.ts +3 -1
  57. package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  58. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts.map +1 -1
  59. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts.map +1 -1
  60. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts.map +1 -1
  61. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts.map +1 -1
  62. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts.map +1 -1
  63. package/types/runtime/url.d.ts.map +1 -1
  64. package/types/vocab/vocab.d.ts +18 -38
  65. package/types/vocab/vocab.d.ts.map +1 -1
  66. package/types/webfinger/lookup.d.ts.map +1 -1
  67. package/types/deps/jsr.io/@std/async/1.0.9/delay.d.ts.map +0 -1
  68. package/types/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
  69. package/types/deps/jsr.io/@std/bytes/1.0.4/repeat.d.ts.map +0 -1
  70. package/types/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +0 -1
  71. package/types/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +0 -1
  72. package/types/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
  73. /package/types/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.d.ts +0 -0
  74. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts +0 -0
  75. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts +0 -0
  76. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts +0 -0
  77. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts +0 -0
  78. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts +0 -0
  79. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts +0 -0
  80. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts +0 -0
  81. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts +0 -0
  82. /package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
  83. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts +0 -0
  84. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts +0 -0
  85. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts +0 -0
  86. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts +0 -0
  87. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts +0 -0
@@ -18,6 +18,7 @@ import { LanguageString } from "../runtime/langstr.js";
18
18
  export class Object {
19
19
  #documentLoader;
20
20
  #contextLoader;
21
+ #cachedJsonLd;
21
22
  id;
22
23
  get _documentLoader() {
23
24
  return this.#documentLoader;
@@ -25,7 +26,12 @@ export class Object {
25
26
  get _contextLoader() {
26
27
  return this.#contextLoader;
27
28
  }
28
- #cachedJsonLd;
29
+ get _cachedJsonLd() {
30
+ return this.#cachedJsonLd;
31
+ }
32
+ set _cachedJsonLd(value) {
33
+ this.#cachedJsonLd = value;
34
+ }
29
35
  /**
30
36
  * The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
31
37
  */
@@ -1341,6 +1347,7 @@ export class Object {
1341
1347
  if (fetched == null)
1342
1348
  continue;
1343
1349
  vs[i] = fetched;
1350
+ this._cachedJsonLd = undefined;
1344
1351
  yield fetched;
1345
1352
  continue;
1346
1353
  }
@@ -1436,6 +1443,7 @@ export class Object {
1436
1443
  if (fetched == null)
1437
1444
  return null;
1438
1445
  this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo[0] = fetched;
1446
+ this._cachedJsonLd = undefined;
1439
1447
  return fetched;
1440
1448
  }
1441
1449
  return v;
@@ -1461,6 +1469,7 @@ export class Object {
1461
1469
  if (fetched == null)
1462
1470
  continue;
1463
1471
  vs[i] = fetched;
1472
+ this._cachedJsonLd = undefined;
1464
1473
  yield fetched;
1465
1474
  continue;
1466
1475
  }
@@ -1519,6 +1528,7 @@ export class Object {
1519
1528
  if (fetched == null)
1520
1529
  return null;
1521
1530
  this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience[0] = fetched;
1531
+ this._cachedJsonLd = undefined;
1522
1532
  return fetched;
1523
1533
  }
1524
1534
  return v;
@@ -1543,6 +1553,7 @@ export class Object {
1543
1553
  if (fetched == null)
1544
1554
  continue;
1545
1555
  vs[i] = fetched;
1556
+ this._cachedJsonLd = undefined;
1546
1557
  yield fetched;
1547
1558
  continue;
1548
1559
  }
@@ -1631,6 +1642,7 @@ export class Object {
1631
1642
  if (fetched == null)
1632
1643
  continue;
1633
1644
  vs[i] = fetched;
1645
+ this._cachedJsonLd = undefined;
1634
1646
  yield fetched;
1635
1647
  continue;
1636
1648
  }
@@ -1719,6 +1731,7 @@ export class Object {
1719
1731
  if (fetched == null)
1720
1732
  continue;
1721
1733
  vs[i] = fetched;
1734
+ this._cachedJsonLd = undefined;
1722
1735
  yield fetched;
1723
1736
  continue;
1724
1737
  }
@@ -1778,6 +1791,7 @@ export class Object {
1778
1791
  if (fetched == null)
1779
1792
  return null;
1780
1793
  this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon[0] = fetched;
1794
+ this._cachedJsonLd = undefined;
1781
1795
  return fetched;
1782
1796
  }
1783
1797
  return v;
@@ -1803,6 +1817,7 @@ export class Object {
1803
1817
  if (fetched == null)
1804
1818
  continue;
1805
1819
  vs[i] = fetched;
1820
+ this._cachedJsonLd = undefined;
1806
1821
  yield fetched;
1807
1822
  continue;
1808
1823
  }
@@ -1862,6 +1877,7 @@ export class Object {
1862
1877
  if (fetched == null)
1863
1878
  return null;
1864
1879
  this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image[0] = fetched;
1880
+ this._cachedJsonLd = undefined;
1865
1881
  return fetched;
1866
1882
  }
1867
1883
  return v;
@@ -1887,6 +1903,7 @@ export class Object {
1887
1903
  if (fetched == null)
1888
1904
  continue;
1889
1905
  vs[i] = fetched;
1906
+ this._cachedJsonLd = undefined;
1890
1907
  yield fetched;
1891
1908
  continue;
1892
1909
  }
@@ -1955,6 +1972,7 @@ export class Object {
1955
1972
  if (fetched == null)
1956
1973
  return null;
1957
1974
  this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo[0] = fetched;
1975
+ this._cachedJsonLd = undefined;
1958
1976
  return fetched;
1959
1977
  }
1960
1978
  return v;
@@ -1979,6 +1997,7 @@ export class Object {
1979
1997
  if (fetched == null)
1980
1998
  continue;
1981
1999
  vs[i] = fetched;
2000
+ this._cachedJsonLd = undefined;
1982
2001
  yield fetched;
1983
2002
  continue;
1984
2003
  }
@@ -2047,6 +2066,7 @@ export class Object {
2047
2066
  if (fetched == null)
2048
2067
  return null;
2049
2068
  this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location[0] = fetched;
2069
+ this._cachedJsonLd = undefined;
2050
2070
  return fetched;
2051
2071
  }
2052
2072
  return v;
@@ -2071,6 +2091,7 @@ export class Object {
2071
2091
  if (fetched == null)
2072
2092
  continue;
2073
2093
  vs[i] = fetched;
2094
+ this._cachedJsonLd = undefined;
2074
2095
  yield fetched;
2075
2096
  continue;
2076
2097
  }
@@ -2138,6 +2159,7 @@ export class Object {
2138
2159
  if (fetched == null)
2139
2160
  return null;
2140
2161
  this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview[0] = fetched;
2162
+ this._cachedJsonLd = undefined;
2141
2163
  return fetched;
2142
2164
  }
2143
2165
  return v;
@@ -2161,6 +2183,7 @@ export class Object {
2161
2183
  if (fetched == null)
2162
2184
  continue;
2163
2185
  vs[i] = fetched;
2186
+ this._cachedJsonLd = undefined;
2164
2187
  yield fetched;
2165
2188
  continue;
2166
2189
  }
@@ -2226,6 +2249,7 @@ export class Object {
2226
2249
  if (fetched == null)
2227
2250
  return null;
2228
2251
  this.#_7UpwM3JWcXhADcscukEehBorf6k_replies[0] = fetched;
2252
+ this._cachedJsonLd = undefined;
2229
2253
  return fetched;
2230
2254
  }
2231
2255
  return v;
@@ -2313,6 +2337,7 @@ export class Object {
2313
2337
  if (fetched == null)
2314
2338
  continue;
2315
2339
  vs[i] = fetched;
2340
+ this._cachedJsonLd = undefined;
2316
2341
  yield fetched;
2317
2342
  continue;
2318
2343
  }
@@ -2390,6 +2415,7 @@ export class Object {
2390
2415
  if (fetched == null)
2391
2416
  return null;
2392
2417
  this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to[0] = fetched;
2418
+ this._cachedJsonLd = undefined;
2393
2419
  return fetched;
2394
2420
  }
2395
2421
  return v;
@@ -2414,6 +2440,7 @@ export class Object {
2414
2440
  if (fetched == null)
2415
2441
  continue;
2416
2442
  vs[i] = fetched;
2443
+ this._cachedJsonLd = undefined;
2417
2444
  yield fetched;
2418
2445
  continue;
2419
2446
  }
@@ -2472,6 +2499,7 @@ export class Object {
2472
2499
  if (fetched == null)
2473
2500
  return null;
2474
2501
  this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto[0] = fetched;
2502
+ this._cachedJsonLd = undefined;
2475
2503
  return fetched;
2476
2504
  }
2477
2505
  return v;
@@ -2496,6 +2524,7 @@ export class Object {
2496
2524
  if (fetched == null)
2497
2525
  continue;
2498
2526
  vs[i] = fetched;
2527
+ this._cachedJsonLd = undefined;
2499
2528
  yield fetched;
2500
2529
  continue;
2501
2530
  }
@@ -2554,6 +2583,7 @@ export class Object {
2554
2583
  if (fetched == null)
2555
2584
  return null;
2556
2585
  this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc[0] = fetched;
2586
+ this._cachedJsonLd = undefined;
2557
2587
  return fetched;
2558
2588
  }
2559
2589
  return v;
@@ -2578,6 +2608,7 @@ export class Object {
2578
2608
  if (fetched == null)
2579
2609
  continue;
2580
2610
  vs[i] = fetched;
2611
+ this._cachedJsonLd = undefined;
2581
2612
  yield fetched;
2582
2613
  continue;
2583
2614
  }
@@ -2636,6 +2667,7 @@ export class Object {
2636
2667
  if (fetched == null)
2637
2668
  return null;
2638
2669
  this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc[0] = fetched;
2670
+ this._cachedJsonLd = undefined;
2639
2671
  return fetched;
2640
2672
  }
2641
2673
  return v;
@@ -2660,6 +2692,7 @@ export class Object {
2660
2692
  if (fetched == null)
2661
2693
  continue;
2662
2694
  vs[i] = fetched;
2695
+ this._cachedJsonLd = undefined;
2663
2696
  yield fetched;
2664
2697
  continue;
2665
2698
  }
@@ -2754,6 +2787,7 @@ export class Object {
2754
2787
  if (fetched == null)
2755
2788
  return null;
2756
2789
  this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof[0] = fetched;
2790
+ this._cachedJsonLd = undefined;
2757
2791
  return fetched;
2758
2792
  }
2759
2793
  return v;
@@ -2777,6 +2811,7 @@ export class Object {
2777
2811
  if (fetched == null)
2778
2812
  continue;
2779
2813
  vs[i] = fetched;
2814
+ this._cachedJsonLd = undefined;
2780
2815
  yield fetched;
2781
2816
  continue;
2782
2817
  }
@@ -2794,8 +2829,8 @@ export class Object {
2794
2829
  * @returns The JSON-LD representation of this object.
2795
2830
  */
2796
2831
  async toJsonLd(options = {}) {
2797
- if (options.format == null && this.#cachedJsonLd != null) {
2798
- return this.#cachedJsonLd;
2832
+ if (options.format == null && this._cachedJsonLd != null) {
2833
+ return this._cachedJsonLd;
2799
2834
  }
2800
2835
  if (options.format !== "compact" && options.context != null) {
2801
2836
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -4966,7 +5001,7 @@ export class Object {
4966
5001
  _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
4967
5002
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
4968
5003
  try {
4969
- instance.#cachedJsonLd = structuredClone(json);
5004
+ instance._cachedJsonLd = structuredClone(json);
4970
5005
  }
4971
5006
  catch {
4972
5007
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5433,7 +5468,6 @@ _a = Object;
5433
5468
  /** Represents a custom emoji.
5434
5469
  */
5435
5470
  export class Emoji extends Object {
5436
- #cachedJsonLd;
5437
5471
  /**
5438
5472
  * The type URI of {@link Emoji}: `http://joinmastodon.org/ns#Emoji`.
5439
5473
  */
@@ -5469,8 +5503,8 @@ export class Emoji extends Object {
5469
5503
  * @returns The JSON-LD representation of this object.
5470
5504
  */
5471
5505
  async toJsonLd(options = {}) {
5472
- if (options.format == null && this.#cachedJsonLd != null) {
5473
- return this.#cachedJsonLd;
5506
+ if (options.format == null && this._cachedJsonLd != null) {
5507
+ return this._cachedJsonLd;
5474
5508
  }
5475
5509
  if (options.format !== "compact" && options.context != null) {
5476
5510
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -5584,7 +5618,7 @@ export class Emoji extends Object {
5584
5618
  }
5585
5619
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
5586
5620
  try {
5587
- instance.#cachedJsonLd = structuredClone(json);
5621
+ instance._cachedJsonLd = structuredClone(json);
5588
5622
  }
5589
5623
  catch {
5590
5624
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5612,7 +5646,6 @@ export class Emoji extends Object {
5612
5646
  * a {@link Create} activity.
5613
5647
  */
5614
5648
  export class ChatMessage extends Object {
5615
- #cachedJsonLd;
5616
5649
  /**
5617
5650
  * The type URI of {@link ChatMessage}: `http://litepub.social/ns#ChatMessage`.
5618
5651
  */
@@ -5687,8 +5720,8 @@ export class ChatMessage extends Object {
5687
5720
  * @returns The JSON-LD representation of this object.
5688
5721
  */
5689
5722
  async toJsonLd(options = {}) {
5690
- if (options.format == null && this.#cachedJsonLd != null) {
5691
- return this.#cachedJsonLd;
5723
+ if (options.format == null && this._cachedJsonLd != null) {
5724
+ return this._cachedJsonLd;
5692
5725
  }
5693
5726
  if (options.format !== "compact" && options.context != null) {
5694
5727
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -5873,7 +5906,7 @@ export class ChatMessage extends Object {
5873
5906
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
5874
5907
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
5875
5908
  try {
5876
- instance.#cachedJsonLd = structuredClone(json);
5909
+ instance._cachedJsonLd = structuredClone(json);
5877
5910
  }
5878
5911
  catch {
5879
5912
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5913,7 +5946,6 @@ export class ChatMessage extends Object {
5913
5946
  * does not carry any specific semantics about the kind of action being taken.
5914
5947
  */
5915
5948
  export class Activity extends Object {
5916
- #cachedJsonLd;
5917
5949
  /**
5918
5950
  * The type URI of {@link Activity}: `https://www.w3.org/ns/activitystreams#Activity`.
5919
5951
  */
@@ -6365,6 +6397,7 @@ export class Activity extends Object {
6365
6397
  if (fetched == null)
6366
6398
  return null;
6367
6399
  this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor[0] = fetched;
6400
+ this._cachedJsonLd = undefined;
6368
6401
  return fetched;
6369
6402
  }
6370
6403
  return v;
@@ -6390,6 +6423,7 @@ export class Activity extends Object {
6390
6423
  if (fetched == null)
6391
6424
  continue;
6392
6425
  vs[i] = fetched;
6426
+ this._cachedJsonLd = undefined;
6393
6427
  yield fetched;
6394
6428
  continue;
6395
6429
  }
@@ -6449,6 +6483,7 @@ export class Activity extends Object {
6449
6483
  if (fetched == null)
6450
6484
  return null;
6451
6485
  this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object[0] = fetched;
6486
+ this._cachedJsonLd = undefined;
6452
6487
  return fetched;
6453
6488
  }
6454
6489
  return v;
@@ -6474,6 +6509,7 @@ export class Activity extends Object {
6474
6509
  if (fetched == null)
6475
6510
  continue;
6476
6511
  vs[i] = fetched;
6512
+ this._cachedJsonLd = undefined;
6477
6513
  yield fetched;
6478
6514
  continue;
6479
6515
  }
@@ -6536,6 +6572,7 @@ export class Activity extends Object {
6536
6572
  if (fetched == null)
6537
6573
  return null;
6538
6574
  this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target[0] = fetched;
6575
+ this._cachedJsonLd = undefined;
6539
6576
  return fetched;
6540
6577
  }
6541
6578
  return v;
@@ -6564,6 +6601,7 @@ export class Activity extends Object {
6564
6601
  if (fetched == null)
6565
6602
  continue;
6566
6603
  vs[i] = fetched;
6604
+ this._cachedJsonLd = undefined;
6567
6605
  yield fetched;
6568
6606
  continue;
6569
6607
  }
@@ -6623,6 +6661,7 @@ export class Activity extends Object {
6623
6661
  if (fetched == null)
6624
6662
  return null;
6625
6663
  this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result[0] = fetched;
6664
+ this._cachedJsonLd = undefined;
6626
6665
  return fetched;
6627
6666
  }
6628
6667
  return v;
@@ -6648,6 +6687,7 @@ export class Activity extends Object {
6648
6687
  if (fetched == null)
6649
6688
  continue;
6650
6689
  vs[i] = fetched;
6690
+ this._cachedJsonLd = undefined;
6651
6691
  yield fetched;
6652
6692
  continue;
6653
6693
  }
@@ -6708,6 +6748,7 @@ export class Activity extends Object {
6708
6748
  if (fetched == null)
6709
6749
  return null;
6710
6750
  this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin[0] = fetched;
6751
+ this._cachedJsonLd = undefined;
6711
6752
  return fetched;
6712
6753
  }
6713
6754
  return v;
@@ -6734,6 +6775,7 @@ export class Activity extends Object {
6734
6775
  if (fetched == null)
6735
6776
  continue;
6736
6777
  vs[i] = fetched;
6778
+ this._cachedJsonLd = undefined;
6737
6779
  yield fetched;
6738
6780
  continue;
6739
6781
  }
@@ -6792,6 +6834,7 @@ export class Activity extends Object {
6792
6834
  if (fetched == null)
6793
6835
  return null;
6794
6836
  this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument[0] = fetched;
6837
+ this._cachedJsonLd = undefined;
6795
6838
  return fetched;
6796
6839
  }
6797
6840
  return v;
@@ -6816,6 +6859,7 @@ export class Activity extends Object {
6816
6859
  if (fetched == null)
6817
6860
  continue;
6818
6861
  vs[i] = fetched;
6862
+ this._cachedJsonLd = undefined;
6819
6863
  yield fetched;
6820
6864
  continue;
6821
6865
  }
@@ -6833,8 +6877,8 @@ export class Activity extends Object {
6833
6877
  * @returns The JSON-LD representation of this object.
6834
6878
  */
6835
6879
  async toJsonLd(options = {}) {
6836
- if (options.format == null && this.#cachedJsonLd != null) {
6837
- return this.#cachedJsonLd;
6880
+ if (options.format == null && this._cachedJsonLd != null) {
6881
+ return this._cachedJsonLd;
6838
6882
  }
6839
6883
  if (options.format !== "compact" && options.context != null) {
6840
6884
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -7246,7 +7290,7 @@ export class Activity extends Object {
7246
7290
  _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
7247
7291
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
7248
7292
  try {
7249
- instance.#cachedJsonLd = structuredClone(json);
7293
+ instance._cachedJsonLd = structuredClone(json);
7250
7294
  }
7251
7295
  catch {
7252
7296
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7372,7 +7416,6 @@ export class Activity extends Object {
7372
7416
  /** Represents an emoji reaction. See also [FEP-c0e0](https://w3id.org/fep/c0e0).
7373
7417
  */
7374
7418
  export class EmojiReact extends Activity {
7375
- #cachedJsonLd;
7376
7419
  /**
7377
7420
  * The type URI of {@link EmojiReact}: `http://litepub.social/ns#EmojiReact`.
7378
7421
  */
@@ -7408,8 +7451,8 @@ export class EmojiReact extends Activity {
7408
7451
  * @returns The JSON-LD representation of this object.
7409
7452
  */
7410
7453
  async toJsonLd(options = {}) {
7411
- if (options.format == null && this.#cachedJsonLd != null) {
7412
- return this.#cachedJsonLd;
7454
+ if (options.format == null && this._cachedJsonLd != null) {
7455
+ return this._cachedJsonLd;
7413
7456
  }
7414
7457
  if (options.format !== "compact" && options.context != null) {
7415
7458
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -7513,7 +7556,7 @@ export class EmojiReact extends Activity {
7513
7556
  }
7514
7557
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
7515
7558
  try {
7516
- instance.#cachedJsonLd = structuredClone(json);
7559
+ instance._cachedJsonLd = structuredClone(json);
7517
7560
  }
7518
7561
  catch {
7519
7562
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7539,6 +7582,7 @@ export class EmojiReact extends Activity {
7539
7582
  export class PropertyValue {
7540
7583
  #documentLoader;
7541
7584
  #contextLoader;
7585
+ #cachedJsonLd;
7542
7586
  id;
7543
7587
  get _documentLoader() {
7544
7588
  return this.#documentLoader;
@@ -7546,7 +7590,12 @@ export class PropertyValue {
7546
7590
  get _contextLoader() {
7547
7591
  return this.#contextLoader;
7548
7592
  }
7549
- #cachedJsonLd;
7593
+ get _cachedJsonLd() {
7594
+ return this.#cachedJsonLd;
7595
+ }
7596
+ set _cachedJsonLd(value) {
7597
+ this.#cachedJsonLd = value;
7598
+ }
7550
7599
  /**
7551
7600
  * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
7552
7601
  */
@@ -7652,8 +7701,8 @@ export class PropertyValue {
7652
7701
  * @returns The JSON-LD representation of this object.
7653
7702
  */
7654
7703
  async toJsonLd(options = {}) {
7655
- if (options.format == null && this.#cachedJsonLd != null) {
7656
- return this.#cachedJsonLd;
7704
+ if (options.format == null && this._cachedJsonLd != null) {
7705
+ return this._cachedJsonLd;
7657
7706
  }
7658
7707
  if (options.format !== "compact" && options.context != null) {
7659
7708
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -7845,7 +7894,7 @@ export class PropertyValue {
7845
7894
  _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
7846
7895
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
7847
7896
  try {
7848
- instance.#cachedJsonLd = structuredClone(json);
7897
+ instance._cachedJsonLd = structuredClone(json);
7849
7898
  }
7850
7899
  catch {
7851
7900
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7904,6 +7953,7 @@ export class PropertyValue {
7904
7953
  export class DidService {
7905
7954
  #documentLoader;
7906
7955
  #contextLoader;
7956
+ #cachedJsonLd;
7907
7957
  id;
7908
7958
  get _documentLoader() {
7909
7959
  return this.#documentLoader;
@@ -7911,7 +7961,12 @@ export class DidService {
7911
7961
  get _contextLoader() {
7912
7962
  return this.#contextLoader;
7913
7963
  }
7914
- #cachedJsonLd;
7964
+ get _cachedJsonLd() {
7965
+ return this.#cachedJsonLd;
7966
+ }
7967
+ set _cachedJsonLd(value) {
7968
+ this.#cachedJsonLd = value;
7969
+ }
7915
7970
  /**
7916
7971
  * The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
7917
7972
  */
@@ -8027,8 +8082,8 @@ export class DidService {
8027
8082
  * @returns The JSON-LD representation of this object.
8028
8083
  */
8029
8084
  async toJsonLd(options = {}) {
8030
- if (options.format == null && this.#cachedJsonLd != null) {
8031
- return this.#cachedJsonLd;
8085
+ if (options.format == null && this._cachedJsonLd != null) {
8086
+ return this._cachedJsonLd;
8032
8087
  }
8033
8088
  if (options.format !== "compact" && options.context != null) {
8034
8089
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -8124,7 +8179,7 @@ export class DidService {
8124
8179
  _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
8125
8180
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
8126
8181
  try {
8127
- instance.#cachedJsonLd = structuredClone(json);
8182
+ instance._cachedJsonLd = structuredClone(json);
8128
8183
  }
8129
8184
  catch {
8130
8185
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -8171,7 +8226,6 @@ export class DidService {
8171
8226
  /** "Export Actor" service.
8172
8227
  */
8173
8228
  export class Export extends DidService {
8174
- #cachedJsonLd;
8175
8229
  /**
8176
8230
  * The type URI of {@link Export}: `https://w3id.org/fep/9091#Export`.
8177
8231
  */
@@ -8207,8 +8261,8 @@ export class Export extends DidService {
8207
8261
  * @returns The JSON-LD representation of this object.
8208
8262
  */
8209
8263
  async toJsonLd(options = {}) {
8210
- if (options.format == null && this.#cachedJsonLd != null) {
8211
- return this.#cachedJsonLd;
8264
+ if (options.format == null && this._cachedJsonLd != null) {
8265
+ return this._cachedJsonLd;
8212
8266
  }
8213
8267
  if (options.format !== "compact" && options.context != null) {
8214
8268
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -8291,7 +8345,7 @@ export class Export extends DidService {
8291
8345
  }
8292
8346
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
8293
8347
  try {
8294
- instance.#cachedJsonLd = structuredClone(json);
8348
+ instance._cachedJsonLd = structuredClone(json);
8295
8349
  }
8296
8350
  catch {
8297
8351
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -8318,6 +8372,7 @@ export class Export extends DidService {
8318
8372
  export class DataIntegrityProof {
8319
8373
  #documentLoader;
8320
8374
  #contextLoader;
8375
+ #cachedJsonLd;
8321
8376
  id;
8322
8377
  get _documentLoader() {
8323
8378
  return this.#documentLoader;
@@ -8325,7 +8380,12 @@ export class DataIntegrityProof {
8325
8380
  get _contextLoader() {
8326
8381
  return this.#contextLoader;
8327
8382
  }
8328
- #cachedJsonLd;
8383
+ get _cachedJsonLd() {
8384
+ return this.#cachedJsonLd;
8385
+ }
8386
+ set _cachedJsonLd(value) {
8387
+ this.#cachedJsonLd = value;
8388
+ }
8329
8389
  /**
8330
8390
  * The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
8331
8391
  */
@@ -8555,6 +8615,7 @@ export class DataIntegrityProof {
8555
8615
  if (fetched == null)
8556
8616
  return null;
8557
8617
  this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod[0] = fetched;
8618
+ this._cachedJsonLd = undefined;
8558
8619
  return fetched;
8559
8620
  }
8560
8621
  return v;
@@ -8598,8 +8659,8 @@ export class DataIntegrityProof {
8598
8659
  * @returns The JSON-LD representation of this object.
8599
8660
  */
8600
8661
  async toJsonLd(options = {}) {
8601
- if (options.format == null && this.#cachedJsonLd != null) {
8602
- return this.#cachedJsonLd;
8662
+ if (options.format == null && this._cachedJsonLd != null) {
8663
+ return this._cachedJsonLd;
8603
8664
  }
8604
8665
  if (options.format !== "compact" && options.context != null) {
8605
8666
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -8802,7 +8863,7 @@ export class DataIntegrityProof {
8802
8863
  instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
8803
8864
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
8804
8865
  try {
8805
- instance.#cachedJsonLd = structuredClone(json);
8866
+ instance._cachedJsonLd = structuredClone(json);
8806
8867
  }
8807
8868
  catch {
8808
8869
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -8894,6 +8955,7 @@ export class DataIntegrityProof {
8894
8955
  export class CryptographicKey {
8895
8956
  #documentLoader;
8896
8957
  #contextLoader;
8958
+ #cachedJsonLd;
8897
8959
  id;
8898
8960
  get _documentLoader() {
8899
8961
  return this.#documentLoader;
@@ -8901,7 +8963,12 @@ export class CryptographicKey {
8901
8963
  get _contextLoader() {
8902
8964
  return this.#contextLoader;
8903
8965
  }
8904
- #cachedJsonLd;
8966
+ get _cachedJsonLd() {
8967
+ return this.#cachedJsonLd;
8968
+ }
8969
+ set _cachedJsonLd(value) {
8970
+ this.#cachedJsonLd = value;
8971
+ }
8905
8972
  /**
8906
8973
  * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
8907
8974
  */
@@ -9077,6 +9144,7 @@ export class CryptographicKey {
9077
9144
  if (fetched == null)
9078
9145
  return null;
9079
9146
  this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner[0] = fetched;
9147
+ this._cachedJsonLd = undefined;
9080
9148
  return fetched;
9081
9149
  }
9082
9150
  return v;
@@ -9100,8 +9168,8 @@ export class CryptographicKey {
9100
9168
  * @returns The JSON-LD representation of this object.
9101
9169
  */
9102
9170
  async toJsonLd(options = {}) {
9103
- if (options.format == null && this.#cachedJsonLd != null) {
9104
- return this.#cachedJsonLd;
9171
+ if (options.format == null && this._cachedJsonLd != null) {
9172
+ return this._cachedJsonLd;
9105
9173
  }
9106
9174
  if (options.format !== "compact" && options.context != null) {
9107
9175
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9317,7 +9385,7 @@ export class CryptographicKey {
9317
9385
  _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
9318
9386
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9319
9387
  try {
9320
- instance.#cachedJsonLd = structuredClone(json);
9388
+ instance._cachedJsonLd = structuredClone(json);
9321
9389
  }
9322
9390
  catch {
9323
9391
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9376,6 +9444,7 @@ export class CryptographicKey {
9376
9444
  export class Multikey {
9377
9445
  #documentLoader;
9378
9446
  #contextLoader;
9447
+ #cachedJsonLd;
9379
9448
  id;
9380
9449
  get _documentLoader() {
9381
9450
  return this.#documentLoader;
@@ -9383,7 +9452,12 @@ export class Multikey {
9383
9452
  get _contextLoader() {
9384
9453
  return this.#contextLoader;
9385
9454
  }
9386
- #cachedJsonLd;
9455
+ get _cachedJsonLd() {
9456
+ return this.#cachedJsonLd;
9457
+ }
9458
+ set _cachedJsonLd(value) {
9459
+ this.#cachedJsonLd = value;
9460
+ }
9387
9461
  /**
9388
9462
  * The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
9389
9463
  */
@@ -9565,6 +9639,7 @@ export class Multikey {
9565
9639
  if (fetched == null)
9566
9640
  return null;
9567
9641
  this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller[0] = fetched;
9642
+ this._cachedJsonLd = undefined;
9568
9643
  return fetched;
9569
9644
  }
9570
9645
  return v;
@@ -9591,8 +9666,8 @@ export class Multikey {
9591
9666
  * @returns The JSON-LD representation of this object.
9592
9667
  */
9593
9668
  async toJsonLd(options = {}) {
9594
- if (options.format == null && this.#cachedJsonLd != null) {
9595
- return this.#cachedJsonLd;
9669
+ if (options.format == null && this._cachedJsonLd != null) {
9670
+ return this._cachedJsonLd;
9596
9671
  }
9597
9672
  if (options.format !== "compact" && options.context != null) {
9598
9673
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9813,7 +9888,7 @@ export class Multikey {
9813
9888
  _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
9814
9889
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9815
9890
  try {
9816
- instance.#cachedJsonLd = structuredClone(json);
9891
+ instance._cachedJsonLd = structuredClone(json);
9817
9892
  }
9818
9893
  catch {
9819
9894
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9869,7 +9944,6 @@ export class Multikey {
9869
9944
  * has been accepted.
9870
9945
  */
9871
9946
  export class Accept extends Activity {
9872
- #cachedJsonLd;
9873
9947
  /**
9874
9948
  * The type URI of {@link Accept}: `https://www.w3.org/ns/activitystreams#Accept`.
9875
9949
  */
@@ -9905,8 +9979,8 @@ export class Accept extends Activity {
9905
9979
  * @returns The JSON-LD representation of this object.
9906
9980
  */
9907
9981
  async toJsonLd(options = {}) {
9908
- if (options.format == null && this.#cachedJsonLd != null) {
9909
- return this.#cachedJsonLd;
9982
+ if (options.format == null && this._cachedJsonLd != null) {
9983
+ return this._cachedJsonLd;
9910
9984
  }
9911
9985
  if (options.format !== "compact" && options.context != null) {
9912
9986
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -10007,7 +10081,7 @@ export class Accept extends Activity {
10007
10081
  }
10008
10082
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
10009
10083
  try {
10010
- instance.#cachedJsonLd = structuredClone(json);
10084
+ instance._cachedJsonLd = structuredClone(json);
10011
10085
  }
10012
10086
  catch {
10013
10087
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10034,7 +10108,6 @@ export class Accept extends Activity {
10034
10108
  * the context from which the `object` originated.
10035
10109
  */
10036
10110
  export class Add extends Activity {
10037
- #cachedJsonLd;
10038
10111
  /**
10039
10112
  * The type URI of {@link Add}: `https://www.w3.org/ns/activitystreams#Add`.
10040
10113
  */
@@ -10070,8 +10143,8 @@ export class Add extends Activity {
10070
10143
  * @returns The JSON-LD representation of this object.
10071
10144
  */
10072
10145
  async toJsonLd(options = {}) {
10073
- if (options.format == null && this.#cachedJsonLd != null) {
10074
- return this.#cachedJsonLd;
10146
+ if (options.format == null && this._cachedJsonLd != null) {
10147
+ return this._cachedJsonLd;
10075
10148
  }
10076
10149
  if (options.format !== "compact" && options.context != null) {
10077
10150
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -10169,7 +10242,7 @@ export class Add extends Activity {
10169
10242
  }
10170
10243
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
10171
10244
  try {
10172
- instance.#cachedJsonLd = structuredClone(json);
10245
+ instance._cachedJsonLd = structuredClone(json);
10173
10246
  }
10174
10247
  catch {
10175
10248
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10195,7 +10268,6 @@ export class Add extends Activity {
10195
10268
  * The `origin` typically has no defined meaning.
10196
10269
  */
10197
10270
  export class Announce extends Activity {
10198
- #cachedJsonLd;
10199
10271
  /**
10200
10272
  * The type URI of {@link Announce}: `https://www.w3.org/ns/activitystreams#Announce`.
10201
10273
  */
@@ -10231,8 +10303,8 @@ export class Announce extends Activity {
10231
10303
  * @returns The JSON-LD representation of this object.
10232
10304
  */
10233
10305
  async toJsonLd(options = {}) {
10234
- if (options.format == null && this.#cachedJsonLd != null) {
10235
- return this.#cachedJsonLd;
10306
+ if (options.format == null && this._cachedJsonLd != null) {
10307
+ return this._cachedJsonLd;
10236
10308
  }
10237
10309
  if (options.format !== "compact" && options.context != null) {
10238
10310
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -10342,7 +10414,7 @@ export class Announce extends Activity {
10342
10414
  }
10343
10415
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
10344
10416
  try {
10345
- instance.#cachedJsonLd = structuredClone(json);
10417
+ instance._cachedJsonLd = structuredClone(json);
10346
10418
  }
10347
10419
  catch {
10348
10420
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -10366,7 +10438,6 @@ export class Announce extends Activity {
10366
10438
  /** Describes a software application.
10367
10439
  */
10368
10440
  export class Application extends Object {
10369
- #cachedJsonLd;
10370
10441
  /**
10371
10442
  * The type URI of {@link Application}: `https://www.w3.org/ns/activitystreams#Application`.
10372
10443
  */
@@ -11191,6 +11262,7 @@ export class Application extends Object {
11191
11262
  if (fetched == null)
11192
11263
  return null;
11193
11264
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
11265
+ this._cachedJsonLd = undefined;
11194
11266
  return fetched;
11195
11267
  }
11196
11268
  return v;
@@ -11214,6 +11286,7 @@ export class Application extends Object {
11214
11286
  if (fetched == null)
11215
11287
  continue;
11216
11288
  vs[i] = fetched;
11289
+ this._cachedJsonLd = undefined;
11217
11290
  yield fetched;
11218
11291
  continue;
11219
11292
  }
@@ -11276,6 +11349,7 @@ export class Application extends Object {
11276
11349
  if (fetched == null)
11277
11350
  return null;
11278
11351
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
11352
+ this._cachedJsonLd = undefined;
11279
11353
  return fetched;
11280
11354
  }
11281
11355
  return v;
@@ -11302,6 +11376,7 @@ export class Application extends Object {
11302
11376
  if (fetched == null)
11303
11377
  continue;
11304
11378
  vs[i] = fetched;
11379
+ this._cachedJsonLd = undefined;
11305
11380
  yield fetched;
11306
11381
  continue;
11307
11382
  }
@@ -11393,6 +11468,7 @@ export class Application extends Object {
11393
11468
  if (fetched == null)
11394
11469
  return null;
11395
11470
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
11471
+ this._cachedJsonLd = undefined;
11396
11472
  return fetched;
11397
11473
  }
11398
11474
  return v;
@@ -11467,6 +11543,7 @@ export class Application extends Object {
11467
11543
  if (fetched == null)
11468
11544
  return null;
11469
11545
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
11546
+ this._cachedJsonLd = undefined;
11470
11547
  return fetched;
11471
11548
  }
11472
11549
  return v;
@@ -11526,6 +11603,7 @@ export class Application extends Object {
11526
11603
  if (fetched == null)
11527
11604
  return null;
11528
11605
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
11606
+ this._cachedJsonLd = undefined;
11529
11607
  return fetched;
11530
11608
  }
11531
11609
  return v;
@@ -11588,6 +11666,7 @@ export class Application extends Object {
11588
11666
  if (fetched == null)
11589
11667
  return null;
11590
11668
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
11669
+ this._cachedJsonLd = undefined;
11591
11670
  return fetched;
11592
11671
  }
11593
11672
  return v;
@@ -11648,6 +11727,7 @@ export class Application extends Object {
11648
11727
  if (fetched == null)
11649
11728
  return null;
11650
11729
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
11730
+ this._cachedJsonLd = undefined;
11651
11731
  return fetched;
11652
11732
  }
11653
11733
  return v;
@@ -11706,6 +11786,7 @@ export class Application extends Object {
11706
11786
  if (fetched == null)
11707
11787
  return null;
11708
11788
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
11789
+ this._cachedJsonLd = undefined;
11709
11790
  return fetched;
11710
11791
  }
11711
11792
  return v;
@@ -11766,6 +11847,7 @@ export class Application extends Object {
11766
11847
  if (fetched == null)
11767
11848
  return null;
11768
11849
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
11850
+ this._cachedJsonLd = undefined;
11769
11851
  return fetched;
11770
11852
  }
11771
11853
  return v;
@@ -11816,6 +11898,7 @@ export class Application extends Object {
11816
11898
  if (fetched == null)
11817
11899
  continue;
11818
11900
  vs[i] = fetched;
11901
+ this._cachedJsonLd = undefined;
11819
11902
  yield fetched;
11820
11903
  continue;
11821
11904
  }
@@ -11949,6 +12032,7 @@ export class Application extends Object {
11949
12032
  if (fetched == null)
11950
12033
  return null;
11951
12034
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo[0] = fetched;
12035
+ this._cachedJsonLd = undefined;
11952
12036
  return fetched;
11953
12037
  }
11954
12038
  return v;
@@ -12041,6 +12125,7 @@ export class Application extends Object {
12041
12125
  if (fetched == null)
12042
12126
  return null;
12043
12127
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
12128
+ this._cachedJsonLd = undefined;
12044
12129
  return fetched;
12045
12130
  }
12046
12131
  return v;
@@ -12067,6 +12152,7 @@ export class Application extends Object {
12067
12152
  if (fetched == null)
12068
12153
  continue;
12069
12154
  vs[i] = fetched;
12155
+ this._cachedJsonLd = undefined;
12070
12156
  yield fetched;
12071
12157
  continue;
12072
12158
  }
@@ -12127,6 +12213,7 @@ export class Application extends Object {
12127
12213
  if (fetched == null)
12128
12214
  return null;
12129
12215
  this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service[0] = fetched;
12216
+ this._cachedJsonLd = undefined;
12130
12217
  return fetched;
12131
12218
  }
12132
12219
  return v;
@@ -12153,6 +12240,7 @@ export class Application extends Object {
12153
12240
  if (fetched == null)
12154
12241
  continue;
12155
12242
  vs[i] = fetched;
12243
+ this._cachedJsonLd = undefined;
12156
12244
  yield fetched;
12157
12245
  continue;
12158
12246
  }
@@ -12187,8 +12275,8 @@ export class Application extends Object {
12187
12275
  * @returns The JSON-LD representation of this object.
12188
12276
  */
12189
12277
  async toJsonLd(options = {}) {
12190
- if (options.format == null && this.#cachedJsonLd != null) {
12191
- return this.#cachedJsonLd;
12278
+ if (options.format == null && this._cachedJsonLd != null) {
12279
+ return this._cachedJsonLd;
12192
12280
  }
12193
12281
  if (options.format !== "compact" && options.context != null) {
12194
12282
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13426,7 +13514,7 @@ export class Application extends Object {
13426
13514
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
13427
13515
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13428
13516
  try {
13429
- instance.#cachedJsonLd = structuredClone(json);
13517
+ instance._cachedJsonLd = structuredClone(json);
13430
13518
  }
13431
13519
  catch {
13432
13520
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13748,7 +13836,6 @@ _b = Application;
13748
13836
  * inappropriate for these activities.
13749
13837
  */
13750
13838
  export class IntransitiveActivity extends Activity {
13751
- #cachedJsonLd;
13752
13839
  /**
13753
13840
  * The type URI of {@link IntransitiveActivity}: `https://www.w3.org/ns/activitystreams#IntransitiveActivity`.
13754
13841
  */
@@ -13784,8 +13871,8 @@ export class IntransitiveActivity extends Activity {
13784
13871
  * @returns The JSON-LD representation of this object.
13785
13872
  */
13786
13873
  async toJsonLd(options = {}) {
13787
- if (options.format == null && this.#cachedJsonLd != null) {
13788
- return this.#cachedJsonLd;
13874
+ if (options.format == null && this._cachedJsonLd != null) {
13875
+ return this._cachedJsonLd;
13789
13876
  }
13790
13877
  if (options.format !== "compact" && options.context != null) {
13791
13878
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13894,7 +13981,7 @@ export class IntransitiveActivity extends Activity {
13894
13981
  }
13895
13982
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13896
13983
  try {
13897
- instance.#cachedJsonLd = structuredClone(json);
13984
+ instance._cachedJsonLd = structuredClone(json);
13898
13985
  }
13899
13986
  catch {
13900
13987
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13920,7 +14007,6 @@ export class IntransitiveActivity extends Activity {
13920
14007
  * The `target` typically has no defined meaning.
13921
14008
  */
13922
14009
  export class Arrive extends IntransitiveActivity {
13923
- #cachedJsonLd;
13924
14010
  /**
13925
14011
  * The type URI of {@link Arrive}: `https://www.w3.org/ns/activitystreams#Arrive`.
13926
14012
  */
@@ -13956,8 +14042,8 @@ export class Arrive extends IntransitiveActivity {
13956
14042
  * @returns The JSON-LD representation of this object.
13957
14043
  */
13958
14044
  async toJsonLd(options = {}) {
13959
- if (options.format == null && this.#cachedJsonLd != null) {
13960
- return this.#cachedJsonLd;
14045
+ if (options.format == null && this._cachedJsonLd != null) {
14046
+ return this._cachedJsonLd;
13961
14047
  }
13962
14048
  if (options.format !== "compact" && options.context != null) {
13963
14049
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14055,7 +14141,7 @@ export class Arrive extends IntransitiveActivity {
14055
14141
  }
14056
14142
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14057
14143
  try {
14058
- instance.#cachedJsonLd = structuredClone(json);
14144
+ instance._cachedJsonLd = structuredClone(json);
14059
14145
  }
14060
14146
  catch {
14061
14147
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14079,7 +14165,6 @@ export class Arrive extends IntransitiveActivity {
14079
14165
  /** Represents any kind of multi-paragraph written work.
14080
14166
  */
14081
14167
  export class Article extends Object {
14082
- #cachedJsonLd;
14083
14168
  /**
14084
14169
  * The type URI of {@link Article}: `https://www.w3.org/ns/activitystreams#Article`.
14085
14170
  */
@@ -14154,8 +14239,8 @@ export class Article extends Object {
14154
14239
  * @returns The JSON-LD representation of this object.
14155
14240
  */
14156
14241
  async toJsonLd(options = {}) {
14157
- if (options.format == null && this.#cachedJsonLd != null) {
14158
- return this.#cachedJsonLd;
14242
+ if (options.format == null && this._cachedJsonLd != null) {
14243
+ return this._cachedJsonLd;
14159
14244
  }
14160
14245
  if (options.format !== "compact" && options.context != null) {
14161
14246
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14342,7 +14427,7 @@ export class Article extends Object {
14342
14427
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
14343
14428
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14344
14429
  try {
14345
- instance.#cachedJsonLd = structuredClone(json);
14430
+ instance._cachedJsonLd = structuredClone(json);
14346
14431
  }
14347
14432
  catch {
14348
14433
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14378,7 +14463,6 @@ export class Article extends Object {
14378
14463
  /** Represents a document of any kind.
14379
14464
  */
14380
14465
  export class Document extends Object {
14381
- #cachedJsonLd;
14382
14466
  /**
14383
14467
  * The type URI of {@link Document}: `https://www.w3.org/ns/activitystreams#Document`.
14384
14468
  */
@@ -14480,8 +14564,8 @@ export class Document extends Object {
14480
14564
  * @returns The JSON-LD representation of this object.
14481
14565
  */
14482
14566
  async toJsonLd(options = {}) {
14483
- if (options.format == null && this.#cachedJsonLd != null) {
14484
- return this.#cachedJsonLd;
14567
+ if (options.format == null && this._cachedJsonLd != null) {
14568
+ return this._cachedJsonLd;
14485
14569
  }
14486
14570
  if (options.format !== "compact" && options.context != null) {
14487
14571
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14679,7 +14763,7 @@ export class Document extends Object {
14679
14763
  _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
14680
14764
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14681
14765
  try {
14682
- instance.#cachedJsonLd = structuredClone(json);
14766
+ instance._cachedJsonLd = structuredClone(json);
14683
14767
  }
14684
14768
  catch {
14685
14769
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14727,7 +14811,6 @@ export class Document extends Object {
14727
14811
  /** Represents an audio document of any kind.
14728
14812
  */
14729
14813
  export class Audio extends Document {
14730
- #cachedJsonLd;
14731
14814
  /**
14732
14815
  * The type URI of {@link Audio}: `https://www.w3.org/ns/activitystreams#Audio`.
14733
14816
  */
@@ -14763,8 +14846,8 @@ export class Audio extends Document {
14763
14846
  * @returns The JSON-LD representation of this object.
14764
14847
  */
14765
14848
  async toJsonLd(options = {}) {
14766
- if (options.format == null && this.#cachedJsonLd != null) {
14767
- return this.#cachedJsonLd;
14849
+ if (options.format == null && this._cachedJsonLd != null) {
14850
+ return this._cachedJsonLd;
14768
14851
  }
14769
14852
  if (options.format !== "compact" && options.context != null) {
14770
14853
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14878,7 +14961,7 @@ export class Audio extends Document {
14878
14961
  }
14879
14962
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14880
14963
  try {
14881
- instance.#cachedJsonLd = structuredClone(json);
14964
+ instance._cachedJsonLd = structuredClone(json);
14882
14965
  }
14883
14966
  catch {
14884
14967
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14903,7 +14986,6 @@ export class Audio extends Document {
14903
14986
  * `origin` typically have no defined meaning.
14904
14987
  */
14905
14988
  export class Ignore extends Activity {
14906
- #cachedJsonLd;
14907
14989
  /**
14908
14990
  * The type URI of {@link Ignore}: `https://www.w3.org/ns/activitystreams#Ignore`.
14909
14991
  */
@@ -14939,8 +15021,8 @@ export class Ignore extends Activity {
14939
15021
  * @returns The JSON-LD representation of this object.
14940
15022
  */
14941
15023
  async toJsonLd(options = {}) {
14942
- if (options.format == null && this.#cachedJsonLd != null) {
14943
- return this.#cachedJsonLd;
15024
+ if (options.format == null && this._cachedJsonLd != null) {
15025
+ return this._cachedJsonLd;
14944
15026
  }
14945
15027
  if (options.format !== "compact" && options.context != null) {
14946
15028
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -15041,7 +15123,7 @@ export class Ignore extends Activity {
15041
15123
  }
15042
15124
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
15043
15125
  try {
15044
- instance.#cachedJsonLd = structuredClone(json);
15126
+ instance._cachedJsonLd = structuredClone(json);
15045
15127
  }
15046
15128
  catch {
15047
15129
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15068,7 +15150,6 @@ export class Ignore extends Activity {
15068
15150
  * and `origin` typically have no defined meaning.
15069
15151
  */
15070
15152
  export class Block extends Ignore {
15071
- #cachedJsonLd;
15072
15153
  /**
15073
15154
  * The type URI of {@link Block}: `https://www.w3.org/ns/activitystreams#Block`.
15074
15155
  */
@@ -15104,8 +15185,8 @@ export class Block extends Ignore {
15104
15185
  * @returns The JSON-LD representation of this object.
15105
15186
  */
15106
15187
  async toJsonLd(options = {}) {
15107
- if (options.format == null && this.#cachedJsonLd != null) {
15108
- return this.#cachedJsonLd;
15188
+ if (options.format == null && this._cachedJsonLd != null) {
15189
+ return this._cachedJsonLd;
15109
15190
  }
15110
15191
  if (options.format !== "compact" && options.context != null) {
15111
15192
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -15203,7 +15284,7 @@ export class Block extends Ignore {
15203
15284
  }
15204
15285
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
15205
15286
  try {
15206
- instance.#cachedJsonLd = structuredClone(json);
15287
+ instance._cachedJsonLd = structuredClone(json);
15207
15288
  }
15208
15289
  catch {
15209
15290
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15231,7 +15312,6 @@ export class Block extends Ignore {
15231
15312
  * description of the Collection type.
15232
15313
  */
15233
15314
  export class Collection extends Object {
15234
- #cachedJsonLd;
15235
15315
  /**
15236
15316
  * The type URI of {@link Collection}: `https://www.w3.org/ns/activitystreams#Collection`.
15237
15317
  */
@@ -15438,6 +15518,7 @@ export class Collection extends Object {
15438
15518
  if (fetched == null)
15439
15519
  return null;
15440
15520
  this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current[0] = fetched;
15521
+ this._cachedJsonLd = undefined;
15441
15522
  return fetched;
15442
15523
  }
15443
15524
  return v;
@@ -15494,6 +15575,7 @@ export class Collection extends Object {
15494
15575
  if (fetched == null)
15495
15576
  return null;
15496
15577
  this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first[0] = fetched;
15578
+ this._cachedJsonLd = undefined;
15497
15579
  return fetched;
15498
15580
  }
15499
15581
  return v;
@@ -15550,6 +15632,7 @@ export class Collection extends Object {
15550
15632
  if (fetched == null)
15551
15633
  return null;
15552
15634
  this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last[0] = fetched;
15635
+ this._cachedJsonLd = undefined;
15553
15636
  return fetched;
15554
15637
  }
15555
15638
  return v;
@@ -15611,6 +15694,7 @@ export class Collection extends Object {
15611
15694
  if (fetched == null)
15612
15695
  continue;
15613
15696
  vs[i] = fetched;
15697
+ this._cachedJsonLd = undefined;
15614
15698
  yield fetched;
15615
15699
  continue;
15616
15700
  }
@@ -15628,8 +15712,8 @@ export class Collection extends Object {
15628
15712
  * @returns The JSON-LD representation of this object.
15629
15713
  */
15630
15714
  async toJsonLd(options = {}) {
15631
- if (options.format == null && this.#cachedJsonLd != null) {
15632
- return this.#cachedJsonLd;
15715
+ if (options.format == null && this._cachedJsonLd != null) {
15716
+ return this._cachedJsonLd;
15633
15717
  }
15634
15718
  if (options.format !== "compact" && options.context != null) {
15635
15719
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16065,7 +16149,7 @@ export class Collection extends Object {
16065
16149
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
16066
16150
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16067
16151
  try {
16068
- instance.#cachedJsonLd = structuredClone(json);
16152
+ instance._cachedJsonLd = structuredClone(json);
16069
16153
  }
16070
16154
  catch {
16071
16155
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16153,7 +16237,6 @@ export class Collection extends Object {
16153
16237
  * the `CollectionPage` object.
16154
16238
  */
16155
16239
  export class CollectionPage extends Collection {
16156
- #cachedJsonLd;
16157
16240
  /**
16158
16241
  * The type URI of {@link CollectionPage}: `https://www.w3.org/ns/activitystreams#CollectionPage`.
16159
16242
  */
@@ -16299,6 +16382,7 @@ export class CollectionPage extends Collection {
16299
16382
  if (fetched == null)
16300
16383
  return null;
16301
16384
  this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf[0] = fetched;
16385
+ this._cachedJsonLd = undefined;
16302
16386
  return fetched;
16303
16387
  }
16304
16388
  return v;
@@ -16354,6 +16438,7 @@ export class CollectionPage extends Collection {
16354
16438
  if (fetched == null)
16355
16439
  return null;
16356
16440
  this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next[0] = fetched;
16441
+ this._cachedJsonLd = undefined;
16357
16442
  return fetched;
16358
16443
  }
16359
16444
  return v;
@@ -16409,6 +16494,7 @@ export class CollectionPage extends Collection {
16409
16494
  if (fetched == null)
16410
16495
  return null;
16411
16496
  this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev[0] = fetched;
16497
+ this._cachedJsonLd = undefined;
16412
16498
  return fetched;
16413
16499
  }
16414
16500
  return v;
@@ -16424,8 +16510,8 @@ export class CollectionPage extends Collection {
16424
16510
  * @returns The JSON-LD representation of this object.
16425
16511
  */
16426
16512
  async toJsonLd(options = {}) {
16427
- if (options.format == null && this.#cachedJsonLd != null) {
16428
- return this.#cachedJsonLd;
16513
+ if (options.format == null && this._cachedJsonLd != null) {
16514
+ return this._cachedJsonLd;
16429
16515
  }
16430
16516
  if (options.format !== "compact" && options.context != null) {
16431
16517
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16692,7 +16778,7 @@ export class CollectionPage extends Collection {
16692
16778
  _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
16693
16779
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16694
16780
  try {
16695
- instance.#cachedJsonLd = structuredClone(json);
16781
+ instance._cachedJsonLd = structuredClone(json);
16696
16782
  }
16697
16783
  catch {
16698
16784
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16753,7 +16839,6 @@ _c = CollectionPage;
16753
16839
  /** Indicates that the `actor` has created the `object`.
16754
16840
  */
16755
16841
  export class Create extends Activity {
16756
- #cachedJsonLd;
16757
16842
  /**
16758
16843
  * The type URI of {@link Create}: `https://www.w3.org/ns/activitystreams#Create`.
16759
16844
  */
@@ -16789,8 +16874,8 @@ export class Create extends Activity {
16789
16874
  * @returns The JSON-LD representation of this object.
16790
16875
  */
16791
16876
  async toJsonLd(options = {}) {
16792
- if (options.format == null && this.#cachedJsonLd != null) {
16793
- return this.#cachedJsonLd;
16877
+ if (options.format == null && this._cachedJsonLd != null) {
16878
+ return this._cachedJsonLd;
16794
16879
  }
16795
16880
  if (options.format !== "compact" && options.context != null) {
16796
16881
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16901,7 +16986,7 @@ export class Create extends Activity {
16901
16986
  }
16902
16987
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16903
16988
  try {
16904
- instance.#cachedJsonLd = structuredClone(json);
16989
+ instance._cachedJsonLd = structuredClone(json);
16905
16990
  }
16906
16991
  catch {
16907
16992
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16926,7 +17011,6 @@ export class Create extends Activity {
16926
17011
  * the `origin` indicates the context from which the `object` was deleted.
16927
17012
  */
16928
17013
  export class Delete extends Activity {
16929
- #cachedJsonLd;
16930
17014
  /**
16931
17015
  * The type URI of {@link Delete}: `https://www.w3.org/ns/activitystreams#Delete`.
16932
17016
  */
@@ -16962,8 +17046,8 @@ export class Delete extends Activity {
16962
17046
  * @returns The JSON-LD representation of this object.
16963
17047
  */
16964
17048
  async toJsonLd(options = {}) {
16965
- if (options.format == null && this.#cachedJsonLd != null) {
16966
- return this.#cachedJsonLd;
17049
+ if (options.format == null && this._cachedJsonLd != null) {
17050
+ return this._cachedJsonLd;
16967
17051
  }
16968
17052
  if (options.format !== "compact" && options.context != null) {
16969
17053
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -17074,7 +17158,7 @@ export class Delete extends Activity {
17074
17158
  }
17075
17159
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
17076
17160
  try {
17077
- instance.#cachedJsonLd = structuredClone(json);
17161
+ instance._cachedJsonLd = structuredClone(json);
17078
17162
  }
17079
17163
  catch {
17080
17164
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -17098,7 +17182,6 @@ export class Delete extends Activity {
17098
17182
  /** Indicates that the `actor` dislikes the `object`.
17099
17183
  */
17100
17184
  export class Dislike extends Activity {
17101
- #cachedJsonLd;
17102
17185
  /**
17103
17186
  * The type URI of {@link Dislike}: `https://www.w3.org/ns/activitystreams#Dislike`.
17104
17187
  */
@@ -17134,8 +17217,8 @@ export class Dislike extends Activity {
17134
17217
  * @returns The JSON-LD representation of this object.
17135
17218
  */
17136
17219
  async toJsonLd(options = {}) {
17137
- if (options.format == null && this.#cachedJsonLd != null) {
17138
- return this.#cachedJsonLd;
17220
+ if (options.format == null && this._cachedJsonLd != null) {
17221
+ return this._cachedJsonLd;
17139
17222
  }
17140
17223
  if (options.format !== "compact" && options.context != null) {
17141
17224
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -17234,7 +17317,7 @@ export class Dislike extends Activity {
17234
17317
  }
17235
17318
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
17236
17319
  try {
17237
- instance.#cachedJsonLd = structuredClone(json);
17320
+ instance._cachedJsonLd = structuredClone(json);
17238
17321
  }
17239
17322
  catch {
17240
17323
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -17260,6 +17343,7 @@ export class Dislike extends Activity {
17260
17343
  export class Endpoints {
17261
17344
  #documentLoader;
17262
17345
  #contextLoader;
17346
+ #cachedJsonLd;
17263
17347
  id;
17264
17348
  get _documentLoader() {
17265
17349
  return this.#documentLoader;
@@ -17267,7 +17351,12 @@ export class Endpoints {
17267
17351
  get _contextLoader() {
17268
17352
  return this.#contextLoader;
17269
17353
  }
17270
- #cachedJsonLd;
17354
+ get _cachedJsonLd() {
17355
+ return this.#cachedJsonLd;
17356
+ }
17357
+ set _cachedJsonLd(value) {
17358
+ this.#cachedJsonLd = value;
17359
+ }
17271
17360
  /**
17272
17361
  * The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
17273
17362
  */
@@ -17535,8 +17624,8 @@ export class Endpoints {
17535
17624
  * @returns The JSON-LD representation of this object.
17536
17625
  */
17537
17626
  async toJsonLd(options = {}) {
17538
- if (options.format == null && this.#cachedJsonLd != null) {
17539
- return this.#cachedJsonLd;
17627
+ if (options.format == null && this._cachedJsonLd != null) {
17628
+ return this._cachedJsonLd;
17540
17629
  }
17541
17630
  if (options.format !== "compact" && options.context != null) {
17542
17631
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -17820,7 +17909,7 @@ export class Endpoints {
17820
17909
  _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
17821
17910
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
17822
17911
  try {
17823
- instance.#cachedJsonLd = structuredClone(json);
17912
+ instance._cachedJsonLd = structuredClone(json);
17824
17913
  }
17825
17914
  catch {
17826
17915
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -17924,7 +18013,6 @@ export class Endpoints {
17924
18013
  /** Represents any kind of event.
17925
18014
  */
17926
18015
  export class Event extends Object {
17927
- #cachedJsonLd;
17928
18016
  /**
17929
18017
  * The type URI of {@link Event}: `https://www.w3.org/ns/activitystreams#Event`.
17930
18018
  */
@@ -17960,8 +18048,8 @@ export class Event extends Object {
17960
18048
  * @returns The JSON-LD representation of this object.
17961
18049
  */
17962
18050
  async toJsonLd(options = {}) {
17963
- if (options.format == null && this.#cachedJsonLd != null) {
17964
- return this.#cachedJsonLd;
18051
+ if (options.format == null && this._cachedJsonLd != null) {
18052
+ return this._cachedJsonLd;
17965
18053
  }
17966
18054
  if (options.format !== "compact" && options.context != null) {
17967
18055
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -18075,7 +18163,7 @@ export class Event extends Object {
18075
18163
  }
18076
18164
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
18077
18165
  try {
18078
- instance.#cachedJsonLd = structuredClone(json);
18166
+ instance._cachedJsonLd = structuredClone(json);
18079
18167
  }
18080
18168
  catch {
18081
18169
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -18101,7 +18189,6 @@ export class Event extends Object {
18101
18189
  * inappropriate for any number of reasons.
18102
18190
  */
18103
18191
  export class Flag extends Activity {
18104
- #cachedJsonLd;
18105
18192
  /**
18106
18193
  * The type URI of {@link Flag}: `https://www.w3.org/ns/activitystreams#Flag`.
18107
18194
  */
@@ -18137,8 +18224,8 @@ export class Flag extends Activity {
18137
18224
  * @returns The JSON-LD representation of this object.
18138
18225
  */
18139
18226
  async toJsonLd(options = {}) {
18140
- if (options.format == null && this.#cachedJsonLd != null) {
18141
- return this.#cachedJsonLd;
18227
+ if (options.format == null && this._cachedJsonLd != null) {
18228
+ return this._cachedJsonLd;
18142
18229
  }
18143
18230
  if (options.format !== "compact" && options.context != null) {
18144
18231
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -18236,7 +18323,7 @@ export class Flag extends Activity {
18236
18323
  }
18237
18324
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
18238
18325
  try {
18239
- instance.#cachedJsonLd = structuredClone(json);
18326
+ instance._cachedJsonLd = structuredClone(json);
18240
18327
  }
18241
18328
  catch {
18242
18329
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -18263,7 +18350,6 @@ export class Flag extends Activity {
18263
18350
  * `origin` typically have no defined meaning.
18264
18351
  */
18265
18352
  export class Follow extends Activity {
18266
- #cachedJsonLd;
18267
18353
  /**
18268
18354
  * The type URI of {@link Follow}: `https://www.w3.org/ns/activitystreams#Follow`.
18269
18355
  */
@@ -18299,8 +18385,8 @@ export class Follow extends Activity {
18299
18385
  * @returns The JSON-LD representation of this object.
18300
18386
  */
18301
18387
  async toJsonLd(options = {}) {
18302
- if (options.format == null && this.#cachedJsonLd != null) {
18303
- return this.#cachedJsonLd;
18388
+ if (options.format == null && this._cachedJsonLd != null) {
18389
+ return this._cachedJsonLd;
18304
18390
  }
18305
18391
  if (options.format !== "compact" && options.context != null) {
18306
18392
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -18398,7 +18484,7 @@ export class Follow extends Activity {
18398
18484
  }
18399
18485
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
18400
18486
  try {
18401
- instance.#cachedJsonLd = structuredClone(json);
18487
+ instance._cachedJsonLd = structuredClone(json);
18402
18488
  }
18403
18489
  catch {
18404
18490
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -18422,7 +18508,6 @@ export class Follow extends Activity {
18422
18508
  /** Represents a formal or informal collective of Actors.
18423
18509
  */
18424
18510
  export class Group extends Object {
18425
- #cachedJsonLd;
18426
18511
  /**
18427
18512
  * The type URI of {@link Group}: `https://www.w3.org/ns/activitystreams#Group`.
18428
18513
  */
@@ -19247,6 +19332,7 @@ export class Group extends Object {
19247
19332
  if (fetched == null)
19248
19333
  return null;
19249
19334
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
19335
+ this._cachedJsonLd = undefined;
19250
19336
  return fetched;
19251
19337
  }
19252
19338
  return v;
@@ -19270,6 +19356,7 @@ export class Group extends Object {
19270
19356
  if (fetched == null)
19271
19357
  continue;
19272
19358
  vs[i] = fetched;
19359
+ this._cachedJsonLd = undefined;
19273
19360
  yield fetched;
19274
19361
  continue;
19275
19362
  }
@@ -19332,6 +19419,7 @@ export class Group extends Object {
19332
19419
  if (fetched == null)
19333
19420
  return null;
19334
19421
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
19422
+ this._cachedJsonLd = undefined;
19335
19423
  return fetched;
19336
19424
  }
19337
19425
  return v;
@@ -19358,6 +19446,7 @@ export class Group extends Object {
19358
19446
  if (fetched == null)
19359
19447
  continue;
19360
19448
  vs[i] = fetched;
19449
+ this._cachedJsonLd = undefined;
19361
19450
  yield fetched;
19362
19451
  continue;
19363
19452
  }
@@ -19449,6 +19538,7 @@ export class Group extends Object {
19449
19538
  if (fetched == null)
19450
19539
  return null;
19451
19540
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
19541
+ this._cachedJsonLd = undefined;
19452
19542
  return fetched;
19453
19543
  }
19454
19544
  return v;
@@ -19523,6 +19613,7 @@ export class Group extends Object {
19523
19613
  if (fetched == null)
19524
19614
  return null;
19525
19615
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
19616
+ this._cachedJsonLd = undefined;
19526
19617
  return fetched;
19527
19618
  }
19528
19619
  return v;
@@ -19582,6 +19673,7 @@ export class Group extends Object {
19582
19673
  if (fetched == null)
19583
19674
  return null;
19584
19675
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
19676
+ this._cachedJsonLd = undefined;
19585
19677
  return fetched;
19586
19678
  }
19587
19679
  return v;
@@ -19644,6 +19736,7 @@ export class Group extends Object {
19644
19736
  if (fetched == null)
19645
19737
  return null;
19646
19738
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
19739
+ this._cachedJsonLd = undefined;
19647
19740
  return fetched;
19648
19741
  }
19649
19742
  return v;
@@ -19704,6 +19797,7 @@ export class Group extends Object {
19704
19797
  if (fetched == null)
19705
19798
  return null;
19706
19799
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
19800
+ this._cachedJsonLd = undefined;
19707
19801
  return fetched;
19708
19802
  }
19709
19803
  return v;
@@ -19762,6 +19856,7 @@ export class Group extends Object {
19762
19856
  if (fetched == null)
19763
19857
  return null;
19764
19858
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
19859
+ this._cachedJsonLd = undefined;
19765
19860
  return fetched;
19766
19861
  }
19767
19862
  return v;
@@ -19822,6 +19917,7 @@ export class Group extends Object {
19822
19917
  if (fetched == null)
19823
19918
  return null;
19824
19919
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
19920
+ this._cachedJsonLd = undefined;
19825
19921
  return fetched;
19826
19922
  }
19827
19923
  return v;
@@ -19872,6 +19968,7 @@ export class Group extends Object {
19872
19968
  if (fetched == null)
19873
19969
  continue;
19874
19970
  vs[i] = fetched;
19971
+ this._cachedJsonLd = undefined;
19875
19972
  yield fetched;
19876
19973
  continue;
19877
19974
  }
@@ -20005,6 +20102,7 @@ export class Group extends Object {
20005
20102
  if (fetched == null)
20006
20103
  return null;
20007
20104
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo[0] = fetched;
20105
+ this._cachedJsonLd = undefined;
20008
20106
  return fetched;
20009
20107
  }
20010
20108
  return v;
@@ -20097,6 +20195,7 @@ export class Group extends Object {
20097
20195
  if (fetched == null)
20098
20196
  return null;
20099
20197
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
20198
+ this._cachedJsonLd = undefined;
20100
20199
  return fetched;
20101
20200
  }
20102
20201
  return v;
@@ -20123,6 +20222,7 @@ export class Group extends Object {
20123
20222
  if (fetched == null)
20124
20223
  continue;
20125
20224
  vs[i] = fetched;
20225
+ this._cachedJsonLd = undefined;
20126
20226
  yield fetched;
20127
20227
  continue;
20128
20228
  }
@@ -20183,6 +20283,7 @@ export class Group extends Object {
20183
20283
  if (fetched == null)
20184
20284
  return null;
20185
20285
  this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service[0] = fetched;
20286
+ this._cachedJsonLd = undefined;
20186
20287
  return fetched;
20187
20288
  }
20188
20289
  return v;
@@ -20209,6 +20310,7 @@ export class Group extends Object {
20209
20310
  if (fetched == null)
20210
20311
  continue;
20211
20312
  vs[i] = fetched;
20313
+ this._cachedJsonLd = undefined;
20212
20314
  yield fetched;
20213
20315
  continue;
20214
20316
  }
@@ -20243,8 +20345,8 @@ export class Group extends Object {
20243
20345
  * @returns The JSON-LD representation of this object.
20244
20346
  */
20245
20347
  async toJsonLd(options = {}) {
20246
- if (options.format == null && this.#cachedJsonLd != null) {
20247
- return this.#cachedJsonLd;
20348
+ if (options.format == null && this._cachedJsonLd != null) {
20349
+ return this._cachedJsonLd;
20248
20350
  }
20249
20351
  if (options.format !== "compact" && options.context != null) {
20250
20352
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21482,7 +21584,7 @@ export class Group extends Object {
21482
21584
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
21483
21585
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21484
21586
  try {
21485
- instance.#cachedJsonLd = structuredClone(json);
21587
+ instance._cachedJsonLd = structuredClone(json);
21486
21588
  }
21487
21589
  catch {
21488
21590
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21811,6 +21913,7 @@ _d = Group;
21811
21913
  export class Link {
21812
21914
  #documentLoader;
21813
21915
  #contextLoader;
21916
+ #cachedJsonLd;
21814
21917
  id;
21815
21918
  get _documentLoader() {
21816
21919
  return this.#documentLoader;
@@ -21818,7 +21921,12 @@ export class Link {
21818
21921
  get _contextLoader() {
21819
21922
  return this.#contextLoader;
21820
21923
  }
21821
- #cachedJsonLd;
21924
+ get _cachedJsonLd() {
21925
+ return this.#cachedJsonLd;
21926
+ }
21927
+ set _cachedJsonLd(value) {
21928
+ this.#cachedJsonLd = value;
21929
+ }
21822
21930
  /**
21823
21931
  * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
21824
21932
  */
@@ -22238,6 +22346,7 @@ export class Link {
22238
22346
  if (fetched == null)
22239
22347
  continue;
22240
22348
  vs[i] = fetched;
22349
+ this._cachedJsonLd = undefined;
22241
22350
  yield fetched;
22242
22351
  continue;
22243
22352
  }
@@ -22255,8 +22364,8 @@ export class Link {
22255
22364
  * @returns The JSON-LD representation of this object.
22256
22365
  */
22257
22366
  async toJsonLd(options = {}) {
22258
- if (options.format == null && this.#cachedJsonLd != null) {
22259
- return this.#cachedJsonLd;
22367
+ if (options.format == null && this._cachedJsonLd != null) {
22368
+ return this._cachedJsonLd;
22260
22369
  }
22261
22370
  if (options.format !== "compact" && options.context != null) {
22262
22371
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22725,7 +22834,7 @@ export class Link {
22725
22834
  _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
22726
22835
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22727
22836
  try {
22728
- instance.#cachedJsonLd = structuredClone(json);
22837
+ instance._cachedJsonLd = structuredClone(json);
22729
22838
  }
22730
22839
  catch {
22731
22840
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22866,7 +22975,6 @@ _e = Link;
22866
22975
  * See also <https://swicg.github.io/miscellany/#Hashtag>.
22867
22976
  */
22868
22977
  export class Hashtag extends Link {
22869
- #cachedJsonLd;
22870
22978
  /**
22871
22979
  * The type URI of {@link Hashtag}: `https://www.w3.org/ns/activitystreams#Hashtag`.
22872
22980
  */
@@ -22902,8 +23010,8 @@ export class Hashtag extends Link {
22902
23010
  * @returns The JSON-LD representation of this object.
22903
23011
  */
22904
23012
  async toJsonLd(options = {}) {
22905
- if (options.format == null && this.#cachedJsonLd != null) {
22906
- return this.#cachedJsonLd;
23013
+ if (options.format == null && this._cachedJsonLd != null) {
23014
+ return this._cachedJsonLd;
22907
23015
  }
22908
23016
  if (options.format !== "compact" && options.context != null) {
22909
23017
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23002,7 +23110,7 @@ export class Hashtag extends Link {
23002
23110
  }
23003
23111
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23004
23112
  try {
23005
- instance.#cachedJsonLd = structuredClone(json);
23113
+ instance._cachedJsonLd = structuredClone(json);
23006
23114
  }
23007
23115
  catch {
23008
23116
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23026,7 +23134,6 @@ export class Hashtag extends Link {
23026
23134
  /** An image document of any kind.
23027
23135
  */
23028
23136
  export class Image extends Document {
23029
- #cachedJsonLd;
23030
23137
  /**
23031
23138
  * The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
23032
23139
  */
@@ -23062,8 +23169,8 @@ export class Image extends Document {
23062
23169
  * @returns The JSON-LD representation of this object.
23063
23170
  */
23064
23171
  async toJsonLd(options = {}) {
23065
- if (options.format == null && this.#cachedJsonLd != null) {
23066
- return this.#cachedJsonLd;
23172
+ if (options.format == null && this._cachedJsonLd != null) {
23173
+ return this._cachedJsonLd;
23067
23174
  }
23068
23175
  if (options.format !== "compact" && options.context != null) {
23069
23176
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23171,7 +23278,7 @@ export class Image extends Document {
23171
23278
  }
23172
23279
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23173
23280
  try {
23174
- instance.#cachedJsonLd = structuredClone(json);
23281
+ instance._cachedJsonLd = structuredClone(json);
23175
23282
  }
23176
23283
  catch {
23177
23284
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23197,7 +23304,6 @@ export class Image extends Document {
23197
23304
  * the object is being offered.
23198
23305
  */
23199
23306
  export class Offer extends Activity {
23200
- #cachedJsonLd;
23201
23307
  /**
23202
23308
  * The type URI of {@link Offer}: `https://www.w3.org/ns/activitystreams#Offer`.
23203
23309
  */
@@ -23233,8 +23339,8 @@ export class Offer extends Activity {
23233
23339
  * @returns The JSON-LD representation of this object.
23234
23340
  */
23235
23341
  async toJsonLd(options = {}) {
23236
- if (options.format == null && this.#cachedJsonLd != null) {
23237
- return this.#cachedJsonLd;
23342
+ if (options.format == null && this._cachedJsonLd != null) {
23343
+ return this._cachedJsonLd;
23238
23344
  }
23239
23345
  if (options.format !== "compact" && options.context != null) {
23240
23346
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23335,7 +23441,7 @@ export class Offer extends Activity {
23335
23441
  }
23336
23442
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23337
23443
  try {
23338
- instance.#cachedJsonLd = structuredClone(json);
23444
+ instance._cachedJsonLd = structuredClone(json);
23339
23445
  }
23340
23446
  catch {
23341
23447
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23360,7 +23466,6 @@ export class Offer extends Activity {
23360
23466
  * for the `object` to the `target`.
23361
23467
  */
23362
23468
  export class Invite extends Offer {
23363
- #cachedJsonLd;
23364
23469
  /**
23365
23470
  * The type URI of {@link Invite}: `https://www.w3.org/ns/activitystreams#Invite`.
23366
23471
  */
@@ -23396,8 +23501,8 @@ export class Invite extends Offer {
23396
23501
  * @returns The JSON-LD representation of this object.
23397
23502
  */
23398
23503
  async toJsonLd(options = {}) {
23399
- if (options.format == null && this.#cachedJsonLd != null) {
23400
- return this.#cachedJsonLd;
23504
+ if (options.format == null && this._cachedJsonLd != null) {
23505
+ return this._cachedJsonLd;
23401
23506
  }
23402
23507
  if (options.format !== "compact" && options.context != null) {
23403
23508
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23495,7 +23600,7 @@ export class Invite extends Offer {
23495
23600
  }
23496
23601
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23497
23602
  try {
23498
- instance.#cachedJsonLd = structuredClone(json);
23603
+ instance._cachedJsonLd = structuredClone(json);
23499
23604
  }
23500
23605
  catch {
23501
23606
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23520,7 +23625,6 @@ export class Invite extends Offer {
23520
23625
  * The `target` and `origin` typically have no defined meaning.
23521
23626
  */
23522
23627
  export class Join extends Activity {
23523
- #cachedJsonLd;
23524
23628
  /**
23525
23629
  * The type URI of {@link Join}: `https://www.w3.org/ns/activitystreams#Join`.
23526
23630
  */
@@ -23556,8 +23660,8 @@ export class Join extends Activity {
23556
23660
  * @returns The JSON-LD representation of this object.
23557
23661
  */
23558
23662
  async toJsonLd(options = {}) {
23559
- if (options.format == null && this.#cachedJsonLd != null) {
23560
- return this.#cachedJsonLd;
23663
+ if (options.format == null && this._cachedJsonLd != null) {
23664
+ return this._cachedJsonLd;
23561
23665
  }
23562
23666
  if (options.format !== "compact" && options.context != null) {
23563
23667
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23655,7 +23759,7 @@ export class Join extends Activity {
23655
23759
  }
23656
23760
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23657
23761
  try {
23658
- instance.#cachedJsonLd = structuredClone(json);
23762
+ instance._cachedJsonLd = structuredClone(json);
23659
23763
  }
23660
23764
  catch {
23661
23765
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23680,7 +23784,6 @@ export class Join extends Activity {
23680
23784
  * The `target` and `origin` typically have no meaning.
23681
23785
  */
23682
23786
  export class Leave extends Activity {
23683
- #cachedJsonLd;
23684
23787
  /**
23685
23788
  * The type URI of {@link Leave}: `https://www.w3.org/ns/activitystreams#Leave`.
23686
23789
  */
@@ -23716,8 +23819,8 @@ export class Leave extends Activity {
23716
23819
  * @returns The JSON-LD representation of this object.
23717
23820
  */
23718
23821
  async toJsonLd(options = {}) {
23719
- if (options.format == null && this.#cachedJsonLd != null) {
23720
- return this.#cachedJsonLd;
23822
+ if (options.format == null && this._cachedJsonLd != null) {
23823
+ return this._cachedJsonLd;
23721
23824
  }
23722
23825
  if (options.format !== "compact" && options.context != null) {
23723
23826
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23815,7 +23918,7 @@ export class Leave extends Activity {
23815
23918
  }
23816
23919
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23817
23920
  try {
23818
- instance.#cachedJsonLd = structuredClone(json);
23921
+ instance._cachedJsonLd = structuredClone(json);
23819
23922
  }
23820
23923
  catch {
23821
23924
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23840,7 +23943,6 @@ export class Leave extends Activity {
23840
23943
  * The `target` and `origin` typically have no defined meaning.
23841
23944
  */
23842
23945
  export class Like extends Activity {
23843
- #cachedJsonLd;
23844
23946
  /**
23845
23947
  * The type URI of {@link Like}: `https://www.w3.org/ns/activitystreams#Like`.
23846
23948
  */
@@ -23876,8 +23978,8 @@ export class Like extends Activity {
23876
23978
  * @returns The JSON-LD representation of this object.
23877
23979
  */
23878
23980
  async toJsonLd(options = {}) {
23879
- if (options.format == null && this.#cachedJsonLd != null) {
23880
- return this.#cachedJsonLd;
23981
+ if (options.format == null && this._cachedJsonLd != null) {
23982
+ return this._cachedJsonLd;
23881
23983
  }
23882
23984
  if (options.format !== "compact" && options.context != null) {
23883
23985
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23976,7 +24078,7 @@ export class Like extends Activity {
23976
24078
  }
23977
24079
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23978
24080
  try {
23979
- instance.#cachedJsonLd = structuredClone(json);
24081
+ instance._cachedJsonLd = structuredClone(json);
23980
24082
  }
23981
24083
  catch {
23982
24084
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24000,7 +24102,6 @@ export class Like extends Activity {
24000
24102
  /** Indicates that the `actor` has listened to the `object`.
24001
24103
  */
24002
24104
  export class Listen extends Activity {
24003
- #cachedJsonLd;
24004
24105
  /**
24005
24106
  * The type URI of {@link Listen}: `https://www.w3.org/ns/activitystreams#Listen`.
24006
24107
  */
@@ -24036,8 +24137,8 @@ export class Listen extends Activity {
24036
24137
  * @returns The JSON-LD representation of this object.
24037
24138
  */
24038
24139
  async toJsonLd(options = {}) {
24039
- if (options.format == null && this.#cachedJsonLd != null) {
24040
- return this.#cachedJsonLd;
24140
+ if (options.format == null && this._cachedJsonLd != null) {
24141
+ return this._cachedJsonLd;
24041
24142
  }
24042
24143
  if (options.format !== "compact" && options.context != null) {
24043
24144
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -24135,7 +24236,7 @@ export class Listen extends Activity {
24135
24236
  }
24136
24237
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
24137
24238
  try {
24138
- instance.#cachedJsonLd = structuredClone(json);
24239
+ instance._cachedJsonLd = structuredClone(json);
24139
24240
  }
24140
24241
  catch {
24141
24242
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24159,7 +24260,6 @@ export class Listen extends Activity {
24159
24260
  /** A specialized {@link Link} that represents an @mention.
24160
24261
  */
24161
24262
  export class Mention extends Link {
24162
- #cachedJsonLd;
24163
24263
  /**
24164
24264
  * The type URI of {@link Mention}: `https://www.w3.org/ns/activitystreams#Mention`.
24165
24265
  */
@@ -24195,8 +24295,8 @@ export class Mention extends Link {
24195
24295
  * @returns The JSON-LD representation of this object.
24196
24296
  */
24197
24297
  async toJsonLd(options = {}) {
24198
- if (options.format == null && this.#cachedJsonLd != null) {
24199
- return this.#cachedJsonLd;
24298
+ if (options.format == null && this._cachedJsonLd != null) {
24299
+ return this._cachedJsonLd;
24200
24300
  }
24201
24301
  if (options.format !== "compact" && options.context != null) {
24202
24302
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -24293,7 +24393,7 @@ export class Mention extends Link {
24293
24393
  }
24294
24394
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
24295
24395
  try {
24296
- instance.#cachedJsonLd = structuredClone(json);
24396
+ instance._cachedJsonLd = structuredClone(json);
24297
24397
  }
24298
24398
  catch {
24299
24399
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24319,7 +24419,6 @@ export class Mention extends Link {
24319
24419
  * either can be determined by context.
24320
24420
  */
24321
24421
  export class Move extends Activity {
24322
- #cachedJsonLd;
24323
24422
  /**
24324
24423
  * The type URI of {@link Move}: `https://www.w3.org/ns/activitystreams#Move`.
24325
24424
  */
@@ -24355,8 +24454,8 @@ export class Move extends Activity {
24355
24454
  * @returns The JSON-LD representation of this object.
24356
24455
  */
24357
24456
  async toJsonLd(options = {}) {
24358
- if (options.format == null && this.#cachedJsonLd != null) {
24359
- return this.#cachedJsonLd;
24457
+ if (options.format == null && this._cachedJsonLd != null) {
24458
+ return this._cachedJsonLd;
24360
24459
  }
24361
24460
  if (options.format !== "compact" && options.context != null) {
24362
24461
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -24454,7 +24553,7 @@ export class Move extends Activity {
24454
24553
  }
24455
24554
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
24456
24555
  try {
24457
- instance.#cachedJsonLd = structuredClone(json);
24556
+ instance._cachedJsonLd = structuredClone(json);
24458
24557
  }
24459
24558
  catch {
24460
24559
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24479,7 +24578,6 @@ export class Move extends Activity {
24479
24578
  * length.
24480
24579
  */
24481
24580
  export class Note extends Object {
24482
- #cachedJsonLd;
24483
24581
  /**
24484
24582
  * The type URI of {@link Note}: `https://www.w3.org/ns/activitystreams#Note`.
24485
24583
  */
@@ -24554,8 +24652,8 @@ export class Note extends Object {
24554
24652
  * @returns The JSON-LD representation of this object.
24555
24653
  */
24556
24654
  async toJsonLd(options = {}) {
24557
- if (options.format == null && this.#cachedJsonLd != null) {
24558
- return this.#cachedJsonLd;
24655
+ if (options.format == null && this._cachedJsonLd != null) {
24656
+ return this._cachedJsonLd;
24559
24657
  }
24560
24658
  if (options.format !== "compact" && options.context != null) {
24561
24659
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -24742,7 +24840,7 @@ export class Note extends Object {
24742
24840
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
24743
24841
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
24744
24842
  try {
24745
- instance.#cachedJsonLd = structuredClone(json);
24843
+ instance._cachedJsonLd = structuredClone(json);
24746
24844
  }
24747
24845
  catch {
24748
24846
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24779,7 +24877,6 @@ export class Note extends Object {
24779
24877
  * are assumed to always be strictly ordered.
24780
24878
  */
24781
24879
  export class OrderedCollection extends Collection {
24782
- #cachedJsonLd;
24783
24880
  /**
24784
24881
  * The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
24785
24882
  */
@@ -24886,6 +24983,7 @@ export class OrderedCollection extends Collection {
24886
24983
  if (fetched == null)
24887
24984
  continue;
24888
24985
  vs[i] = fetched;
24986
+ this._cachedJsonLd = undefined;
24889
24987
  yield fetched;
24890
24988
  continue;
24891
24989
  }
@@ -24903,8 +25001,8 @@ export class OrderedCollection extends Collection {
24903
25001
  * @returns The JSON-LD representation of this object.
24904
25002
  */
24905
25003
  async toJsonLd(options = {}) {
24906
- if (options.format == null && this.#cachedJsonLd != null) {
24907
- return this.#cachedJsonLd;
25004
+ if (options.format == null && this._cachedJsonLd != null) {
25005
+ return this._cachedJsonLd;
24908
25006
  }
24909
25007
  if (options.format !== "compact" && options.context != null) {
24910
25008
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -25158,7 +25256,7 @@ export class OrderedCollection extends Collection {
25158
25256
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
25159
25257
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
25160
25258
  try {
25161
- instance.#cachedJsonLd = structuredClone(json);
25259
+ instance._cachedJsonLd = structuredClone(json);
25162
25260
  }
25163
25261
  catch {
25164
25262
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25198,7 +25296,6 @@ export class OrderedCollection extends Collection {
25198
25296
  * the `OrderedCollectionPage` object.
25199
25297
  */
25200
25298
  export class OrderedCollectionPage extends CollectionPage {
25201
- #cachedJsonLd;
25202
25299
  /**
25203
25300
  * The type URI of {@link OrderedCollectionPage}: `https://www.w3.org/ns/activitystreams#OrderedCollectionPage`.
25204
25301
  */
@@ -25330,6 +25427,7 @@ export class OrderedCollectionPage extends CollectionPage {
25330
25427
  if (fetched == null)
25331
25428
  continue;
25332
25429
  vs[i] = fetched;
25430
+ this._cachedJsonLd = undefined;
25333
25431
  yield fetched;
25334
25432
  continue;
25335
25433
  }
@@ -25355,8 +25453,8 @@ export class OrderedCollectionPage extends CollectionPage {
25355
25453
  * @returns The JSON-LD representation of this object.
25356
25454
  */
25357
25455
  async toJsonLd(options = {}) {
25358
- if (options.format == null && this.#cachedJsonLd != null) {
25359
- return this.#cachedJsonLd;
25456
+ if (options.format == null && this._cachedJsonLd != null) {
25457
+ return this._cachedJsonLd;
25360
25458
  }
25361
25459
  if (options.format !== "compact" && options.context != null) {
25362
25460
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -25646,7 +25744,7 @@ export class OrderedCollectionPage extends CollectionPage {
25646
25744
  _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
25647
25745
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
25648
25746
  try {
25649
- instance.#cachedJsonLd = structuredClone(json);
25747
+ instance._cachedJsonLd = structuredClone(json);
25650
25748
  }
25651
25749
  catch {
25652
25750
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -25696,7 +25794,6 @@ export class OrderedCollectionPage extends CollectionPage {
25696
25794
  /** Represents an organization.
25697
25795
  */
25698
25796
  export class Organization extends Object {
25699
- #cachedJsonLd;
25700
25797
  /**
25701
25798
  * The type URI of {@link Organization}: `https://www.w3.org/ns/activitystreams#Organization`.
25702
25799
  */
@@ -26521,6 +26618,7 @@ export class Organization extends Object {
26521
26618
  if (fetched == null)
26522
26619
  return null;
26523
26620
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
26621
+ this._cachedJsonLd = undefined;
26524
26622
  return fetched;
26525
26623
  }
26526
26624
  return v;
@@ -26544,6 +26642,7 @@ export class Organization extends Object {
26544
26642
  if (fetched == null)
26545
26643
  continue;
26546
26644
  vs[i] = fetched;
26645
+ this._cachedJsonLd = undefined;
26547
26646
  yield fetched;
26548
26647
  continue;
26549
26648
  }
@@ -26606,6 +26705,7 @@ export class Organization extends Object {
26606
26705
  if (fetched == null)
26607
26706
  return null;
26608
26707
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
26708
+ this._cachedJsonLd = undefined;
26609
26709
  return fetched;
26610
26710
  }
26611
26711
  return v;
@@ -26632,6 +26732,7 @@ export class Organization extends Object {
26632
26732
  if (fetched == null)
26633
26733
  continue;
26634
26734
  vs[i] = fetched;
26735
+ this._cachedJsonLd = undefined;
26635
26736
  yield fetched;
26636
26737
  continue;
26637
26738
  }
@@ -26723,6 +26824,7 @@ export class Organization extends Object {
26723
26824
  if (fetched == null)
26724
26825
  return null;
26725
26826
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
26827
+ this._cachedJsonLd = undefined;
26726
26828
  return fetched;
26727
26829
  }
26728
26830
  return v;
@@ -26797,6 +26899,7 @@ export class Organization extends Object {
26797
26899
  if (fetched == null)
26798
26900
  return null;
26799
26901
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
26902
+ this._cachedJsonLd = undefined;
26800
26903
  return fetched;
26801
26904
  }
26802
26905
  return v;
@@ -26856,6 +26959,7 @@ export class Organization extends Object {
26856
26959
  if (fetched == null)
26857
26960
  return null;
26858
26961
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
26962
+ this._cachedJsonLd = undefined;
26859
26963
  return fetched;
26860
26964
  }
26861
26965
  return v;
@@ -26918,6 +27022,7 @@ export class Organization extends Object {
26918
27022
  if (fetched == null)
26919
27023
  return null;
26920
27024
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
27025
+ this._cachedJsonLd = undefined;
26921
27026
  return fetched;
26922
27027
  }
26923
27028
  return v;
@@ -26978,6 +27083,7 @@ export class Organization extends Object {
26978
27083
  if (fetched == null)
26979
27084
  return null;
26980
27085
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
27086
+ this._cachedJsonLd = undefined;
26981
27087
  return fetched;
26982
27088
  }
26983
27089
  return v;
@@ -27036,6 +27142,7 @@ export class Organization extends Object {
27036
27142
  if (fetched == null)
27037
27143
  return null;
27038
27144
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
27145
+ this._cachedJsonLd = undefined;
27039
27146
  return fetched;
27040
27147
  }
27041
27148
  return v;
@@ -27096,6 +27203,7 @@ export class Organization extends Object {
27096
27203
  if (fetched == null)
27097
27204
  return null;
27098
27205
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
27206
+ this._cachedJsonLd = undefined;
27099
27207
  return fetched;
27100
27208
  }
27101
27209
  return v;
@@ -27146,6 +27254,7 @@ export class Organization extends Object {
27146
27254
  if (fetched == null)
27147
27255
  continue;
27148
27256
  vs[i] = fetched;
27257
+ this._cachedJsonLd = undefined;
27149
27258
  yield fetched;
27150
27259
  continue;
27151
27260
  }
@@ -27279,6 +27388,7 @@ export class Organization extends Object {
27279
27388
  if (fetched == null)
27280
27389
  return null;
27281
27390
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo[0] = fetched;
27391
+ this._cachedJsonLd = undefined;
27282
27392
  return fetched;
27283
27393
  }
27284
27394
  return v;
@@ -27371,6 +27481,7 @@ export class Organization extends Object {
27371
27481
  if (fetched == null)
27372
27482
  return null;
27373
27483
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
27484
+ this._cachedJsonLd = undefined;
27374
27485
  return fetched;
27375
27486
  }
27376
27487
  return v;
@@ -27397,6 +27508,7 @@ export class Organization extends Object {
27397
27508
  if (fetched == null)
27398
27509
  continue;
27399
27510
  vs[i] = fetched;
27511
+ this._cachedJsonLd = undefined;
27400
27512
  yield fetched;
27401
27513
  continue;
27402
27514
  }
@@ -27457,6 +27569,7 @@ export class Organization extends Object {
27457
27569
  if (fetched == null)
27458
27570
  return null;
27459
27571
  this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service[0] = fetched;
27572
+ this._cachedJsonLd = undefined;
27460
27573
  return fetched;
27461
27574
  }
27462
27575
  return v;
@@ -27483,6 +27596,7 @@ export class Organization extends Object {
27483
27596
  if (fetched == null)
27484
27597
  continue;
27485
27598
  vs[i] = fetched;
27599
+ this._cachedJsonLd = undefined;
27486
27600
  yield fetched;
27487
27601
  continue;
27488
27602
  }
@@ -27517,8 +27631,8 @@ export class Organization extends Object {
27517
27631
  * @returns The JSON-LD representation of this object.
27518
27632
  */
27519
27633
  async toJsonLd(options = {}) {
27520
- if (options.format == null && this.#cachedJsonLd != null) {
27521
- return this.#cachedJsonLd;
27634
+ if (options.format == null && this._cachedJsonLd != null) {
27635
+ return this._cachedJsonLd;
27522
27636
  }
27523
27637
  if (options.format !== "compact" && options.context != null) {
27524
27638
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -28756,7 +28870,7 @@ export class Organization extends Object {
28756
28870
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
28757
28871
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
28758
28872
  try {
28759
- instance.#cachedJsonLd = structuredClone(json);
28873
+ instance._cachedJsonLd = structuredClone(json);
28760
28874
  }
28761
28875
  catch {
28762
28876
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -29076,7 +29190,6 @@ _f = Organization;
29076
29190
  /** Represents a Web Page.
29077
29191
  */
29078
29192
  export class Page extends Document {
29079
- #cachedJsonLd;
29080
29193
  /**
29081
29194
  * The type URI of {@link Page}: `https://www.w3.org/ns/activitystreams#Page`.
29082
29195
  */
@@ -29112,8 +29225,8 @@ export class Page extends Document {
29112
29225
  * @returns The JSON-LD representation of this object.
29113
29226
  */
29114
29227
  async toJsonLd(options = {}) {
29115
- if (options.format == null && this.#cachedJsonLd != null) {
29116
- return this.#cachedJsonLd;
29228
+ if (options.format == null && this._cachedJsonLd != null) {
29229
+ return this._cachedJsonLd;
29117
29230
  }
29118
29231
  if (options.format !== "compact" && options.context != null) {
29119
29232
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -29227,7 +29340,7 @@ export class Page extends Document {
29227
29340
  }
29228
29341
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
29229
29342
  try {
29230
- instance.#cachedJsonLd = structuredClone(json);
29343
+ instance._cachedJsonLd = structuredClone(json);
29231
29344
  }
29232
29345
  catch {
29233
29346
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -29251,7 +29364,6 @@ export class Page extends Document {
29251
29364
  /** Represents an individual person.
29252
29365
  */
29253
29366
  export class Person extends Object {
29254
- #cachedJsonLd;
29255
29367
  /**
29256
29368
  * The type URI of {@link Person}: `https://www.w3.org/ns/activitystreams#Person`.
29257
29369
  */
@@ -30076,6 +30188,7 @@ export class Person extends Object {
30076
30188
  if (fetched == null)
30077
30189
  return null;
30078
30190
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
30191
+ this._cachedJsonLd = undefined;
30079
30192
  return fetched;
30080
30193
  }
30081
30194
  return v;
@@ -30099,6 +30212,7 @@ export class Person extends Object {
30099
30212
  if (fetched == null)
30100
30213
  continue;
30101
30214
  vs[i] = fetched;
30215
+ this._cachedJsonLd = undefined;
30102
30216
  yield fetched;
30103
30217
  continue;
30104
30218
  }
@@ -30161,6 +30275,7 @@ export class Person extends Object {
30161
30275
  if (fetched == null)
30162
30276
  return null;
30163
30277
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
30278
+ this._cachedJsonLd = undefined;
30164
30279
  return fetched;
30165
30280
  }
30166
30281
  return v;
@@ -30187,6 +30302,7 @@ export class Person extends Object {
30187
30302
  if (fetched == null)
30188
30303
  continue;
30189
30304
  vs[i] = fetched;
30305
+ this._cachedJsonLd = undefined;
30190
30306
  yield fetched;
30191
30307
  continue;
30192
30308
  }
@@ -30278,6 +30394,7 @@ export class Person extends Object {
30278
30394
  if (fetched == null)
30279
30395
  return null;
30280
30396
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
30397
+ this._cachedJsonLd = undefined;
30281
30398
  return fetched;
30282
30399
  }
30283
30400
  return v;
@@ -30352,6 +30469,7 @@ export class Person extends Object {
30352
30469
  if (fetched == null)
30353
30470
  return null;
30354
30471
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
30472
+ this._cachedJsonLd = undefined;
30355
30473
  return fetched;
30356
30474
  }
30357
30475
  return v;
@@ -30411,6 +30529,7 @@ export class Person extends Object {
30411
30529
  if (fetched == null)
30412
30530
  return null;
30413
30531
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
30532
+ this._cachedJsonLd = undefined;
30414
30533
  return fetched;
30415
30534
  }
30416
30535
  return v;
@@ -30473,6 +30592,7 @@ export class Person extends Object {
30473
30592
  if (fetched == null)
30474
30593
  return null;
30475
30594
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
30595
+ this._cachedJsonLd = undefined;
30476
30596
  return fetched;
30477
30597
  }
30478
30598
  return v;
@@ -30533,6 +30653,7 @@ export class Person extends Object {
30533
30653
  if (fetched == null)
30534
30654
  return null;
30535
30655
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
30656
+ this._cachedJsonLd = undefined;
30536
30657
  return fetched;
30537
30658
  }
30538
30659
  return v;
@@ -30591,6 +30712,7 @@ export class Person extends Object {
30591
30712
  if (fetched == null)
30592
30713
  return null;
30593
30714
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
30715
+ this._cachedJsonLd = undefined;
30594
30716
  return fetched;
30595
30717
  }
30596
30718
  return v;
@@ -30651,6 +30773,7 @@ export class Person extends Object {
30651
30773
  if (fetched == null)
30652
30774
  return null;
30653
30775
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
30776
+ this._cachedJsonLd = undefined;
30654
30777
  return fetched;
30655
30778
  }
30656
30779
  return v;
@@ -30701,6 +30824,7 @@ export class Person extends Object {
30701
30824
  if (fetched == null)
30702
30825
  continue;
30703
30826
  vs[i] = fetched;
30827
+ this._cachedJsonLd = undefined;
30704
30828
  yield fetched;
30705
30829
  continue;
30706
30830
  }
@@ -30834,6 +30958,7 @@ export class Person extends Object {
30834
30958
  if (fetched == null)
30835
30959
  return null;
30836
30960
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo[0] = fetched;
30961
+ this._cachedJsonLd = undefined;
30837
30962
  return fetched;
30838
30963
  }
30839
30964
  return v;
@@ -30926,6 +31051,7 @@ export class Person extends Object {
30926
31051
  if (fetched == null)
30927
31052
  return null;
30928
31053
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
31054
+ this._cachedJsonLd = undefined;
30929
31055
  return fetched;
30930
31056
  }
30931
31057
  return v;
@@ -30952,6 +31078,7 @@ export class Person extends Object {
30952
31078
  if (fetched == null)
30953
31079
  continue;
30954
31080
  vs[i] = fetched;
31081
+ this._cachedJsonLd = undefined;
30955
31082
  yield fetched;
30956
31083
  continue;
30957
31084
  }
@@ -31012,6 +31139,7 @@ export class Person extends Object {
31012
31139
  if (fetched == null)
31013
31140
  return null;
31014
31141
  this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service[0] = fetched;
31142
+ this._cachedJsonLd = undefined;
31015
31143
  return fetched;
31016
31144
  }
31017
31145
  return v;
@@ -31038,6 +31166,7 @@ export class Person extends Object {
31038
31166
  if (fetched == null)
31039
31167
  continue;
31040
31168
  vs[i] = fetched;
31169
+ this._cachedJsonLd = undefined;
31041
31170
  yield fetched;
31042
31171
  continue;
31043
31172
  }
@@ -31072,8 +31201,8 @@ export class Person extends Object {
31072
31201
  * @returns The JSON-LD representation of this object.
31073
31202
  */
31074
31203
  async toJsonLd(options = {}) {
31075
- if (options.format == null && this.#cachedJsonLd != null) {
31076
- return this.#cachedJsonLd;
31204
+ if (options.format == null && this._cachedJsonLd != null) {
31205
+ return this._cachedJsonLd;
31077
31206
  }
31078
31207
  if (options.format !== "compact" && options.context != null) {
31079
31208
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -32311,7 +32440,7 @@ export class Person extends Object {
32311
32440
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
32312
32441
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
32313
32442
  try {
32314
- instance.#cachedJsonLd = structuredClone(json);
32443
+ instance._cachedJsonLd = structuredClone(json);
32315
32444
  }
32316
32445
  catch {
32317
32446
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -32633,7 +32762,6 @@ _g = Person;
32633
32762
  * for additional information.
32634
32763
  */
32635
32764
  export class Place extends Object {
32636
- #cachedJsonLd;
32637
32765
  /**
32638
32766
  * The type URI of {@link Place}: `https://www.w3.org/ns/activitystreams#Place`.
32639
32767
  */
@@ -32863,8 +32991,8 @@ export class Place extends Object {
32863
32991
  * @returns The JSON-LD representation of this object.
32864
32992
  */
32865
32993
  async toJsonLd(options = {}) {
32866
- if (options.format == null && this.#cachedJsonLd != null) {
32867
- return this.#cachedJsonLd;
32994
+ if (options.format == null && this._cachedJsonLd != null) {
32995
+ return this._cachedJsonLd;
32868
32996
  }
32869
32997
  if (options.format !== "compact" && options.context != null) {
32870
32998
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -33209,7 +33337,7 @@ export class Place extends Object {
33209
33337
  _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
33210
33338
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
33211
33339
  try {
33212
- instance.#cachedJsonLd = structuredClone(json);
33340
+ instance._cachedJsonLd = structuredClone(json);
33213
33341
  }
33214
33342
  catch {
33215
33343
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -33309,7 +33437,6 @@ export class Place extends Object {
33309
33437
  * described by the profile.
33310
33438
  */
33311
33439
  export class Profile extends Object {
33312
- #cachedJsonLd;
33313
33440
  /**
33314
33441
  * The type URI of {@link Profile}: `https://www.w3.org/ns/activitystreams#Profile`.
33315
33442
  */
@@ -33409,6 +33536,7 @@ export class Profile extends Object {
33409
33536
  if (fetched == null)
33410
33537
  return null;
33411
33538
  this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes[0] = fetched;
33539
+ this._cachedJsonLd = undefined;
33412
33540
  return fetched;
33413
33541
  }
33414
33542
  return v;
@@ -33424,8 +33552,8 @@ export class Profile extends Object {
33424
33552
  * @returns The JSON-LD representation of this object.
33425
33553
  */
33426
33554
  async toJsonLd(options = {}) {
33427
- if (options.format == null && this.#cachedJsonLd != null) {
33428
- return this.#cachedJsonLd;
33555
+ if (options.format == null && this._cachedJsonLd != null) {
33556
+ return this._cachedJsonLd;
33429
33557
  }
33430
33558
  if (options.format !== "compact" && options.context != null) {
33431
33559
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -33585,7 +33713,7 @@ export class Profile extends Object {
33585
33713
  _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
33586
33714
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
33587
33715
  try {
33588
- instance.#cachedJsonLd = structuredClone(json);
33716
+ instance._cachedJsonLd = structuredClone(json);
33589
33717
  }
33590
33718
  catch {
33591
33719
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -33628,7 +33756,6 @@ export class Profile extends Object {
33628
33756
  * properties.
33629
33757
  */
33630
33758
  export class Question extends IntransitiveActivity {
33631
- #cachedJsonLd;
33632
33759
  /**
33633
33760
  * The type URI of {@link Question}: `https://www.w3.org/ns/activitystreams#Question`.
33634
33761
  */
@@ -33824,6 +33951,7 @@ export class Question extends IntransitiveActivity {
33824
33951
  if (fetched == null)
33825
33952
  continue;
33826
33953
  vs[i] = fetched;
33954
+ this._cachedJsonLd = undefined;
33827
33955
  yield fetched;
33828
33956
  continue;
33829
33957
  }
@@ -33878,6 +34006,7 @@ export class Question extends IntransitiveActivity {
33878
34006
  if (fetched == null)
33879
34007
  continue;
33880
34008
  vs[i] = fetched;
34009
+ this._cachedJsonLd = undefined;
33881
34010
  yield fetched;
33882
34011
  continue;
33883
34012
  }
@@ -33927,8 +34056,8 @@ export class Question extends IntransitiveActivity {
33927
34056
  * @returns The JSON-LD representation of this object.
33928
34057
  */
33929
34058
  async toJsonLd(options = {}) {
33930
- if (options.format == null && this.#cachedJsonLd != null) {
33931
- return this.#cachedJsonLd;
34059
+ if (options.format == null && this._cachedJsonLd != null) {
34060
+ return this._cachedJsonLd;
33932
34061
  }
33933
34062
  if (options.format !== "compact" && options.context != null) {
33934
34063
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -34201,7 +34330,7 @@ export class Question extends IntransitiveActivity {
34201
34330
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
34202
34331
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
34203
34332
  try {
34204
- instance.#cachedJsonLd = structuredClone(json);
34333
+ instance._cachedJsonLd = structuredClone(json);
34205
34334
  }
34206
34335
  catch {
34207
34336
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -34289,7 +34418,6 @@ export class Question extends IntransitiveActivity {
34289
34418
  /** Indicates that the `actor` has read the `object`.
34290
34419
  */
34291
34420
  export class Read extends Activity {
34292
- #cachedJsonLd;
34293
34421
  /**
34294
34422
  * The type URI of {@link Read}: `https://www.w3.org/ns/activitystreams#Read`.
34295
34423
  */
@@ -34325,8 +34453,8 @@ export class Read extends Activity {
34325
34453
  * @returns The JSON-LD representation of this object.
34326
34454
  */
34327
34455
  async toJsonLd(options = {}) {
34328
- if (options.format == null && this.#cachedJsonLd != null) {
34329
- return this.#cachedJsonLd;
34456
+ if (options.format == null && this._cachedJsonLd != null) {
34457
+ return this._cachedJsonLd;
34330
34458
  }
34331
34459
  if (options.format !== "compact" && options.context != null) {
34332
34460
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -34424,7 +34552,7 @@ export class Read extends Activity {
34424
34552
  }
34425
34553
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
34426
34554
  try {
34427
- instance.#cachedJsonLd = structuredClone(json);
34555
+ instance._cachedJsonLd = structuredClone(json);
34428
34556
  }
34429
34557
  catch {
34430
34558
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -34449,7 +34577,6 @@ export class Read extends Activity {
34449
34577
  * `origin` typically have no defined meaning.
34450
34578
  */
34451
34579
  export class Reject extends Activity {
34452
- #cachedJsonLd;
34453
34580
  /**
34454
34581
  * The type URI of {@link Reject}: `https://www.w3.org/ns/activitystreams#Reject`.
34455
34582
  */
@@ -34485,8 +34612,8 @@ export class Reject extends Activity {
34485
34612
  * @returns The JSON-LD representation of this object.
34486
34613
  */
34487
34614
  async toJsonLd(options = {}) {
34488
- if (options.format == null && this.#cachedJsonLd != null) {
34489
- return this.#cachedJsonLd;
34615
+ if (options.format == null && this._cachedJsonLd != null) {
34616
+ return this._cachedJsonLd;
34490
34617
  }
34491
34618
  if (options.format !== "compact" && options.context != null) {
34492
34619
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -34587,7 +34714,7 @@ export class Reject extends Activity {
34587
34714
  }
34588
34715
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
34589
34716
  try {
34590
- instance.#cachedJsonLd = structuredClone(json);
34717
+ instance._cachedJsonLd = structuredClone(json);
34591
34718
  }
34592
34719
  catch {
34593
34720
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -34617,7 +34744,6 @@ export class Reject extends Activity {
34617
34744
  * for additional information.
34618
34745
  */
34619
34746
  export class Relationship extends Object {
34620
- #cachedJsonLd;
34621
34747
  /**
34622
34748
  * The type URI of {@link Relationship}: `https://www.w3.org/ns/activitystreams#Relationship`.
34623
34749
  */
@@ -34836,6 +34962,7 @@ export class Relationship extends Object {
34836
34962
  if (fetched == null)
34837
34963
  return null;
34838
34964
  this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject[0] = fetched;
34965
+ this._cachedJsonLd = undefined;
34839
34966
  return fetched;
34840
34967
  }
34841
34968
  return v;
@@ -34891,6 +35018,7 @@ export class Relationship extends Object {
34891
35018
  if (fetched == null)
34892
35019
  return null;
34893
35020
  this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object[0] = fetched;
35021
+ this._cachedJsonLd = undefined;
34894
35022
  return fetched;
34895
35023
  }
34896
35024
  return v;
@@ -34914,6 +35042,7 @@ export class Relationship extends Object {
34914
35042
  if (fetched == null)
34915
35043
  continue;
34916
35044
  vs[i] = fetched;
35045
+ this._cachedJsonLd = undefined;
34917
35046
  yield fetched;
34918
35047
  continue;
34919
35048
  }
@@ -34975,6 +35104,7 @@ export class Relationship extends Object {
34975
35104
  if (fetched == null)
34976
35105
  return null;
34977
35106
  this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship[0] = fetched;
35107
+ this._cachedJsonLd = undefined;
34978
35108
  return fetched;
34979
35109
  }
34980
35110
  return v;
@@ -35000,6 +35130,7 @@ export class Relationship extends Object {
35000
35130
  if (fetched == null)
35001
35131
  continue;
35002
35132
  vs[i] = fetched;
35133
+ this._cachedJsonLd = undefined;
35003
35134
  yield fetched;
35004
35135
  continue;
35005
35136
  }
@@ -35017,8 +35148,8 @@ export class Relationship extends Object {
35017
35148
  * @returns The JSON-LD representation of this object.
35018
35149
  */
35019
35150
  async toJsonLd(options = {}) {
35020
- if (options.format == null && this.#cachedJsonLd != null) {
35021
- return this.#cachedJsonLd;
35151
+ if (options.format == null && this._cachedJsonLd != null) {
35152
+ return this._cachedJsonLd;
35022
35153
  }
35023
35154
  if (options.format !== "compact" && options.context != null) {
35024
35155
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -35270,7 +35401,7 @@ export class Relationship extends Object {
35270
35401
  _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
35271
35402
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
35272
35403
  try {
35273
- instance.#cachedJsonLd = structuredClone(json);
35404
+ instance._cachedJsonLd = structuredClone(json);
35274
35405
  }
35275
35406
  catch {
35276
35407
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -35341,7 +35472,6 @@ export class Relationship extends Object {
35341
35472
  * the `origin` indicates the context from which the `object` is being removed.
35342
35473
  */
35343
35474
  export class Remove extends Activity {
35344
- #cachedJsonLd;
35345
35475
  /**
35346
35476
  * The type URI of {@link Remove}: `https://www.w3.org/ns/activitystreams#Remove`.
35347
35477
  */
@@ -35377,8 +35507,8 @@ export class Remove extends Activity {
35377
35507
  * @returns The JSON-LD representation of this object.
35378
35508
  */
35379
35509
  async toJsonLd(options = {}) {
35380
- if (options.format == null && this.#cachedJsonLd != null) {
35381
- return this.#cachedJsonLd;
35510
+ if (options.format == null && this._cachedJsonLd != null) {
35511
+ return this._cachedJsonLd;
35382
35512
  }
35383
35513
  if (options.format !== "compact" && options.context != null) {
35384
35514
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -35476,7 +35606,7 @@ export class Remove extends Activity {
35476
35606
  }
35477
35607
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
35478
35608
  try {
35479
- instance.#cachedJsonLd = structuredClone(json);
35609
+ instance._cachedJsonLd = structuredClone(json);
35480
35610
  }
35481
35611
  catch {
35482
35612
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -35500,7 +35630,6 @@ export class Remove extends Activity {
35500
35630
  /** Represents a service of any kind.
35501
35631
  */
35502
35632
  export class Service extends Object {
35503
- #cachedJsonLd;
35504
35633
  /**
35505
35634
  * The type URI of {@link Service}: `https://www.w3.org/ns/activitystreams#Service`.
35506
35635
  */
@@ -36325,6 +36454,7 @@ export class Service extends Object {
36325
36454
  if (fetched == null)
36326
36455
  return null;
36327
36456
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
36457
+ this._cachedJsonLd = undefined;
36328
36458
  return fetched;
36329
36459
  }
36330
36460
  return v;
@@ -36348,6 +36478,7 @@ export class Service extends Object {
36348
36478
  if (fetched == null)
36349
36479
  continue;
36350
36480
  vs[i] = fetched;
36481
+ this._cachedJsonLd = undefined;
36351
36482
  yield fetched;
36352
36483
  continue;
36353
36484
  }
@@ -36410,6 +36541,7 @@ export class Service extends Object {
36410
36541
  if (fetched == null)
36411
36542
  return null;
36412
36543
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
36544
+ this._cachedJsonLd = undefined;
36413
36545
  return fetched;
36414
36546
  }
36415
36547
  return v;
@@ -36436,6 +36568,7 @@ export class Service extends Object {
36436
36568
  if (fetched == null)
36437
36569
  continue;
36438
36570
  vs[i] = fetched;
36571
+ this._cachedJsonLd = undefined;
36439
36572
  yield fetched;
36440
36573
  continue;
36441
36574
  }
@@ -36527,6 +36660,7 @@ export class Service extends Object {
36527
36660
  if (fetched == null)
36528
36661
  return null;
36529
36662
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
36663
+ this._cachedJsonLd = undefined;
36530
36664
  return fetched;
36531
36665
  }
36532
36666
  return v;
@@ -36601,6 +36735,7 @@ export class Service extends Object {
36601
36735
  if (fetched == null)
36602
36736
  return null;
36603
36737
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
36738
+ this._cachedJsonLd = undefined;
36604
36739
  return fetched;
36605
36740
  }
36606
36741
  return v;
@@ -36660,6 +36795,7 @@ export class Service extends Object {
36660
36795
  if (fetched == null)
36661
36796
  return null;
36662
36797
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
36798
+ this._cachedJsonLd = undefined;
36663
36799
  return fetched;
36664
36800
  }
36665
36801
  return v;
@@ -36722,6 +36858,7 @@ export class Service extends Object {
36722
36858
  if (fetched == null)
36723
36859
  return null;
36724
36860
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
36861
+ this._cachedJsonLd = undefined;
36725
36862
  return fetched;
36726
36863
  }
36727
36864
  return v;
@@ -36782,6 +36919,7 @@ export class Service extends Object {
36782
36919
  if (fetched == null)
36783
36920
  return null;
36784
36921
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
36922
+ this._cachedJsonLd = undefined;
36785
36923
  return fetched;
36786
36924
  }
36787
36925
  return v;
@@ -36840,6 +36978,7 @@ export class Service extends Object {
36840
36978
  if (fetched == null)
36841
36979
  return null;
36842
36980
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
36981
+ this._cachedJsonLd = undefined;
36843
36982
  return fetched;
36844
36983
  }
36845
36984
  return v;
@@ -36900,6 +37039,7 @@ export class Service extends Object {
36900
37039
  if (fetched == null)
36901
37040
  return null;
36902
37041
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
37042
+ this._cachedJsonLd = undefined;
36903
37043
  return fetched;
36904
37044
  }
36905
37045
  return v;
@@ -36950,6 +37090,7 @@ export class Service extends Object {
36950
37090
  if (fetched == null)
36951
37091
  continue;
36952
37092
  vs[i] = fetched;
37093
+ this._cachedJsonLd = undefined;
36953
37094
  yield fetched;
36954
37095
  continue;
36955
37096
  }
@@ -37083,6 +37224,7 @@ export class Service extends Object {
37083
37224
  if (fetched == null)
37084
37225
  return null;
37085
37226
  this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo[0] = fetched;
37227
+ this._cachedJsonLd = undefined;
37086
37228
  return fetched;
37087
37229
  }
37088
37230
  return v;
@@ -37175,6 +37317,7 @@ export class Service extends Object {
37175
37317
  if (fetched == null)
37176
37318
  return null;
37177
37319
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
37320
+ this._cachedJsonLd = undefined;
37178
37321
  return fetched;
37179
37322
  }
37180
37323
  return v;
@@ -37201,6 +37344,7 @@ export class Service extends Object {
37201
37344
  if (fetched == null)
37202
37345
  continue;
37203
37346
  vs[i] = fetched;
37347
+ this._cachedJsonLd = undefined;
37204
37348
  yield fetched;
37205
37349
  continue;
37206
37350
  }
@@ -37261,6 +37405,7 @@ export class Service extends Object {
37261
37405
  if (fetched == null)
37262
37406
  return null;
37263
37407
  this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service[0] = fetched;
37408
+ this._cachedJsonLd = undefined;
37264
37409
  return fetched;
37265
37410
  }
37266
37411
  return v;
@@ -37287,6 +37432,7 @@ export class Service extends Object {
37287
37432
  if (fetched == null)
37288
37433
  continue;
37289
37434
  vs[i] = fetched;
37435
+ this._cachedJsonLd = undefined;
37290
37436
  yield fetched;
37291
37437
  continue;
37292
37438
  }
@@ -37321,8 +37467,8 @@ export class Service extends Object {
37321
37467
  * @returns The JSON-LD representation of this object.
37322
37468
  */
37323
37469
  async toJsonLd(options = {}) {
37324
- if (options.format == null && this.#cachedJsonLd != null) {
37325
- return this.#cachedJsonLd;
37470
+ if (options.format == null && this._cachedJsonLd != null) {
37471
+ return this._cachedJsonLd;
37326
37472
  }
37327
37473
  if (options.format !== "compact" && options.context != null) {
37328
37474
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -38560,7 +38706,7 @@ export class Service extends Object {
38560
38706
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
38561
38707
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
38562
38708
  try {
38563
- instance.#cachedJsonLd = structuredClone(json);
38709
+ instance._cachedJsonLd = structuredClone(json);
38564
38710
  }
38565
38711
  catch {
38566
38712
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -38882,6 +39028,7 @@ _h = Service;
38882
39028
  export class Source {
38883
39029
  #documentLoader;
38884
39030
  #contextLoader;
39031
+ #cachedJsonLd;
38885
39032
  id;
38886
39033
  get _documentLoader() {
38887
39034
  return this.#documentLoader;
@@ -38889,7 +39036,12 @@ export class Source {
38889
39036
  get _contextLoader() {
38890
39037
  return this.#contextLoader;
38891
39038
  }
38892
- #cachedJsonLd;
39039
+ get _cachedJsonLd() {
39040
+ return this.#cachedJsonLd;
39041
+ }
39042
+ set _cachedJsonLd(value) {
39043
+ this.#cachedJsonLd = value;
39044
+ }
38893
39045
  /**
38894
39046
  * The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
38895
39047
  */
@@ -39032,8 +39184,8 @@ export class Source {
39032
39184
  * @returns The JSON-LD representation of this object.
39033
39185
  */
39034
39186
  async toJsonLd(options = {}) {
39035
- if (options.format == null && this.#cachedJsonLd != null) {
39036
- return this.#cachedJsonLd;
39187
+ if (options.format == null && this._cachedJsonLd != null) {
39188
+ return this._cachedJsonLd;
39037
39189
  }
39038
39190
  if (options.format !== "compact" && options.context != null) {
39039
39191
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -39198,7 +39350,7 @@ export class Source {
39198
39350
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
39199
39351
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
39200
39352
  try {
39201
- instance.#cachedJsonLd = structuredClone(json);
39353
+ instance._cachedJsonLd = structuredClone(json);
39202
39354
  }
39203
39355
  catch {
39204
39356
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -39258,7 +39410,6 @@ export class Source {
39258
39410
  * the acceptance is tentative.
39259
39411
  */
39260
39412
  export class TentativeAccept extends Accept {
39261
- #cachedJsonLd;
39262
39413
  /**
39263
39414
  * The type URI of {@link TentativeAccept}: `https://www.w3.org/ns/activitystreams#TentativeAccept`.
39264
39415
  */
@@ -39294,8 +39445,8 @@ export class TentativeAccept extends Accept {
39294
39445
  * @returns The JSON-LD representation of this object.
39295
39446
  */
39296
39447
  async toJsonLd(options = {}) {
39297
- if (options.format == null && this.#cachedJsonLd != null) {
39298
- return this.#cachedJsonLd;
39448
+ if (options.format == null && this._cachedJsonLd != null) {
39449
+ return this._cachedJsonLd;
39299
39450
  }
39300
39451
  if (options.format !== "compact" && options.context != null) {
39301
39452
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -39393,7 +39544,7 @@ export class TentativeAccept extends Accept {
39393
39544
  }
39394
39545
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
39395
39546
  try {
39396
- instance.#cachedJsonLd = structuredClone(json);
39547
+ instance._cachedJsonLd = structuredClone(json);
39397
39548
  }
39398
39549
  catch {
39399
39550
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -39418,7 +39569,6 @@ export class TentativeAccept extends Accept {
39418
39569
  * the rejection is considered tentative.
39419
39570
  */
39420
39571
  export class TentativeReject extends Reject {
39421
- #cachedJsonLd;
39422
39572
  /**
39423
39573
  * The type URI of {@link TentativeReject}: `https://www.w3.org/ns/activitystreams#TentativeReject`.
39424
39574
  */
@@ -39454,8 +39604,8 @@ export class TentativeReject extends Reject {
39454
39604
  * @returns The JSON-LD representation of this object.
39455
39605
  */
39456
39606
  async toJsonLd(options = {}) {
39457
- if (options.format == null && this.#cachedJsonLd != null) {
39458
- return this.#cachedJsonLd;
39607
+ if (options.format == null && this._cachedJsonLd != null) {
39608
+ return this._cachedJsonLd;
39459
39609
  }
39460
39610
  if (options.format !== "compact" && options.context != null) {
39461
39611
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -39553,7 +39703,7 @@ export class TentativeReject extends Reject {
39553
39703
  }
39554
39704
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
39555
39705
  try {
39556
- instance.#cachedJsonLd = structuredClone(json);
39706
+ instance._cachedJsonLd = structuredClone(json);
39557
39707
  }
39558
39708
  catch {
39559
39709
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -39579,7 +39729,6 @@ export class TentativeReject extends Reject {
39579
39729
  * an object at this position, but it has been deleted.
39580
39730
  */
39581
39731
  export class Tombstone extends Object {
39582
- #cachedJsonLd;
39583
39732
  /**
39584
39733
  * The type URI of {@link Tombstone}: `https://www.w3.org/ns/activitystreams#Tombstone`.
39585
39734
  */
@@ -39646,8 +39795,8 @@ export class Tombstone extends Object {
39646
39795
  * @returns The JSON-LD representation of this object.
39647
39796
  */
39648
39797
  async toJsonLd(options = {}) {
39649
- if (options.format == null && this.#cachedJsonLd != null) {
39650
- return this.#cachedJsonLd;
39798
+ if (options.format == null && this._cachedJsonLd != null) {
39799
+ return this._cachedJsonLd;
39651
39800
  }
39652
39801
  if (options.format !== "compact" && options.context != null) {
39653
39802
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -39797,7 +39946,7 @@ export class Tombstone extends Object {
39797
39946
  _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
39798
39947
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
39799
39948
  try {
39800
- instance.#cachedJsonLd = structuredClone(json);
39949
+ instance._cachedJsonLd = structuredClone(json);
39801
39950
  }
39802
39951
  catch {
39803
39952
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -39836,7 +39985,6 @@ export class Tombstone extends Object {
39836
39985
  * either can be determined by context.
39837
39986
  */
39838
39987
  export class Travel extends IntransitiveActivity {
39839
- #cachedJsonLd;
39840
39988
  /**
39841
39989
  * The type URI of {@link Travel}: `https://www.w3.org/ns/activitystreams#Travel`.
39842
39990
  */
@@ -39872,8 +40020,8 @@ export class Travel extends IntransitiveActivity {
39872
40020
  * @returns The JSON-LD representation of this object.
39873
40021
  */
39874
40022
  async toJsonLd(options = {}) {
39875
- if (options.format == null && this.#cachedJsonLd != null) {
39876
- return this.#cachedJsonLd;
40023
+ if (options.format == null && this._cachedJsonLd != null) {
40024
+ return this._cachedJsonLd;
39877
40025
  }
39878
40026
  if (options.format !== "compact" && options.context != null) {
39879
40027
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -39971,7 +40119,7 @@ export class Travel extends IntransitiveActivity {
39971
40119
  }
39972
40120
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
39973
40121
  try {
39974
- instance.#cachedJsonLd = structuredClone(json);
40122
+ instance._cachedJsonLd = structuredClone(json);
39975
40123
  }
39976
40124
  catch {
39977
40125
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40001,7 +40149,6 @@ export class Travel extends IntransitiveActivity {
40001
40149
  * The `target` and `origin` typically have no defined meaning.
40002
40150
  */
40003
40151
  export class Undo extends Activity {
40004
- #cachedJsonLd;
40005
40152
  /**
40006
40153
  * The type URI of {@link Undo}: `https://www.w3.org/ns/activitystreams#Undo`.
40007
40154
  */
@@ -40037,8 +40184,8 @@ export class Undo extends Activity {
40037
40184
  * @returns The JSON-LD representation of this object.
40038
40185
  */
40039
40186
  async toJsonLd(options = {}) {
40040
- if (options.format == null && this.#cachedJsonLd != null) {
40041
- return this.#cachedJsonLd;
40187
+ if (options.format == null && this._cachedJsonLd != null) {
40188
+ return this._cachedJsonLd;
40042
40189
  }
40043
40190
  if (options.format !== "compact" && options.context != null) {
40044
40191
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -40136,7 +40283,7 @@ export class Undo extends Activity {
40136
40283
  }
40137
40284
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
40138
40285
  try {
40139
- instance.#cachedJsonLd = structuredClone(json);
40286
+ instance._cachedJsonLd = structuredClone(json);
40140
40287
  }
40141
40288
  catch {
40142
40289
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40164,7 +40311,6 @@ export class Undo extends Activity {
40164
40311
  * The `target` and `origin` typically have no defined meaning.
40165
40312
  */
40166
40313
  export class Update extends Activity {
40167
- #cachedJsonLd;
40168
40314
  /**
40169
40315
  * The type URI of {@link Update}: `https://www.w3.org/ns/activitystreams#Update`.
40170
40316
  */
@@ -40200,8 +40346,8 @@ export class Update extends Activity {
40200
40346
  * @returns The JSON-LD representation of this object.
40201
40347
  */
40202
40348
  async toJsonLd(options = {}) {
40203
- if (options.format == null && this.#cachedJsonLd != null) {
40204
- return this.#cachedJsonLd;
40349
+ if (options.format == null && this._cachedJsonLd != null) {
40350
+ return this._cachedJsonLd;
40205
40351
  }
40206
40352
  if (options.format !== "compact" && options.context != null) {
40207
40353
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -40326,7 +40472,7 @@ export class Update extends Activity {
40326
40472
  }
40327
40473
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
40328
40474
  try {
40329
- instance.#cachedJsonLd = structuredClone(json);
40475
+ instance._cachedJsonLd = structuredClone(json);
40330
40476
  }
40331
40477
  catch {
40332
40478
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40350,7 +40496,6 @@ export class Update extends Activity {
40350
40496
  /** Represents a video document of any kind.
40351
40497
  */
40352
40498
  export class Video extends Document {
40353
- #cachedJsonLd;
40354
40499
  /**
40355
40500
  * The type URI of {@link Video}: `https://www.w3.org/ns/activitystreams#Video`.
40356
40501
  */
@@ -40386,8 +40531,8 @@ export class Video extends Document {
40386
40531
  * @returns The JSON-LD representation of this object.
40387
40532
  */
40388
40533
  async toJsonLd(options = {}) {
40389
- if (options.format == null && this.#cachedJsonLd != null) {
40390
- return this.#cachedJsonLd;
40534
+ if (options.format == null && this._cachedJsonLd != null) {
40535
+ return this._cachedJsonLd;
40391
40536
  }
40392
40537
  if (options.format !== "compact" && options.context != null) {
40393
40538
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -40501,7 +40646,7 @@ export class Video extends Document {
40501
40646
  }
40502
40647
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
40503
40648
  try {
40504
- instance.#cachedJsonLd = structuredClone(json);
40649
+ instance._cachedJsonLd = structuredClone(json);
40505
40650
  }
40506
40651
  catch {
40507
40652
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -40525,7 +40670,6 @@ export class Video extends Document {
40525
40670
  /** Indicates that the `actor` has viewed the object.
40526
40671
  */
40527
40672
  export class View extends Activity {
40528
- #cachedJsonLd;
40529
40673
  /**
40530
40674
  * The type URI of {@link View}: `https://www.w3.org/ns/activitystreams#View`.
40531
40675
  */
@@ -40561,8 +40705,8 @@ export class View extends Activity {
40561
40705
  * @returns The JSON-LD representation of this object.
40562
40706
  */
40563
40707
  async toJsonLd(options = {}) {
40564
- if (options.format == null && this.#cachedJsonLd != null) {
40565
- return this.#cachedJsonLd;
40708
+ if (options.format == null && this._cachedJsonLd != null) {
40709
+ return this._cachedJsonLd;
40566
40710
  }
40567
40711
  if (options.format !== "compact" && options.context != null) {
40568
40712
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -40660,7 +40804,7 @@ export class View extends Activity {
40660
40804
  }
40661
40805
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
40662
40806
  try {
40663
- instance.#cachedJsonLd = structuredClone(json);
40807
+ instance._cachedJsonLd = structuredClone(json);
40664
40808
  }
40665
40809
  catch {
40666
40810
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });