@fedify/vocab 2.3.0-pr.809.39 → 2.4.0-dev.1417

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mod.cjs CHANGED
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
33
33
  let es_toolkit = require("es-toolkit");
34
34
  //#region deno.json
35
35
  var name = "@fedify/vocab";
36
- var version = "2.3.0-pr.809.39+f65f60c0";
36
+ var version = "2.4.0-dev.1417+43d75b89";
37
37
  //#endregion
38
38
  //#region src/type.ts
39
39
  function getTypeId(object) {
@@ -735,7 +735,7 @@ var Object$1 = class Object$1 {
735
735
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
736
736
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
737
737
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
738
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
738
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
739
739
  let fetchResult;
740
740
  try {
741
741
  fetchResult = await documentLoader(url.href);
@@ -884,7 +884,7 @@ var Object$1 = class Object$1 {
884
884
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
885
885
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
886
886
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
887
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
887
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
888
888
  let fetchResult;
889
889
  try {
890
890
  fetchResult = await documentLoader(url.href);
@@ -1102,7 +1102,7 @@ var Object$1 = class Object$1 {
1102
1102
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1103
1103
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1104
1104
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1105
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1105
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1106
1106
  let fetchResult;
1107
1107
  try {
1108
1108
  fetchResult = await documentLoader(url.href);
@@ -1292,7 +1292,7 @@ var Object$1 = class Object$1 {
1292
1292
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1293
1293
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1294
1294
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1295
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1295
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1296
1296
  let fetchResult;
1297
1297
  try {
1298
1298
  fetchResult = await documentLoader(url.href);
@@ -1457,7 +1457,7 @@ var Object$1 = class Object$1 {
1457
1457
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1458
1458
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1459
1459
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1460
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1460
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1461
1461
  let fetchResult;
1462
1462
  try {
1463
1463
  fetchResult = await documentLoader(url.href);
@@ -1590,7 +1590,7 @@ var Object$1 = class Object$1 {
1590
1590
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1591
1591
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1592
1592
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1593
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1593
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1594
1594
  let fetchResult;
1595
1595
  try {
1596
1596
  fetchResult = await documentLoader(url.href);
@@ -1778,7 +1778,7 @@ var Object$1 = class Object$1 {
1778
1778
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1779
1779
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1780
1780
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1781
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1781
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1782
1782
  let fetchResult;
1783
1783
  try {
1784
1784
  fetchResult = await documentLoader(url.href);
@@ -1966,7 +1966,7 @@ var Object$1 = class Object$1 {
1966
1966
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1967
1967
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
1968
1968
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
1969
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1969
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
1970
1970
  let fetchResult;
1971
1971
  try {
1972
1972
  fetchResult = await documentLoader(url.href);
@@ -2146,7 +2146,7 @@ var Object$1 = class Object$1 {
2146
2146
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2147
2147
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2148
2148
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2149
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2149
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2150
2150
  let fetchResult;
2151
2151
  try {
2152
2152
  fetchResult = await documentLoader(url.href);
@@ -2326,7 +2326,7 @@ var Object$1 = class Object$1 {
2326
2326
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2327
2327
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2328
2328
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2329
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2329
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2330
2330
  let fetchResult;
2331
2331
  try {
2332
2332
  fetchResult = await documentLoader(url.href);
@@ -2511,7 +2511,7 @@ var Object$1 = class Object$1 {
2511
2511
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2512
2512
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2513
2513
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2514
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2514
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2515
2515
  let fetchResult;
2516
2516
  try {
2517
2517
  fetchResult = await documentLoader(url.href);
@@ -2635,7 +2635,7 @@ var Object$1 = class Object$1 {
2635
2635
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2636
2636
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2637
2637
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2638
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2638
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2639
2639
  let fetchResult;
2640
2640
  try {
2641
2641
  fetchResult = await documentLoader(url.href);
@@ -2765,7 +2765,7 @@ var Object$1 = class Object$1 {
2765
2765
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2766
2766
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2767
2767
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2768
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2768
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2769
2769
  let fetchResult;
2770
2770
  try {
2771
2771
  fetchResult = await documentLoader(url.href);
@@ -2895,7 +2895,7 @@ var Object$1 = class Object$1 {
2895
2895
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2896
2896
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
2897
2897
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
2898
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2898
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
2899
2899
  let fetchResult;
2900
2900
  try {
2901
2901
  fetchResult = await documentLoader(url.href);
@@ -3043,7 +3043,7 @@ var Object$1 = class Object$1 {
3043
3043
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3044
3044
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3045
3045
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3046
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3046
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3047
3047
  let fetchResult;
3048
3048
  try {
3049
3049
  fetchResult = await documentLoader(url.href);
@@ -3198,7 +3198,7 @@ var Object$1 = class Object$1 {
3198
3198
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3199
3199
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3200
3200
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3201
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3201
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3202
3202
  let fetchResult;
3203
3203
  try {
3204
3204
  fetchResult = await documentLoader(url.href);
@@ -3368,7 +3368,7 @@ var Object$1 = class Object$1 {
3368
3368
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3369
3369
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3370
3370
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3371
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3371
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3372
3372
  let fetchResult;
3373
3373
  try {
3374
3374
  fetchResult = await documentLoader(url.href);
@@ -3538,7 +3538,7 @@ var Object$1 = class Object$1 {
3538
3538
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3539
3539
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3540
3540
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3541
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3541
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3542
3542
  let fetchResult;
3543
3543
  try {
3544
3544
  fetchResult = await documentLoader(url.href);
@@ -3708,7 +3708,7 @@ var Object$1 = class Object$1 {
3708
3708
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3709
3709
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3710
3710
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3711
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3711
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3712
3712
  let fetchResult;
3713
3713
  try {
3714
3714
  fetchResult = await documentLoader(url.href);
@@ -3915,7 +3915,7 @@ var Object$1 = class Object$1 {
3915
3915
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3916
3916
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
3917
3917
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
3918
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3918
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
3919
3919
  let fetchResult;
3920
3920
  try {
3921
3921
  fetchResult = await documentLoader(url.href);
@@ -4108,7 +4108,7 @@ var Object$1 = class Object$1 {
4108
4108
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4109
4109
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4110
4110
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
4111
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4111
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4112
4112
  let fetchResult;
4113
4113
  try {
4114
4114
  fetchResult = await documentLoader(url.href);
@@ -4232,7 +4232,7 @@ var Object$1 = class Object$1 {
4232
4232
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4233
4233
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4234
4234
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
4235
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4235
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4236
4236
  let fetchResult;
4237
4237
  try {
4238
4238
  fetchResult = await documentLoader(url.href);
@@ -4356,7 +4356,7 @@ var Object$1 = class Object$1 {
4356
4356
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4357
4357
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
4358
4358
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
4359
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4359
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
4360
4360
  let fetchResult;
4361
4361
  try {
4362
4362
  fetchResult = await documentLoader(url.href);
@@ -5186,7 +5186,7 @@ var Object$1 = class Object$1 {
5186
5186
  * @throws {TypeError} If the given `json` is invalid.
5187
5187
  */
5188
5188
  static async fromJsonLd(json, options = {}) {
5189
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
5189
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
5190
5190
  try {
5191
5191
  const object = await this.__fromJsonLd__Object__(json, span, options);
5192
5192
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -5230,6 +5230,7 @@ var Object$1 = class Object$1 {
5230
5230
  if (values["@type"].includes("https://gotosocial.org/ns#LikeApproval")) return await LikeAuthorization.fromJsonLd(json, options);
5231
5231
  if (values["@type"].includes("https://gotosocial.org/ns#ReplyAuthorization")) return await ReplyAuthorization.fromJsonLd(json, options);
5232
5232
  if (values["@type"].includes("https://w3id.org/fep/044f#QuoteAuthorization")) return await QuoteAuthorization.fromJsonLd(json, options);
5233
+ if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) return await Agreement.fromJsonLd(json, options);
5233
5234
  if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Proposal")) return await Proposal.fromJsonLd(json, options);
5234
5235
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Activity")) return await Activity.fromJsonLd(json, options);
5235
5236
  if (values["@type"].includes("http://litepub.social/ns#EmojiReact")) return await EmojiReact.fromJsonLd(json, options);
@@ -5307,6 +5308,7 @@ var Object$1 = class Object$1 {
5307
5308
  "https://gotosocial.org/ns#LikeApproval",
5308
5309
  "https://gotosocial.org/ns#ReplyAuthorization",
5309
5310
  "https://w3id.org/fep/044f#QuoteAuthorization",
5311
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5310
5312
  "https://w3id.org/valueflows/ont/vf#Proposal",
5311
5313
  "https://www.w3.org/ns/activitystreams#Activity",
5312
5314
  "http://litepub.social/ns#EmojiReact",
@@ -5454,6 +5456,7 @@ var Object$1 = class Object$1 {
5454
5456
  "https://gotosocial.org/ns#LikeApproval",
5455
5457
  "https://gotosocial.org/ns#ReplyAuthorization",
5456
5458
  "https://w3id.org/fep/044f#QuoteAuthorization",
5459
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5457
5460
  "https://w3id.org/valueflows/ont/vf#Proposal",
5458
5461
  "https://www.w3.org/ns/activitystreams#Activity",
5459
5462
  "http://litepub.social/ns#EmojiReact",
@@ -5561,6 +5564,7 @@ var Object$1 = class Object$1 {
5561
5564
  "https://gotosocial.org/ns#LikeApproval",
5562
5565
  "https://gotosocial.org/ns#ReplyAuthorization",
5563
5566
  "https://w3id.org/fep/044f#QuoteAuthorization",
5567
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5564
5568
  "https://w3id.org/valueflows/ont/vf#Proposal",
5565
5569
  "https://www.w3.org/ns/activitystreams#Activity",
5566
5570
  "http://litepub.social/ns#EmojiReact",
@@ -5718,6 +5722,7 @@ var Object$1 = class Object$1 {
5718
5722
  "https://gotosocial.org/ns#LikeApproval",
5719
5723
  "https://gotosocial.org/ns#ReplyAuthorization",
5720
5724
  "https://w3id.org/fep/044f#QuoteAuthorization",
5725
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5721
5726
  "https://w3id.org/valueflows/ont/vf#Proposal",
5722
5727
  "https://www.w3.org/ns/activitystreams#Activity",
5723
5728
  "http://litepub.social/ns#EmojiReact",
@@ -5807,6 +5812,7 @@ var Object$1 = class Object$1 {
5807
5812
  "https://gotosocial.org/ns#LikeApproval",
5808
5813
  "https://gotosocial.org/ns#ReplyAuthorization",
5809
5814
  "https://w3id.org/fep/044f#QuoteAuthorization",
5815
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5810
5816
  "https://w3id.org/valueflows/ont/vf#Proposal",
5811
5817
  "https://www.w3.org/ns/activitystreams#Activity",
5812
5818
  "http://litepub.social/ns#EmojiReact",
@@ -5903,6 +5909,7 @@ var Object$1 = class Object$1 {
5903
5909
  "https://gotosocial.org/ns#LikeApproval",
5904
5910
  "https://gotosocial.org/ns#ReplyAuthorization",
5905
5911
  "https://w3id.org/fep/044f#QuoteAuthorization",
5912
+ "https://w3id.org/valueflows/ont/vf#Agreement",
5906
5913
  "https://w3id.org/valueflows/ont/vf#Proposal",
5907
5914
  "https://www.w3.org/ns/activitystreams#Activity",
5908
5915
  "http://litepub.social/ns#EmojiReact",
@@ -6080,6 +6087,7 @@ var Object$1 = class Object$1 {
6080
6087
  "https://gotosocial.org/ns#LikeApproval",
6081
6088
  "https://gotosocial.org/ns#ReplyAuthorization",
6082
6089
  "https://w3id.org/fep/044f#QuoteAuthorization",
6090
+ "https://w3id.org/valueflows/ont/vf#Agreement",
6083
6091
  "https://w3id.org/valueflows/ont/vf#Proposal",
6084
6092
  "https://www.w3.org/ns/activitystreams#Activity",
6085
6093
  "http://litepub.social/ns#EmojiReact",
@@ -6694,7 +6702,7 @@ var Emoji = class Emoji extends Object$1 {
6694
6702
  * @throws {TypeError} If the given `json` is invalid.
6695
6703
  */
6696
6704
  static async fromJsonLd(json, options = {}) {
6697
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
6705
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
6698
6706
  try {
6699
6707
  const object = await this.__fromJsonLd__Emoji__(json, span, options);
6700
6708
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -6829,7 +6837,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
6829
6837
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
6830
6838
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
6831
6839
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
6832
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
6840
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
6833
6841
  let fetchResult;
6834
6842
  try {
6835
6843
  fetchResult = await documentLoader(url.href);
@@ -6970,7 +6978,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
6970
6978
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
6971
6979
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
6972
6980
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
6973
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
6981
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
6974
6982
  let fetchResult;
6975
6983
  try {
6976
6984
  fetchResult = await documentLoader(url.href);
@@ -7257,7 +7265,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
7257
7265
  * @throws {TypeError} If the given `json` is invalid.
7258
7266
  */
7259
7267
  static async fromJsonLd(json, options = {}) {
7260
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
7268
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
7261
7269
  try {
7262
7270
  const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
7263
7271
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -7585,7 +7593,7 @@ var Activity = class Activity extends Object$1 {
7585
7593
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7586
7594
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7587
7595
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
7588
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7596
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7589
7597
  let fetchResult;
7590
7598
  try {
7591
7599
  fetchResult = await documentLoader(url.href);
@@ -7803,7 +7811,7 @@ var Activity = class Activity extends Object$1 {
7803
7811
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7804
7812
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7805
7813
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
7806
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7814
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7807
7815
  let fetchResult;
7808
7816
  try {
7809
7817
  fetchResult = await documentLoader(url.href);
@@ -7975,7 +7983,7 @@ var Activity = class Activity extends Object$1 {
7975
7983
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7976
7984
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
7977
7985
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
7978
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7986
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
7979
7987
  let fetchResult;
7980
7988
  try {
7981
7989
  fetchResult = await documentLoader(url.href);
@@ -8153,7 +8161,7 @@ var Activity = class Activity extends Object$1 {
8153
8161
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8154
8162
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8155
8163
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
8156
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8164
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8157
8165
  let fetchResult;
8158
8166
  try {
8159
8167
  fetchResult = await documentLoader(url.href);
@@ -8325,7 +8333,7 @@ var Activity = class Activity extends Object$1 {
8325
8333
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8326
8334
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8327
8335
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
8328
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8336
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8329
8337
  let fetchResult;
8330
8338
  try {
8331
8339
  fetchResult = await documentLoader(url.href);
@@ -8499,7 +8507,7 @@ var Activity = class Activity extends Object$1 {
8499
8507
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8500
8508
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
8501
8509
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
8502
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8510
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
8503
8511
  let fetchResult;
8504
8512
  try {
8505
8513
  fetchResult = await documentLoader(url.href);
@@ -8756,7 +8764,7 @@ var Activity = class Activity extends Object$1 {
8756
8764
  * @throws {TypeError} If the given `json` is invalid.
8757
8765
  */
8758
8766
  static async fromJsonLd(json, options = {}) {
8759
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
8767
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
8760
8768
  try {
8761
8769
  const object = await this.__fromJsonLd__Activity__(json, span, options);
8762
8770
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -9096,7 +9104,7 @@ var EmojiReact = class EmojiReact extends Activity {
9096
9104
  * @throws {TypeError} If the given `json` is invalid.
9097
9105
  */
9098
9106
  static async fromJsonLd(json, options = {}) {
9099
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
9107
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
9100
9108
  try {
9101
9109
  const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
9102
9110
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -9349,7 +9357,7 @@ var PropertyValue = class {
9349
9357
  * @throws {TypeError} If the given `json` is invalid.
9350
9358
  */
9351
9359
  static async fromJsonLd(json, options = {}) {
9352
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
9360
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
9353
9361
  try {
9354
9362
  const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
9355
9363
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -9621,7 +9629,7 @@ var Measure = class {
9621
9629
  * @throws {TypeError} If the given `json` is invalid.
9622
9630
  */
9623
9631
  static async fromJsonLd(json, options = {}) {
9624
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
9632
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
9625
9633
  try {
9626
9634
  const object = await this.__fromJsonLd__Measure__(json, span, options);
9627
9635
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -9782,7 +9790,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
9782
9790
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
9783
9791
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
9784
9792
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
9785
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
9793
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
9786
9794
  let fetchResult;
9787
9795
  try {
9788
9796
  fetchResult = await documentLoader(url.href);
@@ -9906,7 +9914,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
9906
9914
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
9907
9915
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
9908
9916
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
9909
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
9917
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
9910
9918
  let fetchResult;
9911
9919
  try {
9912
9920
  fetchResult = await documentLoader(url.href);
@@ -10125,7 +10133,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10125
10133
  * @throws {TypeError} If the given `json` is invalid.
10126
10134
  */
10127
10135
  static async fromJsonLd(json, options = {}) {
10128
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
10136
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
10129
10137
  try {
10130
10138
  const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
10131
10139
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -10329,7 +10337,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
10329
10337
  * @throws {TypeError} If the given `json` is invalid.
10330
10338
  */
10331
10339
  static async fromJsonLd(json, options = {}) {
10332
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
10340
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
10333
10341
  try {
10334
10342
  const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
10335
10343
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -10600,7 +10608,7 @@ var InteractionPolicy = class {
10600
10608
  * @throws {TypeError} If the given `json` is invalid.
10601
10609
  */
10602
10610
  static async fromJsonLd(json, options = {}) {
10603
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
10611
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
10604
10612
  try {
10605
10613
  const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
10606
10614
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -10932,7 +10940,7 @@ var InteractionRule = class {
10932
10940
  * @throws {TypeError} If the given `json` is invalid.
10933
10941
  */
10934
10942
  static async fromJsonLd(json, options = {}) {
10935
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
10943
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
10936
10944
  try {
10937
10945
  const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
10938
10946
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -11094,7 +11102,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11094
11102
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11095
11103
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11096
11104
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
11097
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11105
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11098
11106
  let fetchResult;
11099
11107
  try {
11100
11108
  fetchResult = await documentLoader(url.href);
@@ -11218,7 +11226,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11218
11226
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11219
11227
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11220
11228
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
11221
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11229
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11222
11230
  let fetchResult;
11223
11231
  try {
11224
11232
  fetchResult = await documentLoader(url.href);
@@ -11437,7 +11445,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11437
11445
  * @throws {TypeError} If the given `json` is invalid.
11438
11446
  */
11439
11447
  static async fromJsonLd(json, options = {}) {
11440
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
11448
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
11441
11449
  try {
11442
11450
  const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
11443
11451
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -11640,7 +11648,7 @@ var LikeRequest = class LikeRequest extends Activity {
11640
11648
  * @throws {TypeError} If the given `json` is invalid.
11641
11649
  */
11642
11650
  static async fromJsonLd(json, options = {}) {
11643
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
11651
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
11644
11652
  try {
11645
11653
  const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
11646
11654
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -11772,7 +11780,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
11772
11780
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11773
11781
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11774
11782
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
11775
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11783
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11776
11784
  let fetchResult;
11777
11785
  try {
11778
11786
  fetchResult = await documentLoader(url.href);
@@ -11896,7 +11904,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
11896
11904
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11897
11905
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
11898
11906
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
11899
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11907
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
11900
11908
  let fetchResult;
11901
11909
  try {
11902
11910
  fetchResult = await documentLoader(url.href);
@@ -12115,7 +12123,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12115
12123
  * @throws {TypeError} If the given `json` is invalid.
12116
12124
  */
12117
12125
  static async fromJsonLd(json, options = {}) {
12118
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
12126
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
12119
12127
  try {
12120
12128
  const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
12121
12129
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -12318,7 +12326,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
12318
12326
  * @throws {TypeError} If the given `json` is invalid.
12319
12327
  */
12320
12328
  static async fromJsonLd(json, options = {}) {
12321
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
12329
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
12322
12330
  try {
12323
12331
  const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
12324
12332
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -12450,7 +12458,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12450
12458
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
12451
12459
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
12452
12460
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
12453
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
12461
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
12454
12462
  let fetchResult;
12455
12463
  try {
12456
12464
  fetchResult = await documentLoader(url.href);
@@ -12573,7 +12581,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12573
12581
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
12574
12582
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
12575
12583
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
12576
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
12584
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
12577
12585
  let fetchResult;
12578
12586
  try {
12579
12587
  fetchResult = await documentLoader(url.href);
@@ -12794,7 +12802,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12794
12802
  * @throws {TypeError} If the given `json` is invalid.
12795
12803
  */
12796
12804
  static async fromJsonLd(json, options = {}) {
12797
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
12805
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
12798
12806
  try {
12799
12807
  const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
12800
12808
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -13027,7 +13035,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
13027
13035
  * @throws {TypeError} If the given `json` is invalid.
13028
13036
  */
13029
13037
  static async fromJsonLd(json, options = {}) {
13030
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
13038
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
13031
13039
  try {
13032
13040
  const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
13033
13041
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -13240,7 +13248,7 @@ var DidService = class {
13240
13248
  * @throws {TypeError} If the given `json` is invalid.
13241
13249
  */
13242
13250
  static async fromJsonLd(json, options = {}) {
13243
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
13251
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
13244
13252
  try {
13245
13253
  const object = await this.__fromJsonLd__DidService__(json, span, options);
13246
13254
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -13397,7 +13405,7 @@ var Export = class Export extends DidService {
13397
13405
  * @throws {TypeError} If the given `json` is invalid.
13398
13406
  */
13399
13407
  static async fromJsonLd(json, options = {}) {
13400
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
13408
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
13401
13409
  try {
13402
13410
  const object = await this.__fromJsonLd__Export__(json, span, options);
13403
13411
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -13577,7 +13585,7 @@ var DataIntegrityProof = class {
13577
13585
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
13578
13586
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
13579
13587
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
13580
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
13588
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
13581
13589
  let fetchResult;
13582
13590
  try {
13583
13591
  fetchResult = await documentLoader(url.href);
@@ -13796,7 +13804,7 @@ var DataIntegrityProof = class {
13796
13804
  * @throws {TypeError} If the given `json` is invalid.
13797
13805
  */
13798
13806
  static async fromJsonLd(json, options = {}) {
13799
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
13807
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
13800
13808
  try {
13801
13809
  const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
13802
13810
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -14028,7 +14036,7 @@ var CryptographicKey = class {
14028
14036
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
14029
14037
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
14030
14038
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
14031
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
14039
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
14032
14040
  let fetchResult;
14033
14041
  try {
14034
14042
  fetchResult = await documentLoader(url.href);
@@ -14293,7 +14301,7 @@ var CryptographicKey = class {
14293
14301
  * @throws {TypeError} If the given `json` is invalid.
14294
14302
  */
14295
14303
  static async fromJsonLd(json, options = {}) {
14296
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
14304
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
14297
14305
  try {
14298
14306
  const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
14299
14307
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -14498,7 +14506,7 @@ var Multikey = class {
14498
14506
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
14499
14507
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
14500
14508
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
14501
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
14509
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
14502
14510
  let fetchResult;
14503
14511
  try {
14504
14512
  fetchResult = await documentLoader(url.href);
@@ -14769,7 +14777,7 @@ var Multikey = class {
14769
14777
  * @throws {TypeError} If the given `json` is invalid.
14770
14778
  */
14771
14779
  static async fromJsonLd(json, options = {}) {
14772
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
14780
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
14773
14781
  try {
14774
14782
  const object = await this.__fromJsonLd__Multikey__(json, span, options);
14775
14783
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -14880,6 +14888,618 @@ Multikey.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options
14880
14888
  Multikey.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
14881
14889
  return "Multikey " + inspect(this._getCustomInspectProxy(), options);
14882
14890
  };
14891
+ /** The agreement reached between parties responding to a {@link Proposal}.
14892
+ *
14893
+ * An interested party sends an `Agreement` wrapped in an {@link Offer}
14894
+ * activity. The proposing party then either finalizes the agreement by
14895
+ * sending an {@link Accept} activity with the finalized `Agreement` as
14896
+ * its `result`, or sends a {@link Reject} activity.
14897
+ *
14898
+ * Note: This type extends ActivityStreams `Object` for practical
14899
+ * interoperability within ActivityPub federation, even though FEP-0837
14900
+ * defines `Agreement` as a pure ValueFlows type. Extending `Object`
14901
+ * provides useful inherited properties such as `id`, `attributedTo`,
14902
+ * `url`, `to`, and `published` without needing to redefine them.
14903
+ */
14904
+ var Agreement = class Agreement extends Object$1 {
14905
+ /**
14906
+ * The type URI of {@link Agreement}: `https://w3id.org/valueflows/ont/vf#Agreement`.
14907
+ */
14908
+ static get typeId() {
14909
+ return new URL("https://w3id.org/valueflows/ont/vf#Agreement");
14910
+ }
14911
+ #_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
14912
+ #_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
14913
+ /**
14914
+ * Constructs a new instance of Agreement with the given values.
14915
+ * @param values The values to initialize the instance with.
14916
+ * @param options The options to use for initialization.
14917
+ */
14918
+ constructor(values, options = {}) {
14919
+ super(values, options);
14920
+ if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
14921
+ else throw new TypeError("The stipulates must be of type Commitment.");
14922
+ if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
14923
+ else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
14924
+ }
14925
+ /**
14926
+ * Clones this instance, optionally updating it with the given values.
14927
+ * @param values The values to update the clone with.
14928
+ * @param options The options to use for cloning.
14929
+ * @returns The cloned instance.
14930
+ */
14931
+ clone(values = {}, options = {}) {
14932
+ if (this._warning != null) {
14933
+ (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
14934
+ options = {
14935
+ ...options,
14936
+ $warning: this._warning
14937
+ };
14938
+ }
14939
+ const clone = super.clone(values, options);
14940
+ clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
14941
+ if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
14942
+ else throw new TypeError("The stipulates must be of type Commitment.");
14943
+ clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
14944
+ if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
14945
+ else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
14946
+ return clone;
14947
+ }
14948
+ /** The primary {@link Commitment} associated with the agreement. This
14949
+ * commitment satisfies the primary {@link Intent} of the corresponding
14950
+ * {@link Proposal}.
14951
+ */
14952
+ get stipulates() {
14953
+ if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
14954
+ if (this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length < 1) return null;
14955
+ return this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
14956
+ }
14957
+ /** The reciprocal {@link Commitment} associated with the agreement.
14958
+ * Required if the corresponding {@link Proposal} has a reciprocal
14959
+ * {@link Intent}.
14960
+ */
14961
+ get stipulatesReciprocal() {
14962
+ if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
14963
+ if (this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length < 1) return null;
14964
+ return this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
14965
+ }
14966
+ /**
14967
+ * Converts this object to a JSON-LD structure.
14968
+ * @param options The options to use.
14969
+ * - `format`: The format of the output: `compact` or
14970
+ `expand`.
14971
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
14972
+ * - `context`: The JSON-LD context to use. Not applicable
14973
+ when `format` is set to `'expand'`.
14974
+ * @returns The JSON-LD representation of this object.
14975
+ */
14976
+ async toJsonLd(options = {}) {
14977
+ if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
14978
+ if (options.format !== "compact" && options.context != null) throw new TypeError("The context option can only be used when the format option is set to 'compact'.");
14979
+ options = {
14980
+ ...options,
14981
+ contextLoader: options.contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)()
14982
+ };
14983
+ if (options.format == null && this.isCompactable()) {
14984
+ const result = await super.toJsonLd({
14985
+ ...options,
14986
+ format: void 0,
14987
+ context: void 0
14988
+ });
14989
+ let compactItems = [];
14990
+ for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
14991
+ const item = await v.toJsonLd({
14992
+ ...options,
14993
+ format: void 0,
14994
+ context: void 0
14995
+ });
14996
+ compactItems.push(item);
14997
+ }
14998
+ if (compactItems.length > 0) result["stipulates"] = compactItems.length > 1 ? compactItems : compactItems[0];
14999
+ compactItems = [];
15000
+ for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
15001
+ const item = await v.toJsonLd({
15002
+ ...options,
15003
+ format: void 0,
15004
+ context: void 0
15005
+ });
15006
+ compactItems.push(item);
15007
+ }
15008
+ if (compactItems.length > 0) result["stipulatesReciprocal"] = compactItems.length > 1 ? compactItems : compactItems[0];
15009
+ result["type"] = "Agreement";
15010
+ if (this.id != null) result["id"] = this.id.href;
15011
+ result["@context"] = [
15012
+ "https://www.w3.org/ns/activitystreams",
15013
+ "https://w3id.org/security/data-integrity/v1",
15014
+ "https://gotosocial.org/ns",
15015
+ {
15016
+ "vf": "https://w3id.org/valueflows/ont/vf#",
15017
+ "om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
15018
+ "fedibird": "http://fedibird.com/ns#",
15019
+ "sensitive": "as:sensitive",
15020
+ "emojiReactions": {
15021
+ "@id": "fedibird:emojiReactions",
15022
+ "@type": "@id"
15023
+ },
15024
+ "Agreement": "vf:Agreement",
15025
+ "Commitment": "vf:Commitment",
15026
+ "stipulates": "vf:stipulates",
15027
+ "stipulatesReciprocal": "vf:stipulatesReciprocal",
15028
+ "satisfies": {
15029
+ "@id": "vf:satisfies",
15030
+ "@type": "@id"
15031
+ },
15032
+ "resourceQuantity": "vf:resourceQuantity",
15033
+ "hasUnit": "om2:hasUnit",
15034
+ "hasNumericalValue": "om2:hasNumericalValue"
15035
+ }
15036
+ ];
15037
+ return result;
15038
+ }
15039
+ let array;
15040
+ const values = (await super.toJsonLd({
15041
+ ...options,
15042
+ format: "expand",
15043
+ context: void 0
15044
+ }))[0];
15045
+ array = [];
15046
+ for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
15047
+ const element = await v.toJsonLd(options);
15048
+ array.push(element);
15049
+ }
15050
+ if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulates"] = array;
15051
+ array = [];
15052
+ for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
15053
+ const element = await v.toJsonLd(options);
15054
+ array.push(element);
15055
+ }
15056
+ if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"] = array;
15057
+ values["@type"] = ["https://w3id.org/valueflows/ont/vf#Agreement"];
15058
+ if (this.id != null) values["@id"] = this.id.href;
15059
+ if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
15060
+ const docContext = options.context ?? [
15061
+ "https://www.w3.org/ns/activitystreams",
15062
+ "https://w3id.org/security/data-integrity/v1",
15063
+ "https://gotosocial.org/ns",
15064
+ {
15065
+ "vf": "https://w3id.org/valueflows/ont/vf#",
15066
+ "om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
15067
+ "fedibird": "http://fedibird.com/ns#",
15068
+ "sensitive": "as:sensitive",
15069
+ "emojiReactions": {
15070
+ "@id": "fedibird:emojiReactions",
15071
+ "@type": "@id"
15072
+ },
15073
+ "Agreement": "vf:Agreement",
15074
+ "Commitment": "vf:Commitment",
15075
+ "stipulates": "vf:stipulates",
15076
+ "stipulatesReciprocal": "vf:stipulatesReciprocal",
15077
+ "satisfies": {
15078
+ "@id": "vf:satisfies",
15079
+ "@type": "@id"
15080
+ },
15081
+ "resourceQuantity": "vf:resourceQuantity",
15082
+ "hasUnit": "om2:hasUnit",
15083
+ "hasNumericalValue": "om2:hasNumericalValue"
15084
+ }
15085
+ ];
15086
+ const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
15087
+ if (docContext != null) {
15088
+ if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
15089
+ else compacted.proof["@context"] = docContext;
15090
+ }
15091
+ return compacted;
15092
+ }
15093
+ isCompactable() {
15094
+ return super.isCompactable();
15095
+ }
15096
+ /**
15097
+ * Converts a JSON-LD structure to an object of this type.
15098
+ * @param json The JSON-LD structure to convert.
15099
+ * @param options The options to use.
15100
+ * - `documentLoader`: The loader for remote JSON-LD documents.
15101
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
15102
+ * - `tracerProvider`: The OpenTelemetry tracer provider to use.
15103
+ * If omitted, the global tracer provider is used.
15104
+ * @returns The object of this type.
15105
+ * @throws {TypeError} If the given `json` is invalid.
15106
+ */
15107
+ static async fromJsonLd(json, options = {}) {
15108
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15109
+ try {
15110
+ const object = await this.__fromJsonLd__Agreement__(json, span, options);
15111
+ if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
15112
+ return object;
15113
+ } catch (error) {
15114
+ span.setStatus({
15115
+ code: _opentelemetry_api.SpanStatusCode.ERROR,
15116
+ message: String(error)
15117
+ });
15118
+ throw error;
15119
+ } finally {
15120
+ span.end();
15121
+ }
15122
+ });
15123
+ }
15124
+ static async __fromJsonLd__Agreement__(json, span, options = {}) {
15125
+ if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
15126
+ else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
15127
+ options = {
15128
+ ...options,
15129
+ documentLoader: options.documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)(),
15130
+ contextLoader: options.contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)(),
15131
+ tracerProvider: options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()
15132
+ };
15133
+ let values;
15134
+ if (globalThis.Object.keys(json).length == 0) values = {};
15135
+ else values = (await _fedify_vocab_runtime_jsonld.default.expand(json, {
15136
+ documentLoader: options.contextLoader,
15137
+ keepFreeFloatingNodes: true
15138
+ }))[0] ?? {};
15139
+ if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
15140
+ if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
15141
+ ...options,
15142
+ baseUrl: new URL(values["@id"])
15143
+ };
15144
+ if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
15145
+ if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
15146
+ if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) throw new TypeError("Invalid type: " + values["@type"]);
15147
+ }
15148
+ delete values["@type"];
15149
+ const instance = await super.fromJsonLd(values, {
15150
+ ...options,
15151
+ _fromSubclass: true
15152
+ });
15153
+ if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
15154
+ const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
15155
+ let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
15156
+ for (const v of _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array == null ? [] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array.length === 1 && "@list" in _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0] ? _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0]["@list"] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array) {
15157
+ if (v == null) continue;
15158
+ const decoded = await Commitment.fromJsonLd(v, {
15159
+ ...options,
15160
+ baseUrl: options.baseUrl
15161
+ });
15162
+ if (typeof decoded === "undefined") continue;
15163
+ _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
15164
+ }
15165
+ instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
15166
+ const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
15167
+ let _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array = values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"];
15168
+ for (const v of _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array == null ? [] : _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array.length === 1 && "@list" in _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array[0] ? _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array[0]["@list"] : _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array) {
15169
+ if (v == null) continue;
15170
+ const decoded = await Commitment.fromJsonLd(v, {
15171
+ ...options,
15172
+ baseUrl: options.baseUrl
15173
+ });
15174
+ if (typeof decoded === "undefined") continue;
15175
+ _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
15176
+ }
15177
+ instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
15178
+ if (!("_fromSubclass" in options) || !options._fromSubclass) try {
15179
+ instance._cachedJsonLd = structuredClone(json);
15180
+ } catch {
15181
+ (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
15182
+ }
15183
+ return instance;
15184
+ }
15185
+ _getCustomInspectProxy() {
15186
+ const proxy = super._getCustomInspectProxy();
15187
+ const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.map((v) => v instanceof URL ? {
15188
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
15189
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
15190
+ } : v);
15191
+ if (_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length == 1) proxy.stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
15192
+ const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.map((v) => v instanceof URL ? {
15193
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
15194
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
15195
+ } : v);
15196
+ if (_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length == 1) proxy.stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
15197
+ return proxy;
15198
+ }
15199
+ };
15200
+ Agreement.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
15201
+ return "Agreement " + inspect(this._getCustomInspectProxy(), options);
15202
+ };
15203
+ Agreement.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
15204
+ return "Agreement " + inspect(this._getCustomInspectProxy(), options);
15205
+ };
15206
+ /** A promised economic transaction, referenced by an {@link Agreement}.
15207
+ *
15208
+ * A commitment satisfies an {@link Intent} of a {@link Proposal} and
15209
+ * specifies the actual amount of the economic resource being committed.
15210
+ */
15211
+ var Commitment = class {
15212
+ #documentLoader;
15213
+ #contextLoader;
15214
+ #tracerProvider;
15215
+ #warning;
15216
+ #cachedJsonLd;
15217
+ #_baseUrl;
15218
+ id;
15219
+ get _documentLoader() {
15220
+ return this.#documentLoader;
15221
+ }
15222
+ get _contextLoader() {
15223
+ return this.#contextLoader;
15224
+ }
15225
+ get _tracerProvider() {
15226
+ return this.#tracerProvider;
15227
+ }
15228
+ get _warning() {
15229
+ return this.#warning;
15230
+ }
15231
+ get _cachedJsonLd() {
15232
+ return this.#cachedJsonLd;
15233
+ }
15234
+ set _cachedJsonLd(value) {
15235
+ this.#cachedJsonLd = value;
15236
+ }
15237
+ get _baseUrl() {
15238
+ return this.#_baseUrl;
15239
+ }
15240
+ /**
15241
+ * The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
15242
+ */
15243
+ static get typeId() {
15244
+ return new URL("https://w3id.org/valueflows/ont/vf#Commitment");
15245
+ }
15246
+ #_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
15247
+ #_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
15248
+ /**
15249
+ * Constructs a new instance of Commitment with the given values.
15250
+ * @param values The values to initialize the instance with.
15251
+ * @param options The options to use for initialization.
15252
+ */
15253
+ constructor(values, options = {}) {
15254
+ this.#documentLoader = options.documentLoader;
15255
+ this.#contextLoader = options.contextLoader;
15256
+ this.#tracerProvider = options.tracerProvider;
15257
+ const baseUrl = options.baseUrl;
15258
+ this.#_baseUrl = baseUrl == null ? void 0 : new URL(baseUrl.href);
15259
+ if ("$warning" in options) this.#warning = options.$warning;
15260
+ if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
15261
+ else throw new TypeError("The id must be a URL.");
15262
+ if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
15263
+ else throw new TypeError("The satisfies must be of type URL.");
15264
+ if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
15265
+ else throw new TypeError("The resourceQuantity must be of type Measure.");
15266
+ }
15267
+ /**
15268
+ * Clones this instance, optionally updating it with the given values.
15269
+ * @param values The values to update the clone with.
15270
+ * @param options The options to use for cloning.
15271
+ * @returns The cloned instance.
15272
+ */
15273
+ clone(values = {}, options = {}) {
15274
+ if (this._warning != null) {
15275
+ (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
15276
+ options = {
15277
+ ...options,
15278
+ $warning: this._warning
15279
+ };
15280
+ }
15281
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
15282
+ clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
15283
+ if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
15284
+ else throw new TypeError("The satisfies must be of type URL.");
15285
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
15286
+ if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
15287
+ else throw new TypeError("The resourceQuantity must be of type Measure.");
15288
+ return clone;
15289
+ }
15290
+ /** The {@link Intent} of a {@link Proposal} that this commitment
15291
+ * satisfies. The value is the proposal's URI with a
15292
+ * [fragment](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment)
15293
+ * appended to identify the intent. Recommended fragments are
15294
+ * `primary` and `reciprocal`.
15295
+ */
15296
+ get satisfies() {
15297
+ if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
15298
+ if (this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length < 1) return null;
15299
+ return this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
15300
+ }
15301
+ /** The amount and unit of the economic resource being committed. The
15302
+ * unit must match the unit specified in the corresponding {@link Intent}
15303
+ * of the proposal.
15304
+ */
15305
+ get resourceQuantity() {
15306
+ if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
15307
+ if (this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length < 1) return null;
15308
+ return this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
15309
+ }
15310
+ /**
15311
+ * Converts this object to a JSON-LD structure.
15312
+ * @param options The options to use.
15313
+ * - `format`: The format of the output: `compact` or
15314
+ `expand`.
15315
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
15316
+ * - `context`: The JSON-LD context to use. Not applicable
15317
+ when `format` is set to `'expand'`.
15318
+ * @returns The JSON-LD representation of this object.
15319
+ */
15320
+ async toJsonLd(options = {}) {
15321
+ if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
15322
+ if (options.format !== "compact" && options.context != null) throw new TypeError("The context option can only be used when the format option is set to 'compact'.");
15323
+ options = {
15324
+ ...options,
15325
+ contextLoader: options.contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)()
15326
+ };
15327
+ if (options.format == null && this.isCompactable()) {
15328
+ const result = {};
15329
+ let compactItems = [];
15330
+ for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
15331
+ const item = v.href;
15332
+ compactItems.push(item);
15333
+ }
15334
+ if (compactItems.length > 0) result["satisfies"] = compactItems.length > 1 ? compactItems : compactItems[0];
15335
+ compactItems = [];
15336
+ for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
15337
+ const item = await v.toJsonLd({
15338
+ ...options,
15339
+ format: void 0,
15340
+ context: void 0
15341
+ });
15342
+ compactItems.push(item);
15343
+ }
15344
+ if (compactItems.length > 0) result["resourceQuantity"] = compactItems.length > 1 ? compactItems : compactItems[0];
15345
+ result["type"] = "Commitment";
15346
+ if (this.id != null) result["id"] = this.id.href;
15347
+ result["@context"] = ["https://www.w3.org/ns/activitystreams", {
15348
+ "vf": "https://w3id.org/valueflows/ont/vf#",
15349
+ "om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
15350
+ "Commitment": "vf:Commitment",
15351
+ "satisfies": {
15352
+ "@id": "vf:satisfies",
15353
+ "@type": "@id"
15354
+ },
15355
+ "resourceQuantity": "vf:resourceQuantity",
15356
+ "hasUnit": "om2:hasUnit",
15357
+ "hasNumericalValue": "om2:hasNumericalValue"
15358
+ }];
15359
+ return result;
15360
+ }
15361
+ let array;
15362
+ const values = {};
15363
+ array = [];
15364
+ for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
15365
+ const element = { "@id": v.href };
15366
+ array.push(element);
15367
+ }
15368
+ if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#satisfies"] = array;
15369
+ array = [];
15370
+ for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
15371
+ const element = await v.toJsonLd(options);
15372
+ array.push(element);
15373
+ }
15374
+ if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#resourceQuantity"] = array;
15375
+ values["@type"] = ["https://w3id.org/valueflows/ont/vf#Commitment"];
15376
+ if (this.id != null) values["@id"] = this.id.href;
15377
+ if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
15378
+ const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
15379
+ "vf": "https://w3id.org/valueflows/ont/vf#",
15380
+ "om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
15381
+ "Commitment": "vf:Commitment",
15382
+ "satisfies": {
15383
+ "@id": "vf:satisfies",
15384
+ "@type": "@id"
15385
+ },
15386
+ "resourceQuantity": "vf:resourceQuantity",
15387
+ "hasUnit": "om2:hasUnit",
15388
+ "hasNumericalValue": "om2:hasNumericalValue"
15389
+ }];
15390
+ const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
15391
+ if (docContext != null) {}
15392
+ return compacted;
15393
+ }
15394
+ isCompactable() {
15395
+ return true;
15396
+ }
15397
+ /**
15398
+ * Converts a JSON-LD structure to an object of this type.
15399
+ * @param json The JSON-LD structure to convert.
15400
+ * @param options The options to use.
15401
+ * - `documentLoader`: The loader for remote JSON-LD documents.
15402
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
15403
+ * - `tracerProvider`: The OpenTelemetry tracer provider to use.
15404
+ * If omitted, the global tracer provider is used.
15405
+ * @returns The object of this type.
15406
+ * @throws {TypeError} If the given `json` is invalid.
15407
+ */
15408
+ static async fromJsonLd(json, options = {}) {
15409
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15410
+ try {
15411
+ const object = await this.__fromJsonLd__Commitment__(json, span, options);
15412
+ if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
15413
+ return object;
15414
+ } catch (error) {
15415
+ span.setStatus({
15416
+ code: _opentelemetry_api.SpanStatusCode.ERROR,
15417
+ message: String(error)
15418
+ });
15419
+ throw error;
15420
+ } finally {
15421
+ span.end();
15422
+ }
15423
+ });
15424
+ }
15425
+ static async __fromJsonLd__Commitment__(json, span, options = {}) {
15426
+ if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
15427
+ else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
15428
+ options = {
15429
+ ...options,
15430
+ documentLoader: options.documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)(),
15431
+ contextLoader: options.contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)(),
15432
+ tracerProvider: options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()
15433
+ };
15434
+ let values;
15435
+ if (globalThis.Object.keys(json).length == 0) values = {};
15436
+ else values = (await _fedify_vocab_runtime_jsonld.default.expand(json, {
15437
+ documentLoader: options.contextLoader,
15438
+ keepFreeFloatingNodes: true
15439
+ }))[0] ?? {};
15440
+ if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
15441
+ if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
15442
+ ...options,
15443
+ baseUrl: new URL(values["@id"])
15444
+ };
15445
+ if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
15446
+ if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
15447
+ if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
15448
+ }
15449
+ const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
15450
+ const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
15451
+ let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
15452
+ for (const v of _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array == null ? [] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array.length === 1 && "@list" in _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0] ? _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0]["@list"] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array) {
15453
+ if (v == null) continue;
15454
+ const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
15455
+ if (typeof decoded === "undefined") continue;
15456
+ _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
15457
+ }
15458
+ instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
15459
+ const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
15460
+ let _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array = values["https://w3id.org/valueflows/ont/vf#resourceQuantity"];
15461
+ for (const v of _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array == null ? [] : _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array.length === 1 && "@list" in _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array[0] ? _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array[0]["@list"] : _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array) {
15462
+ if (v == null) continue;
15463
+ const decoded = await Measure.fromJsonLd(v, {
15464
+ ...options,
15465
+ baseUrl: options.baseUrl
15466
+ });
15467
+ if (typeof decoded === "undefined") continue;
15468
+ _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
15469
+ }
15470
+ instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
15471
+ if (!("_fromSubclass" in options) || !options._fromSubclass) try {
15472
+ instance._cachedJsonLd = structuredClone(json);
15473
+ } catch {
15474
+ (0, _logtape_logtape.getLogger)(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
15475
+ }
15476
+ return instance;
15477
+ }
15478
+ _getCustomInspectProxy() {
15479
+ const proxy = {};
15480
+ if (this.id != null) proxy.id = {
15481
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(this.id.href, options),
15482
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(this.id.href, options)
15483
+ };
15484
+ const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.map((v) => v instanceof URL ? {
15485
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
15486
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
15487
+ } : v);
15488
+ if (_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length == 1) proxy.satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
15489
+ const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.map((v) => v instanceof URL ? {
15490
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
15491
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
15492
+ } : v);
15493
+ if (_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length == 1) proxy.resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
15494
+ return proxy;
15495
+ }
15496
+ };
15497
+ Commitment.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
15498
+ return "Commitment " + inspect(this._getCustomInspectProxy(), options);
15499
+ };
15500
+ Commitment.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
15501
+ return "Commitment " + inspect(this._getCustomInspectProxy(), options);
15502
+ };
14883
15503
  /** A proposed economic transaction describing what is being offered or requested
14884
15504
  * in a {@link Proposal}.
14885
15505
  */
@@ -15165,7 +15785,7 @@ var Intent = class {
15165
15785
  * @throws {TypeError} If the given `json` is invalid.
15166
15786
  */
15167
15787
  static async fromJsonLd(json, options = {}) {
15168
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
15788
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15169
15789
  try {
15170
15790
  const object = await this.__fromJsonLd__Intent__(json, span, options);
15171
15791
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -15583,7 +16203,7 @@ var Proposal = class Proposal extends Object$1 {
15583
16203
  * @throws {TypeError} If the given `json` is invalid.
15584
16204
  */
15585
16205
  static async fromJsonLd(json, options = {}) {
15586
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
16206
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15587
16207
  try {
15588
16208
  const object = await this.__fromJsonLd__Proposal__(json, span, options);
15589
16209
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -15797,7 +16417,7 @@ var Accept = class Accept extends Activity {
15797
16417
  * @throws {TypeError} If the given `json` is invalid.
15798
16418
  */
15799
16419
  static async fromJsonLd(json, options = {}) {
15800
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
16420
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15801
16421
  try {
15802
16422
  const object = await this.__fromJsonLd__Accept__(json, span, options);
15803
16423
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -15950,7 +16570,7 @@ var Add = class Add extends Activity {
15950
16570
  * @throws {TypeError} If the given `json` is invalid.
15951
16571
  */
15952
16572
  static async fromJsonLd(json, options = {}) {
15953
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
16573
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
15954
16574
  try {
15955
16575
  const object = await this.__fromJsonLd__Add__(json, span, options);
15956
16576
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -16130,7 +16750,7 @@ var Announce = class Announce extends Activity {
16130
16750
  * @throws {TypeError} If the given `json` is invalid.
16131
16751
  */
16132
16752
  static async fromJsonLd(json, options = {}) {
16133
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
16753
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
16134
16754
  try {
16135
16755
  const object = await this.__fromJsonLd__Announce__(json, span, options);
16136
16756
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -16526,7 +17146,7 @@ var Application = class Application extends Object$1 {
16526
17146
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16527
17147
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16528
17148
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
16529
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17149
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
16530
17150
  let fetchResult;
16531
17151
  try {
16532
17152
  fetchResult = await documentLoader(url.href);
@@ -16694,7 +17314,7 @@ var Application = class Application extends Object$1 {
16694
17314
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16695
17315
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16696
17316
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
16697
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17317
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
16698
17318
  let fetchResult;
16699
17319
  try {
16700
17320
  fetchResult = await documentLoader(url.href);
@@ -16880,7 +17500,7 @@ var Application = class Application extends Object$1 {
16880
17500
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16881
17501
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
16882
17502
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
16883
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17503
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
16884
17504
  let fetchResult;
16885
17505
  try {
16886
17506
  fetchResult = await documentLoader(url.href);
@@ -17025,7 +17645,7 @@ var Application = class Application extends Object$1 {
17025
17645
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17026
17646
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17027
17647
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17028
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17648
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17029
17649
  let fetchResult;
17030
17650
  try {
17031
17651
  fetchResult = await documentLoader(url.href);
@@ -17167,7 +17787,7 @@ var Application = class Application extends Object$1 {
17167
17787
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17168
17788
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17169
17789
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17170
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17790
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17171
17791
  let fetchResult;
17172
17792
  try {
17173
17793
  fetchResult = await documentLoader(url.href);
@@ -17294,7 +17914,7 @@ var Application = class Application extends Object$1 {
17294
17914
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17295
17915
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17296
17916
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17297
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17917
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17298
17918
  let fetchResult;
17299
17919
  try {
17300
17920
  fetchResult = await documentLoader(url.href);
@@ -17424,7 +18044,7 @@ var Application = class Application extends Object$1 {
17424
18044
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17425
18045
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17426
18046
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17427
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18047
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17428
18048
  let fetchResult;
17429
18049
  try {
17430
18050
  fetchResult = await documentLoader(url.href);
@@ -17552,7 +18172,7 @@ var Application = class Application extends Object$1 {
17552
18172
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17553
18173
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17554
18174
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17555
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18175
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17556
18176
  let fetchResult;
17557
18177
  try {
17558
18178
  fetchResult = await documentLoader(url.href);
@@ -17678,7 +18298,7 @@ var Application = class Application extends Object$1 {
17678
18298
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17679
18299
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17680
18300
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17681
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18301
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17682
18302
  let fetchResult;
17683
18303
  try {
17684
18304
  fetchResult = await documentLoader(url.href);
@@ -17804,7 +18424,7 @@ var Application = class Application extends Object$1 {
17804
18424
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17805
18425
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17806
18426
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17807
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18427
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17808
18428
  let fetchResult;
17809
18429
  try {
17810
18430
  fetchResult = await documentLoader(url.href);
@@ -17969,7 +18589,7 @@ var Application = class Application extends Object$1 {
17969
18589
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17970
18590
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
17971
18591
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
17972
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18592
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
17973
18593
  let fetchResult;
17974
18594
  try {
17975
18595
  fetchResult = await documentLoader(url.href);
@@ -18138,7 +18758,7 @@ var Application = class Application extends Object$1 {
18138
18758
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
18139
18759
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
18140
18760
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
18141
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18761
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18142
18762
  let fetchResult;
18143
18763
  try {
18144
18764
  fetchResult = await documentLoader(url.href);
@@ -18358,7 +18978,7 @@ var Application = class Application extends Object$1 {
18358
18978
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
18359
18979
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
18360
18980
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
18361
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18981
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
18362
18982
  let fetchResult;
18363
18983
  try {
18364
18984
  fetchResult = await documentLoader(url.href);
@@ -19049,7 +19669,7 @@ var Application = class Application extends Object$1 {
19049
19669
  * @throws {TypeError} If the given `json` is invalid.
19050
19670
  */
19051
19671
  static async fromJsonLd(json, options = {}) {
19052
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
19672
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
19053
19673
  try {
19054
19674
  const object = await this.__fromJsonLd__Application__(json, span, options);
19055
19675
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -19651,7 +20271,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
19651
20271
  * @throws {TypeError} If the given `json` is invalid.
19652
20272
  */
19653
20273
  static async fromJsonLd(json, options = {}) {
19654
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
20274
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
19655
20275
  try {
19656
20276
  const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
19657
20277
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -19805,7 +20425,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
19805
20425
  * @throws {TypeError} If the given `json` is invalid.
19806
20426
  */
19807
20427
  static async fromJsonLd(json, options = {}) {
19808
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
20428
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
19809
20429
  try {
19810
20430
  const object = await this.__fromJsonLd__Arrive__(json, span, options);
19811
20431
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -19936,7 +20556,7 @@ var Article = class Article extends Object$1 {
19936
20556
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
19937
20557
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
19938
20558
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
19939
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
20559
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
19940
20560
  let fetchResult;
19941
20561
  try {
19942
20562
  fetchResult = await documentLoader(url.href);
@@ -20077,7 +20697,7 @@ var Article = class Article extends Object$1 {
20077
20697
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
20078
20698
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
20079
20699
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
20080
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
20700
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
20081
20701
  let fetchResult;
20082
20702
  try {
20083
20703
  fetchResult = await documentLoader(url.href);
@@ -20366,7 +20986,7 @@ var Article = class Article extends Object$1 {
20366
20986
  * @throws {TypeError} If the given `json` is invalid.
20367
20987
  */
20368
20988
  static async fromJsonLd(json, options = {}) {
20369
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
20989
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
20370
20990
  try {
20371
20991
  const object = await this.__fromJsonLd__Article__(json, span, options);
20372
20992
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -20650,7 +21270,7 @@ var Document = class Document extends Object$1 {
20650
21270
  * @throws {TypeError} If the given `json` is invalid.
20651
21271
  */
20652
21272
  static async fromJsonLd(json, options = {}) {
20653
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
21273
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
20654
21274
  try {
20655
21275
  const object = await this.__fromJsonLd__Document__(json, span, options);
20656
21276
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -20846,7 +21466,7 @@ var Audio = class Audio extends Document {
20846
21466
  * @throws {TypeError} If the given `json` is invalid.
20847
21467
  */
20848
21468
  static async fromJsonLd(json, options = {}) {
20849
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
21469
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
20850
21470
  try {
20851
21471
  const object = await this.__fromJsonLd__Audio__(json, span, options);
20852
21472
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -20996,7 +21616,7 @@ var Ignore = class Ignore extends Activity {
20996
21616
  * @throws {TypeError} If the given `json` is invalid.
20997
21617
  */
20998
21618
  static async fromJsonLd(json, options = {}) {
20999
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
21619
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
21000
21620
  try {
21001
21621
  const object = await this.__fromJsonLd__Ignore__(json, span, options);
21002
21622
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -21149,7 +21769,7 @@ var Block = class Block extends Ignore {
21149
21769
  * @throws {TypeError} If the given `json` is invalid.
21150
21770
  */
21151
21771
  static async fromJsonLd(json, options = {}) {
21152
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
21772
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
21153
21773
  try {
21154
21774
  const object = await this.__fromJsonLd__Block__(json, span, options);
21155
21775
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -21414,7 +22034,7 @@ var Collection = class Collection extends Object$1 {
21414
22034
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21415
22035
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21416
22036
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
21417
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22037
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
21418
22038
  let fetchResult;
21419
22039
  try {
21420
22040
  fetchResult = await documentLoader(url.href);
@@ -21538,7 +22158,7 @@ var Collection = class Collection extends Object$1 {
21538
22158
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21539
22159
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21540
22160
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
21541
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22161
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
21542
22162
  let fetchResult;
21543
22163
  try {
21544
22164
  fetchResult = await documentLoader(url.href);
@@ -21662,7 +22282,7 @@ var Collection = class Collection extends Object$1 {
21662
22282
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21663
22283
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21664
22284
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
21665
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22285
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
21666
22286
  let fetchResult;
21667
22287
  try {
21668
22288
  fetchResult = await documentLoader(url.href);
@@ -21786,7 +22406,7 @@ var Collection = class Collection extends Object$1 {
21786
22406
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21787
22407
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21788
22408
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
21789
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22409
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
21790
22410
  let fetchResult;
21791
22411
  try {
21792
22412
  fetchResult = await documentLoader(url.href);
@@ -21920,7 +22540,7 @@ var Collection = class Collection extends Object$1 {
21920
22540
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21921
22541
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
21922
22542
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
21923
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22543
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
21924
22544
  let fetchResult;
21925
22545
  try {
21926
22546
  fetchResult = await documentLoader(url.href);
@@ -22043,7 +22663,7 @@ var Collection = class Collection extends Object$1 {
22043
22663
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22044
22664
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22045
22665
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22046
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22666
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22047
22667
  let fetchResult;
22048
22668
  try {
22049
22669
  fetchResult = await documentLoader(url.href);
@@ -22166,7 +22786,7 @@ var Collection = class Collection extends Object$1 {
22166
22786
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22167
22787
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22168
22788
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22169
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22789
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22170
22790
  let fetchResult;
22171
22791
  try {
22172
22792
  fetchResult = await documentLoader(url.href);
@@ -22289,7 +22909,7 @@ var Collection = class Collection extends Object$1 {
22289
22909
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22290
22910
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22291
22911
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22292
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22912
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22293
22913
  let fetchResult;
22294
22914
  try {
22295
22915
  fetchResult = await documentLoader(url.href);
@@ -22412,7 +23032,7 @@ var Collection = class Collection extends Object$1 {
22412
23032
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22413
23033
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22414
23034
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22415
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23035
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22416
23036
  let fetchResult;
22417
23037
  try {
22418
23038
  fetchResult = await documentLoader(url.href);
@@ -22535,7 +23155,7 @@ var Collection = class Collection extends Object$1 {
22535
23155
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22536
23156
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22537
23157
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22538
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23158
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22539
23159
  let fetchResult;
22540
23160
  try {
22541
23161
  fetchResult = await documentLoader(url.href);
@@ -22658,7 +23278,7 @@ var Collection = class Collection extends Object$1 {
22658
23278
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22659
23279
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22660
23280
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22661
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23281
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22662
23282
  let fetchResult;
22663
23283
  try {
22664
23284
  fetchResult = await documentLoader(url.href);
@@ -22781,7 +23401,7 @@ var Collection = class Collection extends Object$1 {
22781
23401
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22782
23402
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
22783
23403
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
22784
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23404
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
22785
23405
  let fetchResult;
22786
23406
  try {
22787
23407
  fetchResult = await documentLoader(url.href);
@@ -23233,7 +23853,7 @@ var Collection = class Collection extends Object$1 {
23233
23853
  * @throws {TypeError} If the given `json` is invalid.
23234
23854
  */
23235
23855
  static async fromJsonLd(json, options = {}) {
23236
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
23856
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
23237
23857
  try {
23238
23858
  const object = await this.__fromJsonLd__Collection__(json, span, options);
23239
23859
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -23359,6 +23979,7 @@ var Collection = class Collection extends Object$1 {
23359
23979
  "https://gotosocial.org/ns#LikeApproval",
23360
23980
  "https://gotosocial.org/ns#ReplyAuthorization",
23361
23981
  "https://w3id.org/fep/044f#QuoteAuthorization",
23982
+ "https://w3id.org/valueflows/ont/vf#Agreement",
23362
23983
  "https://w3id.org/valueflows/ont/vf#Proposal",
23363
23984
  "https://www.w3.org/ns/activitystreams#Activity",
23364
23985
  "http://litepub.social/ns#EmojiReact",
@@ -23726,7 +24347,7 @@ var CollectionPage = class CollectionPage extends Collection {
23726
24347
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23727
24348
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23728
24349
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
23729
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
24350
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23730
24351
  let fetchResult;
23731
24352
  try {
23732
24353
  fetchResult = await documentLoader(url.href);
@@ -23850,7 +24471,7 @@ var CollectionPage = class CollectionPage extends Collection {
23850
24471
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23851
24472
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23852
24473
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
23853
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
24474
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23854
24475
  let fetchResult;
23855
24476
  try {
23856
24477
  fetchResult = await documentLoader(url.href);
@@ -23973,7 +24594,7 @@ var CollectionPage = class CollectionPage extends Collection {
23973
24594
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23974
24595
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
23975
24596
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
23976
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
24597
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
23977
24598
  let fetchResult;
23978
24599
  try {
23979
24600
  fetchResult = await documentLoader(url.href);
@@ -24262,7 +24883,7 @@ var CollectionPage = class CollectionPage extends Collection {
24262
24883
  * @throws {TypeError} If the given `json` is invalid.
24263
24884
  */
24264
24885
  static async fromJsonLd(json, options = {}) {
24265
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
24886
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
24266
24887
  try {
24267
24888
  const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
24268
24889
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -24509,7 +25130,7 @@ var Create = class Create extends Activity {
24509
25130
  * @throws {TypeError} If the given `json` is invalid.
24510
25131
  */
24511
25132
  static async fromJsonLd(json, options = {}) {
24512
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
25133
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
24513
25134
  try {
24514
25135
  const object = await this.__fromJsonLd__Create__(json, span, options);
24515
25136
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -24685,7 +25306,7 @@ var Delete = class Delete extends Activity {
24685
25306
  * @throws {TypeError} If the given `json` is invalid.
24686
25307
  */
24687
25308
  static async fromJsonLd(json, options = {}) {
24688
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
25309
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
24689
25310
  try {
24690
25311
  const object = await this.__fromJsonLd__Delete__(json, span, options);
24691
25312
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -24838,7 +25459,7 @@ var Dislike = class Dislike extends Activity {
24838
25459
  * @throws {TypeError} If the given `json` is invalid.
24839
25460
  */
24840
25461
  static async fromJsonLd(json, options = {}) {
24841
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
25462
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
24842
25463
  try {
24843
25464
  const object = await this.__fromJsonLd__Dislike__(json, span, options);
24844
25465
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25190,7 +25811,7 @@ var Endpoints = class {
25190
25811
  * @throws {TypeError} If the given `json` is invalid.
25191
25812
  */
25192
25813
  static async fromJsonLd(json, options = {}) {
25193
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
25814
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
25194
25815
  try {
25195
25816
  const object = await this.__fromJsonLd__Endpoints__(json, span, options);
25196
25817
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25437,7 +26058,7 @@ var Event = class Event extends Object$1 {
25437
26058
  * @throws {TypeError} If the given `json` is invalid.
25438
26059
  */
25439
26060
  static async fromJsonLd(json, options = {}) {
25440
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
26061
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
25441
26062
  try {
25442
26063
  const object = await this.__fromJsonLd__Event__(json, span, options);
25443
26064
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25588,7 +26209,7 @@ var Flag = class Flag extends Activity {
25588
26209
  * @throws {TypeError} If the given `json` is invalid.
25589
26210
  */
25590
26211
  static async fromJsonLd(json, options = {}) {
25591
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
26212
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
25592
26213
  try {
25593
26214
  const object = await this.__fromJsonLd__Flag__(json, span, options);
25594
26215
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -25743,7 +26364,7 @@ var Follow = class Follow extends Activity {
25743
26364
  * @throws {TypeError} If the given `json` is invalid.
25744
26365
  */
25745
26366
  static async fromJsonLd(json, options = {}) {
25746
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
26367
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
25747
26368
  try {
25748
26369
  const object = await this.__fromJsonLd__Follow__(json, span, options);
25749
26370
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -26139,7 +26760,7 @@ var Group = class Group extends Object$1 {
26139
26760
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26140
26761
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26141
26762
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26142
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26763
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26143
26764
  let fetchResult;
26144
26765
  try {
26145
26766
  fetchResult = await documentLoader(url.href);
@@ -26307,7 +26928,7 @@ var Group = class Group extends Object$1 {
26307
26928
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26308
26929
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26309
26930
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26310
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26931
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26311
26932
  let fetchResult;
26312
26933
  try {
26313
26934
  fetchResult = await documentLoader(url.href);
@@ -26493,7 +27114,7 @@ var Group = class Group extends Object$1 {
26493
27114
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26494
27115
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26495
27116
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26496
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27117
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26497
27118
  let fetchResult;
26498
27119
  try {
26499
27120
  fetchResult = await documentLoader(url.href);
@@ -26638,7 +27259,7 @@ var Group = class Group extends Object$1 {
26638
27259
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26639
27260
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26640
27261
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26641
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27262
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26642
27263
  let fetchResult;
26643
27264
  try {
26644
27265
  fetchResult = await documentLoader(url.href);
@@ -26780,7 +27401,7 @@ var Group = class Group extends Object$1 {
26780
27401
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26781
27402
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26782
27403
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26783
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27404
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26784
27405
  let fetchResult;
26785
27406
  try {
26786
27407
  fetchResult = await documentLoader(url.href);
@@ -26907,7 +27528,7 @@ var Group = class Group extends Object$1 {
26907
27528
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26908
27529
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
26909
27530
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
26910
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27531
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
26911
27532
  let fetchResult;
26912
27533
  try {
26913
27534
  fetchResult = await documentLoader(url.href);
@@ -27037,7 +27658,7 @@ var Group = class Group extends Object$1 {
27037
27658
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27038
27659
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27039
27660
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27040
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27661
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27041
27662
  let fetchResult;
27042
27663
  try {
27043
27664
  fetchResult = await documentLoader(url.href);
@@ -27165,7 +27786,7 @@ var Group = class Group extends Object$1 {
27165
27786
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27166
27787
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27167
27788
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27168
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27789
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27169
27790
  let fetchResult;
27170
27791
  try {
27171
27792
  fetchResult = await documentLoader(url.href);
@@ -27291,7 +27912,7 @@ var Group = class Group extends Object$1 {
27291
27912
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27292
27913
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27293
27914
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27294
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27915
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27295
27916
  let fetchResult;
27296
27917
  try {
27297
27918
  fetchResult = await documentLoader(url.href);
@@ -27417,7 +28038,7 @@ var Group = class Group extends Object$1 {
27417
28038
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27418
28039
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27419
28040
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27420
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
28041
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27421
28042
  let fetchResult;
27422
28043
  try {
27423
28044
  fetchResult = await documentLoader(url.href);
@@ -27582,7 +28203,7 @@ var Group = class Group extends Object$1 {
27582
28203
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27583
28204
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27584
28205
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27585
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
28206
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27586
28207
  let fetchResult;
27587
28208
  try {
27588
28209
  fetchResult = await documentLoader(url.href);
@@ -27751,7 +28372,7 @@ var Group = class Group extends Object$1 {
27751
28372
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27752
28373
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27753
28374
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27754
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
28375
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27755
28376
  let fetchResult;
27756
28377
  try {
27757
28378
  fetchResult = await documentLoader(url.href);
@@ -27971,7 +28592,7 @@ var Group = class Group extends Object$1 {
27971
28592
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27972
28593
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
27973
28594
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
27974
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
28595
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
27975
28596
  let fetchResult;
27976
28597
  try {
27977
28598
  fetchResult = await documentLoader(url.href);
@@ -28662,7 +29283,7 @@ var Group = class Group extends Object$1 {
28662
29283
  * @throws {TypeError} If the given `json` is invalid.
28663
29284
  */
28664
29285
  static async fromJsonLd(json, options = {}) {
28665
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
29286
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
28666
29287
  try {
28667
29288
  const object = await this.__fromJsonLd__Group__(json, span, options);
28668
29289
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -29408,7 +30029,7 @@ var Link = class Link {
29408
30029
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
29409
30030
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
29410
30031
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
29411
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
30032
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
29412
30033
  let fetchResult;
29413
30034
  try {
29414
30035
  fetchResult = await documentLoader(url.href);
@@ -29703,7 +30324,7 @@ var Link = class Link {
29703
30324
  * @throws {TypeError} If the given `json` is invalid.
29704
30325
  */
29705
30326
  static async fromJsonLd(json, options = {}) {
29706
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
30327
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
29707
30328
  try {
29708
30329
  const object = await this.__fromJsonLd__Link__(json, span, options);
29709
30330
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -29833,6 +30454,7 @@ var Link = class Link {
29833
30454
  "https://gotosocial.org/ns#LikeApproval",
29834
30455
  "https://gotosocial.org/ns#ReplyAuthorization",
29835
30456
  "https://w3id.org/fep/044f#QuoteAuthorization",
30457
+ "https://w3id.org/valueflows/ont/vf#Agreement",
29836
30458
  "https://w3id.org/valueflows/ont/vf#Proposal",
29837
30459
  "https://www.w3.org/ns/activitystreams#Activity",
29838
30460
  "http://litepub.social/ns#EmojiReact",
@@ -30053,7 +30675,7 @@ var Hashtag = class Hashtag extends Link {
30053
30675
  * @throws {TypeError} If the given `json` is invalid.
30054
30676
  */
30055
30677
  static async fromJsonLd(json, options = {}) {
30056
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
30678
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30057
30679
  try {
30058
30680
  const object = await this.__fromJsonLd__Hashtag__(json, span, options);
30059
30681
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30216,7 +30838,7 @@ var Image = class Image extends Document {
30216
30838
  * @throws {TypeError} If the given `json` is invalid.
30217
30839
  */
30218
30840
  static async fromJsonLd(json, options = {}) {
30219
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
30841
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30220
30842
  try {
30221
30843
  const object = await this.__fromJsonLd__Image__(json, span, options);
30222
30844
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30367,7 +30989,7 @@ var Offer = class Offer extends Activity {
30367
30989
  * @throws {TypeError} If the given `json` is invalid.
30368
30990
  */
30369
30991
  static async fromJsonLd(json, options = {}) {
30370
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
30992
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30371
30993
  try {
30372
30994
  const object = await this.__fromJsonLd__Offer__(json, span, options);
30373
30995
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30518,7 +31140,7 @@ var Invite = class Invite extends Offer {
30518
31140
  * @throws {TypeError} If the given `json` is invalid.
30519
31141
  */
30520
31142
  static async fromJsonLd(json, options = {}) {
30521
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31143
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30522
31144
  try {
30523
31145
  const object = await this.__fromJsonLd__Invite__(json, span, options);
30524
31146
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30668,7 +31290,7 @@ var Join = class Join extends Activity {
30668
31290
  * @throws {TypeError} If the given `json` is invalid.
30669
31291
  */
30670
31292
  static async fromJsonLd(json, options = {}) {
30671
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31293
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30672
31294
  try {
30673
31295
  const object = await this.__fromJsonLd__Join__(json, span, options);
30674
31296
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30818,7 +31440,7 @@ var Leave = class Leave extends Activity {
30818
31440
  * @throws {TypeError} If the given `json` is invalid.
30819
31441
  */
30820
31442
  static async fromJsonLd(json, options = {}) {
30821
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31443
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30822
31444
  try {
30823
31445
  const object = await this.__fromJsonLd__Leave__(json, span, options);
30824
31446
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -30972,7 +31594,7 @@ var Like = class Like extends Activity {
30972
31594
  * @throws {TypeError} If the given `json` is invalid.
30973
31595
  */
30974
31596
  static async fromJsonLd(json, options = {}) {
30975
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31597
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
30976
31598
  try {
30977
31599
  const object = await this.__fromJsonLd__Like__(json, span, options);
30978
31600
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -31121,7 +31743,7 @@ var Listen = class Listen extends Activity {
31121
31743
  * @throws {TypeError} If the given `json` is invalid.
31122
31744
  */
31123
31745
  static async fromJsonLd(json, options = {}) {
31124
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31746
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
31125
31747
  try {
31126
31748
  const object = await this.__fromJsonLd__Listen__(json, span, options);
31127
31749
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -31273,7 +31895,7 @@ var Mention = class Mention extends Link {
31273
31895
  * @throws {TypeError} If the given `json` is invalid.
31274
31896
  */
31275
31897
  static async fromJsonLd(json, options = {}) {
31276
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
31898
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
31277
31899
  try {
31278
31900
  const object = await this.__fromJsonLd__Mention__(json, span, options);
31279
31901
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -31424,7 +32046,7 @@ var Move = class Move extends Activity {
31424
32046
  * @throws {TypeError} If the given `json` is invalid.
31425
32047
  */
31426
32048
  static async fromJsonLd(json, options = {}) {
31427
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
32049
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
31428
32050
  try {
31429
32051
  const object = await this.__fromJsonLd__Move__(json, span, options);
31430
32052
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -31556,7 +32178,7 @@ var Note = class Note extends Object$1 {
31556
32178
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
31557
32179
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
31558
32180
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
31559
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
32181
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
31560
32182
  let fetchResult;
31561
32183
  try {
31562
32184
  fetchResult = await documentLoader(url.href);
@@ -31697,7 +32319,7 @@ var Note = class Note extends Object$1 {
31697
32319
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
31698
32320
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
31699
32321
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
31700
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
32322
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
31701
32323
  let fetchResult;
31702
32324
  try {
31703
32325
  fetchResult = await documentLoader(url.href);
@@ -31986,7 +32608,7 @@ var Note = class Note extends Object$1 {
31986
32608
  * @throws {TypeError} If the given `json` is invalid.
31987
32609
  */
31988
32610
  static async fromJsonLd(json, options = {}) {
31989
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
32611
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
31990
32612
  try {
31991
32613
  const object = await this.__fromJsonLd__Note__(json, span, options);
31992
32614
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -32162,7 +32784,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
32162
32784
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
32163
32785
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
32164
32786
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
32165
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
32787
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
32166
32788
  let fetchResult;
32167
32789
  try {
32168
32790
  fetchResult = await documentLoader(url.href);
@@ -32435,7 +33057,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
32435
33057
  * @throws {TypeError} If the given `json` is invalid.
32436
33058
  */
32437
33059
  static async fromJsonLd(json, options = {}) {
32438
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
33060
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
32439
33061
  try {
32440
33062
  const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
32441
33063
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -32498,6 +33120,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
32498
33120
  "https://gotosocial.org/ns#LikeApproval",
32499
33121
  "https://gotosocial.org/ns#ReplyAuthorization",
32500
33122
  "https://w3id.org/fep/044f#QuoteAuthorization",
33123
+ "https://w3id.org/valueflows/ont/vf#Agreement",
32501
33124
  "https://w3id.org/valueflows/ont/vf#Proposal",
32502
33125
  "https://www.w3.org/ns/activitystreams#Activity",
32503
33126
  "http://litepub.social/ns#EmojiReact",
@@ -32652,7 +33275,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
32652
33275
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
32653
33276
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
32654
33277
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
32655
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
33278
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
32656
33279
  let fetchResult;
32657
33280
  try {
32658
33281
  fetchResult = await documentLoader(url.href);
@@ -32948,7 +33571,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
32948
33571
  * @throws {TypeError} If the given `json` is invalid.
32949
33572
  */
32950
33573
  static async fromJsonLd(json, options = {}) {
32951
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
33574
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
32952
33575
  try {
32953
33576
  const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
32954
33577
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -33011,6 +33634,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33011
33634
  "https://gotosocial.org/ns#LikeApproval",
33012
33635
  "https://gotosocial.org/ns#ReplyAuthorization",
33013
33636
  "https://w3id.org/fep/044f#QuoteAuthorization",
33637
+ "https://w3id.org/valueflows/ont/vf#Agreement",
33014
33638
  "https://w3id.org/valueflows/ont/vf#Proposal",
33015
33639
  "https://www.w3.org/ns/activitystreams#Activity",
33016
33640
  "http://litepub.social/ns#EmojiReact",
@@ -33453,7 +34077,7 @@ var Organization = class Organization extends Object$1 {
33453
34077
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33454
34078
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33455
34079
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
33456
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34080
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
33457
34081
  let fetchResult;
33458
34082
  try {
33459
34083
  fetchResult = await documentLoader(url.href);
@@ -33621,7 +34245,7 @@ var Organization = class Organization extends Object$1 {
33621
34245
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33622
34246
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33623
34247
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
33624
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34248
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
33625
34249
  let fetchResult;
33626
34250
  try {
33627
34251
  fetchResult = await documentLoader(url.href);
@@ -33807,7 +34431,7 @@ var Organization = class Organization extends Object$1 {
33807
34431
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33808
34432
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33809
34433
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
33810
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34434
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
33811
34435
  let fetchResult;
33812
34436
  try {
33813
34437
  fetchResult = await documentLoader(url.href);
@@ -33952,7 +34576,7 @@ var Organization = class Organization extends Object$1 {
33952
34576
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33953
34577
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
33954
34578
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
33955
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34579
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
33956
34580
  let fetchResult;
33957
34581
  try {
33958
34582
  fetchResult = await documentLoader(url.href);
@@ -34094,7 +34718,7 @@ var Organization = class Organization extends Object$1 {
34094
34718
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34095
34719
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34096
34720
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34097
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34721
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34098
34722
  let fetchResult;
34099
34723
  try {
34100
34724
  fetchResult = await documentLoader(url.href);
@@ -34221,7 +34845,7 @@ var Organization = class Organization extends Object$1 {
34221
34845
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34222
34846
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34223
34847
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34224
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34848
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34225
34849
  let fetchResult;
34226
34850
  try {
34227
34851
  fetchResult = await documentLoader(url.href);
@@ -34351,7 +34975,7 @@ var Organization = class Organization extends Object$1 {
34351
34975
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34352
34976
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34353
34977
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34354
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34978
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34355
34979
  let fetchResult;
34356
34980
  try {
34357
34981
  fetchResult = await documentLoader(url.href);
@@ -34479,7 +35103,7 @@ var Organization = class Organization extends Object$1 {
34479
35103
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34480
35104
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34481
35105
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34482
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35106
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34483
35107
  let fetchResult;
34484
35108
  try {
34485
35109
  fetchResult = await documentLoader(url.href);
@@ -34605,7 +35229,7 @@ var Organization = class Organization extends Object$1 {
34605
35229
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34606
35230
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34607
35231
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34608
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35232
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34609
35233
  let fetchResult;
34610
35234
  try {
34611
35235
  fetchResult = await documentLoader(url.href);
@@ -34731,7 +35355,7 @@ var Organization = class Organization extends Object$1 {
34731
35355
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34732
35356
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34733
35357
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34734
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35358
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34735
35359
  let fetchResult;
34736
35360
  try {
34737
35361
  fetchResult = await documentLoader(url.href);
@@ -34896,7 +35520,7 @@ var Organization = class Organization extends Object$1 {
34896
35520
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34897
35521
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
34898
35522
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
34899
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35523
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
34900
35524
  let fetchResult;
34901
35525
  try {
34902
35526
  fetchResult = await documentLoader(url.href);
@@ -35065,7 +35689,7 @@ var Organization = class Organization extends Object$1 {
35065
35689
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
35066
35690
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
35067
35691
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
35068
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35692
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35069
35693
  let fetchResult;
35070
35694
  try {
35071
35695
  fetchResult = await documentLoader(url.href);
@@ -35285,7 +35909,7 @@ var Organization = class Organization extends Object$1 {
35285
35909
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
35286
35910
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
35287
35911
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
35288
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35912
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
35289
35913
  let fetchResult;
35290
35914
  try {
35291
35915
  fetchResult = await documentLoader(url.href);
@@ -35976,7 +36600,7 @@ var Organization = class Organization extends Object$1 {
35976
36600
  * @throws {TypeError} If the given `json` is invalid.
35977
36601
  */
35978
36602
  static async fromJsonLd(json, options = {}) {
35979
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
36603
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
35980
36604
  try {
35981
36605
  const object = await this.__fromJsonLd__Organization__(json, span, options);
35982
36606
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -36590,7 +37214,7 @@ var Page = class Page extends Document {
36590
37214
  * @throws {TypeError} If the given `json` is invalid.
36591
37215
  */
36592
37216
  static async fromJsonLd(json, options = {}) {
36593
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
37217
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
36594
37218
  try {
36595
37219
  const object = await this.__fromJsonLd__Page__(json, span, options);
36596
37220
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -36986,7 +37610,7 @@ var Person = class Person extends Object$1 {
36986
37610
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
36987
37611
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
36988
37612
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
36989
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37613
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
36990
37614
  let fetchResult;
36991
37615
  try {
36992
37616
  fetchResult = await documentLoader(url.href);
@@ -37154,7 +37778,7 @@ var Person = class Person extends Object$1 {
37154
37778
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37155
37779
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37156
37780
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37157
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37781
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37158
37782
  let fetchResult;
37159
37783
  try {
37160
37784
  fetchResult = await documentLoader(url.href);
@@ -37340,7 +37964,7 @@ var Person = class Person extends Object$1 {
37340
37964
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37341
37965
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37342
37966
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37343
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37967
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37344
37968
  let fetchResult;
37345
37969
  try {
37346
37970
  fetchResult = await documentLoader(url.href);
@@ -37485,7 +38109,7 @@ var Person = class Person extends Object$1 {
37485
38109
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37486
38110
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37487
38111
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37488
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38112
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37489
38113
  let fetchResult;
37490
38114
  try {
37491
38115
  fetchResult = await documentLoader(url.href);
@@ -37627,7 +38251,7 @@ var Person = class Person extends Object$1 {
37627
38251
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37628
38252
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37629
38253
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37630
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38254
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37631
38255
  let fetchResult;
37632
38256
  try {
37633
38257
  fetchResult = await documentLoader(url.href);
@@ -37754,7 +38378,7 @@ var Person = class Person extends Object$1 {
37754
38378
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37755
38379
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37756
38380
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37757
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38381
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37758
38382
  let fetchResult;
37759
38383
  try {
37760
38384
  fetchResult = await documentLoader(url.href);
@@ -37884,7 +38508,7 @@ var Person = class Person extends Object$1 {
37884
38508
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37885
38509
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
37886
38510
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
37887
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38511
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
37888
38512
  let fetchResult;
37889
38513
  try {
37890
38514
  fetchResult = await documentLoader(url.href);
@@ -38012,7 +38636,7 @@ var Person = class Person extends Object$1 {
38012
38636
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38013
38637
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38014
38638
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38015
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38639
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38016
38640
  let fetchResult;
38017
38641
  try {
38018
38642
  fetchResult = await documentLoader(url.href);
@@ -38138,7 +38762,7 @@ var Person = class Person extends Object$1 {
38138
38762
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38139
38763
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38140
38764
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38141
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38765
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38142
38766
  let fetchResult;
38143
38767
  try {
38144
38768
  fetchResult = await documentLoader(url.href);
@@ -38264,7 +38888,7 @@ var Person = class Person extends Object$1 {
38264
38888
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38265
38889
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38266
38890
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38267
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38891
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38268
38892
  let fetchResult;
38269
38893
  try {
38270
38894
  fetchResult = await documentLoader(url.href);
@@ -38429,7 +39053,7 @@ var Person = class Person extends Object$1 {
38429
39053
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38430
39054
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38431
39055
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38432
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
39056
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38433
39057
  let fetchResult;
38434
39058
  try {
38435
39059
  fetchResult = await documentLoader(url.href);
@@ -38598,7 +39222,7 @@ var Person = class Person extends Object$1 {
38598
39222
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38599
39223
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38600
39224
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38601
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
39225
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38602
39226
  let fetchResult;
38603
39227
  try {
38604
39228
  fetchResult = await documentLoader(url.href);
@@ -38818,7 +39442,7 @@ var Person = class Person extends Object$1 {
38818
39442
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38819
39443
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
38820
39444
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
38821
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
39445
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
38822
39446
  let fetchResult;
38823
39447
  try {
38824
39448
  fetchResult = await documentLoader(url.href);
@@ -39509,7 +40133,7 @@ var Person = class Person extends Object$1 {
39509
40133
  * @throws {TypeError} If the given `json` is invalid.
39510
40134
  */
39511
40135
  static async fromJsonLd(json, options = {}) {
39512
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
40136
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
39513
40137
  try {
39514
40138
  const object = await this.__fromJsonLd__Person__(json, span, options);
39515
40139
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -40300,7 +40924,7 @@ var Place = class Place extends Object$1 {
40300
40924
  * @throws {TypeError} If the given `json` is invalid.
40301
40925
  */
40302
40926
  static async fromJsonLd(json, options = {}) {
40303
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
40927
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
40304
40928
  try {
40305
40929
  const object = await this.__fromJsonLd__Place__(json, span, options);
40306
40930
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -40502,7 +41126,7 @@ var Profile = class Profile extends Object$1 {
40502
41126
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
40503
41127
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
40504
41128
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
40505
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41129
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
40506
41130
  let fetchResult;
40507
41131
  try {
40508
41132
  fetchResult = await documentLoader(url.href);
@@ -40706,7 +41330,7 @@ var Profile = class Profile extends Object$1 {
40706
41330
  * @throws {TypeError} If the given `json` is invalid.
40707
41331
  */
40708
41332
  static async fromJsonLd(json, options = {}) {
40709
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
41333
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
40710
41334
  try {
40711
41335
  const object = await this.__fromJsonLd__Profile__(json, span, options);
40712
41336
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -40905,7 +41529,7 @@ var Question = class Question extends IntransitiveActivity {
40905
41529
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
40906
41530
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
40907
41531
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
40908
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41532
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
40909
41533
  let fetchResult;
40910
41534
  try {
40911
41535
  fetchResult = await documentLoader(url.href);
@@ -41030,7 +41654,7 @@ var Question = class Question extends IntransitiveActivity {
41030
41654
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41031
41655
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41032
41656
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
41033
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41657
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41034
41658
  let fetchResult;
41035
41659
  try {
41036
41660
  fetchResult = await documentLoader(url.href);
@@ -41171,7 +41795,7 @@ var Question = class Question extends IntransitiveActivity {
41171
41795
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41172
41796
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41173
41797
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
41174
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41798
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41175
41799
  let fetchResult;
41176
41800
  try {
41177
41801
  fetchResult = await documentLoader(url.href);
@@ -41312,7 +41936,7 @@ var Question = class Question extends IntransitiveActivity {
41312
41936
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41313
41937
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
41314
41938
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
41315
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41939
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
41316
41940
  let fetchResult;
41317
41941
  try {
41318
41942
  fetchResult = await documentLoader(url.href);
@@ -41567,7 +42191,7 @@ var Question = class Question extends IntransitiveActivity {
41567
42191
  * @throws {TypeError} If the given `json` is invalid.
41568
42192
  */
41569
42193
  static async fromJsonLd(json, options = {}) {
41570
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
42194
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
41571
42195
  try {
41572
42196
  const object = await this.__fromJsonLd__Question__(json, span, options);
41573
42197
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -41849,7 +42473,7 @@ var Read = class Read extends Activity {
41849
42473
  * @throws {TypeError} If the given `json` is invalid.
41850
42474
  */
41851
42475
  static async fromJsonLd(json, options = {}) {
41852
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
42476
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
41853
42477
  try {
41854
42478
  const object = await this.__fromJsonLd__Read__(json, span, options);
41855
42479
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -41999,7 +42623,7 @@ var Reject = class Reject extends Activity {
41999
42623
  * @throws {TypeError} If the given `json` is invalid.
42000
42624
  */
42001
42625
  static async fromJsonLd(json, options = {}) {
42002
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
42626
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
42003
42627
  try {
42004
42628
  const object = await this.__fromJsonLd__Reject__(json, span, options);
42005
42629
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -42173,7 +42797,7 @@ var Relationship = class Relationship extends Object$1 {
42173
42797
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42174
42798
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42175
42799
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
42176
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
42800
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
42177
42801
  let fetchResult;
42178
42802
  try {
42179
42803
  fetchResult = await documentLoader(url.href);
@@ -42299,7 +42923,7 @@ var Relationship = class Relationship extends Object$1 {
42299
42923
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42300
42924
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42301
42925
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
42302
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
42926
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
42303
42927
  let fetchResult;
42304
42928
  try {
42305
42929
  fetchResult = await documentLoader(url.href);
@@ -42467,7 +43091,7 @@ var Relationship = class Relationship extends Object$1 {
42467
43091
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42468
43092
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
42469
43093
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
42470
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43094
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
42471
43095
  let fetchResult;
42472
43096
  try {
42473
43097
  fetchResult = await documentLoader(url.href);
@@ -42751,7 +43375,7 @@ var Relationship = class Relationship extends Object$1 {
42751
43375
  * @throws {TypeError} If the given `json` is invalid.
42752
43376
  */
42753
43377
  static async fromJsonLd(json, options = {}) {
42754
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
43378
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
42755
43379
  try {
42756
43380
  const object = await this.__fromJsonLd__Relationship__(json, span, options);
42757
43381
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -42970,7 +43594,7 @@ var Remove = class Remove extends Activity {
42970
43594
  * @throws {TypeError} If the given `json` is invalid.
42971
43595
  */
42972
43596
  static async fromJsonLd(json, options = {}) {
42973
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
43597
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
42974
43598
  try {
42975
43599
  const object = await this.__fromJsonLd__Remove__(json, span, options);
42976
43600
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -43366,7 +43990,7 @@ var Service = class Service extends Object$1 {
43366
43990
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43367
43991
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43368
43992
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
43369
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43993
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43370
43994
  let fetchResult;
43371
43995
  try {
43372
43996
  fetchResult = await documentLoader(url.href);
@@ -43534,7 +44158,7 @@ var Service = class Service extends Object$1 {
43534
44158
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43535
44159
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43536
44160
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
43537
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44161
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43538
44162
  let fetchResult;
43539
44163
  try {
43540
44164
  fetchResult = await documentLoader(url.href);
@@ -43720,7 +44344,7 @@ var Service = class Service extends Object$1 {
43720
44344
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43721
44345
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43722
44346
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
43723
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44347
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43724
44348
  let fetchResult;
43725
44349
  try {
43726
44350
  fetchResult = await documentLoader(url.href);
@@ -43865,7 +44489,7 @@ var Service = class Service extends Object$1 {
43865
44489
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43866
44490
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
43867
44491
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
43868
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44492
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
43869
44493
  let fetchResult;
43870
44494
  try {
43871
44495
  fetchResult = await documentLoader(url.href);
@@ -44007,7 +44631,7 @@ var Service = class Service extends Object$1 {
44007
44631
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44008
44632
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44009
44633
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44010
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44634
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44011
44635
  let fetchResult;
44012
44636
  try {
44013
44637
  fetchResult = await documentLoader(url.href);
@@ -44134,7 +44758,7 @@ var Service = class Service extends Object$1 {
44134
44758
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44135
44759
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44136
44760
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44137
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44761
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44138
44762
  let fetchResult;
44139
44763
  try {
44140
44764
  fetchResult = await documentLoader(url.href);
@@ -44264,7 +44888,7 @@ var Service = class Service extends Object$1 {
44264
44888
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44265
44889
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44266
44890
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44267
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44891
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44268
44892
  let fetchResult;
44269
44893
  try {
44270
44894
  fetchResult = await documentLoader(url.href);
@@ -44392,7 +45016,7 @@ var Service = class Service extends Object$1 {
44392
45016
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44393
45017
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44394
45018
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44395
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45019
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44396
45020
  let fetchResult;
44397
45021
  try {
44398
45022
  fetchResult = await documentLoader(url.href);
@@ -44518,7 +45142,7 @@ var Service = class Service extends Object$1 {
44518
45142
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44519
45143
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44520
45144
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44521
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45145
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44522
45146
  let fetchResult;
44523
45147
  try {
44524
45148
  fetchResult = await documentLoader(url.href);
@@ -44644,7 +45268,7 @@ var Service = class Service extends Object$1 {
44644
45268
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44645
45269
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44646
45270
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44647
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45271
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44648
45272
  let fetchResult;
44649
45273
  try {
44650
45274
  fetchResult = await documentLoader(url.href);
@@ -44809,7 +45433,7 @@ var Service = class Service extends Object$1 {
44809
45433
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44810
45434
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44811
45435
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44812
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45436
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44813
45437
  let fetchResult;
44814
45438
  try {
44815
45439
  fetchResult = await documentLoader(url.href);
@@ -44978,7 +45602,7 @@ var Service = class Service extends Object$1 {
44978
45602
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44979
45603
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
44980
45604
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
44981
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45605
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
44982
45606
  let fetchResult;
44983
45607
  try {
44984
45608
  fetchResult = await documentLoader(url.href);
@@ -45198,7 +45822,7 @@ var Service = class Service extends Object$1 {
45198
45822
  const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
45199
45823
  const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
45200
45824
  const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
45201
- return await tracerProvider.getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45825
+ return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
45202
45826
  let fetchResult;
45203
45827
  try {
45204
45828
  fetchResult = await documentLoader(url.href);
@@ -45889,7 +46513,7 @@ var Service = class Service extends Object$1 {
45889
46513
  * @throws {TypeError} If the given `json` is invalid.
45890
46514
  */
45891
46515
  static async fromJsonLd(json, options = {}) {
45892
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
46516
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
45893
46517
  try {
45894
46518
  const object = await this.__fromJsonLd__Service__(json, span, options);
45895
46519
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46591,7 +47215,7 @@ var Source = class {
46591
47215
  * @throws {TypeError} If the given `json` is invalid.
46592
47216
  */
46593
47217
  static async fromJsonLd(json, options = {}) {
46594
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
47218
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
46595
47219
  try {
46596
47220
  const object = await this.__fromJsonLd__Source__(json, span, options);
46597
47221
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46770,7 +47394,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
46770
47394
  * @throws {TypeError} If the given `json` is invalid.
46771
47395
  */
46772
47396
  static async fromJsonLd(json, options = {}) {
46773
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
47397
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
46774
47398
  try {
46775
47399
  const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
46776
47400
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -46920,7 +47544,7 @@ var TentativeReject = class TentativeReject extends Reject {
46920
47544
  * @throws {TypeError} If the given `json` is invalid.
46921
47545
  */
46922
47546
  static async fromJsonLd(json, options = {}) {
46923
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
47547
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
46924
47548
  try {
46925
47549
  const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
46926
47550
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47159,7 +47783,7 @@ var Tombstone = class Tombstone extends Object$1 {
47159
47783
  * @throws {TypeError} If the given `json` is invalid.
47160
47784
  */
47161
47785
  static async fromJsonLd(json, options = {}) {
47162
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
47786
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
47163
47787
  try {
47164
47788
  const object = await this.__fromJsonLd__Tombstone__(json, span, options);
47165
47789
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47346,7 +47970,7 @@ var Travel = class Travel extends IntransitiveActivity {
47346
47970
  * @throws {TypeError} If the given `json` is invalid.
47347
47971
  */
47348
47972
  static async fromJsonLd(json, options = {}) {
47349
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
47973
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
47350
47974
  try {
47351
47975
  const object = await this.__fromJsonLd__Travel__(json, span, options);
47352
47976
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47510,7 +48134,7 @@ var Undo = class Undo extends Activity {
47510
48134
  * @throws {TypeError} If the given `json` is invalid.
47511
48135
  */
47512
48136
  static async fromJsonLd(json, options = {}) {
47513
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
48137
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
47514
48138
  try {
47515
48139
  const object = await this.__fromJsonLd__Undo__(json, span, options);
47516
48140
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47722,7 +48346,7 @@ var Update = class Update extends Activity {
47722
48346
  * @throws {TypeError} If the given `json` is invalid.
47723
48347
  */
47724
48348
  static async fromJsonLd(json, options = {}) {
47725
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
48349
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
47726
48350
  try {
47727
48351
  const object = await this.__fromJsonLd__Update__(json, span, options);
47728
48352
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -47885,7 +48509,7 @@ var Video = class Video extends Document {
47885
48509
  * @throws {TypeError} If the given `json` is invalid.
47886
48510
  */
47887
48511
  static async fromJsonLd(json, options = {}) {
47888
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
48512
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
47889
48513
  try {
47890
48514
  const object = await this.__fromJsonLd__Video__(json, span, options);
47891
48515
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -48034,7 +48658,7 @@ var View = class View extends Activity {
48034
48658
  * @throws {TypeError} If the given `json` is invalid.
48035
48659
  */
48036
48660
  static async fromJsonLd(json, options = {}) {
48037
- return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.3.0").startActiveSpan("activitypub.parse_object", async (span) => {
48661
+ return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
48038
48662
  try {
48039
48663
  const object = await this.__fromJsonLd__View__(json, span, options);
48040
48664
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
@@ -48116,6 +48740,7 @@ const entityTypeSet = new Set([
48116
48740
  DataIntegrityProof,
48117
48741
  CryptographicKey,
48118
48742
  Multikey,
48743
+ Agreement,
48119
48744
  Proposal,
48120
48745
  Accept,
48121
48746
  Add,
@@ -48187,6 +48812,7 @@ const entityTypeIds = new Map([
48187
48812
  ["https://w3id.org/security#DataIntegrityProof", DataIntegrityProof],
48188
48813
  ["https://w3id.org/security#Key", CryptographicKey],
48189
48814
  ["https://w3id.org/security#Multikey", Multikey],
48815
+ ["https://w3id.org/valueflows/ont/vf#Agreement", Agreement],
48190
48816
  ["https://w3id.org/valueflows/ont/vf#Proposal", Proposal],
48191
48817
  ["https://www.w3.org/ns/activitystreams#Accept", Accept],
48192
48818
  ["https://www.w3.org/ns/activitystreams#Add", Add],
@@ -48733,6 +49359,7 @@ async function* traverseCollection(collection, options = {}) {
48733
49359
  exports.Accept = Accept;
48734
49360
  exports.Activity = Activity;
48735
49361
  exports.Add = Add;
49362
+ exports.Agreement = Agreement;
48736
49363
  exports.Announce = Announce;
48737
49364
  exports.AnnounceAuthorization = AnnounceAuthorization;
48738
49365
  exports.AnnounceRequest = AnnounceRequest;
@@ -48744,6 +49371,7 @@ exports.Block = Block;
48744
49371
  exports.ChatMessage = ChatMessage;
48745
49372
  exports.Collection = Collection;
48746
49373
  exports.CollectionPage = CollectionPage;
49374
+ exports.Commitment = Commitment;
48747
49375
  exports.Create = Create;
48748
49376
  exports.CryptographicKey = CryptographicKey;
48749
49377
  exports.DataIntegrityProof = DataIntegrityProof;