@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/deno.json +1 -1
- package/dist/mod.cjs +845 -217
- package/dist/mod.d.cts +310 -2
- package/dist/mod.d.ts +310 -2
- package/dist/mod.js +844 -218
- package/dist-tests/{actor-CjyrAA03.mjs → actor-Buop31ap.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/agreement.yaml +68 -0
- package/dist-tests/commitment.yaml +47 -0
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BBRml5cy.mjs → vocab-XnSGFOqq.mjs} +845 -217
- package/dist-tests/vocab.test.mjs +208 -1
- package/package.json +5 -5
- package/src/__snapshots__/vocab.test.ts.snap +159 -0
- package/src/agreement.yaml +68 -0
- package/src/commitment.yaml +47 -0
- package/src/vocab.test.ts +342 -1
|
@@ -74,6 +74,7 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
|
|
|
74
74
|
Accept: () => Accept,
|
|
75
75
|
Activity: () => Activity,
|
|
76
76
|
Add: () => Add,
|
|
77
|
+
Agreement: () => Agreement,
|
|
77
78
|
Announce: () => Announce,
|
|
78
79
|
AnnounceAuthorization: () => AnnounceAuthorization,
|
|
79
80
|
AnnounceRequest: () => AnnounceRequest,
|
|
@@ -85,6 +86,7 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
|
|
|
85
86
|
ChatMessage: () => ChatMessage,
|
|
86
87
|
Collection: () => Collection,
|
|
87
88
|
CollectionPage: () => CollectionPage,
|
|
89
|
+
Commitment: () => Commitment,
|
|
88
90
|
Create: () => Create,
|
|
89
91
|
CryptographicKey: () => CryptographicKey,
|
|
90
92
|
DataIntegrityProof: () => DataIntegrityProof,
|
|
@@ -814,7 +816,7 @@ var Object$1 = class Object$1 {
|
|
|
814
816
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
815
817
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
816
818
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
817
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
819
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
818
820
|
let fetchResult;
|
|
819
821
|
try {
|
|
820
822
|
fetchResult = await documentLoader(url.href);
|
|
@@ -963,7 +965,7 @@ var Object$1 = class Object$1 {
|
|
|
963
965
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
964
966
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
965
967
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
966
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
968
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
967
969
|
let fetchResult;
|
|
968
970
|
try {
|
|
969
971
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1181,7 +1183,7 @@ var Object$1 = class Object$1 {
|
|
|
1181
1183
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1182
1184
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1183
1185
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1184
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1186
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1185
1187
|
let fetchResult;
|
|
1186
1188
|
try {
|
|
1187
1189
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1371,7 +1373,7 @@ var Object$1 = class Object$1 {
|
|
|
1371
1373
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1372
1374
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1373
1375
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1374
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1376
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1375
1377
|
let fetchResult;
|
|
1376
1378
|
try {
|
|
1377
1379
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1536,7 +1538,7 @@ var Object$1 = class Object$1 {
|
|
|
1536
1538
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1537
1539
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1538
1540
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1539
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1541
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1540
1542
|
let fetchResult;
|
|
1541
1543
|
try {
|
|
1542
1544
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1669,7 +1671,7 @@ var Object$1 = class Object$1 {
|
|
|
1669
1671
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1670
1672
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1671
1673
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1672
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1674
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1673
1675
|
let fetchResult;
|
|
1674
1676
|
try {
|
|
1675
1677
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1857,7 +1859,7 @@ var Object$1 = class Object$1 {
|
|
|
1857
1859
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1858
1860
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1859
1861
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1860
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1862
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1861
1863
|
let fetchResult;
|
|
1862
1864
|
try {
|
|
1863
1865
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2045,7 +2047,7 @@ var Object$1 = class Object$1 {
|
|
|
2045
2047
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2046
2048
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2047
2049
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2048
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2050
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2049
2051
|
let fetchResult;
|
|
2050
2052
|
try {
|
|
2051
2053
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2225,7 +2227,7 @@ var Object$1 = class Object$1 {
|
|
|
2225
2227
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2226
2228
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2227
2229
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2228
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2230
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2229
2231
|
let fetchResult;
|
|
2230
2232
|
try {
|
|
2231
2233
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2405,7 +2407,7 @@ var Object$1 = class Object$1 {
|
|
|
2405
2407
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2406
2408
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2407
2409
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2408
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2410
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2409
2411
|
let fetchResult;
|
|
2410
2412
|
try {
|
|
2411
2413
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2590,7 +2592,7 @@ var Object$1 = class Object$1 {
|
|
|
2590
2592
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2591
2593
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2592
2594
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2593
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2595
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2594
2596
|
let fetchResult;
|
|
2595
2597
|
try {
|
|
2596
2598
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2714,7 +2716,7 @@ var Object$1 = class Object$1 {
|
|
|
2714
2716
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2715
2717
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2716
2718
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2717
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2719
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2718
2720
|
let fetchResult;
|
|
2719
2721
|
try {
|
|
2720
2722
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2844,7 +2846,7 @@ var Object$1 = class Object$1 {
|
|
|
2844
2846
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2845
2847
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2846
2848
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2847
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2849
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2848
2850
|
let fetchResult;
|
|
2849
2851
|
try {
|
|
2850
2852
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2974,7 +2976,7 @@ var Object$1 = class Object$1 {
|
|
|
2974
2976
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2975
2977
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2976
2978
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2977
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2979
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2978
2980
|
let fetchResult;
|
|
2979
2981
|
try {
|
|
2980
2982
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3122,7 +3124,7 @@ var Object$1 = class Object$1 {
|
|
|
3122
3124
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3123
3125
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3124
3126
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3125
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3127
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3126
3128
|
let fetchResult;
|
|
3127
3129
|
try {
|
|
3128
3130
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3277,7 +3279,7 @@ var Object$1 = class Object$1 {
|
|
|
3277
3279
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3278
3280
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3279
3281
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3280
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3282
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3281
3283
|
let fetchResult;
|
|
3282
3284
|
try {
|
|
3283
3285
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3447,7 +3449,7 @@ var Object$1 = class Object$1 {
|
|
|
3447
3449
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3448
3450
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3449
3451
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3450
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3452
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3451
3453
|
let fetchResult;
|
|
3452
3454
|
try {
|
|
3453
3455
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3617,7 +3619,7 @@ var Object$1 = class Object$1 {
|
|
|
3617
3619
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3618
3620
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3619
3621
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3620
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3622
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3621
3623
|
let fetchResult;
|
|
3622
3624
|
try {
|
|
3623
3625
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3787,7 +3789,7 @@ var Object$1 = class Object$1 {
|
|
|
3787
3789
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3788
3790
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3789
3791
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3790
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3792
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3791
3793
|
let fetchResult;
|
|
3792
3794
|
try {
|
|
3793
3795
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3994,7 +3996,7 @@ var Object$1 = class Object$1 {
|
|
|
3994
3996
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3995
3997
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3996
3998
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3997
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3999
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3998
4000
|
let fetchResult;
|
|
3999
4001
|
try {
|
|
4000
4002
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4187,7 +4189,7 @@ var Object$1 = class Object$1 {
|
|
|
4187
4189
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4188
4190
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4189
4191
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4190
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4192
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4191
4193
|
let fetchResult;
|
|
4192
4194
|
try {
|
|
4193
4195
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4311,7 +4313,7 @@ var Object$1 = class Object$1 {
|
|
|
4311
4313
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4312
4314
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4313
4315
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4314
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4316
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4315
4317
|
let fetchResult;
|
|
4316
4318
|
try {
|
|
4317
4319
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4435,7 +4437,7 @@ var Object$1 = class Object$1 {
|
|
|
4435
4437
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4436
4438
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4437
4439
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4438
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4440
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4439
4441
|
let fetchResult;
|
|
4440
4442
|
try {
|
|
4441
4443
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5265,7 +5267,7 @@ var Object$1 = class Object$1 {
|
|
|
5265
5267
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5266
5268
|
*/
|
|
5267
5269
|
static async fromJsonLd(json, options = {}) {
|
|
5268
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
5270
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5269
5271
|
try {
|
|
5270
5272
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5271
5273
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -5309,6 +5311,7 @@ var Object$1 = class Object$1 {
|
|
|
5309
5311
|
if (values["@type"].includes("https://gotosocial.org/ns#LikeApproval")) return await LikeAuthorization.fromJsonLd(json, options);
|
|
5310
5312
|
if (values["@type"].includes("https://gotosocial.org/ns#ReplyAuthorization")) return await ReplyAuthorization.fromJsonLd(json, options);
|
|
5311
5313
|
if (values["@type"].includes("https://w3id.org/fep/044f#QuoteAuthorization")) return await QuoteAuthorization.fromJsonLd(json, options);
|
|
5314
|
+
if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) return await Agreement.fromJsonLd(json, options);
|
|
5312
5315
|
if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Proposal")) return await Proposal.fromJsonLd(json, options);
|
|
5313
5316
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Activity")) return await Activity.fromJsonLd(json, options);
|
|
5314
5317
|
if (values["@type"].includes("http://litepub.social/ns#EmojiReact")) return await EmojiReact.fromJsonLd(json, options);
|
|
@@ -5386,6 +5389,7 @@ var Object$1 = class Object$1 {
|
|
|
5386
5389
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5387
5390
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5388
5391
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5392
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5389
5393
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5390
5394
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5391
5395
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5533,6 +5537,7 @@ var Object$1 = class Object$1 {
|
|
|
5533
5537
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5534
5538
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5535
5539
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5540
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5536
5541
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5537
5542
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5538
5543
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5640,6 +5645,7 @@ var Object$1 = class Object$1 {
|
|
|
5640
5645
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5641
5646
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5642
5647
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5648
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5643
5649
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5644
5650
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5645
5651
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5797,6 +5803,7 @@ var Object$1 = class Object$1 {
|
|
|
5797
5803
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5798
5804
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5799
5805
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5806
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5800
5807
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5801
5808
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5802
5809
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5886,6 +5893,7 @@ var Object$1 = class Object$1 {
|
|
|
5886
5893
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5887
5894
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5888
5895
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5896
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5889
5897
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5890
5898
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5891
5899
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5982,6 +5990,7 @@ var Object$1 = class Object$1 {
|
|
|
5982
5990
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5983
5991
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5984
5992
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5993
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5985
5994
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5986
5995
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5987
5996
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -6159,6 +6168,7 @@ var Object$1 = class Object$1 {
|
|
|
6159
6168
|
"https://gotosocial.org/ns#LikeApproval",
|
|
6160
6169
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
6161
6170
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
6171
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
6162
6172
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
6163
6173
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
6164
6174
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -6773,7 +6783,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6773
6783
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6774
6784
|
*/
|
|
6775
6785
|
static async fromJsonLd(json, options = {}) {
|
|
6776
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
6786
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6777
6787
|
try {
|
|
6778
6788
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6779
6789
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6908,7 +6918,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6908
6918
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6909
6919
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6910
6920
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6911
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
6921
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6912
6922
|
let fetchResult;
|
|
6913
6923
|
try {
|
|
6914
6924
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7049,7 +7059,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7049
7059
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7050
7060
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7051
7061
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7052
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7062
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7053
7063
|
let fetchResult;
|
|
7054
7064
|
try {
|
|
7055
7065
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7336,7 +7346,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7336
7346
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7337
7347
|
*/
|
|
7338
7348
|
static async fromJsonLd(json, options = {}) {
|
|
7339
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
7349
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7340
7350
|
try {
|
|
7341
7351
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
7342
7352
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7664,7 +7674,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7664
7674
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7665
7675
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7666
7676
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7667
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7677
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7668
7678
|
let fetchResult;
|
|
7669
7679
|
try {
|
|
7670
7680
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7882,7 +7892,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7882
7892
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7883
7893
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7884
7894
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7885
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7895
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7886
7896
|
let fetchResult;
|
|
7887
7897
|
try {
|
|
7888
7898
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8054,7 +8064,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8054
8064
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8055
8065
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8056
8066
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8057
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8067
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8058
8068
|
let fetchResult;
|
|
8059
8069
|
try {
|
|
8060
8070
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8232,7 +8242,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8232
8242
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8233
8243
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8234
8244
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8235
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8245
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8236
8246
|
let fetchResult;
|
|
8237
8247
|
try {
|
|
8238
8248
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8404,7 +8414,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8404
8414
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8405
8415
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8406
8416
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8407
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8417
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8408
8418
|
let fetchResult;
|
|
8409
8419
|
try {
|
|
8410
8420
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8578,7 +8588,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8578
8588
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8579
8589
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8580
8590
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8581
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8591
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8582
8592
|
let fetchResult;
|
|
8583
8593
|
try {
|
|
8584
8594
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8835,7 +8845,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8835
8845
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8836
8846
|
*/
|
|
8837
8847
|
static async fromJsonLd(json, options = {}) {
|
|
8838
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
8848
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8839
8849
|
try {
|
|
8840
8850
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8841
8851
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9175,7 +9185,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9175
9185
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9176
9186
|
*/
|
|
9177
9187
|
static async fromJsonLd(json, options = {}) {
|
|
9178
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9188
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9179
9189
|
try {
|
|
9180
9190
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
9181
9191
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9428,7 +9438,7 @@ var PropertyValue = class {
|
|
|
9428
9438
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9429
9439
|
*/
|
|
9430
9440
|
static async fromJsonLd(json, options = {}) {
|
|
9431
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9441
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9432
9442
|
try {
|
|
9433
9443
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
9434
9444
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9700,7 +9710,7 @@ var Measure = class {
|
|
|
9700
9710
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9701
9711
|
*/
|
|
9702
9712
|
static async fromJsonLd(json, options = {}) {
|
|
9703
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9713
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9704
9714
|
try {
|
|
9705
9715
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
9706
9716
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9861,7 +9871,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9861
9871
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9862
9872
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9863
9873
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9864
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
9874
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9865
9875
|
let fetchResult;
|
|
9866
9876
|
try {
|
|
9867
9877
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9985,7 +9995,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9985
9995
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9986
9996
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9987
9997
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9988
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
9998
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9989
9999
|
let fetchResult;
|
|
9990
10000
|
try {
|
|
9991
10001
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10204,7 +10214,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10204
10214
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10205
10215
|
*/
|
|
10206
10216
|
static async fromJsonLd(json, options = {}) {
|
|
10207
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10217
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10208
10218
|
try {
|
|
10209
10219
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
10210
10220
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10408,7 +10418,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
10408
10418
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10409
10419
|
*/
|
|
10410
10420
|
static async fromJsonLd(json, options = {}) {
|
|
10411
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10421
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10412
10422
|
try {
|
|
10413
10423
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
10414
10424
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10679,7 +10689,7 @@ var InteractionPolicy = class {
|
|
|
10679
10689
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10680
10690
|
*/
|
|
10681
10691
|
static async fromJsonLd(json, options = {}) {
|
|
10682
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10692
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10683
10693
|
try {
|
|
10684
10694
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
10685
10695
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11011,7 +11021,7 @@ var InteractionRule = class {
|
|
|
11011
11021
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11012
11022
|
*/
|
|
11013
11023
|
static async fromJsonLd(json, options = {}) {
|
|
11014
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
11024
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11015
11025
|
try {
|
|
11016
11026
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
11017
11027
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11173,7 +11183,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11173
11183
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11174
11184
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11175
11185
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11176
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11186
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11177
11187
|
let fetchResult;
|
|
11178
11188
|
try {
|
|
11179
11189
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11297,7 +11307,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11297
11307
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11298
11308
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11299
11309
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11300
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11310
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11301
11311
|
let fetchResult;
|
|
11302
11312
|
try {
|
|
11303
11313
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11516,7 +11526,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11516
11526
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11517
11527
|
*/
|
|
11518
11528
|
static async fromJsonLd(json, options = {}) {
|
|
11519
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
11529
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11520
11530
|
try {
|
|
11521
11531
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
11522
11532
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11719,7 +11729,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11719
11729
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11720
11730
|
*/
|
|
11721
11731
|
static async fromJsonLd(json, options = {}) {
|
|
11722
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
11732
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11723
11733
|
try {
|
|
11724
11734
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
11725
11735
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11851,7 +11861,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11851
11861
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11852
11862
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11853
11863
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11854
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11864
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11855
11865
|
let fetchResult;
|
|
11856
11866
|
try {
|
|
11857
11867
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11975,7 +11985,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11975
11985
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11976
11986
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11977
11987
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11978
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11988
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11979
11989
|
let fetchResult;
|
|
11980
11990
|
try {
|
|
11981
11991
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12194,7 +12204,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12194
12204
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12195
12205
|
*/
|
|
12196
12206
|
static async fromJsonLd(json, options = {}) {
|
|
12197
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12207
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12198
12208
|
try {
|
|
12199
12209
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
12200
12210
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12397,7 +12407,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12397
12407
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12398
12408
|
*/
|
|
12399
12409
|
static async fromJsonLd(json, options = {}) {
|
|
12400
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12410
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12401
12411
|
try {
|
|
12402
12412
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
12403
12413
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12529,7 +12539,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12529
12539
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12530
12540
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12531
12541
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12532
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
12542
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12533
12543
|
let fetchResult;
|
|
12534
12544
|
try {
|
|
12535
12545
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12652,7 +12662,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12652
12662
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12653
12663
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12654
12664
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12655
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
12665
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12656
12666
|
let fetchResult;
|
|
12657
12667
|
try {
|
|
12658
12668
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12873,7 +12883,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12873
12883
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12874
12884
|
*/
|
|
12875
12885
|
static async fromJsonLd(json, options = {}) {
|
|
12876
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12886
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12877
12887
|
try {
|
|
12878
12888
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
12879
12889
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13106,7 +13116,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13106
13116
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13107
13117
|
*/
|
|
13108
13118
|
static async fromJsonLd(json, options = {}) {
|
|
13109
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13119
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13110
13120
|
try {
|
|
13111
13121
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
13112
13122
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13319,7 +13329,7 @@ var DidService = class {
|
|
|
13319
13329
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13320
13330
|
*/
|
|
13321
13331
|
static async fromJsonLd(json, options = {}) {
|
|
13322
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13332
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13323
13333
|
try {
|
|
13324
13334
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
13325
13335
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13476,7 +13486,7 @@ var Export = class Export extends DidService {
|
|
|
13476
13486
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13477
13487
|
*/
|
|
13478
13488
|
static async fromJsonLd(json, options = {}) {
|
|
13479
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13489
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13480
13490
|
try {
|
|
13481
13491
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
13482
13492
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13656,7 +13666,7 @@ var DataIntegrityProof = class {
|
|
|
13656
13666
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13657
13667
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13658
13668
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13659
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
13669
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13660
13670
|
let fetchResult;
|
|
13661
13671
|
try {
|
|
13662
13672
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13875,7 +13885,7 @@ var DataIntegrityProof = class {
|
|
|
13875
13885
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13876
13886
|
*/
|
|
13877
13887
|
static async fromJsonLd(json, options = {}) {
|
|
13878
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13888
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13879
13889
|
try {
|
|
13880
13890
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
13881
13891
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14107,7 +14117,7 @@ var CryptographicKey = class {
|
|
|
14107
14117
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14108
14118
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14109
14119
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14110
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
14120
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14111
14121
|
let fetchResult;
|
|
14112
14122
|
try {
|
|
14113
14123
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14372,7 +14382,7 @@ var CryptographicKey = class {
|
|
|
14372
14382
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14373
14383
|
*/
|
|
14374
14384
|
static async fromJsonLd(json, options = {}) {
|
|
14375
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
14385
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14376
14386
|
try {
|
|
14377
14387
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
14378
14388
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14577,7 +14587,7 @@ var Multikey = class {
|
|
|
14577
14587
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14578
14588
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14579
14589
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14580
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
14590
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14581
14591
|
let fetchResult;
|
|
14582
14592
|
try {
|
|
14583
14593
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14848,7 +14858,7 @@ var Multikey = class {
|
|
|
14848
14858
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14849
14859
|
*/
|
|
14850
14860
|
static async fromJsonLd(json, options = {}) {
|
|
14851
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
14861
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14852
14862
|
try {
|
|
14853
14863
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
14854
14864
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14959,6 +14969,618 @@ Multikey.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options
|
|
|
14959
14969
|
Multikey.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
14960
14970
|
return "Multikey " + inspect(this._getCustomInspectProxy(), options);
|
|
14961
14971
|
};
|
|
14972
|
+
/** The agreement reached between parties responding to a {@link Proposal}.
|
|
14973
|
+
*
|
|
14974
|
+
* An interested party sends an `Agreement` wrapped in an {@link Offer}
|
|
14975
|
+
* activity. The proposing party then either finalizes the agreement by
|
|
14976
|
+
* sending an {@link Accept} activity with the finalized `Agreement` as
|
|
14977
|
+
* its `result`, or sends a {@link Reject} activity.
|
|
14978
|
+
*
|
|
14979
|
+
* Note: This type extends ActivityStreams `Object` for practical
|
|
14980
|
+
* interoperability within ActivityPub federation, even though FEP-0837
|
|
14981
|
+
* defines `Agreement` as a pure ValueFlows type. Extending `Object`
|
|
14982
|
+
* provides useful inherited properties such as `id`, `attributedTo`,
|
|
14983
|
+
* `url`, `to`, and `published` without needing to redefine them.
|
|
14984
|
+
*/
|
|
14985
|
+
var Agreement = class Agreement extends Object$1 {
|
|
14986
|
+
/**
|
|
14987
|
+
* The type URI of {@link Agreement}: `https://w3id.org/valueflows/ont/vf#Agreement`.
|
|
14988
|
+
*/
|
|
14989
|
+
static get typeId() {
|
|
14990
|
+
return new URL("https://w3id.org/valueflows/ont/vf#Agreement");
|
|
14991
|
+
}
|
|
14992
|
+
#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
14993
|
+
#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
|
|
14994
|
+
/**
|
|
14995
|
+
* Constructs a new instance of Agreement with the given values.
|
|
14996
|
+
* @param values The values to initialize the instance with.
|
|
14997
|
+
* @param options The options to use for initialization.
|
|
14998
|
+
*/
|
|
14999
|
+
constructor(values, options = {}) {
|
|
15000
|
+
super(values, options);
|
|
15001
|
+
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
15002
|
+
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
15003
|
+
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
15004
|
+
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
15005
|
+
}
|
|
15006
|
+
/**
|
|
15007
|
+
* Clones this instance, optionally updating it with the given values.
|
|
15008
|
+
* @param values The values to update the clone with.
|
|
15009
|
+
* @param options The options to use for cloning.
|
|
15010
|
+
* @returns The cloned instance.
|
|
15011
|
+
*/
|
|
15012
|
+
clone(values = {}, options = {}) {
|
|
15013
|
+
if (this._warning != null) {
|
|
15014
|
+
getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15015
|
+
options = {
|
|
15016
|
+
...options,
|
|
15017
|
+
$warning: this._warning
|
|
15018
|
+
};
|
|
15019
|
+
}
|
|
15020
|
+
const clone = super.clone(values, options);
|
|
15021
|
+
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
15022
|
+
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
15023
|
+
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
15024
|
+
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15025
|
+
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
15026
|
+
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
15027
|
+
return clone;
|
|
15028
|
+
}
|
|
15029
|
+
/** The primary {@link Commitment} associated with the agreement. This
|
|
15030
|
+
* commitment satisfies the primary {@link Intent} of the corresponding
|
|
15031
|
+
* {@link Proposal}.
|
|
15032
|
+
*/
|
|
15033
|
+
get stipulates() {
|
|
15034
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15035
|
+
if (this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length < 1) return null;
|
|
15036
|
+
return this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
|
|
15037
|
+
}
|
|
15038
|
+
/** The reciprocal {@link Commitment} associated with the agreement.
|
|
15039
|
+
* Required if the corresponding {@link Proposal} has a reciprocal
|
|
15040
|
+
* {@link Intent}.
|
|
15041
|
+
*/
|
|
15042
|
+
get stipulatesReciprocal() {
|
|
15043
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15044
|
+
if (this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length < 1) return null;
|
|
15045
|
+
return this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
|
|
15046
|
+
}
|
|
15047
|
+
/**
|
|
15048
|
+
* Converts this object to a JSON-LD structure.
|
|
15049
|
+
* @param options The options to use.
|
|
15050
|
+
* - `format`: The format of the output: `compact` or
|
|
15051
|
+
`expand`.
|
|
15052
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15053
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
15054
|
+
when `format` is set to `'expand'`.
|
|
15055
|
+
* @returns The JSON-LD representation of this object.
|
|
15056
|
+
*/
|
|
15057
|
+
async toJsonLd(options = {}) {
|
|
15058
|
+
if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
|
|
15059
|
+
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'.");
|
|
15060
|
+
options = {
|
|
15061
|
+
...options,
|
|
15062
|
+
contextLoader: options.contextLoader ?? getDocumentLoader()
|
|
15063
|
+
};
|
|
15064
|
+
if (options.format == null && this.isCompactable()) {
|
|
15065
|
+
const result = await super.toJsonLd({
|
|
15066
|
+
...options,
|
|
15067
|
+
format: void 0,
|
|
15068
|
+
context: void 0
|
|
15069
|
+
});
|
|
15070
|
+
let compactItems = [];
|
|
15071
|
+
for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
|
|
15072
|
+
const item = await v.toJsonLd({
|
|
15073
|
+
...options,
|
|
15074
|
+
format: void 0,
|
|
15075
|
+
context: void 0
|
|
15076
|
+
});
|
|
15077
|
+
compactItems.push(item);
|
|
15078
|
+
}
|
|
15079
|
+
if (compactItems.length > 0) result["stipulates"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15080
|
+
compactItems = [];
|
|
15081
|
+
for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
|
|
15082
|
+
const item = await v.toJsonLd({
|
|
15083
|
+
...options,
|
|
15084
|
+
format: void 0,
|
|
15085
|
+
context: void 0
|
|
15086
|
+
});
|
|
15087
|
+
compactItems.push(item);
|
|
15088
|
+
}
|
|
15089
|
+
if (compactItems.length > 0) result["stipulatesReciprocal"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15090
|
+
result["type"] = "Agreement";
|
|
15091
|
+
if (this.id != null) result["id"] = this.id.href;
|
|
15092
|
+
result["@context"] = [
|
|
15093
|
+
"https://www.w3.org/ns/activitystreams",
|
|
15094
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
15095
|
+
"https://gotosocial.org/ns",
|
|
15096
|
+
{
|
|
15097
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15098
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15099
|
+
"fedibird": "http://fedibird.com/ns#",
|
|
15100
|
+
"sensitive": "as:sensitive",
|
|
15101
|
+
"emojiReactions": {
|
|
15102
|
+
"@id": "fedibird:emojiReactions",
|
|
15103
|
+
"@type": "@id"
|
|
15104
|
+
},
|
|
15105
|
+
"Agreement": "vf:Agreement",
|
|
15106
|
+
"Commitment": "vf:Commitment",
|
|
15107
|
+
"stipulates": "vf:stipulates",
|
|
15108
|
+
"stipulatesReciprocal": "vf:stipulatesReciprocal",
|
|
15109
|
+
"satisfies": {
|
|
15110
|
+
"@id": "vf:satisfies",
|
|
15111
|
+
"@type": "@id"
|
|
15112
|
+
},
|
|
15113
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15114
|
+
"hasUnit": "om2:hasUnit",
|
|
15115
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15116
|
+
}
|
|
15117
|
+
];
|
|
15118
|
+
return result;
|
|
15119
|
+
}
|
|
15120
|
+
let array;
|
|
15121
|
+
const values = (await super.toJsonLd({
|
|
15122
|
+
...options,
|
|
15123
|
+
format: "expand",
|
|
15124
|
+
context: void 0
|
|
15125
|
+
}))[0];
|
|
15126
|
+
array = [];
|
|
15127
|
+
for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
|
|
15128
|
+
const element = await v.toJsonLd(options);
|
|
15129
|
+
array.push(element);
|
|
15130
|
+
}
|
|
15131
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulates"] = array;
|
|
15132
|
+
array = [];
|
|
15133
|
+
for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
|
|
15134
|
+
const element = await v.toJsonLd(options);
|
|
15135
|
+
array.push(element);
|
|
15136
|
+
}
|
|
15137
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"] = array;
|
|
15138
|
+
values["@type"] = ["https://w3id.org/valueflows/ont/vf#Agreement"];
|
|
15139
|
+
if (this.id != null) values["@id"] = this.id.href;
|
|
15140
|
+
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15141
|
+
const docContext = options.context ?? [
|
|
15142
|
+
"https://www.w3.org/ns/activitystreams",
|
|
15143
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
15144
|
+
"https://gotosocial.org/ns",
|
|
15145
|
+
{
|
|
15146
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15147
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15148
|
+
"fedibird": "http://fedibird.com/ns#",
|
|
15149
|
+
"sensitive": "as:sensitive",
|
|
15150
|
+
"emojiReactions": {
|
|
15151
|
+
"@id": "fedibird:emojiReactions",
|
|
15152
|
+
"@type": "@id"
|
|
15153
|
+
},
|
|
15154
|
+
"Agreement": "vf:Agreement",
|
|
15155
|
+
"Commitment": "vf:Commitment",
|
|
15156
|
+
"stipulates": "vf:stipulates",
|
|
15157
|
+
"stipulatesReciprocal": "vf:stipulatesReciprocal",
|
|
15158
|
+
"satisfies": {
|
|
15159
|
+
"@id": "vf:satisfies",
|
|
15160
|
+
"@type": "@id"
|
|
15161
|
+
},
|
|
15162
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15163
|
+
"hasUnit": "om2:hasUnit",
|
|
15164
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15165
|
+
}
|
|
15166
|
+
];
|
|
15167
|
+
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15168
|
+
if (docContext != null) {
|
|
15169
|
+
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
15170
|
+
else compacted.proof["@context"] = docContext;
|
|
15171
|
+
}
|
|
15172
|
+
return compacted;
|
|
15173
|
+
}
|
|
15174
|
+
isCompactable() {
|
|
15175
|
+
return super.isCompactable();
|
|
15176
|
+
}
|
|
15177
|
+
/**
|
|
15178
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
15179
|
+
* @param json The JSON-LD structure to convert.
|
|
15180
|
+
* @param options The options to use.
|
|
15181
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
15182
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15183
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
15184
|
+
* If omitted, the global tracer provider is used.
|
|
15185
|
+
* @returns The object of this type.
|
|
15186
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
15187
|
+
*/
|
|
15188
|
+
static async fromJsonLd(json, options = {}) {
|
|
15189
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15190
|
+
try {
|
|
15191
|
+
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
15192
|
+
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
15193
|
+
return object;
|
|
15194
|
+
} catch (error) {
|
|
15195
|
+
span.setStatus({
|
|
15196
|
+
code: SpanStatusCode.ERROR,
|
|
15197
|
+
message: String(error)
|
|
15198
|
+
});
|
|
15199
|
+
throw error;
|
|
15200
|
+
} finally {
|
|
15201
|
+
span.end();
|
|
15202
|
+
}
|
|
15203
|
+
});
|
|
15204
|
+
}
|
|
15205
|
+
static async __fromJsonLd__Agreement__(json, span, options = {}) {
|
|
15206
|
+
if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
|
|
15207
|
+
else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
|
|
15208
|
+
options = {
|
|
15209
|
+
...options,
|
|
15210
|
+
documentLoader: options.documentLoader ?? getDocumentLoader(),
|
|
15211
|
+
contextLoader: options.contextLoader ?? getDocumentLoader(),
|
|
15212
|
+
tracerProvider: options.tracerProvider ?? trace.getTracerProvider()
|
|
15213
|
+
};
|
|
15214
|
+
let values;
|
|
15215
|
+
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15216
|
+
else values = (await jsonld.expand(json, {
|
|
15217
|
+
documentLoader: options.contextLoader,
|
|
15218
|
+
keepFreeFloatingNodes: true
|
|
15219
|
+
}))[0] ?? {};
|
|
15220
|
+
if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
|
|
15221
|
+
if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
|
|
15222
|
+
...options,
|
|
15223
|
+
baseUrl: new URL(values["@id"])
|
|
15224
|
+
};
|
|
15225
|
+
if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
|
|
15226
|
+
if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
|
|
15227
|
+
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15228
|
+
}
|
|
15229
|
+
delete values["@type"];
|
|
15230
|
+
const instance = await super.fromJsonLd(values, {
|
|
15231
|
+
...options,
|
|
15232
|
+
_fromSubclass: true
|
|
15233
|
+
});
|
|
15234
|
+
if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
15235
|
+
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
15236
|
+
let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
|
|
15237
|
+
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) {
|
|
15238
|
+
if (v == null) continue;
|
|
15239
|
+
const decoded = await Commitment.fromJsonLd(v, {
|
|
15240
|
+
...options,
|
|
15241
|
+
baseUrl: options.baseUrl
|
|
15242
|
+
});
|
|
15243
|
+
if (typeof decoded === "undefined") continue;
|
|
15244
|
+
_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
|
|
15245
|
+
}
|
|
15246
|
+
instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
15247
|
+
const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
|
|
15248
|
+
let _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array = values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"];
|
|
15249
|
+
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) {
|
|
15250
|
+
if (v == null) continue;
|
|
15251
|
+
const decoded = await Commitment.fromJsonLd(v, {
|
|
15252
|
+
...options,
|
|
15253
|
+
baseUrl: options.baseUrl
|
|
15254
|
+
});
|
|
15255
|
+
if (typeof decoded === "undefined") continue;
|
|
15256
|
+
_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
|
|
15257
|
+
}
|
|
15258
|
+
instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15259
|
+
if (!("_fromSubclass" in options) || !options._fromSubclass) try {
|
|
15260
|
+
instance._cachedJsonLd = structuredClone(json);
|
|
15261
|
+
} catch {
|
|
15262
|
+
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
15263
|
+
}
|
|
15264
|
+
return instance;
|
|
15265
|
+
}
|
|
15266
|
+
_getCustomInspectProxy() {
|
|
15267
|
+
const proxy = super._getCustomInspectProxy();
|
|
15268
|
+
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.map((v) => v instanceof URL ? {
|
|
15269
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15270
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15271
|
+
} : v);
|
|
15272
|
+
if (_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length == 1) proxy.stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
|
|
15273
|
+
const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.map((v) => v instanceof URL ? {
|
|
15274
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15275
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15276
|
+
} : v);
|
|
15277
|
+
if (_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length == 1) proxy.stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
|
|
15278
|
+
return proxy;
|
|
15279
|
+
}
|
|
15280
|
+
};
|
|
15281
|
+
Agreement.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
|
|
15282
|
+
return "Agreement " + inspect(this._getCustomInspectProxy(), options);
|
|
15283
|
+
};
|
|
15284
|
+
Agreement.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
15285
|
+
return "Agreement " + inspect(this._getCustomInspectProxy(), options);
|
|
15286
|
+
};
|
|
15287
|
+
/** A promised economic transaction, referenced by an {@link Agreement}.
|
|
15288
|
+
*
|
|
15289
|
+
* A commitment satisfies an {@link Intent} of a {@link Proposal} and
|
|
15290
|
+
* specifies the actual amount of the economic resource being committed.
|
|
15291
|
+
*/
|
|
15292
|
+
var Commitment = class {
|
|
15293
|
+
#documentLoader;
|
|
15294
|
+
#contextLoader;
|
|
15295
|
+
#tracerProvider;
|
|
15296
|
+
#warning;
|
|
15297
|
+
#cachedJsonLd;
|
|
15298
|
+
#_baseUrl;
|
|
15299
|
+
id;
|
|
15300
|
+
get _documentLoader() {
|
|
15301
|
+
return this.#documentLoader;
|
|
15302
|
+
}
|
|
15303
|
+
get _contextLoader() {
|
|
15304
|
+
return this.#contextLoader;
|
|
15305
|
+
}
|
|
15306
|
+
get _tracerProvider() {
|
|
15307
|
+
return this.#tracerProvider;
|
|
15308
|
+
}
|
|
15309
|
+
get _warning() {
|
|
15310
|
+
return this.#warning;
|
|
15311
|
+
}
|
|
15312
|
+
get _cachedJsonLd() {
|
|
15313
|
+
return this.#cachedJsonLd;
|
|
15314
|
+
}
|
|
15315
|
+
set _cachedJsonLd(value) {
|
|
15316
|
+
this.#cachedJsonLd = value;
|
|
15317
|
+
}
|
|
15318
|
+
get _baseUrl() {
|
|
15319
|
+
return this.#_baseUrl;
|
|
15320
|
+
}
|
|
15321
|
+
/**
|
|
15322
|
+
* The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
|
|
15323
|
+
*/
|
|
15324
|
+
static get typeId() {
|
|
15325
|
+
return new URL("https://w3id.org/valueflows/ont/vf#Commitment");
|
|
15326
|
+
}
|
|
15327
|
+
#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15328
|
+
#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
|
|
15329
|
+
/**
|
|
15330
|
+
* Constructs a new instance of Commitment with the given values.
|
|
15331
|
+
* @param values The values to initialize the instance with.
|
|
15332
|
+
* @param options The options to use for initialization.
|
|
15333
|
+
*/
|
|
15334
|
+
constructor(values, options = {}) {
|
|
15335
|
+
this.#documentLoader = options.documentLoader;
|
|
15336
|
+
this.#contextLoader = options.contextLoader;
|
|
15337
|
+
this.#tracerProvider = options.tracerProvider;
|
|
15338
|
+
const baseUrl = options.baseUrl;
|
|
15339
|
+
this.#_baseUrl = baseUrl == null ? void 0 : new URL(baseUrl.href);
|
|
15340
|
+
if ("$warning" in options) this.#warning = options.$warning;
|
|
15341
|
+
if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
|
|
15342
|
+
else throw new TypeError("The id must be a URL.");
|
|
15343
|
+
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
15344
|
+
else throw new TypeError("The satisfies must be of type URL.");
|
|
15345
|
+
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
15346
|
+
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
15347
|
+
}
|
|
15348
|
+
/**
|
|
15349
|
+
* Clones this instance, optionally updating it with the given values.
|
|
15350
|
+
* @param values The values to update the clone with.
|
|
15351
|
+
* @param options The options to use for cloning.
|
|
15352
|
+
* @returns The cloned instance.
|
|
15353
|
+
*/
|
|
15354
|
+
clone(values = {}, options = {}) {
|
|
15355
|
+
if (this._warning != null) {
|
|
15356
|
+
getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15357
|
+
options = {
|
|
15358
|
+
...options,
|
|
15359
|
+
$warning: this._warning
|
|
15360
|
+
};
|
|
15361
|
+
}
|
|
15362
|
+
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15363
|
+
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
15364
|
+
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
15365
|
+
else throw new TypeError("The satisfies must be of type URL.");
|
|
15366
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15367
|
+
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
15368
|
+
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
15369
|
+
return clone;
|
|
15370
|
+
}
|
|
15371
|
+
/** The {@link Intent} of a {@link Proposal} that this commitment
|
|
15372
|
+
* satisfies. The value is the proposal's URI with a
|
|
15373
|
+
* [fragment](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment)
|
|
15374
|
+
* appended to identify the intent. Recommended fragments are
|
|
15375
|
+
* `primary` and `reciprocal`.
|
|
15376
|
+
*/
|
|
15377
|
+
get satisfies() {
|
|
15378
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15379
|
+
if (this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length < 1) return null;
|
|
15380
|
+
return this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
|
|
15381
|
+
}
|
|
15382
|
+
/** The amount and unit of the economic resource being committed. The
|
|
15383
|
+
* unit must match the unit specified in the corresponding {@link Intent}
|
|
15384
|
+
* of the proposal.
|
|
15385
|
+
*/
|
|
15386
|
+
get resourceQuantity() {
|
|
15387
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15388
|
+
if (this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length < 1) return null;
|
|
15389
|
+
return this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
|
|
15390
|
+
}
|
|
15391
|
+
/**
|
|
15392
|
+
* Converts this object to a JSON-LD structure.
|
|
15393
|
+
* @param options The options to use.
|
|
15394
|
+
* - `format`: The format of the output: `compact` or
|
|
15395
|
+
`expand`.
|
|
15396
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15397
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
15398
|
+
when `format` is set to `'expand'`.
|
|
15399
|
+
* @returns The JSON-LD representation of this object.
|
|
15400
|
+
*/
|
|
15401
|
+
async toJsonLd(options = {}) {
|
|
15402
|
+
if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
|
|
15403
|
+
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'.");
|
|
15404
|
+
options = {
|
|
15405
|
+
...options,
|
|
15406
|
+
contextLoader: options.contextLoader ?? getDocumentLoader()
|
|
15407
|
+
};
|
|
15408
|
+
if (options.format == null && this.isCompactable()) {
|
|
15409
|
+
const result = {};
|
|
15410
|
+
let compactItems = [];
|
|
15411
|
+
for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
|
|
15412
|
+
const item = v.href;
|
|
15413
|
+
compactItems.push(item);
|
|
15414
|
+
}
|
|
15415
|
+
if (compactItems.length > 0) result["satisfies"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15416
|
+
compactItems = [];
|
|
15417
|
+
for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
|
|
15418
|
+
const item = await v.toJsonLd({
|
|
15419
|
+
...options,
|
|
15420
|
+
format: void 0,
|
|
15421
|
+
context: void 0
|
|
15422
|
+
});
|
|
15423
|
+
compactItems.push(item);
|
|
15424
|
+
}
|
|
15425
|
+
if (compactItems.length > 0) result["resourceQuantity"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15426
|
+
result["type"] = "Commitment";
|
|
15427
|
+
if (this.id != null) result["id"] = this.id.href;
|
|
15428
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams", {
|
|
15429
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15430
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15431
|
+
"Commitment": "vf:Commitment",
|
|
15432
|
+
"satisfies": {
|
|
15433
|
+
"@id": "vf:satisfies",
|
|
15434
|
+
"@type": "@id"
|
|
15435
|
+
},
|
|
15436
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15437
|
+
"hasUnit": "om2:hasUnit",
|
|
15438
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15439
|
+
}];
|
|
15440
|
+
return result;
|
|
15441
|
+
}
|
|
15442
|
+
let array;
|
|
15443
|
+
const values = {};
|
|
15444
|
+
array = [];
|
|
15445
|
+
for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
|
|
15446
|
+
const element = { "@id": v.href };
|
|
15447
|
+
array.push(element);
|
|
15448
|
+
}
|
|
15449
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#satisfies"] = array;
|
|
15450
|
+
array = [];
|
|
15451
|
+
for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
|
|
15452
|
+
const element = await v.toJsonLd(options);
|
|
15453
|
+
array.push(element);
|
|
15454
|
+
}
|
|
15455
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#resourceQuantity"] = array;
|
|
15456
|
+
values["@type"] = ["https://w3id.org/valueflows/ont/vf#Commitment"];
|
|
15457
|
+
if (this.id != null) values["@id"] = this.id.href;
|
|
15458
|
+
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15459
|
+
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
15460
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15461
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15462
|
+
"Commitment": "vf:Commitment",
|
|
15463
|
+
"satisfies": {
|
|
15464
|
+
"@id": "vf:satisfies",
|
|
15465
|
+
"@type": "@id"
|
|
15466
|
+
},
|
|
15467
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15468
|
+
"hasUnit": "om2:hasUnit",
|
|
15469
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15470
|
+
}];
|
|
15471
|
+
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15472
|
+
if (docContext != null) {}
|
|
15473
|
+
return compacted;
|
|
15474
|
+
}
|
|
15475
|
+
isCompactable() {
|
|
15476
|
+
return true;
|
|
15477
|
+
}
|
|
15478
|
+
/**
|
|
15479
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
15480
|
+
* @param json The JSON-LD structure to convert.
|
|
15481
|
+
* @param options The options to use.
|
|
15482
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
15483
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15484
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
15485
|
+
* If omitted, the global tracer provider is used.
|
|
15486
|
+
* @returns The object of this type.
|
|
15487
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
15488
|
+
*/
|
|
15489
|
+
static async fromJsonLd(json, options = {}) {
|
|
15490
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15491
|
+
try {
|
|
15492
|
+
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
15493
|
+
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
15494
|
+
return object;
|
|
15495
|
+
} catch (error) {
|
|
15496
|
+
span.setStatus({
|
|
15497
|
+
code: SpanStatusCode.ERROR,
|
|
15498
|
+
message: String(error)
|
|
15499
|
+
});
|
|
15500
|
+
throw error;
|
|
15501
|
+
} finally {
|
|
15502
|
+
span.end();
|
|
15503
|
+
}
|
|
15504
|
+
});
|
|
15505
|
+
}
|
|
15506
|
+
static async __fromJsonLd__Commitment__(json, span, options = {}) {
|
|
15507
|
+
if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
|
|
15508
|
+
else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
|
|
15509
|
+
options = {
|
|
15510
|
+
...options,
|
|
15511
|
+
documentLoader: options.documentLoader ?? getDocumentLoader(),
|
|
15512
|
+
contextLoader: options.contextLoader ?? getDocumentLoader(),
|
|
15513
|
+
tracerProvider: options.tracerProvider ?? trace.getTracerProvider()
|
|
15514
|
+
};
|
|
15515
|
+
let values;
|
|
15516
|
+
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15517
|
+
else values = (await jsonld.expand(json, {
|
|
15518
|
+
documentLoader: options.contextLoader,
|
|
15519
|
+
keepFreeFloatingNodes: true
|
|
15520
|
+
}))[0] ?? {};
|
|
15521
|
+
if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
|
|
15522
|
+
if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
|
|
15523
|
+
...options,
|
|
15524
|
+
baseUrl: new URL(values["@id"])
|
|
15525
|
+
};
|
|
15526
|
+
if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
|
|
15527
|
+
if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
|
|
15528
|
+
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15529
|
+
}
|
|
15530
|
+
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);
|
|
15531
|
+
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15532
|
+
let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
|
|
15533
|
+
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) {
|
|
15534
|
+
if (v == null) continue;
|
|
15535
|
+
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);
|
|
15536
|
+
if (typeof decoded === "undefined") continue;
|
|
15537
|
+
_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
|
|
15538
|
+
}
|
|
15539
|
+
instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
15540
|
+
const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
|
|
15541
|
+
let _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array = values["https://w3id.org/valueflows/ont/vf#resourceQuantity"];
|
|
15542
|
+
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) {
|
|
15543
|
+
if (v == null) continue;
|
|
15544
|
+
const decoded = await Measure.fromJsonLd(v, {
|
|
15545
|
+
...options,
|
|
15546
|
+
baseUrl: options.baseUrl
|
|
15547
|
+
});
|
|
15548
|
+
if (typeof decoded === "undefined") continue;
|
|
15549
|
+
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15550
|
+
}
|
|
15551
|
+
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15552
|
+
if (!("_fromSubclass" in options) || !options._fromSubclass) try {
|
|
15553
|
+
instance._cachedJsonLd = structuredClone(json);
|
|
15554
|
+
} catch {
|
|
15555
|
+
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
15556
|
+
}
|
|
15557
|
+
return instance;
|
|
15558
|
+
}
|
|
15559
|
+
_getCustomInspectProxy() {
|
|
15560
|
+
const proxy = {};
|
|
15561
|
+
if (this.id != null) proxy.id = {
|
|
15562
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(this.id.href, options),
|
|
15563
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(this.id.href, options)
|
|
15564
|
+
};
|
|
15565
|
+
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.map((v) => v instanceof URL ? {
|
|
15566
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15567
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15568
|
+
} : v);
|
|
15569
|
+
if (_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length == 1) proxy.satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
|
|
15570
|
+
const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.map((v) => v instanceof URL ? {
|
|
15571
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15572
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15573
|
+
} : v);
|
|
15574
|
+
if (_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length == 1) proxy.resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
|
|
15575
|
+
return proxy;
|
|
15576
|
+
}
|
|
15577
|
+
};
|
|
15578
|
+
Commitment.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
|
|
15579
|
+
return "Commitment " + inspect(this._getCustomInspectProxy(), options);
|
|
15580
|
+
};
|
|
15581
|
+
Commitment.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
15582
|
+
return "Commitment " + inspect(this._getCustomInspectProxy(), options);
|
|
15583
|
+
};
|
|
14962
15584
|
/** A proposed economic transaction describing what is being offered or requested
|
|
14963
15585
|
* in a {@link Proposal}.
|
|
14964
15586
|
*/
|
|
@@ -15244,7 +15866,7 @@ var Intent = class {
|
|
|
15244
15866
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15245
15867
|
*/
|
|
15246
15868
|
static async fromJsonLd(json, options = {}) {
|
|
15247
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
15869
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15248
15870
|
try {
|
|
15249
15871
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
15250
15872
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15662,7 +16284,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
15662
16284
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15663
16285
|
*/
|
|
15664
16286
|
static async fromJsonLd(json, options = {}) {
|
|
15665
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16287
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15666
16288
|
try {
|
|
15667
16289
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
15668
16290
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15876,7 +16498,7 @@ var Accept = class Accept extends Activity {
|
|
|
15876
16498
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15877
16499
|
*/
|
|
15878
16500
|
static async fromJsonLd(json, options = {}) {
|
|
15879
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16501
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15880
16502
|
try {
|
|
15881
16503
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
15882
16504
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16029,7 +16651,7 @@ var Add = class Add extends Activity {
|
|
|
16029
16651
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16030
16652
|
*/
|
|
16031
16653
|
static async fromJsonLd(json, options = {}) {
|
|
16032
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16654
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16033
16655
|
try {
|
|
16034
16656
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
16035
16657
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16209,7 +16831,7 @@ var Announce = class Announce extends Activity {
|
|
|
16209
16831
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16210
16832
|
*/
|
|
16211
16833
|
static async fromJsonLd(json, options = {}) {
|
|
16212
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16834
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16213
16835
|
try {
|
|
16214
16836
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
16215
16837
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16605,7 +17227,7 @@ var Application = class Application extends Object$1 {
|
|
|
16605
17227
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16606
17228
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16607
17229
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16608
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17230
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16609
17231
|
let fetchResult;
|
|
16610
17232
|
try {
|
|
16611
17233
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16773,7 +17395,7 @@ var Application = class Application extends Object$1 {
|
|
|
16773
17395
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16774
17396
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16775
17397
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16776
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17398
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16777
17399
|
let fetchResult;
|
|
16778
17400
|
try {
|
|
16779
17401
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16959,7 +17581,7 @@ var Application = class Application extends Object$1 {
|
|
|
16959
17581
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16960
17582
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16961
17583
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16962
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17584
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16963
17585
|
let fetchResult;
|
|
16964
17586
|
try {
|
|
16965
17587
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17104,7 +17726,7 @@ var Application = class Application extends Object$1 {
|
|
|
17104
17726
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17105
17727
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17106
17728
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17107
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17729
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17108
17730
|
let fetchResult;
|
|
17109
17731
|
try {
|
|
17110
17732
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17246,7 +17868,7 @@ var Application = class Application extends Object$1 {
|
|
|
17246
17868
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17247
17869
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17248
17870
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17249
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17871
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17250
17872
|
let fetchResult;
|
|
17251
17873
|
try {
|
|
17252
17874
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17373,7 +17995,7 @@ var Application = class Application extends Object$1 {
|
|
|
17373
17995
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17374
17996
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17375
17997
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17376
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17998
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17377
17999
|
let fetchResult;
|
|
17378
18000
|
try {
|
|
17379
18001
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17503,7 +18125,7 @@ var Application = class Application extends Object$1 {
|
|
|
17503
18125
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17504
18126
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17505
18127
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17506
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18128
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17507
18129
|
let fetchResult;
|
|
17508
18130
|
try {
|
|
17509
18131
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17631,7 +18253,7 @@ var Application = class Application extends Object$1 {
|
|
|
17631
18253
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17632
18254
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17633
18255
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17634
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18256
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17635
18257
|
let fetchResult;
|
|
17636
18258
|
try {
|
|
17637
18259
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17757,7 +18379,7 @@ var Application = class Application extends Object$1 {
|
|
|
17757
18379
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17758
18380
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17759
18381
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17760
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18382
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17761
18383
|
let fetchResult;
|
|
17762
18384
|
try {
|
|
17763
18385
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17883,7 +18505,7 @@ var Application = class Application extends Object$1 {
|
|
|
17883
18505
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17884
18506
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17885
18507
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17886
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18508
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17887
18509
|
let fetchResult;
|
|
17888
18510
|
try {
|
|
17889
18511
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18048,7 +18670,7 @@ var Application = class Application extends Object$1 {
|
|
|
18048
18670
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18049
18671
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18050
18672
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18051
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18673
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18052
18674
|
let fetchResult;
|
|
18053
18675
|
try {
|
|
18054
18676
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18217,7 +18839,7 @@ var Application = class Application extends Object$1 {
|
|
|
18217
18839
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18218
18840
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18219
18841
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18220
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18842
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18221
18843
|
let fetchResult;
|
|
18222
18844
|
try {
|
|
18223
18845
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18437,7 +19059,7 @@ var Application = class Application extends Object$1 {
|
|
|
18437
19059
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18438
19060
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18439
19061
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18440
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
19062
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18441
19063
|
let fetchResult;
|
|
18442
19064
|
try {
|
|
18443
19065
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19128,7 +19750,7 @@ var Application = class Application extends Object$1 {
|
|
|
19128
19750
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19129
19751
|
*/
|
|
19130
19752
|
static async fromJsonLd(json, options = {}) {
|
|
19131
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
19753
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19132
19754
|
try {
|
|
19133
19755
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
19134
19756
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19730,7 +20352,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
19730
20352
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19731
20353
|
*/
|
|
19732
20354
|
static async fromJsonLd(json, options = {}) {
|
|
19733
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
20355
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19734
20356
|
try {
|
|
19735
20357
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
19736
20358
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19884,7 +20506,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
19884
20506
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19885
20507
|
*/
|
|
19886
20508
|
static async fromJsonLd(json, options = {}) {
|
|
19887
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
20509
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19888
20510
|
try {
|
|
19889
20511
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
19890
20512
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20015,7 +20637,7 @@ var Article = class Article extends Object$1 {
|
|
|
20015
20637
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20016
20638
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20017
20639
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20018
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
20640
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20019
20641
|
let fetchResult;
|
|
20020
20642
|
try {
|
|
20021
20643
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20156,7 +20778,7 @@ var Article = class Article extends Object$1 {
|
|
|
20156
20778
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20157
20779
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20158
20780
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20159
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
20781
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20160
20782
|
let fetchResult;
|
|
20161
20783
|
try {
|
|
20162
20784
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20445,7 +21067,7 @@ var Article = class Article extends Object$1 {
|
|
|
20445
21067
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20446
21068
|
*/
|
|
20447
21069
|
static async fromJsonLd(json, options = {}) {
|
|
20448
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21070
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20449
21071
|
try {
|
|
20450
21072
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
20451
21073
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20729,7 +21351,7 @@ var Document = class Document extends Object$1 {
|
|
|
20729
21351
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20730
21352
|
*/
|
|
20731
21353
|
static async fromJsonLd(json, options = {}) {
|
|
20732
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21354
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20733
21355
|
try {
|
|
20734
21356
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
20735
21357
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20925,7 +21547,7 @@ var Audio = class Audio extends Document {
|
|
|
20925
21547
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20926
21548
|
*/
|
|
20927
21549
|
static async fromJsonLd(json, options = {}) {
|
|
20928
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21550
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20929
21551
|
try {
|
|
20930
21552
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
20931
21553
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21075,7 +21697,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
21075
21697
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21076
21698
|
*/
|
|
21077
21699
|
static async fromJsonLd(json, options = {}) {
|
|
21078
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21700
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21079
21701
|
try {
|
|
21080
21702
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
21081
21703
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21228,7 +21850,7 @@ var Block = class Block extends Ignore {
|
|
|
21228
21850
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21229
21851
|
*/
|
|
21230
21852
|
static async fromJsonLd(json, options = {}) {
|
|
21231
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21853
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21232
21854
|
try {
|
|
21233
21855
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
21234
21856
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21493,7 +22115,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21493
22115
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21494
22116
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21495
22117
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21496
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22118
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21497
22119
|
let fetchResult;
|
|
21498
22120
|
try {
|
|
21499
22121
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21617,7 +22239,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21617
22239
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21618
22240
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21619
22241
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21620
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22242
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21621
22243
|
let fetchResult;
|
|
21622
22244
|
try {
|
|
21623
22245
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21741,7 +22363,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21741
22363
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21742
22364
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21743
22365
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21744
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22366
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21745
22367
|
let fetchResult;
|
|
21746
22368
|
try {
|
|
21747
22369
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21865,7 +22487,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21865
22487
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21866
22488
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21867
22489
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21868
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22490
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21869
22491
|
let fetchResult;
|
|
21870
22492
|
try {
|
|
21871
22493
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21999,7 +22621,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21999
22621
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22000
22622
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22001
22623
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22002
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22624
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22003
22625
|
let fetchResult;
|
|
22004
22626
|
try {
|
|
22005
22627
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22122,7 +22744,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22122
22744
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22123
22745
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22124
22746
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22125
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22747
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22126
22748
|
let fetchResult;
|
|
22127
22749
|
try {
|
|
22128
22750
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22245,7 +22867,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22245
22867
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22246
22868
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22247
22869
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22248
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22870
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22249
22871
|
let fetchResult;
|
|
22250
22872
|
try {
|
|
22251
22873
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22368,7 +22990,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22368
22990
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22369
22991
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22370
22992
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22371
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22993
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22372
22994
|
let fetchResult;
|
|
22373
22995
|
try {
|
|
22374
22996
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22491,7 +23113,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22491
23113
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22492
23114
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22493
23115
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22494
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23116
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22495
23117
|
let fetchResult;
|
|
22496
23118
|
try {
|
|
22497
23119
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22614,7 +23236,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22614
23236
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22615
23237
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22616
23238
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22617
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23239
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22618
23240
|
let fetchResult;
|
|
22619
23241
|
try {
|
|
22620
23242
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22737,7 +23359,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22737
23359
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22738
23360
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22739
23361
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22740
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23362
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22741
23363
|
let fetchResult;
|
|
22742
23364
|
try {
|
|
22743
23365
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22860,7 +23482,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22860
23482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22861
23483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22862
23484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22863
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23485
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22864
23486
|
let fetchResult;
|
|
22865
23487
|
try {
|
|
22866
23488
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23312,7 +23934,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23312
23934
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23313
23935
|
*/
|
|
23314
23936
|
static async fromJsonLd(json, options = {}) {
|
|
23315
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
23937
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23316
23938
|
try {
|
|
23317
23939
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
23318
23940
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23438,6 +24060,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23438
24060
|
"https://gotosocial.org/ns#LikeApproval",
|
|
23439
24061
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
23440
24062
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
24063
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
23441
24064
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
23442
24065
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
23443
24066
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -23805,7 +24428,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23805
24428
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23806
24429
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23807
24430
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23808
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24431
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23809
24432
|
let fetchResult;
|
|
23810
24433
|
try {
|
|
23811
24434
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23929,7 +24552,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23929
24552
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23930
24553
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23931
24554
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23932
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24555
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23933
24556
|
let fetchResult;
|
|
23934
24557
|
try {
|
|
23935
24558
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24052,7 +24675,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24052
24675
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24053
24676
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24054
24677
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24055
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24678
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24056
24679
|
let fetchResult;
|
|
24057
24680
|
try {
|
|
24058
24681
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24341,7 +24964,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24341
24964
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24342
24965
|
*/
|
|
24343
24966
|
static async fromJsonLd(json, options = {}) {
|
|
24344
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
24967
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24345
24968
|
try {
|
|
24346
24969
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
24347
24970
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24588,7 +25211,7 @@ var Create = class Create extends Activity {
|
|
|
24588
25211
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24589
25212
|
*/
|
|
24590
25213
|
static async fromJsonLd(json, options = {}) {
|
|
24591
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25214
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24592
25215
|
try {
|
|
24593
25216
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
24594
25217
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24764,7 +25387,7 @@ var Delete = class Delete extends Activity {
|
|
|
24764
25387
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24765
25388
|
*/
|
|
24766
25389
|
static async fromJsonLd(json, options = {}) {
|
|
24767
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25390
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24768
25391
|
try {
|
|
24769
25392
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
24770
25393
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24917,7 +25540,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
24917
25540
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24918
25541
|
*/
|
|
24919
25542
|
static async fromJsonLd(json, options = {}) {
|
|
24920
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25543
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24921
25544
|
try {
|
|
24922
25545
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
24923
25546
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25269,7 +25892,7 @@ var Endpoints = class {
|
|
|
25269
25892
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25270
25893
|
*/
|
|
25271
25894
|
static async fromJsonLd(json, options = {}) {
|
|
25272
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25895
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25273
25896
|
try {
|
|
25274
25897
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
25275
25898
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25516,7 +26139,7 @@ var Event = class Event extends Object$1 {
|
|
|
25516
26139
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25517
26140
|
*/
|
|
25518
26141
|
static async fromJsonLd(json, options = {}) {
|
|
25519
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26142
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25520
26143
|
try {
|
|
25521
26144
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
25522
26145
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25667,7 +26290,7 @@ var Flag = class Flag extends Activity {
|
|
|
25667
26290
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25668
26291
|
*/
|
|
25669
26292
|
static async fromJsonLd(json, options = {}) {
|
|
25670
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26293
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25671
26294
|
try {
|
|
25672
26295
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
25673
26296
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25822,7 +26445,7 @@ var Follow = class Follow extends Activity {
|
|
|
25822
26445
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25823
26446
|
*/
|
|
25824
26447
|
static async fromJsonLd(json, options = {}) {
|
|
25825
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26448
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25826
26449
|
try {
|
|
25827
26450
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
25828
26451
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26218,7 +26841,7 @@ var Group = class Group extends Object$1 {
|
|
|
26218
26841
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26219
26842
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26220
26843
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26221
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
26844
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26222
26845
|
let fetchResult;
|
|
26223
26846
|
try {
|
|
26224
26847
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26386,7 +27009,7 @@ var Group = class Group extends Object$1 {
|
|
|
26386
27009
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26387
27010
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26388
27011
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26389
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27012
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26390
27013
|
let fetchResult;
|
|
26391
27014
|
try {
|
|
26392
27015
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26572,7 +27195,7 @@ var Group = class Group extends Object$1 {
|
|
|
26572
27195
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26573
27196
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26574
27197
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26575
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27198
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26576
27199
|
let fetchResult;
|
|
26577
27200
|
try {
|
|
26578
27201
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26717,7 +27340,7 @@ var Group = class Group extends Object$1 {
|
|
|
26717
27340
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26718
27341
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26719
27342
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26720
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27343
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26721
27344
|
let fetchResult;
|
|
26722
27345
|
try {
|
|
26723
27346
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26859,7 +27482,7 @@ var Group = class Group extends Object$1 {
|
|
|
26859
27482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26860
27483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26861
27484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26862
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27485
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26863
27486
|
let fetchResult;
|
|
26864
27487
|
try {
|
|
26865
27488
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26986,7 +27609,7 @@ var Group = class Group extends Object$1 {
|
|
|
26986
27609
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26987
27610
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26988
27611
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26989
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27612
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26990
27613
|
let fetchResult;
|
|
26991
27614
|
try {
|
|
26992
27615
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27116,7 +27739,7 @@ var Group = class Group extends Object$1 {
|
|
|
27116
27739
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27117
27740
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27118
27741
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27119
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27742
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27120
27743
|
let fetchResult;
|
|
27121
27744
|
try {
|
|
27122
27745
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27244,7 +27867,7 @@ var Group = class Group extends Object$1 {
|
|
|
27244
27867
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27245
27868
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27246
27869
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27247
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27870
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27248
27871
|
let fetchResult;
|
|
27249
27872
|
try {
|
|
27250
27873
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27370,7 +27993,7 @@ var Group = class Group extends Object$1 {
|
|
|
27370
27993
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27371
27994
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27372
27995
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27373
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27996
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27374
27997
|
let fetchResult;
|
|
27375
27998
|
try {
|
|
27376
27999
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27496,7 +28119,7 @@ var Group = class Group extends Object$1 {
|
|
|
27496
28119
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27497
28120
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27498
28121
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27499
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28122
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27500
28123
|
let fetchResult;
|
|
27501
28124
|
try {
|
|
27502
28125
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27661,7 +28284,7 @@ var Group = class Group extends Object$1 {
|
|
|
27661
28284
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27662
28285
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27663
28286
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27664
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28287
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27665
28288
|
let fetchResult;
|
|
27666
28289
|
try {
|
|
27667
28290
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27830,7 +28453,7 @@ var Group = class Group extends Object$1 {
|
|
|
27830
28453
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27831
28454
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27832
28455
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27833
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28456
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27834
28457
|
let fetchResult;
|
|
27835
28458
|
try {
|
|
27836
28459
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28050,7 +28673,7 @@ var Group = class Group extends Object$1 {
|
|
|
28050
28673
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28051
28674
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28052
28675
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28053
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28054
28677
|
let fetchResult;
|
|
28055
28678
|
try {
|
|
28056
28679
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28741,7 +29364,7 @@ var Group = class Group extends Object$1 {
|
|
|
28741
29364
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28742
29365
|
*/
|
|
28743
29366
|
static async fromJsonLd(json, options = {}) {
|
|
28744
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
29367
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28745
29368
|
try {
|
|
28746
29369
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
28747
29370
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29487,7 +30110,7 @@ var Link = class Link {
|
|
|
29487
30110
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29488
30111
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29489
30112
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29490
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
30113
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29491
30114
|
let fetchResult;
|
|
29492
30115
|
try {
|
|
29493
30116
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29782,7 +30405,7 @@ var Link = class Link {
|
|
|
29782
30405
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29783
30406
|
*/
|
|
29784
30407
|
static async fromJsonLd(json, options = {}) {
|
|
29785
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30408
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29786
30409
|
try {
|
|
29787
30410
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
29788
30411
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29912,6 +30535,7 @@ var Link = class Link {
|
|
|
29912
30535
|
"https://gotosocial.org/ns#LikeApproval",
|
|
29913
30536
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
29914
30537
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
30538
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
29915
30539
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
29916
30540
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
29917
30541
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -30132,7 +30756,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
30132
30756
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30133
30757
|
*/
|
|
30134
30758
|
static async fromJsonLd(json, options = {}) {
|
|
30135
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30759
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30136
30760
|
try {
|
|
30137
30761
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
30138
30762
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30295,7 +30919,7 @@ var Image = class Image extends Document {
|
|
|
30295
30919
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30296
30920
|
*/
|
|
30297
30921
|
static async fromJsonLd(json, options = {}) {
|
|
30298
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30922
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30299
30923
|
try {
|
|
30300
30924
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
30301
30925
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30446,7 +31070,7 @@ var Offer = class Offer extends Activity {
|
|
|
30446
31070
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30447
31071
|
*/
|
|
30448
31072
|
static async fromJsonLd(json, options = {}) {
|
|
30449
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31073
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30450
31074
|
try {
|
|
30451
31075
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
30452
31076
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30597,7 +31221,7 @@ var Invite = class Invite extends Offer {
|
|
|
30597
31221
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30598
31222
|
*/
|
|
30599
31223
|
static async fromJsonLd(json, options = {}) {
|
|
30600
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31224
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30601
31225
|
try {
|
|
30602
31226
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
30603
31227
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30747,7 +31371,7 @@ var Join = class Join extends Activity {
|
|
|
30747
31371
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30748
31372
|
*/
|
|
30749
31373
|
static async fromJsonLd(json, options = {}) {
|
|
30750
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31374
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30751
31375
|
try {
|
|
30752
31376
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
30753
31377
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30897,7 +31521,7 @@ var Leave = class Leave extends Activity {
|
|
|
30897
31521
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30898
31522
|
*/
|
|
30899
31523
|
static async fromJsonLd(json, options = {}) {
|
|
30900
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31524
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30901
31525
|
try {
|
|
30902
31526
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
30903
31527
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31051,7 +31675,7 @@ var Like = class Like extends Activity {
|
|
|
31051
31675
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31052
31676
|
*/
|
|
31053
31677
|
static async fromJsonLd(json, options = {}) {
|
|
31054
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31678
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31055
31679
|
try {
|
|
31056
31680
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
31057
31681
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31200,7 +31824,7 @@ var Listen = class Listen extends Activity {
|
|
|
31200
31824
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31201
31825
|
*/
|
|
31202
31826
|
static async fromJsonLd(json, options = {}) {
|
|
31203
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31827
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31204
31828
|
try {
|
|
31205
31829
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
31206
31830
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31352,7 +31976,7 @@ var Mention = class Mention extends Link {
|
|
|
31352
31976
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31353
31977
|
*/
|
|
31354
31978
|
static async fromJsonLd(json, options = {}) {
|
|
31355
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31979
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31356
31980
|
try {
|
|
31357
31981
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
31358
31982
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31503,7 +32127,7 @@ var Move = class Move extends Activity {
|
|
|
31503
32127
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31504
32128
|
*/
|
|
31505
32129
|
static async fromJsonLd(json, options = {}) {
|
|
31506
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
32130
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31507
32131
|
try {
|
|
31508
32132
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
31509
32133
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31635,7 +32259,7 @@ var Note = class Note extends Object$1 {
|
|
|
31635
32259
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31636
32260
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31637
32261
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31638
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32262
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31639
32263
|
let fetchResult;
|
|
31640
32264
|
try {
|
|
31641
32265
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31776,7 +32400,7 @@ var Note = class Note extends Object$1 {
|
|
|
31776
32400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31777
32401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31778
32402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31779
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32403
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31780
32404
|
let fetchResult;
|
|
31781
32405
|
try {
|
|
31782
32406
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32065,7 +32689,7 @@ var Note = class Note extends Object$1 {
|
|
|
32065
32689
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32066
32690
|
*/
|
|
32067
32691
|
static async fromJsonLd(json, options = {}) {
|
|
32068
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
32692
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32069
32693
|
try {
|
|
32070
32694
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
32071
32695
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32241,7 +32865,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32241
32865
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32242
32866
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32243
32867
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32244
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32868
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32245
32869
|
let fetchResult;
|
|
32246
32870
|
try {
|
|
32247
32871
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32514,7 +33138,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32514
33138
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32515
33139
|
*/
|
|
32516
33140
|
static async fromJsonLd(json, options = {}) {
|
|
32517
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
33141
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32518
33142
|
try {
|
|
32519
33143
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
32520
33144
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32577,6 +33201,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32577
33201
|
"https://gotosocial.org/ns#LikeApproval",
|
|
32578
33202
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
32579
33203
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
33204
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
32580
33205
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
32581
33206
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
32582
33207
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -32731,7 +33356,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
32731
33356
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32732
33357
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32733
33358
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32734
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
33359
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32735
33360
|
let fetchResult;
|
|
32736
33361
|
try {
|
|
32737
33362
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33027,7 +33652,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33027
33652
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33028
33653
|
*/
|
|
33029
33654
|
static async fromJsonLd(json, options = {}) {
|
|
33030
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
33655
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33031
33656
|
try {
|
|
33032
33657
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
33033
33658
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33090,6 +33715,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33090
33715
|
"https://gotosocial.org/ns#LikeApproval",
|
|
33091
33716
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
33092
33717
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
33718
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
33093
33719
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
33094
33720
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
33095
33721
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -33532,7 +34158,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33532
34158
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33533
34159
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33534
34160
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33535
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34161
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33536
34162
|
let fetchResult;
|
|
33537
34163
|
try {
|
|
33538
34164
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33700,7 +34326,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33700
34326
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33701
34327
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33702
34328
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33703
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34329
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33704
34330
|
let fetchResult;
|
|
33705
34331
|
try {
|
|
33706
34332
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33886,7 +34512,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33886
34512
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33887
34513
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33888
34514
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33889
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34515
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33890
34516
|
let fetchResult;
|
|
33891
34517
|
try {
|
|
33892
34518
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34031,7 +34657,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34031
34657
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34032
34658
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34033
34659
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34034
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34660
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34035
34661
|
let fetchResult;
|
|
34036
34662
|
try {
|
|
34037
34663
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34173,7 +34799,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34173
34799
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34174
34800
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34175
34801
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34176
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34802
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34177
34803
|
let fetchResult;
|
|
34178
34804
|
try {
|
|
34179
34805
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34300,7 +34926,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34300
34926
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34301
34927
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34302
34928
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34303
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34929
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34304
34930
|
let fetchResult;
|
|
34305
34931
|
try {
|
|
34306
34932
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34430,7 +35056,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34430
35056
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34431
35057
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34432
35058
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34433
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35059
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34434
35060
|
let fetchResult;
|
|
34435
35061
|
try {
|
|
34436
35062
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34558,7 +35184,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34558
35184
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34559
35185
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34560
35186
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34561
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35187
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34562
35188
|
let fetchResult;
|
|
34563
35189
|
try {
|
|
34564
35190
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34684,7 +35310,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34684
35310
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34685
35311
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34686
35312
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34687
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35313
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34688
35314
|
let fetchResult;
|
|
34689
35315
|
try {
|
|
34690
35316
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34810,7 +35436,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34810
35436
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34811
35437
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34812
35438
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34813
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35439
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34814
35440
|
let fetchResult;
|
|
34815
35441
|
try {
|
|
34816
35442
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34975,7 +35601,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34975
35601
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34976
35602
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34977
35603
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34978
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35604
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34979
35605
|
let fetchResult;
|
|
34980
35606
|
try {
|
|
34981
35607
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35144,7 +35770,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35144
35770
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35145
35771
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35146
35772
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35147
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35773
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35148
35774
|
let fetchResult;
|
|
35149
35775
|
try {
|
|
35150
35776
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35364,7 +35990,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35364
35990
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35365
35991
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35366
35992
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35367
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35993
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35368
35994
|
let fetchResult;
|
|
35369
35995
|
try {
|
|
35370
35996
|
fetchResult = await documentLoader(url.href);
|
|
@@ -36055,7 +36681,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36055
36681
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36056
36682
|
*/
|
|
36057
36683
|
static async fromJsonLd(json, options = {}) {
|
|
36058
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
36684
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36059
36685
|
try {
|
|
36060
36686
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
36061
36687
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36669,7 +37295,7 @@ var Page = class Page extends Document {
|
|
|
36669
37295
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36670
37296
|
*/
|
|
36671
37297
|
static async fromJsonLd(json, options = {}) {
|
|
36672
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
37298
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36673
37299
|
try {
|
|
36674
37300
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
36675
37301
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37065,7 +37691,7 @@ var Person = class Person extends Object$1 {
|
|
|
37065
37691
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37066
37692
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37067
37693
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37068
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
37694
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37069
37695
|
let fetchResult;
|
|
37070
37696
|
try {
|
|
37071
37697
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37233,7 +37859,7 @@ var Person = class Person extends Object$1 {
|
|
|
37233
37859
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37234
37860
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37235
37861
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37236
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
37862
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37237
37863
|
let fetchResult;
|
|
37238
37864
|
try {
|
|
37239
37865
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37419,7 +38045,7 @@ var Person = class Person extends Object$1 {
|
|
|
37419
38045
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37420
38046
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37421
38047
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37422
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38048
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37423
38049
|
let fetchResult;
|
|
37424
38050
|
try {
|
|
37425
38051
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37564,7 +38190,7 @@ var Person = class Person extends Object$1 {
|
|
|
37564
38190
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37565
38191
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37566
38192
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37567
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38193
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37568
38194
|
let fetchResult;
|
|
37569
38195
|
try {
|
|
37570
38196
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37706,7 +38332,7 @@ var Person = class Person extends Object$1 {
|
|
|
37706
38332
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37707
38333
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37708
38334
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37709
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38335
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37710
38336
|
let fetchResult;
|
|
37711
38337
|
try {
|
|
37712
38338
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37833,7 +38459,7 @@ var Person = class Person extends Object$1 {
|
|
|
37833
38459
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37834
38460
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37835
38461
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37836
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38462
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37837
38463
|
let fetchResult;
|
|
37838
38464
|
try {
|
|
37839
38465
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37963,7 +38589,7 @@ var Person = class Person extends Object$1 {
|
|
|
37963
38589
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37964
38590
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37965
38591
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37966
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38592
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37967
38593
|
let fetchResult;
|
|
37968
38594
|
try {
|
|
37969
38595
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38091,7 +38717,7 @@ var Person = class Person extends Object$1 {
|
|
|
38091
38717
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38092
38718
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38093
38719
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38094
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38720
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38095
38721
|
let fetchResult;
|
|
38096
38722
|
try {
|
|
38097
38723
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38217,7 +38843,7 @@ var Person = class Person extends Object$1 {
|
|
|
38217
38843
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38218
38844
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38219
38845
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38220
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38846
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38221
38847
|
let fetchResult;
|
|
38222
38848
|
try {
|
|
38223
38849
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38343,7 +38969,7 @@ var Person = class Person extends Object$1 {
|
|
|
38343
38969
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38344
38970
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38345
38971
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38346
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38972
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38347
38973
|
let fetchResult;
|
|
38348
38974
|
try {
|
|
38349
38975
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38508,7 +39134,7 @@ var Person = class Person extends Object$1 {
|
|
|
38508
39134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38509
39135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38510
39136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38511
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39137
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38512
39138
|
let fetchResult;
|
|
38513
39139
|
try {
|
|
38514
39140
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38677,7 +39303,7 @@ var Person = class Person extends Object$1 {
|
|
|
38677
39303
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38678
39304
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38679
39305
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38680
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39306
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38681
39307
|
let fetchResult;
|
|
38682
39308
|
try {
|
|
38683
39309
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38897,7 +39523,7 @@ var Person = class Person extends Object$1 {
|
|
|
38897
39523
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38898
39524
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38899
39525
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38900
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39526
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38901
39527
|
let fetchResult;
|
|
38902
39528
|
try {
|
|
38903
39529
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39588,7 +40214,7 @@ var Person = class Person extends Object$1 {
|
|
|
39588
40214
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39589
40215
|
*/
|
|
39590
40216
|
static async fromJsonLd(json, options = {}) {
|
|
39591
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
40217
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39592
40218
|
try {
|
|
39593
40219
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
39594
40220
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40379,7 +41005,7 @@ var Place = class Place extends Object$1 {
|
|
|
40379
41005
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40380
41006
|
*/
|
|
40381
41007
|
static async fromJsonLd(json, options = {}) {
|
|
40382
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
41008
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40383
41009
|
try {
|
|
40384
41010
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
40385
41011
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40581,7 +41207,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
40581
41207
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40582
41208
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40583
41209
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40584
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41210
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40585
41211
|
let fetchResult;
|
|
40586
41212
|
try {
|
|
40587
41213
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40785,7 +41411,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
40785
41411
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40786
41412
|
*/
|
|
40787
41413
|
static async fromJsonLd(json, options = {}) {
|
|
40788
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
41414
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40789
41415
|
try {
|
|
40790
41416
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
40791
41417
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40984,7 +41610,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40984
41610
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40985
41611
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40986
41612
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40987
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41613
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40988
41614
|
let fetchResult;
|
|
40989
41615
|
try {
|
|
40990
41616
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41109,7 +41735,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41109
41735
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41110
41736
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41111
41737
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41112
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41738
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41113
41739
|
let fetchResult;
|
|
41114
41740
|
try {
|
|
41115
41741
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41250,7 +41876,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41250
41876
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41251
41877
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41252
41878
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41253
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41879
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41254
41880
|
let fetchResult;
|
|
41255
41881
|
try {
|
|
41256
41882
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41391,7 +42017,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41391
42017
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41392
42018
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41393
42019
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41394
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
42020
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41395
42021
|
let fetchResult;
|
|
41396
42022
|
try {
|
|
41397
42023
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41646,7 +42272,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41646
42272
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41647
42273
|
*/
|
|
41648
42274
|
static async fromJsonLd(json, options = {}) {
|
|
41649
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42275
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41650
42276
|
try {
|
|
41651
42277
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
41652
42278
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41928,7 +42554,7 @@ var Read = class Read extends Activity {
|
|
|
41928
42554
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41929
42555
|
*/
|
|
41930
42556
|
static async fromJsonLd(json, options = {}) {
|
|
41931
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42557
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41932
42558
|
try {
|
|
41933
42559
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
41934
42560
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42078,7 +42704,7 @@ var Reject = class Reject extends Activity {
|
|
|
42078
42704
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42079
42705
|
*/
|
|
42080
42706
|
static async fromJsonLd(json, options = {}) {
|
|
42081
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42707
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42082
42708
|
try {
|
|
42083
42709
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
42084
42710
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42252,7 +42878,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42252
42878
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42253
42879
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42254
42880
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42255
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
42881
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42256
42882
|
let fetchResult;
|
|
42257
42883
|
try {
|
|
42258
42884
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42378,7 +43004,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42378
43004
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42379
43005
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42380
43006
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42381
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
43007
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42382
43008
|
let fetchResult;
|
|
42383
43009
|
try {
|
|
42384
43010
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42546,7 +43172,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42546
43172
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42547
43173
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42548
43174
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42549
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
43175
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42550
43176
|
let fetchResult;
|
|
42551
43177
|
try {
|
|
42552
43178
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42830,7 +43456,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42830
43456
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42831
43457
|
*/
|
|
42832
43458
|
static async fromJsonLd(json, options = {}) {
|
|
42833
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
43459
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42834
43460
|
try {
|
|
42835
43461
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
42836
43462
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43049,7 +43675,7 @@ var Remove = class Remove extends Activity {
|
|
|
43049
43675
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43050
43676
|
*/
|
|
43051
43677
|
static async fromJsonLd(json, options = {}) {
|
|
43052
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
43678
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43053
43679
|
try {
|
|
43054
43680
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
43055
43681
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43445,7 +44071,7 @@ var Service = class Service extends Object$1 {
|
|
|
43445
44071
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43446
44072
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43447
44073
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43448
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44074
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43449
44075
|
let fetchResult;
|
|
43450
44076
|
try {
|
|
43451
44077
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43613,7 +44239,7 @@ var Service = class Service extends Object$1 {
|
|
|
43613
44239
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43614
44240
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43615
44241
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43616
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44242
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43617
44243
|
let fetchResult;
|
|
43618
44244
|
try {
|
|
43619
44245
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43799,7 +44425,7 @@ var Service = class Service extends Object$1 {
|
|
|
43799
44425
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43800
44426
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43801
44427
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43802
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44428
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43803
44429
|
let fetchResult;
|
|
43804
44430
|
try {
|
|
43805
44431
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43944,7 +44570,7 @@ var Service = class Service extends Object$1 {
|
|
|
43944
44570
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43945
44571
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43946
44572
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43947
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44573
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43948
44574
|
let fetchResult;
|
|
43949
44575
|
try {
|
|
43950
44576
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44086,7 +44712,7 @@ var Service = class Service extends Object$1 {
|
|
|
44086
44712
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44087
44713
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44088
44714
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44089
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44715
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44090
44716
|
let fetchResult;
|
|
44091
44717
|
try {
|
|
44092
44718
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44213,7 +44839,7 @@ var Service = class Service extends Object$1 {
|
|
|
44213
44839
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44214
44840
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44215
44841
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44216
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44842
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44217
44843
|
let fetchResult;
|
|
44218
44844
|
try {
|
|
44219
44845
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44343,7 +44969,7 @@ var Service = class Service extends Object$1 {
|
|
|
44343
44969
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44344
44970
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44345
44971
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44346
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44972
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44347
44973
|
let fetchResult;
|
|
44348
44974
|
try {
|
|
44349
44975
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44471,7 +45097,7 @@ var Service = class Service extends Object$1 {
|
|
|
44471
45097
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44472
45098
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44473
45099
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44474
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45100
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44475
45101
|
let fetchResult;
|
|
44476
45102
|
try {
|
|
44477
45103
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44597,7 +45223,7 @@ var Service = class Service extends Object$1 {
|
|
|
44597
45223
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44598
45224
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44599
45225
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44600
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45226
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44601
45227
|
let fetchResult;
|
|
44602
45228
|
try {
|
|
44603
45229
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44723,7 +45349,7 @@ var Service = class Service extends Object$1 {
|
|
|
44723
45349
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44724
45350
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44725
45351
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44726
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45352
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44727
45353
|
let fetchResult;
|
|
44728
45354
|
try {
|
|
44729
45355
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44888,7 +45514,7 @@ var Service = class Service extends Object$1 {
|
|
|
44888
45514
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44889
45515
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44890
45516
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44891
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45517
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44892
45518
|
let fetchResult;
|
|
44893
45519
|
try {
|
|
44894
45520
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45057,7 +45683,7 @@ var Service = class Service extends Object$1 {
|
|
|
45057
45683
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45058
45684
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45059
45685
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45060
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45686
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45061
45687
|
let fetchResult;
|
|
45062
45688
|
try {
|
|
45063
45689
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45277,7 +45903,7 @@ var Service = class Service extends Object$1 {
|
|
|
45277
45903
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45278
45904
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45279
45905
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45280
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45906
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45281
45907
|
let fetchResult;
|
|
45282
45908
|
try {
|
|
45283
45909
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45968,7 +46594,7 @@ var Service = class Service extends Object$1 {
|
|
|
45968
46594
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45969
46595
|
*/
|
|
45970
46596
|
static async fromJsonLd(json, options = {}) {
|
|
45971
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
46597
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45972
46598
|
try {
|
|
45973
46599
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
45974
46600
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46670,7 +47296,7 @@ var Source = class {
|
|
|
46670
47296
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46671
47297
|
*/
|
|
46672
47298
|
static async fromJsonLd(json, options = {}) {
|
|
46673
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47299
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46674
47300
|
try {
|
|
46675
47301
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
46676
47302
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46849,7 +47475,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
46849
47475
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46850
47476
|
*/
|
|
46851
47477
|
static async fromJsonLd(json, options = {}) {
|
|
46852
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47478
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46853
47479
|
try {
|
|
46854
47480
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
46855
47481
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46999,7 +47625,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
46999
47625
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47000
47626
|
*/
|
|
47001
47627
|
static async fromJsonLd(json, options = {}) {
|
|
47002
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47628
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47003
47629
|
try {
|
|
47004
47630
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
47005
47631
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47238,7 +47864,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47238
47864
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47239
47865
|
*/
|
|
47240
47866
|
static async fromJsonLd(json, options = {}) {
|
|
47241
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47867
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47242
47868
|
try {
|
|
47243
47869
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
47244
47870
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47425,7 +48051,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
47425
48051
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47426
48052
|
*/
|
|
47427
48053
|
static async fromJsonLd(json, options = {}) {
|
|
47428
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48054
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47429
48055
|
try {
|
|
47430
48056
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
47431
48057
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47589,7 +48215,7 @@ var Undo = class Undo extends Activity {
|
|
|
47589
48215
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47590
48216
|
*/
|
|
47591
48217
|
static async fromJsonLd(json, options = {}) {
|
|
47592
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48218
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47593
48219
|
try {
|
|
47594
48220
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
47595
48221
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47801,7 +48427,7 @@ var Update = class Update extends Activity {
|
|
|
47801
48427
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47802
48428
|
*/
|
|
47803
48429
|
static async fromJsonLd(json, options = {}) {
|
|
47804
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48430
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47805
48431
|
try {
|
|
47806
48432
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
47807
48433
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47964,7 +48590,7 @@ var Video = class Video extends Document {
|
|
|
47964
48590
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47965
48591
|
*/
|
|
47966
48592
|
static async fromJsonLd(json, options = {}) {
|
|
47967
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48593
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47968
48594
|
try {
|
|
47969
48595
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
47970
48596
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48113,7 +48739,7 @@ var View = class View extends Activity {
|
|
|
48113
48739
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48114
48740
|
*/
|
|
48115
48741
|
static async fromJsonLd(json, options = {}) {
|
|
48116
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48742
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48117
48743
|
try {
|
|
48118
48744
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
48119
48745
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48195,6 +48821,7 @@ const entityTypeSet = new Set([
|
|
|
48195
48821
|
DataIntegrityProof,
|
|
48196
48822
|
CryptographicKey,
|
|
48197
48823
|
Multikey,
|
|
48824
|
+
Agreement,
|
|
48198
48825
|
Proposal,
|
|
48199
48826
|
Accept,
|
|
48200
48827
|
Add,
|
|
@@ -48266,6 +48893,7 @@ const entityTypeIds = new Map([
|
|
|
48266
48893
|
["https://w3id.org/security#DataIntegrityProof", DataIntegrityProof],
|
|
48267
48894
|
["https://w3id.org/security#Key", CryptographicKey],
|
|
48268
48895
|
["https://w3id.org/security#Multikey", Multikey],
|
|
48896
|
+
["https://w3id.org/valueflows/ont/vf#Agreement", Agreement],
|
|
48269
48897
|
["https://w3id.org/valueflows/ont/vf#Proposal", Proposal],
|
|
48270
48898
|
["https://www.w3.org/ns/activitystreams#Accept", Accept],
|
|
48271
48899
|
["https://www.w3.org/ns/activitystreams#Add", Add],
|
|
@@ -48331,4 +48959,4 @@ function getEntityTypeById(id) {
|
|
|
48331
48959
|
return entityTypeIds.get(typeof id === "string" ? id : id?.href);
|
|
48332
48960
|
}
|
|
48333
48961
|
//#endregion
|
|
48334
|
-
export {
|
|
48962
|
+
export { QuoteAuthorization as A, __exportAll as B, Offer as C, Place as D, Person as E, Tombstone as F, getEntityTypeById as I, isEntityType as L, Reject as M, Service as N, Proposal as O, Source as P, vocab_exports as R, Object$1 as S, Organization as T, __toESM as V, InteractionPolicy as _, Application as a, Measure as b, Create as c, Document as d, Endpoints as f, Intent as g, Hashtag as h, Announce as i, QuoteRequest as j, Question as k, CryptographicKey as l, Group as m, Activity as n, Collection as o, Follow as p, Agreement as r, Commitment as s, Accept as t, Delete as u, InteractionRule as v, OrderedCollectionPage as w, Note as x, Link as y, __commonJSMin as z };
|