@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
package/dist/mod.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
|
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.
|
|
12
|
+
var version = "2.4.0-dev.1417+43d75b89";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -711,7 +711,7 @@ var Object$1 = class Object$1 {
|
|
|
711
711
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
712
712
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
713
713
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
714
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
714
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
715
715
|
let fetchResult;
|
|
716
716
|
try {
|
|
717
717
|
fetchResult = await documentLoader(url.href);
|
|
@@ -860,7 +860,7 @@ var Object$1 = class Object$1 {
|
|
|
860
860
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
861
861
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
862
862
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
863
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
863
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
864
864
|
let fetchResult;
|
|
865
865
|
try {
|
|
866
866
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1078,7 +1078,7 @@ var Object$1 = class Object$1 {
|
|
|
1078
1078
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1079
1079
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1080
1080
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1081
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1081
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1082
1082
|
let fetchResult;
|
|
1083
1083
|
try {
|
|
1084
1084
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1268,7 +1268,7 @@ var Object$1 = class Object$1 {
|
|
|
1268
1268
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1269
1269
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1270
1270
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1271
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1271
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1272
1272
|
let fetchResult;
|
|
1273
1273
|
try {
|
|
1274
1274
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1433,7 +1433,7 @@ var Object$1 = class Object$1 {
|
|
|
1433
1433
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1434
1434
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1435
1435
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1436
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1436
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1437
1437
|
let fetchResult;
|
|
1438
1438
|
try {
|
|
1439
1439
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1566,7 +1566,7 @@ var Object$1 = class Object$1 {
|
|
|
1566
1566
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1567
1567
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1568
1568
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1569
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1569
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1570
1570
|
let fetchResult;
|
|
1571
1571
|
try {
|
|
1572
1572
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1754,7 +1754,7 @@ var Object$1 = class Object$1 {
|
|
|
1754
1754
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1755
1755
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1756
1756
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1757
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1757
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1758
1758
|
let fetchResult;
|
|
1759
1759
|
try {
|
|
1760
1760
|
fetchResult = await documentLoader(url.href);
|
|
@@ -1942,7 +1942,7 @@ var Object$1 = class Object$1 {
|
|
|
1942
1942
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
1943
1943
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
1944
1944
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
1945
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
1945
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
1946
1946
|
let fetchResult;
|
|
1947
1947
|
try {
|
|
1948
1948
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2122,7 +2122,7 @@ var Object$1 = class Object$1 {
|
|
|
2122
2122
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2123
2123
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2124
2124
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2125
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2125
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2126
2126
|
let fetchResult;
|
|
2127
2127
|
try {
|
|
2128
2128
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2302,7 +2302,7 @@ var Object$1 = class Object$1 {
|
|
|
2302
2302
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2303
2303
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2304
2304
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2305
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2305
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2306
2306
|
let fetchResult;
|
|
2307
2307
|
try {
|
|
2308
2308
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2487,7 +2487,7 @@ var Object$1 = class Object$1 {
|
|
|
2487
2487
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2488
2488
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2489
2489
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2490
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2490
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2491
2491
|
let fetchResult;
|
|
2492
2492
|
try {
|
|
2493
2493
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2611,7 +2611,7 @@ var Object$1 = class Object$1 {
|
|
|
2611
2611
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2612
2612
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2613
2613
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2614
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2614
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2615
2615
|
let fetchResult;
|
|
2616
2616
|
try {
|
|
2617
2617
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2741,7 +2741,7 @@ var Object$1 = class Object$1 {
|
|
|
2741
2741
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2742
2742
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2743
2743
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2744
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2744
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2745
2745
|
let fetchResult;
|
|
2746
2746
|
try {
|
|
2747
2747
|
fetchResult = await documentLoader(url.href);
|
|
@@ -2871,7 +2871,7 @@ var Object$1 = class Object$1 {
|
|
|
2871
2871
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2872
2872
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2873
2873
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2874
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
2874
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2875
2875
|
let fetchResult;
|
|
2876
2876
|
try {
|
|
2877
2877
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3019,7 +3019,7 @@ var Object$1 = class Object$1 {
|
|
|
3019
3019
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3020
3020
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3021
3021
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3022
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3022
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3023
3023
|
let fetchResult;
|
|
3024
3024
|
try {
|
|
3025
3025
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3174,7 +3174,7 @@ var Object$1 = class Object$1 {
|
|
|
3174
3174
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3175
3175
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3176
3176
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3177
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3177
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3178
3178
|
let fetchResult;
|
|
3179
3179
|
try {
|
|
3180
3180
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3344,7 +3344,7 @@ var Object$1 = class Object$1 {
|
|
|
3344
3344
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3345
3345
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3346
3346
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3347
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3347
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3348
3348
|
let fetchResult;
|
|
3349
3349
|
try {
|
|
3350
3350
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3514,7 +3514,7 @@ var Object$1 = class Object$1 {
|
|
|
3514
3514
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3515
3515
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3516
3516
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3517
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3517
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3518
3518
|
let fetchResult;
|
|
3519
3519
|
try {
|
|
3520
3520
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3684,7 +3684,7 @@ var Object$1 = class Object$1 {
|
|
|
3684
3684
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3685
3685
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3686
3686
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3687
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3687
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3688
3688
|
let fetchResult;
|
|
3689
3689
|
try {
|
|
3690
3690
|
fetchResult = await documentLoader(url.href);
|
|
@@ -3891,7 +3891,7 @@ var Object$1 = class Object$1 {
|
|
|
3891
3891
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3892
3892
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3893
3893
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3894
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
3894
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3895
3895
|
let fetchResult;
|
|
3896
3896
|
try {
|
|
3897
3897
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4084,7 +4084,7 @@ var Object$1 = class Object$1 {
|
|
|
4084
4084
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4085
4085
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4086
4086
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4087
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4087
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4088
4088
|
let fetchResult;
|
|
4089
4089
|
try {
|
|
4090
4090
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4208,7 +4208,7 @@ var Object$1 = class Object$1 {
|
|
|
4208
4208
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4209
4209
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4210
4210
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4211
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4211
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4212
4212
|
let fetchResult;
|
|
4213
4213
|
try {
|
|
4214
4214
|
fetchResult = await documentLoader(url.href);
|
|
@@ -4332,7 +4332,7 @@ var Object$1 = class Object$1 {
|
|
|
4332
4332
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4333
4333
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4334
4334
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4335
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
4335
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4336
4336
|
let fetchResult;
|
|
4337
4337
|
try {
|
|
4338
4338
|
fetchResult = await documentLoader(url.href);
|
|
@@ -5162,7 +5162,7 @@ var Object$1 = class Object$1 {
|
|
|
5162
5162
|
* @throws {TypeError} If the given `json` is invalid.
|
|
5163
5163
|
*/
|
|
5164
5164
|
static async fromJsonLd(json, options = {}) {
|
|
5165
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
5165
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
5166
5166
|
try {
|
|
5167
5167
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
5168
5168
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -5206,6 +5206,7 @@ var Object$1 = class Object$1 {
|
|
|
5206
5206
|
if (values["@type"].includes("https://gotosocial.org/ns#LikeApproval")) return await LikeAuthorization.fromJsonLd(json, options);
|
|
5207
5207
|
if (values["@type"].includes("https://gotosocial.org/ns#ReplyAuthorization")) return await ReplyAuthorization.fromJsonLd(json, options);
|
|
5208
5208
|
if (values["@type"].includes("https://w3id.org/fep/044f#QuoteAuthorization")) return await QuoteAuthorization.fromJsonLd(json, options);
|
|
5209
|
+
if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) return await Agreement.fromJsonLd(json, options);
|
|
5209
5210
|
if (values["@type"].includes("https://w3id.org/valueflows/ont/vf#Proposal")) return await Proposal.fromJsonLd(json, options);
|
|
5210
5211
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Activity")) return await Activity.fromJsonLd(json, options);
|
|
5211
5212
|
if (values["@type"].includes("http://litepub.social/ns#EmojiReact")) return await EmojiReact.fromJsonLd(json, options);
|
|
@@ -5283,6 +5284,7 @@ var Object$1 = class Object$1 {
|
|
|
5283
5284
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5284
5285
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5285
5286
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5287
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5286
5288
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5287
5289
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5288
5290
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5430,6 +5432,7 @@ var Object$1 = class Object$1 {
|
|
|
5430
5432
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5431
5433
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5432
5434
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5435
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5433
5436
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5434
5437
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5435
5438
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5537,6 +5540,7 @@ var Object$1 = class Object$1 {
|
|
|
5537
5540
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5538
5541
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5539
5542
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5543
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5540
5544
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5541
5545
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5542
5546
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5694,6 +5698,7 @@ var Object$1 = class Object$1 {
|
|
|
5694
5698
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5695
5699
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5696
5700
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5701
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5697
5702
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5698
5703
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5699
5704
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5783,6 +5788,7 @@ var Object$1 = class Object$1 {
|
|
|
5783
5788
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5784
5789
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5785
5790
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5791
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5786
5792
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5787
5793
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5788
5794
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -5879,6 +5885,7 @@ var Object$1 = class Object$1 {
|
|
|
5879
5885
|
"https://gotosocial.org/ns#LikeApproval",
|
|
5880
5886
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
5881
5887
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
5888
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
5882
5889
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
5883
5890
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
5884
5891
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -6056,6 +6063,7 @@ var Object$1 = class Object$1 {
|
|
|
6056
6063
|
"https://gotosocial.org/ns#LikeApproval",
|
|
6057
6064
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
6058
6065
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
6066
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
6059
6067
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
6060
6068
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
6061
6069
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -6670,7 +6678,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6670
6678
|
* @throws {TypeError} If the given `json` is invalid.
|
|
6671
6679
|
*/
|
|
6672
6680
|
static async fromJsonLd(json, options = {}) {
|
|
6673
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
6681
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
6674
6682
|
try {
|
|
6675
6683
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
6676
6684
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -6805,7 +6813,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6805
6813
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6806
6814
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6807
6815
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6808
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
6816
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6809
6817
|
let fetchResult;
|
|
6810
6818
|
try {
|
|
6811
6819
|
fetchResult = await documentLoader(url.href);
|
|
@@ -6946,7 +6954,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6946
6954
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6947
6955
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6948
6956
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6949
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
6957
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6950
6958
|
let fetchResult;
|
|
6951
6959
|
try {
|
|
6952
6960
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7233,7 +7241,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7233
7241
|
* @throws {TypeError} If the given `json` is invalid.
|
|
7234
7242
|
*/
|
|
7235
7243
|
static async fromJsonLd(json, options = {}) {
|
|
7236
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
7244
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
7237
7245
|
try {
|
|
7238
7246
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
7239
7247
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -7561,7 +7569,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7561
7569
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7562
7570
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7563
7571
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7564
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7572
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7565
7573
|
let fetchResult;
|
|
7566
7574
|
try {
|
|
7567
7575
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7779,7 +7787,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7779
7787
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7780
7788
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7781
7789
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7782
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7790
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7783
7791
|
let fetchResult;
|
|
7784
7792
|
try {
|
|
7785
7793
|
fetchResult = await documentLoader(url.href);
|
|
@@ -7951,7 +7959,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7951
7959
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7952
7960
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7953
7961
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7954
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
7962
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7955
7963
|
let fetchResult;
|
|
7956
7964
|
try {
|
|
7957
7965
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8129,7 +8137,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8129
8137
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8130
8138
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8131
8139
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8132
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8140
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8133
8141
|
let fetchResult;
|
|
8134
8142
|
try {
|
|
8135
8143
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8301,7 +8309,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8301
8309
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8302
8310
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8303
8311
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8304
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8312
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8305
8313
|
let fetchResult;
|
|
8306
8314
|
try {
|
|
8307
8315
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8475,7 +8483,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8475
8483
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8476
8484
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8477
8485
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8478
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
8486
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8479
8487
|
let fetchResult;
|
|
8480
8488
|
try {
|
|
8481
8489
|
fetchResult = await documentLoader(url.href);
|
|
@@ -8732,7 +8740,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8732
8740
|
* @throws {TypeError} If the given `json` is invalid.
|
|
8733
8741
|
*/
|
|
8734
8742
|
static async fromJsonLd(json, options = {}) {
|
|
8735
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
8743
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
8736
8744
|
try {
|
|
8737
8745
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
8738
8746
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9072,7 +9080,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9072
9080
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9073
9081
|
*/
|
|
9074
9082
|
static async fromJsonLd(json, options = {}) {
|
|
9075
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9083
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9076
9084
|
try {
|
|
9077
9085
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
9078
9086
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9325,7 +9333,7 @@ var PropertyValue = class {
|
|
|
9325
9333
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9326
9334
|
*/
|
|
9327
9335
|
static async fromJsonLd(json, options = {}) {
|
|
9328
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9336
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9329
9337
|
try {
|
|
9330
9338
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
9331
9339
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9597,7 +9605,7 @@ var Measure = class {
|
|
|
9597
9605
|
* @throws {TypeError} If the given `json` is invalid.
|
|
9598
9606
|
*/
|
|
9599
9607
|
static async fromJsonLd(json, options = {}) {
|
|
9600
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
9608
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
9601
9609
|
try {
|
|
9602
9610
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
9603
9611
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -9758,7 +9766,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9758
9766
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9759
9767
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9760
9768
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9761
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
9769
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9762
9770
|
let fetchResult;
|
|
9763
9771
|
try {
|
|
9764
9772
|
fetchResult = await documentLoader(url.href);
|
|
@@ -9882,7 +9890,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9882
9890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9883
9891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9884
9892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9885
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
9893
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9886
9894
|
let fetchResult;
|
|
9887
9895
|
try {
|
|
9888
9896
|
fetchResult = await documentLoader(url.href);
|
|
@@ -10101,7 +10109,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10101
10109
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10102
10110
|
*/
|
|
10103
10111
|
static async fromJsonLd(json, options = {}) {
|
|
10104
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10112
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10105
10113
|
try {
|
|
10106
10114
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
10107
10115
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10305,7 +10313,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
10305
10313
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10306
10314
|
*/
|
|
10307
10315
|
static async fromJsonLd(json, options = {}) {
|
|
10308
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10316
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10309
10317
|
try {
|
|
10310
10318
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
10311
10319
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10576,7 +10584,7 @@ var InteractionPolicy = class {
|
|
|
10576
10584
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10577
10585
|
*/
|
|
10578
10586
|
static async fromJsonLd(json, options = {}) {
|
|
10579
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10587
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10580
10588
|
try {
|
|
10581
10589
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
10582
10590
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -10908,7 +10916,7 @@ var InteractionRule = class {
|
|
|
10908
10916
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10909
10917
|
*/
|
|
10910
10918
|
static async fromJsonLd(json, options = {}) {
|
|
10911
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
10919
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10912
10920
|
try {
|
|
10913
10921
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
10914
10922
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11070,7 +11078,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11070
11078
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11071
11079
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11072
11080
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11073
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11081
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11074
11082
|
let fetchResult;
|
|
11075
11083
|
try {
|
|
11076
11084
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11194,7 +11202,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11194
11202
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11195
11203
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11196
11204
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11197
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11205
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11198
11206
|
let fetchResult;
|
|
11199
11207
|
try {
|
|
11200
11208
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11413,7 +11421,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11413
11421
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11414
11422
|
*/
|
|
11415
11423
|
static async fromJsonLd(json, options = {}) {
|
|
11416
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
11424
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11417
11425
|
try {
|
|
11418
11426
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
11419
11427
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11616,7 +11624,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11616
11624
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11617
11625
|
*/
|
|
11618
11626
|
static async fromJsonLd(json, options = {}) {
|
|
11619
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
11627
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11620
11628
|
try {
|
|
11621
11629
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
11622
11630
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11748,7 +11756,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11748
11756
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11749
11757
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11750
11758
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11751
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11759
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11752
11760
|
let fetchResult;
|
|
11753
11761
|
try {
|
|
11754
11762
|
fetchResult = await documentLoader(url.href);
|
|
@@ -11872,7 +11880,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11872
11880
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
11873
11881
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
11874
11882
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
11875
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
11883
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11876
11884
|
let fetchResult;
|
|
11877
11885
|
try {
|
|
11878
11886
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12091,7 +12099,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12091
12099
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12092
12100
|
*/
|
|
12093
12101
|
static async fromJsonLd(json, options = {}) {
|
|
12094
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12102
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12095
12103
|
try {
|
|
12096
12104
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
12097
12105
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12294,7 +12302,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12294
12302
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12295
12303
|
*/
|
|
12296
12304
|
static async fromJsonLd(json, options = {}) {
|
|
12297
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12305
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12298
12306
|
try {
|
|
12299
12307
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
12300
12308
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12426,7 +12434,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12426
12434
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12427
12435
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12428
12436
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12429
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
12437
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12430
12438
|
let fetchResult;
|
|
12431
12439
|
try {
|
|
12432
12440
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12549,7 +12557,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12549
12557
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12550
12558
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12551
12559
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12552
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
12560
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12553
12561
|
let fetchResult;
|
|
12554
12562
|
try {
|
|
12555
12563
|
fetchResult = await documentLoader(url.href);
|
|
@@ -12770,7 +12778,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12770
12778
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12771
12779
|
*/
|
|
12772
12780
|
static async fromJsonLd(json, options = {}) {
|
|
12773
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
12781
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12774
12782
|
try {
|
|
12775
12783
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
12776
12784
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13003,7 +13011,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13003
13011
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13004
13012
|
*/
|
|
13005
13013
|
static async fromJsonLd(json, options = {}) {
|
|
13006
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13014
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13007
13015
|
try {
|
|
13008
13016
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
13009
13017
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13216,7 +13224,7 @@ var DidService = class {
|
|
|
13216
13224
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13217
13225
|
*/
|
|
13218
13226
|
static async fromJsonLd(json, options = {}) {
|
|
13219
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13227
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13220
13228
|
try {
|
|
13221
13229
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
13222
13230
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13373,7 +13381,7 @@ var Export = class Export extends DidService {
|
|
|
13373
13381
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13374
13382
|
*/
|
|
13375
13383
|
static async fromJsonLd(json, options = {}) {
|
|
13376
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13384
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13377
13385
|
try {
|
|
13378
13386
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
13379
13387
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13553,7 +13561,7 @@ var DataIntegrityProof = class {
|
|
|
13553
13561
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13554
13562
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13555
13563
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13556
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
13564
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13557
13565
|
let fetchResult;
|
|
13558
13566
|
try {
|
|
13559
13567
|
fetchResult = await documentLoader(url.href);
|
|
@@ -13772,7 +13780,7 @@ var DataIntegrityProof = class {
|
|
|
13772
13780
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13773
13781
|
*/
|
|
13774
13782
|
static async fromJsonLd(json, options = {}) {
|
|
13775
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
13783
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13776
13784
|
try {
|
|
13777
13785
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
13778
13786
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14004,7 +14012,7 @@ var CryptographicKey = class {
|
|
|
14004
14012
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14005
14013
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14006
14014
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14007
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
14015
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14008
14016
|
let fetchResult;
|
|
14009
14017
|
try {
|
|
14010
14018
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14269,7 +14277,7 @@ var CryptographicKey = class {
|
|
|
14269
14277
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14270
14278
|
*/
|
|
14271
14279
|
static async fromJsonLd(json, options = {}) {
|
|
14272
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
14280
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14273
14281
|
try {
|
|
14274
14282
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
14275
14283
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14474,7 +14482,7 @@ var Multikey = class {
|
|
|
14474
14482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14475
14483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14476
14484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14477
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
14485
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14478
14486
|
let fetchResult;
|
|
14479
14487
|
try {
|
|
14480
14488
|
fetchResult = await documentLoader(url.href);
|
|
@@ -14745,7 +14753,7 @@ var Multikey = class {
|
|
|
14745
14753
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14746
14754
|
*/
|
|
14747
14755
|
static async fromJsonLd(json, options = {}) {
|
|
14748
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
14756
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14749
14757
|
try {
|
|
14750
14758
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
14751
14759
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14856,6 +14864,618 @@ Multikey.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options
|
|
|
14856
14864
|
Multikey.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
14857
14865
|
return "Multikey " + inspect(this._getCustomInspectProxy(), options);
|
|
14858
14866
|
};
|
|
14867
|
+
/** The agreement reached between parties responding to a {@link Proposal}.
|
|
14868
|
+
*
|
|
14869
|
+
* An interested party sends an `Agreement` wrapped in an {@link Offer}
|
|
14870
|
+
* activity. The proposing party then either finalizes the agreement by
|
|
14871
|
+
* sending an {@link Accept} activity with the finalized `Agreement` as
|
|
14872
|
+
* its `result`, or sends a {@link Reject} activity.
|
|
14873
|
+
*
|
|
14874
|
+
* Note: This type extends ActivityStreams `Object` for practical
|
|
14875
|
+
* interoperability within ActivityPub federation, even though FEP-0837
|
|
14876
|
+
* defines `Agreement` as a pure ValueFlows type. Extending `Object`
|
|
14877
|
+
* provides useful inherited properties such as `id`, `attributedTo`,
|
|
14878
|
+
* `url`, `to`, and `published` without needing to redefine them.
|
|
14879
|
+
*/
|
|
14880
|
+
var Agreement = class Agreement extends Object$1 {
|
|
14881
|
+
/**
|
|
14882
|
+
* The type URI of {@link Agreement}: `https://w3id.org/valueflows/ont/vf#Agreement`.
|
|
14883
|
+
*/
|
|
14884
|
+
static get typeId() {
|
|
14885
|
+
return new URL("https://w3id.org/valueflows/ont/vf#Agreement");
|
|
14886
|
+
}
|
|
14887
|
+
#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
14888
|
+
#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
|
|
14889
|
+
/**
|
|
14890
|
+
* Constructs a new instance of Agreement with the given values.
|
|
14891
|
+
* @param values The values to initialize the instance with.
|
|
14892
|
+
* @param options The options to use for initialization.
|
|
14893
|
+
*/
|
|
14894
|
+
constructor(values, options = {}) {
|
|
14895
|
+
super(values, options);
|
|
14896
|
+
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
14897
|
+
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
14898
|
+
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
14899
|
+
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
14900
|
+
}
|
|
14901
|
+
/**
|
|
14902
|
+
* Clones this instance, optionally updating it with the given values.
|
|
14903
|
+
* @param values The values to update the clone with.
|
|
14904
|
+
* @param options The options to use for cloning.
|
|
14905
|
+
* @returns The cloned instance.
|
|
14906
|
+
*/
|
|
14907
|
+
clone(values = {}, options = {}) {
|
|
14908
|
+
if (this._warning != null) {
|
|
14909
|
+
getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
14910
|
+
options = {
|
|
14911
|
+
...options,
|
|
14912
|
+
$warning: this._warning
|
|
14913
|
+
};
|
|
14914
|
+
}
|
|
14915
|
+
const clone = super.clone(values, options);
|
|
14916
|
+
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
14917
|
+
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
14918
|
+
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
14919
|
+
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
14920
|
+
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
14921
|
+
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
14922
|
+
return clone;
|
|
14923
|
+
}
|
|
14924
|
+
/** The primary {@link Commitment} associated with the agreement. This
|
|
14925
|
+
* commitment satisfies the primary {@link Intent} of the corresponding
|
|
14926
|
+
* {@link Proposal}.
|
|
14927
|
+
*/
|
|
14928
|
+
get stipulates() {
|
|
14929
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
14930
|
+
if (this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length < 1) return null;
|
|
14931
|
+
return this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
|
|
14932
|
+
}
|
|
14933
|
+
/** The reciprocal {@link Commitment} associated with the agreement.
|
|
14934
|
+
* Required if the corresponding {@link Proposal} has a reciprocal
|
|
14935
|
+
* {@link Intent}.
|
|
14936
|
+
*/
|
|
14937
|
+
get stipulatesReciprocal() {
|
|
14938
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
14939
|
+
if (this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length < 1) return null;
|
|
14940
|
+
return this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
|
|
14941
|
+
}
|
|
14942
|
+
/**
|
|
14943
|
+
* Converts this object to a JSON-LD structure.
|
|
14944
|
+
* @param options The options to use.
|
|
14945
|
+
* - `format`: The format of the output: `compact` or
|
|
14946
|
+
`expand`.
|
|
14947
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
14948
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
14949
|
+
when `format` is set to `'expand'`.
|
|
14950
|
+
* @returns The JSON-LD representation of this object.
|
|
14951
|
+
*/
|
|
14952
|
+
async toJsonLd(options = {}) {
|
|
14953
|
+
if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
|
|
14954
|
+
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'.");
|
|
14955
|
+
options = {
|
|
14956
|
+
...options,
|
|
14957
|
+
contextLoader: options.contextLoader ?? getDocumentLoader()
|
|
14958
|
+
};
|
|
14959
|
+
if (options.format == null && this.isCompactable()) {
|
|
14960
|
+
const result = await super.toJsonLd({
|
|
14961
|
+
...options,
|
|
14962
|
+
format: void 0,
|
|
14963
|
+
context: void 0
|
|
14964
|
+
});
|
|
14965
|
+
let compactItems = [];
|
|
14966
|
+
for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
|
|
14967
|
+
const item = await v.toJsonLd({
|
|
14968
|
+
...options,
|
|
14969
|
+
format: void 0,
|
|
14970
|
+
context: void 0
|
|
14971
|
+
});
|
|
14972
|
+
compactItems.push(item);
|
|
14973
|
+
}
|
|
14974
|
+
if (compactItems.length > 0) result["stipulates"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
14975
|
+
compactItems = [];
|
|
14976
|
+
for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
|
|
14977
|
+
const item = await v.toJsonLd({
|
|
14978
|
+
...options,
|
|
14979
|
+
format: void 0,
|
|
14980
|
+
context: void 0
|
|
14981
|
+
});
|
|
14982
|
+
compactItems.push(item);
|
|
14983
|
+
}
|
|
14984
|
+
if (compactItems.length > 0) result["stipulatesReciprocal"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
14985
|
+
result["type"] = "Agreement";
|
|
14986
|
+
if (this.id != null) result["id"] = this.id.href;
|
|
14987
|
+
result["@context"] = [
|
|
14988
|
+
"https://www.w3.org/ns/activitystreams",
|
|
14989
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
14990
|
+
"https://gotosocial.org/ns",
|
|
14991
|
+
{
|
|
14992
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
14993
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
14994
|
+
"fedibird": "http://fedibird.com/ns#",
|
|
14995
|
+
"sensitive": "as:sensitive",
|
|
14996
|
+
"emojiReactions": {
|
|
14997
|
+
"@id": "fedibird:emojiReactions",
|
|
14998
|
+
"@type": "@id"
|
|
14999
|
+
},
|
|
15000
|
+
"Agreement": "vf:Agreement",
|
|
15001
|
+
"Commitment": "vf:Commitment",
|
|
15002
|
+
"stipulates": "vf:stipulates",
|
|
15003
|
+
"stipulatesReciprocal": "vf:stipulatesReciprocal",
|
|
15004
|
+
"satisfies": {
|
|
15005
|
+
"@id": "vf:satisfies",
|
|
15006
|
+
"@type": "@id"
|
|
15007
|
+
},
|
|
15008
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15009
|
+
"hasUnit": "om2:hasUnit",
|
|
15010
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15011
|
+
}
|
|
15012
|
+
];
|
|
15013
|
+
return result;
|
|
15014
|
+
}
|
|
15015
|
+
let array;
|
|
15016
|
+
const values = (await super.toJsonLd({
|
|
15017
|
+
...options,
|
|
15018
|
+
format: "expand",
|
|
15019
|
+
context: void 0
|
|
15020
|
+
}))[0];
|
|
15021
|
+
array = [];
|
|
15022
|
+
for (const v of this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates) {
|
|
15023
|
+
const element = await v.toJsonLd(options);
|
|
15024
|
+
array.push(element);
|
|
15025
|
+
}
|
|
15026
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulates"] = array;
|
|
15027
|
+
array = [];
|
|
15028
|
+
for (const v of this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal) {
|
|
15029
|
+
const element = await v.toJsonLd(options);
|
|
15030
|
+
array.push(element);
|
|
15031
|
+
}
|
|
15032
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"] = array;
|
|
15033
|
+
values["@type"] = ["https://w3id.org/valueflows/ont/vf#Agreement"];
|
|
15034
|
+
if (this.id != null) values["@id"] = this.id.href;
|
|
15035
|
+
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15036
|
+
const docContext = options.context ?? [
|
|
15037
|
+
"https://www.w3.org/ns/activitystreams",
|
|
15038
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
15039
|
+
"https://gotosocial.org/ns",
|
|
15040
|
+
{
|
|
15041
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15042
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15043
|
+
"fedibird": "http://fedibird.com/ns#",
|
|
15044
|
+
"sensitive": "as:sensitive",
|
|
15045
|
+
"emojiReactions": {
|
|
15046
|
+
"@id": "fedibird:emojiReactions",
|
|
15047
|
+
"@type": "@id"
|
|
15048
|
+
},
|
|
15049
|
+
"Agreement": "vf:Agreement",
|
|
15050
|
+
"Commitment": "vf:Commitment",
|
|
15051
|
+
"stipulates": "vf:stipulates",
|
|
15052
|
+
"stipulatesReciprocal": "vf:stipulatesReciprocal",
|
|
15053
|
+
"satisfies": {
|
|
15054
|
+
"@id": "vf:satisfies",
|
|
15055
|
+
"@type": "@id"
|
|
15056
|
+
},
|
|
15057
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15058
|
+
"hasUnit": "om2:hasUnit",
|
|
15059
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15060
|
+
}
|
|
15061
|
+
];
|
|
15062
|
+
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15063
|
+
if (docContext != null) {
|
|
15064
|
+
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
15065
|
+
else compacted.proof["@context"] = docContext;
|
|
15066
|
+
}
|
|
15067
|
+
return compacted;
|
|
15068
|
+
}
|
|
15069
|
+
isCompactable() {
|
|
15070
|
+
return super.isCompactable();
|
|
15071
|
+
}
|
|
15072
|
+
/**
|
|
15073
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
15074
|
+
* @param json The JSON-LD structure to convert.
|
|
15075
|
+
* @param options The options to use.
|
|
15076
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
15077
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15078
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
15079
|
+
* If omitted, the global tracer provider is used.
|
|
15080
|
+
* @returns The object of this type.
|
|
15081
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
15082
|
+
*/
|
|
15083
|
+
static async fromJsonLd(json, options = {}) {
|
|
15084
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15085
|
+
try {
|
|
15086
|
+
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
15087
|
+
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
15088
|
+
return object;
|
|
15089
|
+
} catch (error) {
|
|
15090
|
+
span.setStatus({
|
|
15091
|
+
code: SpanStatusCode.ERROR,
|
|
15092
|
+
message: String(error)
|
|
15093
|
+
});
|
|
15094
|
+
throw error;
|
|
15095
|
+
} finally {
|
|
15096
|
+
span.end();
|
|
15097
|
+
}
|
|
15098
|
+
});
|
|
15099
|
+
}
|
|
15100
|
+
static async __fromJsonLd__Agreement__(json, span, options = {}) {
|
|
15101
|
+
if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
|
|
15102
|
+
else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
|
|
15103
|
+
options = {
|
|
15104
|
+
...options,
|
|
15105
|
+
documentLoader: options.documentLoader ?? getDocumentLoader(),
|
|
15106
|
+
contextLoader: options.contextLoader ?? getDocumentLoader(),
|
|
15107
|
+
tracerProvider: options.tracerProvider ?? trace.getTracerProvider()
|
|
15108
|
+
};
|
|
15109
|
+
let values;
|
|
15110
|
+
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15111
|
+
else values = (await jsonld.expand(json, {
|
|
15112
|
+
documentLoader: options.contextLoader,
|
|
15113
|
+
keepFreeFloatingNodes: true
|
|
15114
|
+
}))[0] ?? {};
|
|
15115
|
+
if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
|
|
15116
|
+
if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
|
|
15117
|
+
...options,
|
|
15118
|
+
baseUrl: new URL(values["@id"])
|
|
15119
|
+
};
|
|
15120
|
+
if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
|
|
15121
|
+
if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
|
|
15122
|
+
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Agreement")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15123
|
+
}
|
|
15124
|
+
delete values["@type"];
|
|
15125
|
+
const instance = await super.fromJsonLd(values, {
|
|
15126
|
+
...options,
|
|
15127
|
+
_fromSubclass: true
|
|
15128
|
+
});
|
|
15129
|
+
if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
15130
|
+
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
15131
|
+
let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
|
|
15132
|
+
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) {
|
|
15133
|
+
if (v == null) continue;
|
|
15134
|
+
const decoded = await Commitment.fromJsonLd(v, {
|
|
15135
|
+
...options,
|
|
15136
|
+
baseUrl: options.baseUrl
|
|
15137
|
+
});
|
|
15138
|
+
if (typeof decoded === "undefined") continue;
|
|
15139
|
+
_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
|
|
15140
|
+
}
|
|
15141
|
+
instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
15142
|
+
const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [];
|
|
15143
|
+
let _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal__array = values["https://w3id.org/valueflows/ont/vf#stipulatesReciprocal"];
|
|
15144
|
+
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) {
|
|
15145
|
+
if (v == null) continue;
|
|
15146
|
+
const decoded = await Commitment.fromJsonLd(v, {
|
|
15147
|
+
...options,
|
|
15148
|
+
baseUrl: options.baseUrl
|
|
15149
|
+
});
|
|
15150
|
+
if (typeof decoded === "undefined") continue;
|
|
15151
|
+
_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
|
|
15152
|
+
}
|
|
15153
|
+
instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15154
|
+
if (!("_fromSubclass" in options) || !options._fromSubclass) try {
|
|
15155
|
+
instance._cachedJsonLd = structuredClone(json);
|
|
15156
|
+
} catch {
|
|
15157
|
+
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
15158
|
+
}
|
|
15159
|
+
return instance;
|
|
15160
|
+
}
|
|
15161
|
+
_getCustomInspectProxy() {
|
|
15162
|
+
const proxy = super._getCustomInspectProxy();
|
|
15163
|
+
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.map((v) => v instanceof URL ? {
|
|
15164
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15165
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15166
|
+
} : v);
|
|
15167
|
+
if (_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.length == 1) proxy.stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates[0];
|
|
15168
|
+
const _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.map((v) => v instanceof URL ? {
|
|
15169
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15170
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15171
|
+
} : v);
|
|
15172
|
+
if (_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.length == 1) proxy.stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal[0];
|
|
15173
|
+
return proxy;
|
|
15174
|
+
}
|
|
15175
|
+
};
|
|
15176
|
+
Agreement.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
|
|
15177
|
+
return "Agreement " + inspect(this._getCustomInspectProxy(), options);
|
|
15178
|
+
};
|
|
15179
|
+
Agreement.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
15180
|
+
return "Agreement " + inspect(this._getCustomInspectProxy(), options);
|
|
15181
|
+
};
|
|
15182
|
+
/** A promised economic transaction, referenced by an {@link Agreement}.
|
|
15183
|
+
*
|
|
15184
|
+
* A commitment satisfies an {@link Intent} of a {@link Proposal} and
|
|
15185
|
+
* specifies the actual amount of the economic resource being committed.
|
|
15186
|
+
*/
|
|
15187
|
+
var Commitment = class {
|
|
15188
|
+
#documentLoader;
|
|
15189
|
+
#contextLoader;
|
|
15190
|
+
#tracerProvider;
|
|
15191
|
+
#warning;
|
|
15192
|
+
#cachedJsonLd;
|
|
15193
|
+
#_baseUrl;
|
|
15194
|
+
id;
|
|
15195
|
+
get _documentLoader() {
|
|
15196
|
+
return this.#documentLoader;
|
|
15197
|
+
}
|
|
15198
|
+
get _contextLoader() {
|
|
15199
|
+
return this.#contextLoader;
|
|
15200
|
+
}
|
|
15201
|
+
get _tracerProvider() {
|
|
15202
|
+
return this.#tracerProvider;
|
|
15203
|
+
}
|
|
15204
|
+
get _warning() {
|
|
15205
|
+
return this.#warning;
|
|
15206
|
+
}
|
|
15207
|
+
get _cachedJsonLd() {
|
|
15208
|
+
return this.#cachedJsonLd;
|
|
15209
|
+
}
|
|
15210
|
+
set _cachedJsonLd(value) {
|
|
15211
|
+
this.#cachedJsonLd = value;
|
|
15212
|
+
}
|
|
15213
|
+
get _baseUrl() {
|
|
15214
|
+
return this.#_baseUrl;
|
|
15215
|
+
}
|
|
15216
|
+
/**
|
|
15217
|
+
* The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
|
|
15218
|
+
*/
|
|
15219
|
+
static get typeId() {
|
|
15220
|
+
return new URL("https://w3id.org/valueflows/ont/vf#Commitment");
|
|
15221
|
+
}
|
|
15222
|
+
#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15223
|
+
#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
|
|
15224
|
+
/**
|
|
15225
|
+
* Constructs a new instance of Commitment with the given values.
|
|
15226
|
+
* @param values The values to initialize the instance with.
|
|
15227
|
+
* @param options The options to use for initialization.
|
|
15228
|
+
*/
|
|
15229
|
+
constructor(values, options = {}) {
|
|
15230
|
+
this.#documentLoader = options.documentLoader;
|
|
15231
|
+
this.#contextLoader = options.contextLoader;
|
|
15232
|
+
this.#tracerProvider = options.tracerProvider;
|
|
15233
|
+
const baseUrl = options.baseUrl;
|
|
15234
|
+
this.#_baseUrl = baseUrl == null ? void 0 : new URL(baseUrl.href);
|
|
15235
|
+
if ("$warning" in options) this.#warning = options.$warning;
|
|
15236
|
+
if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
|
|
15237
|
+
else throw new TypeError("The id must be a URL.");
|
|
15238
|
+
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
15239
|
+
else throw new TypeError("The satisfies must be of type URL.");
|
|
15240
|
+
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
15241
|
+
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
15242
|
+
}
|
|
15243
|
+
/**
|
|
15244
|
+
* Clones this instance, optionally updating it with the given values.
|
|
15245
|
+
* @param values The values to update the clone with.
|
|
15246
|
+
* @param options The options to use for cloning.
|
|
15247
|
+
* @returns The cloned instance.
|
|
15248
|
+
*/
|
|
15249
|
+
clone(values = {}, options = {}) {
|
|
15250
|
+
if (this._warning != null) {
|
|
15251
|
+
getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15252
|
+
options = {
|
|
15253
|
+
...options,
|
|
15254
|
+
$warning: this._warning
|
|
15255
|
+
};
|
|
15256
|
+
}
|
|
15257
|
+
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15258
|
+
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
15259
|
+
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
15260
|
+
else throw new TypeError("The satisfies must be of type URL.");
|
|
15261
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15262
|
+
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
15263
|
+
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
15264
|
+
return clone;
|
|
15265
|
+
}
|
|
15266
|
+
/** The {@link Intent} of a {@link Proposal} that this commitment
|
|
15267
|
+
* satisfies. The value is the proposal's URI with a
|
|
15268
|
+
* [fragment](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment)
|
|
15269
|
+
* appended to identify the intent. Recommended fragments are
|
|
15270
|
+
* `primary` and `reciprocal`.
|
|
15271
|
+
*/
|
|
15272
|
+
get satisfies() {
|
|
15273
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15274
|
+
if (this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length < 1) return null;
|
|
15275
|
+
return this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
|
|
15276
|
+
}
|
|
15277
|
+
/** The amount and unit of the economic resource being committed. The
|
|
15278
|
+
* unit must match the unit specified in the corresponding {@link Intent}
|
|
15279
|
+
* of the proposal.
|
|
15280
|
+
*/
|
|
15281
|
+
get resourceQuantity() {
|
|
15282
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
15283
|
+
if (this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length < 1) return null;
|
|
15284
|
+
return this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
|
|
15285
|
+
}
|
|
15286
|
+
/**
|
|
15287
|
+
* Converts this object to a JSON-LD structure.
|
|
15288
|
+
* @param options The options to use.
|
|
15289
|
+
* - `format`: The format of the output: `compact` or
|
|
15290
|
+
`expand`.
|
|
15291
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15292
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
15293
|
+
when `format` is set to `'expand'`.
|
|
15294
|
+
* @returns The JSON-LD representation of this object.
|
|
15295
|
+
*/
|
|
15296
|
+
async toJsonLd(options = {}) {
|
|
15297
|
+
if (options.format == null && this._cachedJsonLd != null) return this._cachedJsonLd;
|
|
15298
|
+
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'.");
|
|
15299
|
+
options = {
|
|
15300
|
+
...options,
|
|
15301
|
+
contextLoader: options.contextLoader ?? getDocumentLoader()
|
|
15302
|
+
};
|
|
15303
|
+
if (options.format == null && this.isCompactable()) {
|
|
15304
|
+
const result = {};
|
|
15305
|
+
let compactItems = [];
|
|
15306
|
+
for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
|
|
15307
|
+
const item = v.href;
|
|
15308
|
+
compactItems.push(item);
|
|
15309
|
+
}
|
|
15310
|
+
if (compactItems.length > 0) result["satisfies"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15311
|
+
compactItems = [];
|
|
15312
|
+
for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
|
|
15313
|
+
const item = await v.toJsonLd({
|
|
15314
|
+
...options,
|
|
15315
|
+
format: void 0,
|
|
15316
|
+
context: void 0
|
|
15317
|
+
});
|
|
15318
|
+
compactItems.push(item);
|
|
15319
|
+
}
|
|
15320
|
+
if (compactItems.length > 0) result["resourceQuantity"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
15321
|
+
result["type"] = "Commitment";
|
|
15322
|
+
if (this.id != null) result["id"] = this.id.href;
|
|
15323
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams", {
|
|
15324
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15325
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15326
|
+
"Commitment": "vf:Commitment",
|
|
15327
|
+
"satisfies": {
|
|
15328
|
+
"@id": "vf:satisfies",
|
|
15329
|
+
"@type": "@id"
|
|
15330
|
+
},
|
|
15331
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15332
|
+
"hasUnit": "om2:hasUnit",
|
|
15333
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15334
|
+
}];
|
|
15335
|
+
return result;
|
|
15336
|
+
}
|
|
15337
|
+
let array;
|
|
15338
|
+
const values = {};
|
|
15339
|
+
array = [];
|
|
15340
|
+
for (const v of this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies) {
|
|
15341
|
+
const element = { "@id": v.href };
|
|
15342
|
+
array.push(element);
|
|
15343
|
+
}
|
|
15344
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#satisfies"] = array;
|
|
15345
|
+
array = [];
|
|
15346
|
+
for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
|
|
15347
|
+
const element = await v.toJsonLd(options);
|
|
15348
|
+
array.push(element);
|
|
15349
|
+
}
|
|
15350
|
+
if (array.length > 0) values["https://w3id.org/valueflows/ont/vf#resourceQuantity"] = array;
|
|
15351
|
+
values["@type"] = ["https://w3id.org/valueflows/ont/vf#Commitment"];
|
|
15352
|
+
if (this.id != null) values["@id"] = this.id.href;
|
|
15353
|
+
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15354
|
+
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
15355
|
+
"vf": "https://w3id.org/valueflows/ont/vf#",
|
|
15356
|
+
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
|
15357
|
+
"Commitment": "vf:Commitment",
|
|
15358
|
+
"satisfies": {
|
|
15359
|
+
"@id": "vf:satisfies",
|
|
15360
|
+
"@type": "@id"
|
|
15361
|
+
},
|
|
15362
|
+
"resourceQuantity": "vf:resourceQuantity",
|
|
15363
|
+
"hasUnit": "om2:hasUnit",
|
|
15364
|
+
"hasNumericalValue": "om2:hasNumericalValue"
|
|
15365
|
+
}];
|
|
15366
|
+
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15367
|
+
if (docContext != null) {}
|
|
15368
|
+
return compacted;
|
|
15369
|
+
}
|
|
15370
|
+
isCompactable() {
|
|
15371
|
+
return true;
|
|
15372
|
+
}
|
|
15373
|
+
/**
|
|
15374
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
15375
|
+
* @param json The JSON-LD structure to convert.
|
|
15376
|
+
* @param options The options to use.
|
|
15377
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
15378
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
15379
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
15380
|
+
* If omitted, the global tracer provider is used.
|
|
15381
|
+
* @returns The object of this type.
|
|
15382
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
15383
|
+
*/
|
|
15384
|
+
static async fromJsonLd(json, options = {}) {
|
|
15385
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15386
|
+
try {
|
|
15387
|
+
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
15388
|
+
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
15389
|
+
return object;
|
|
15390
|
+
} catch (error) {
|
|
15391
|
+
span.setStatus({
|
|
15392
|
+
code: SpanStatusCode.ERROR,
|
|
15393
|
+
message: String(error)
|
|
15394
|
+
});
|
|
15395
|
+
throw error;
|
|
15396
|
+
} finally {
|
|
15397
|
+
span.end();
|
|
15398
|
+
}
|
|
15399
|
+
});
|
|
15400
|
+
}
|
|
15401
|
+
static async __fromJsonLd__Commitment__(json, span, options = {}) {
|
|
15402
|
+
if (typeof json === "undefined") throw new TypeError("Invalid JSON-LD: undefined.");
|
|
15403
|
+
else if (json === null) throw new TypeError("Invalid JSON-LD: null.");
|
|
15404
|
+
options = {
|
|
15405
|
+
...options,
|
|
15406
|
+
documentLoader: options.documentLoader ?? getDocumentLoader(),
|
|
15407
|
+
contextLoader: options.contextLoader ?? getDocumentLoader(),
|
|
15408
|
+
tracerProvider: options.tracerProvider ?? trace.getTracerProvider()
|
|
15409
|
+
};
|
|
15410
|
+
let values;
|
|
15411
|
+
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15412
|
+
else values = (await jsonld.expand(json, {
|
|
15413
|
+
documentLoader: options.contextLoader,
|
|
15414
|
+
keepFreeFloatingNodes: true
|
|
15415
|
+
}))[0] ?? {};
|
|
15416
|
+
if (values["@id"] != null && !values["@id"].startsWith("_:") && !URL.canParse(values["@id"], options.baseUrl)) throw new TypeError("Invalid @id: " + values["@id"]);
|
|
15417
|
+
if (options.baseUrl == null && values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"])) options = {
|
|
15418
|
+
...options,
|
|
15419
|
+
baseUrl: new URL(values["@id"])
|
|
15420
|
+
};
|
|
15421
|
+
if ("@type" in values) span.setAttribute("activitypub.object.type", values["@type"]);
|
|
15422
|
+
if ("@type" in values && !values["@type"].every((t) => t.startsWith("_:"))) {
|
|
15423
|
+
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15424
|
+
}
|
|
15425
|
+
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);
|
|
15426
|
+
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15427
|
+
let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
|
|
15428
|
+
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) {
|
|
15429
|
+
if (v == null) continue;
|
|
15430
|
+
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);
|
|
15431
|
+
if (typeof decoded === "undefined") continue;
|
|
15432
|
+
_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
|
|
15433
|
+
}
|
|
15434
|
+
instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
15435
|
+
const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [];
|
|
15436
|
+
let _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array = values["https://w3id.org/valueflows/ont/vf#resourceQuantity"];
|
|
15437
|
+
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) {
|
|
15438
|
+
if (v == null) continue;
|
|
15439
|
+
const decoded = await Measure.fromJsonLd(v, {
|
|
15440
|
+
...options,
|
|
15441
|
+
baseUrl: options.baseUrl
|
|
15442
|
+
});
|
|
15443
|
+
if (typeof decoded === "undefined") continue;
|
|
15444
|
+
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15445
|
+
}
|
|
15446
|
+
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15447
|
+
if (!("_fromSubclass" in options) || !options._fromSubclass) try {
|
|
15448
|
+
instance._cachedJsonLd = structuredClone(json);
|
|
15449
|
+
} catch {
|
|
15450
|
+
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
15451
|
+
}
|
|
15452
|
+
return instance;
|
|
15453
|
+
}
|
|
15454
|
+
_getCustomInspectProxy() {
|
|
15455
|
+
const proxy = {};
|
|
15456
|
+
if (this.id != null) proxy.id = {
|
|
15457
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(this.id.href, options),
|
|
15458
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(this.id.href, options)
|
|
15459
|
+
};
|
|
15460
|
+
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.map((v) => v instanceof URL ? {
|
|
15461
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15462
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15463
|
+
} : v);
|
|
15464
|
+
if (_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.length == 1) proxy.satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies[0];
|
|
15465
|
+
const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.map((v) => v instanceof URL ? {
|
|
15466
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
15467
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
15468
|
+
} : v);
|
|
15469
|
+
if (_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length == 1) proxy.resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
|
|
15470
|
+
return proxy;
|
|
15471
|
+
}
|
|
15472
|
+
};
|
|
15473
|
+
Commitment.prototype[Symbol.for("Deno.customInspect")] = function(inspect, options) {
|
|
15474
|
+
return "Commitment " + inspect(this._getCustomInspectProxy(), options);
|
|
15475
|
+
};
|
|
15476
|
+
Commitment.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, options, inspect) {
|
|
15477
|
+
return "Commitment " + inspect(this._getCustomInspectProxy(), options);
|
|
15478
|
+
};
|
|
14859
15479
|
/** A proposed economic transaction describing what is being offered or requested
|
|
14860
15480
|
* in a {@link Proposal}.
|
|
14861
15481
|
*/
|
|
@@ -15141,7 +15761,7 @@ var Intent = class {
|
|
|
15141
15761
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15142
15762
|
*/
|
|
15143
15763
|
static async fromJsonLd(json, options = {}) {
|
|
15144
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
15764
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15145
15765
|
try {
|
|
15146
15766
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
15147
15767
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15559,7 +16179,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
15559
16179
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15560
16180
|
*/
|
|
15561
16181
|
static async fromJsonLd(json, options = {}) {
|
|
15562
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16182
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15563
16183
|
try {
|
|
15564
16184
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
15565
16185
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15773,7 +16393,7 @@ var Accept = class Accept extends Activity {
|
|
|
15773
16393
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15774
16394
|
*/
|
|
15775
16395
|
static async fromJsonLd(json, options = {}) {
|
|
15776
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16396
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15777
16397
|
try {
|
|
15778
16398
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
15779
16399
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15926,7 +16546,7 @@ var Add = class Add extends Activity {
|
|
|
15926
16546
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15927
16547
|
*/
|
|
15928
16548
|
static async fromJsonLd(json, options = {}) {
|
|
15929
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16549
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15930
16550
|
try {
|
|
15931
16551
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
15932
16552
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16106,7 +16726,7 @@ var Announce = class Announce extends Activity {
|
|
|
16106
16726
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16107
16727
|
*/
|
|
16108
16728
|
static async fromJsonLd(json, options = {}) {
|
|
16109
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
16729
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16110
16730
|
try {
|
|
16111
16731
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
16112
16732
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16502,7 +17122,7 @@ var Application = class Application extends Object$1 {
|
|
|
16502
17122
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16503
17123
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16504
17124
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16505
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17125
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16506
17126
|
let fetchResult;
|
|
16507
17127
|
try {
|
|
16508
17128
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16670,7 +17290,7 @@ var Application = class Application extends Object$1 {
|
|
|
16670
17290
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16671
17291
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16672
17292
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16673
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17293
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16674
17294
|
let fetchResult;
|
|
16675
17295
|
try {
|
|
16676
17296
|
fetchResult = await documentLoader(url.href);
|
|
@@ -16856,7 +17476,7 @@ var Application = class Application extends Object$1 {
|
|
|
16856
17476
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
16857
17477
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
16858
17478
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
16859
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17479
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16860
17480
|
let fetchResult;
|
|
16861
17481
|
try {
|
|
16862
17482
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17001,7 +17621,7 @@ var Application = class Application extends Object$1 {
|
|
|
17001
17621
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17002
17622
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17003
17623
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17004
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17624
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17005
17625
|
let fetchResult;
|
|
17006
17626
|
try {
|
|
17007
17627
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17143,7 +17763,7 @@ var Application = class Application extends Object$1 {
|
|
|
17143
17763
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17144
17764
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17145
17765
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17146
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17766
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17147
17767
|
let fetchResult;
|
|
17148
17768
|
try {
|
|
17149
17769
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17270,7 +17890,7 @@ var Application = class Application extends Object$1 {
|
|
|
17270
17890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17271
17891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17272
17892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17273
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
17893
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17274
17894
|
let fetchResult;
|
|
17275
17895
|
try {
|
|
17276
17896
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17400,7 +18020,7 @@ var Application = class Application extends Object$1 {
|
|
|
17400
18020
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17401
18021
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17402
18022
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17403
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18023
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17404
18024
|
let fetchResult;
|
|
17405
18025
|
try {
|
|
17406
18026
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17528,7 +18148,7 @@ var Application = class Application extends Object$1 {
|
|
|
17528
18148
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17529
18149
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17530
18150
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17531
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18151
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17532
18152
|
let fetchResult;
|
|
17533
18153
|
try {
|
|
17534
18154
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17654,7 +18274,7 @@ var Application = class Application extends Object$1 {
|
|
|
17654
18274
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17655
18275
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17656
18276
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17657
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18277
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17658
18278
|
let fetchResult;
|
|
17659
18279
|
try {
|
|
17660
18280
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17780,7 +18400,7 @@ var Application = class Application extends Object$1 {
|
|
|
17780
18400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17781
18401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17782
18402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17783
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18403
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17784
18404
|
let fetchResult;
|
|
17785
18405
|
try {
|
|
17786
18406
|
fetchResult = await documentLoader(url.href);
|
|
@@ -17945,7 +18565,7 @@ var Application = class Application extends Object$1 {
|
|
|
17945
18565
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17946
18566
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17947
18567
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17948
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18568
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17949
18569
|
let fetchResult;
|
|
17950
18570
|
try {
|
|
17951
18571
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18114,7 +18734,7 @@ var Application = class Application extends Object$1 {
|
|
|
18114
18734
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18115
18735
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18116
18736
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18117
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18737
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18118
18738
|
let fetchResult;
|
|
18119
18739
|
try {
|
|
18120
18740
|
fetchResult = await documentLoader(url.href);
|
|
@@ -18334,7 +18954,7 @@ var Application = class Application extends Object$1 {
|
|
|
18334
18954
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
18335
18955
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
18336
18956
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
18337
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
18957
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18338
18958
|
let fetchResult;
|
|
18339
18959
|
try {
|
|
18340
18960
|
fetchResult = await documentLoader(url.href);
|
|
@@ -19025,7 +19645,7 @@ var Application = class Application extends Object$1 {
|
|
|
19025
19645
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19026
19646
|
*/
|
|
19027
19647
|
static async fromJsonLd(json, options = {}) {
|
|
19028
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
19648
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19029
19649
|
try {
|
|
19030
19650
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
19031
19651
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19627,7 +20247,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
19627
20247
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19628
20248
|
*/
|
|
19629
20249
|
static async fromJsonLd(json, options = {}) {
|
|
19630
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
20250
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19631
20251
|
try {
|
|
19632
20252
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
19633
20253
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19781,7 +20401,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
19781
20401
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19782
20402
|
*/
|
|
19783
20403
|
static async fromJsonLd(json, options = {}) {
|
|
19784
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
20404
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19785
20405
|
try {
|
|
19786
20406
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
19787
20407
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19912,7 +20532,7 @@ var Article = class Article extends Object$1 {
|
|
|
19912
20532
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19913
20533
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19914
20534
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19915
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
20535
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19916
20536
|
let fetchResult;
|
|
19917
20537
|
try {
|
|
19918
20538
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20053,7 +20673,7 @@ var Article = class Article extends Object$1 {
|
|
|
20053
20673
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20054
20674
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20055
20675
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20056
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
20676
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20057
20677
|
let fetchResult;
|
|
20058
20678
|
try {
|
|
20059
20679
|
fetchResult = await documentLoader(url.href);
|
|
@@ -20342,7 +20962,7 @@ var Article = class Article extends Object$1 {
|
|
|
20342
20962
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20343
20963
|
*/
|
|
20344
20964
|
static async fromJsonLd(json, options = {}) {
|
|
20345
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
20965
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20346
20966
|
try {
|
|
20347
20967
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
20348
20968
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20626,7 +21246,7 @@ var Document = class Document extends Object$1 {
|
|
|
20626
21246
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20627
21247
|
*/
|
|
20628
21248
|
static async fromJsonLd(json, options = {}) {
|
|
20629
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21249
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20630
21250
|
try {
|
|
20631
21251
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
20632
21252
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20822,7 +21442,7 @@ var Audio = class Audio extends Document {
|
|
|
20822
21442
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20823
21443
|
*/
|
|
20824
21444
|
static async fromJsonLd(json, options = {}) {
|
|
20825
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21445
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20826
21446
|
try {
|
|
20827
21447
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
20828
21448
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20972,7 +21592,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
20972
21592
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20973
21593
|
*/
|
|
20974
21594
|
static async fromJsonLd(json, options = {}) {
|
|
20975
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21595
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20976
21596
|
try {
|
|
20977
21597
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
20978
21598
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21125,7 +21745,7 @@ var Block = class Block extends Ignore {
|
|
|
21125
21745
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21126
21746
|
*/
|
|
21127
21747
|
static async fromJsonLd(json, options = {}) {
|
|
21128
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
21748
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21129
21749
|
try {
|
|
21130
21750
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
21131
21751
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21390,7 +22010,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21390
22010
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21391
22011
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21392
22012
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21393
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22013
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21394
22014
|
let fetchResult;
|
|
21395
22015
|
try {
|
|
21396
22016
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21514,7 +22134,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21514
22134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21515
22135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21516
22136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21517
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22137
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21518
22138
|
let fetchResult;
|
|
21519
22139
|
try {
|
|
21520
22140
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21638,7 +22258,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21638
22258
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21639
22259
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21640
22260
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21641
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22261
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21642
22262
|
let fetchResult;
|
|
21643
22263
|
try {
|
|
21644
22264
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21762,7 +22382,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21762
22382
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21763
22383
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21764
22384
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21765
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22385
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21766
22386
|
let fetchResult;
|
|
21767
22387
|
try {
|
|
21768
22388
|
fetchResult = await documentLoader(url.href);
|
|
@@ -21896,7 +22516,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21896
22516
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21897
22517
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21898
22518
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21899
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22519
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21900
22520
|
let fetchResult;
|
|
21901
22521
|
try {
|
|
21902
22522
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22019,7 +22639,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22019
22639
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22020
22640
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22021
22641
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22022
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22642
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22023
22643
|
let fetchResult;
|
|
22024
22644
|
try {
|
|
22025
22645
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22142,7 +22762,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22142
22762
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22143
22763
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22144
22764
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22145
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22765
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22146
22766
|
let fetchResult;
|
|
22147
22767
|
try {
|
|
22148
22768
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22265,7 +22885,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22265
22885
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22266
22886
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22267
22887
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22268
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
22888
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22269
22889
|
let fetchResult;
|
|
22270
22890
|
try {
|
|
22271
22891
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22388,7 +23008,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22388
23008
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22389
23009
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22390
23010
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22391
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23011
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22392
23012
|
let fetchResult;
|
|
22393
23013
|
try {
|
|
22394
23014
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22511,7 +23131,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22511
23131
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22512
23132
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22513
23133
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22514
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23134
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22515
23135
|
let fetchResult;
|
|
22516
23136
|
try {
|
|
22517
23137
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22634,7 +23254,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22634
23254
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22635
23255
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22636
23256
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22637
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23257
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22638
23258
|
let fetchResult;
|
|
22639
23259
|
try {
|
|
22640
23260
|
fetchResult = await documentLoader(url.href);
|
|
@@ -22757,7 +23377,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
22757
23377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22758
23378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22759
23379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22760
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
23380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22761
23381
|
let fetchResult;
|
|
22762
23382
|
try {
|
|
22763
23383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23209,7 +23829,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23209
23829
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23210
23830
|
*/
|
|
23211
23831
|
static async fromJsonLd(json, options = {}) {
|
|
23212
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
23832
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23213
23833
|
try {
|
|
23214
23834
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
23215
23835
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23335,6 +23955,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23335
23955
|
"https://gotosocial.org/ns#LikeApproval",
|
|
23336
23956
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
23337
23957
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
23958
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
23338
23959
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
23339
23960
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
23340
23961
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -23702,7 +24323,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23702
24323
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23703
24324
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23704
24325
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23705
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24326
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23706
24327
|
let fetchResult;
|
|
23707
24328
|
try {
|
|
23708
24329
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23826,7 +24447,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23826
24447
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23827
24448
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23828
24449
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23829
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24450
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23830
24451
|
let fetchResult;
|
|
23831
24452
|
try {
|
|
23832
24453
|
fetchResult = await documentLoader(url.href);
|
|
@@ -23949,7 +24570,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23949
24570
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23950
24571
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23951
24572
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23952
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
24573
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23953
24574
|
let fetchResult;
|
|
23954
24575
|
try {
|
|
23955
24576
|
fetchResult = await documentLoader(url.href);
|
|
@@ -24238,7 +24859,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24238
24859
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24239
24860
|
*/
|
|
24240
24861
|
static async fromJsonLd(json, options = {}) {
|
|
24241
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
24862
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24242
24863
|
try {
|
|
24243
24864
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
24244
24865
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24485,7 +25106,7 @@ var Create = class Create extends Activity {
|
|
|
24485
25106
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24486
25107
|
*/
|
|
24487
25108
|
static async fromJsonLd(json, options = {}) {
|
|
24488
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25109
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24489
25110
|
try {
|
|
24490
25111
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
24491
25112
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24661,7 +25282,7 @@ var Delete = class Delete extends Activity {
|
|
|
24661
25282
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24662
25283
|
*/
|
|
24663
25284
|
static async fromJsonLd(json, options = {}) {
|
|
24664
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25285
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24665
25286
|
try {
|
|
24666
25287
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
24667
25288
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24814,7 +25435,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
24814
25435
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24815
25436
|
*/
|
|
24816
25437
|
static async fromJsonLd(json, options = {}) {
|
|
24817
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25438
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24818
25439
|
try {
|
|
24819
25440
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
24820
25441
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25166,7 +25787,7 @@ var Endpoints = class {
|
|
|
25166
25787
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25167
25788
|
*/
|
|
25168
25789
|
static async fromJsonLd(json, options = {}) {
|
|
25169
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
25790
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25170
25791
|
try {
|
|
25171
25792
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
25172
25793
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25413,7 +26034,7 @@ var Event = class Event extends Object$1 {
|
|
|
25413
26034
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25414
26035
|
*/
|
|
25415
26036
|
static async fromJsonLd(json, options = {}) {
|
|
25416
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26037
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25417
26038
|
try {
|
|
25418
26039
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
25419
26040
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25564,7 +26185,7 @@ var Flag = class Flag extends Activity {
|
|
|
25564
26185
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25565
26186
|
*/
|
|
25566
26187
|
static async fromJsonLd(json, options = {}) {
|
|
25567
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26188
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25568
26189
|
try {
|
|
25569
26190
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
25570
26191
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25719,7 +26340,7 @@ var Follow = class Follow extends Activity {
|
|
|
25719
26340
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25720
26341
|
*/
|
|
25721
26342
|
static async fromJsonLd(json, options = {}) {
|
|
25722
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
26343
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25723
26344
|
try {
|
|
25724
26345
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
25725
26346
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26115,7 +26736,7 @@ var Group = class Group extends Object$1 {
|
|
|
26115
26736
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26116
26737
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26117
26738
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26118
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
26739
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26119
26740
|
let fetchResult;
|
|
26120
26741
|
try {
|
|
26121
26742
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26283,7 +26904,7 @@ var Group = class Group extends Object$1 {
|
|
|
26283
26904
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26284
26905
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26285
26906
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26286
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
26907
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26287
26908
|
let fetchResult;
|
|
26288
26909
|
try {
|
|
26289
26910
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26469,7 +27090,7 @@ var Group = class Group extends Object$1 {
|
|
|
26469
27090
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26470
27091
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26471
27092
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26472
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27093
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26473
27094
|
let fetchResult;
|
|
26474
27095
|
try {
|
|
26475
27096
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26614,7 +27235,7 @@ var Group = class Group extends Object$1 {
|
|
|
26614
27235
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26615
27236
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26616
27237
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26617
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27238
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26618
27239
|
let fetchResult;
|
|
26619
27240
|
try {
|
|
26620
27241
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26756,7 +27377,7 @@ var Group = class Group extends Object$1 {
|
|
|
26756
27377
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26757
27378
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26758
27379
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26759
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27380
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26760
27381
|
let fetchResult;
|
|
26761
27382
|
try {
|
|
26762
27383
|
fetchResult = await documentLoader(url.href);
|
|
@@ -26883,7 +27504,7 @@ var Group = class Group extends Object$1 {
|
|
|
26883
27504
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26884
27505
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26885
27506
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26886
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27507
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26887
27508
|
let fetchResult;
|
|
26888
27509
|
try {
|
|
26889
27510
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27013,7 +27634,7 @@ var Group = class Group extends Object$1 {
|
|
|
27013
27634
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27014
27635
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27015
27636
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27016
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27637
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27017
27638
|
let fetchResult;
|
|
27018
27639
|
try {
|
|
27019
27640
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27141,7 +27762,7 @@ var Group = class Group extends Object$1 {
|
|
|
27141
27762
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27142
27763
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27143
27764
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27144
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27765
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27145
27766
|
let fetchResult;
|
|
27146
27767
|
try {
|
|
27147
27768
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27267,7 +27888,7 @@ var Group = class Group extends Object$1 {
|
|
|
27267
27888
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27268
27889
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27269
27890
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27270
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
27891
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27271
27892
|
let fetchResult;
|
|
27272
27893
|
try {
|
|
27273
27894
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27393,7 +28014,7 @@ var Group = class Group extends Object$1 {
|
|
|
27393
28014
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27394
28015
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27395
28016
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27396
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28017
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27397
28018
|
let fetchResult;
|
|
27398
28019
|
try {
|
|
27399
28020
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27558,7 +28179,7 @@ var Group = class Group extends Object$1 {
|
|
|
27558
28179
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27559
28180
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27560
28181
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27561
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28182
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27562
28183
|
let fetchResult;
|
|
27563
28184
|
try {
|
|
27564
28185
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27727,7 +28348,7 @@ var Group = class Group extends Object$1 {
|
|
|
27727
28348
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27728
28349
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27729
28350
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27730
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28351
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27731
28352
|
let fetchResult;
|
|
27732
28353
|
try {
|
|
27733
28354
|
fetchResult = await documentLoader(url.href);
|
|
@@ -27947,7 +28568,7 @@ var Group = class Group extends Object$1 {
|
|
|
27947
28568
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27948
28569
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27949
28570
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27950
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
28571
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27951
28572
|
let fetchResult;
|
|
27952
28573
|
try {
|
|
27953
28574
|
fetchResult = await documentLoader(url.href);
|
|
@@ -28638,7 +29259,7 @@ var Group = class Group extends Object$1 {
|
|
|
28638
29259
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28639
29260
|
*/
|
|
28640
29261
|
static async fromJsonLd(json, options = {}) {
|
|
28641
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
29262
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28642
29263
|
try {
|
|
28643
29264
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
28644
29265
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29384,7 +30005,7 @@ var Link = class Link {
|
|
|
29384
30005
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29385
30006
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29386
30007
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29387
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
30008
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29388
30009
|
let fetchResult;
|
|
29389
30010
|
try {
|
|
29390
30011
|
fetchResult = await documentLoader(url.href);
|
|
@@ -29679,7 +30300,7 @@ var Link = class Link {
|
|
|
29679
30300
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29680
30301
|
*/
|
|
29681
30302
|
static async fromJsonLd(json, options = {}) {
|
|
29682
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30303
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29683
30304
|
try {
|
|
29684
30305
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
29685
30306
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29809,6 +30430,7 @@ var Link = class Link {
|
|
|
29809
30430
|
"https://gotosocial.org/ns#LikeApproval",
|
|
29810
30431
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
29811
30432
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
30433
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
29812
30434
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
29813
30435
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
29814
30436
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -30029,7 +30651,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
30029
30651
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30030
30652
|
*/
|
|
30031
30653
|
static async fromJsonLd(json, options = {}) {
|
|
30032
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30654
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30033
30655
|
try {
|
|
30034
30656
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
30035
30657
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30192,7 +30814,7 @@ var Image = class Image extends Document {
|
|
|
30192
30814
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30193
30815
|
*/
|
|
30194
30816
|
static async fromJsonLd(json, options = {}) {
|
|
30195
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30817
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30196
30818
|
try {
|
|
30197
30819
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
30198
30820
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30343,7 +30965,7 @@ var Offer = class Offer extends Activity {
|
|
|
30343
30965
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30344
30966
|
*/
|
|
30345
30967
|
static async fromJsonLd(json, options = {}) {
|
|
30346
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
30968
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30347
30969
|
try {
|
|
30348
30970
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
30349
30971
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30494,7 +31116,7 @@ var Invite = class Invite extends Offer {
|
|
|
30494
31116
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30495
31117
|
*/
|
|
30496
31118
|
static async fromJsonLd(json, options = {}) {
|
|
30497
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31119
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30498
31120
|
try {
|
|
30499
31121
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
30500
31122
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30644,7 +31266,7 @@ var Join = class Join extends Activity {
|
|
|
30644
31266
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30645
31267
|
*/
|
|
30646
31268
|
static async fromJsonLd(json, options = {}) {
|
|
30647
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31269
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30648
31270
|
try {
|
|
30649
31271
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
30650
31272
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30794,7 +31416,7 @@ var Leave = class Leave extends Activity {
|
|
|
30794
31416
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30795
31417
|
*/
|
|
30796
31418
|
static async fromJsonLd(json, options = {}) {
|
|
30797
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31419
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30798
31420
|
try {
|
|
30799
31421
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
30800
31422
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30948,7 +31570,7 @@ var Like = class Like extends Activity {
|
|
|
30948
31570
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30949
31571
|
*/
|
|
30950
31572
|
static async fromJsonLd(json, options = {}) {
|
|
30951
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31573
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30952
31574
|
try {
|
|
30953
31575
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
30954
31576
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31097,7 +31719,7 @@ var Listen = class Listen extends Activity {
|
|
|
31097
31719
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31098
31720
|
*/
|
|
31099
31721
|
static async fromJsonLd(json, options = {}) {
|
|
31100
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31722
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31101
31723
|
try {
|
|
31102
31724
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
31103
31725
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31249,7 +31871,7 @@ var Mention = class Mention extends Link {
|
|
|
31249
31871
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31250
31872
|
*/
|
|
31251
31873
|
static async fromJsonLd(json, options = {}) {
|
|
31252
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
31874
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31253
31875
|
try {
|
|
31254
31876
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
31255
31877
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31400,7 +32022,7 @@ var Move = class Move extends Activity {
|
|
|
31400
32022
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31401
32023
|
*/
|
|
31402
32024
|
static async fromJsonLd(json, options = {}) {
|
|
31403
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
32025
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31404
32026
|
try {
|
|
31405
32027
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
31406
32028
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31532,7 +32154,7 @@ var Note = class Note extends Object$1 {
|
|
|
31532
32154
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31533
32155
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31534
32156
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31535
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32157
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31536
32158
|
let fetchResult;
|
|
31537
32159
|
try {
|
|
31538
32160
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31673,7 +32295,7 @@ var Note = class Note extends Object$1 {
|
|
|
31673
32295
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31674
32296
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31675
32297
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31676
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32298
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31677
32299
|
let fetchResult;
|
|
31678
32300
|
try {
|
|
31679
32301
|
fetchResult = await documentLoader(url.href);
|
|
@@ -31962,7 +32584,7 @@ var Note = class Note extends Object$1 {
|
|
|
31962
32584
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31963
32585
|
*/
|
|
31964
32586
|
static async fromJsonLd(json, options = {}) {
|
|
31965
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
32587
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31966
32588
|
try {
|
|
31967
32589
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
31968
32590
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32138,7 +32760,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32138
32760
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32139
32761
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32140
32762
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32141
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
32763
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32142
32764
|
let fetchResult;
|
|
32143
32765
|
try {
|
|
32144
32766
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32411,7 +33033,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32411
33033
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32412
33034
|
*/
|
|
32413
33035
|
static async fromJsonLd(json, options = {}) {
|
|
32414
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
33036
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32415
33037
|
try {
|
|
32416
33038
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
32417
33039
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32474,6 +33096,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32474
33096
|
"https://gotosocial.org/ns#LikeApproval",
|
|
32475
33097
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
32476
33098
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
33099
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
32477
33100
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
32478
33101
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
32479
33102
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -32628,7 +33251,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
32628
33251
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32629
33252
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32630
33253
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32631
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
33254
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32632
33255
|
let fetchResult;
|
|
32633
33256
|
try {
|
|
32634
33257
|
fetchResult = await documentLoader(url.href);
|
|
@@ -32924,7 +33547,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
32924
33547
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32925
33548
|
*/
|
|
32926
33549
|
static async fromJsonLd(json, options = {}) {
|
|
32927
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
33550
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32928
33551
|
try {
|
|
32929
33552
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
32930
33553
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32987,6 +33610,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
32987
33610
|
"https://gotosocial.org/ns#LikeApproval",
|
|
32988
33611
|
"https://gotosocial.org/ns#ReplyAuthorization",
|
|
32989
33612
|
"https://w3id.org/fep/044f#QuoteAuthorization",
|
|
33613
|
+
"https://w3id.org/valueflows/ont/vf#Agreement",
|
|
32990
33614
|
"https://w3id.org/valueflows/ont/vf#Proposal",
|
|
32991
33615
|
"https://www.w3.org/ns/activitystreams#Activity",
|
|
32992
33616
|
"http://litepub.social/ns#EmojiReact",
|
|
@@ -33429,7 +34053,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33429
34053
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33430
34054
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33431
34055
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33432
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34056
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33433
34057
|
let fetchResult;
|
|
33434
34058
|
try {
|
|
33435
34059
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33597,7 +34221,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33597
34221
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33598
34222
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33599
34223
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33600
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34224
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33601
34225
|
let fetchResult;
|
|
33602
34226
|
try {
|
|
33603
34227
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33783,7 +34407,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33783
34407
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33784
34408
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33785
34409
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33786
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34410
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33787
34411
|
let fetchResult;
|
|
33788
34412
|
try {
|
|
33789
34413
|
fetchResult = await documentLoader(url.href);
|
|
@@ -33928,7 +34552,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33928
34552
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33929
34553
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33930
34554
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33931
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34555
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33932
34556
|
let fetchResult;
|
|
33933
34557
|
try {
|
|
33934
34558
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34070,7 +34694,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34070
34694
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34071
34695
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34072
34696
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34073
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34697
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34074
34698
|
let fetchResult;
|
|
34075
34699
|
try {
|
|
34076
34700
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34197,7 +34821,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34197
34821
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34198
34822
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34199
34823
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34200
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34824
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34201
34825
|
let fetchResult;
|
|
34202
34826
|
try {
|
|
34203
34827
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34327,7 +34951,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34327
34951
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34328
34952
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34329
34953
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34330
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
34954
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34331
34955
|
let fetchResult;
|
|
34332
34956
|
try {
|
|
34333
34957
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34455,7 +35079,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34455
35079
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34456
35080
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34457
35081
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34458
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35082
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34459
35083
|
let fetchResult;
|
|
34460
35084
|
try {
|
|
34461
35085
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34581,7 +35205,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34581
35205
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34582
35206
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34583
35207
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34584
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35208
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34585
35209
|
let fetchResult;
|
|
34586
35210
|
try {
|
|
34587
35211
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34707,7 +35331,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34707
35331
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34708
35332
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34709
35333
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34710
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35334
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34711
35335
|
let fetchResult;
|
|
34712
35336
|
try {
|
|
34713
35337
|
fetchResult = await documentLoader(url.href);
|
|
@@ -34872,7 +35496,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
34872
35496
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34873
35497
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34874
35498
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34875
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35499
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34876
35500
|
let fetchResult;
|
|
34877
35501
|
try {
|
|
34878
35502
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35041,7 +35665,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35041
35665
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35042
35666
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35043
35667
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35044
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35668
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35045
35669
|
let fetchResult;
|
|
35046
35670
|
try {
|
|
35047
35671
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35261,7 +35885,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35261
35885
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
35262
35886
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
35263
35887
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
35264
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
35888
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35265
35889
|
let fetchResult;
|
|
35266
35890
|
try {
|
|
35267
35891
|
fetchResult = await documentLoader(url.href);
|
|
@@ -35952,7 +36576,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35952
36576
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35953
36577
|
*/
|
|
35954
36578
|
static async fromJsonLd(json, options = {}) {
|
|
35955
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
36579
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35956
36580
|
try {
|
|
35957
36581
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
35958
36582
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36566,7 +37190,7 @@ var Page = class Page extends Document {
|
|
|
36566
37190
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36567
37191
|
*/
|
|
36568
37192
|
static async fromJsonLd(json, options = {}) {
|
|
36569
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
37193
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36570
37194
|
try {
|
|
36571
37195
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
36572
37196
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36962,7 +37586,7 @@ var Person = class Person extends Object$1 {
|
|
|
36962
37586
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
36963
37587
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
36964
37588
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
36965
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
37589
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36966
37590
|
let fetchResult;
|
|
36967
37591
|
try {
|
|
36968
37592
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37130,7 +37754,7 @@ var Person = class Person extends Object$1 {
|
|
|
37130
37754
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37131
37755
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37132
37756
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37133
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
37757
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37134
37758
|
let fetchResult;
|
|
37135
37759
|
try {
|
|
37136
37760
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37316,7 +37940,7 @@ var Person = class Person extends Object$1 {
|
|
|
37316
37940
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37317
37941
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37318
37942
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37319
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
37943
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37320
37944
|
let fetchResult;
|
|
37321
37945
|
try {
|
|
37322
37946
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37461,7 +38085,7 @@ var Person = class Person extends Object$1 {
|
|
|
37461
38085
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37462
38086
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37463
38087
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37464
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38088
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37465
38089
|
let fetchResult;
|
|
37466
38090
|
try {
|
|
37467
38091
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37603,7 +38227,7 @@ var Person = class Person extends Object$1 {
|
|
|
37603
38227
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37604
38228
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37605
38229
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37606
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38230
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37607
38231
|
let fetchResult;
|
|
37608
38232
|
try {
|
|
37609
38233
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37730,7 +38354,7 @@ var Person = class Person extends Object$1 {
|
|
|
37730
38354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37731
38355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37732
38356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37733
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38357
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37734
38358
|
let fetchResult;
|
|
37735
38359
|
try {
|
|
37736
38360
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37860,7 +38484,7 @@ var Person = class Person extends Object$1 {
|
|
|
37860
38484
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37861
38485
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37862
38486
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37863
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38487
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37864
38488
|
let fetchResult;
|
|
37865
38489
|
try {
|
|
37866
38490
|
fetchResult = await documentLoader(url.href);
|
|
@@ -37988,7 +38612,7 @@ var Person = class Person extends Object$1 {
|
|
|
37988
38612
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
37989
38613
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
37990
38614
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
37991
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38615
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37992
38616
|
let fetchResult;
|
|
37993
38617
|
try {
|
|
37994
38618
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38114,7 +38738,7 @@ var Person = class Person extends Object$1 {
|
|
|
38114
38738
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38115
38739
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38116
38740
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38117
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38741
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38118
38742
|
let fetchResult;
|
|
38119
38743
|
try {
|
|
38120
38744
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38240,7 +38864,7 @@ var Person = class Person extends Object$1 {
|
|
|
38240
38864
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38241
38865
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38242
38866
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38243
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
38867
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38244
38868
|
let fetchResult;
|
|
38245
38869
|
try {
|
|
38246
38870
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38405,7 +39029,7 @@ var Person = class Person extends Object$1 {
|
|
|
38405
39029
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38406
39030
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38407
39031
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38408
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39032
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38409
39033
|
let fetchResult;
|
|
38410
39034
|
try {
|
|
38411
39035
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38574,7 +39198,7 @@ var Person = class Person extends Object$1 {
|
|
|
38574
39198
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38575
39199
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38576
39200
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38577
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39201
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38578
39202
|
let fetchResult;
|
|
38579
39203
|
try {
|
|
38580
39204
|
fetchResult = await documentLoader(url.href);
|
|
@@ -38794,7 +39418,7 @@ var Person = class Person extends Object$1 {
|
|
|
38794
39418
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38795
39419
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38796
39420
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38797
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
39421
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38798
39422
|
let fetchResult;
|
|
38799
39423
|
try {
|
|
38800
39424
|
fetchResult = await documentLoader(url.href);
|
|
@@ -39485,7 +40109,7 @@ var Person = class Person extends Object$1 {
|
|
|
39485
40109
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39486
40110
|
*/
|
|
39487
40111
|
static async fromJsonLd(json, options = {}) {
|
|
39488
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
40112
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39489
40113
|
try {
|
|
39490
40114
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
39491
40115
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40276,7 +40900,7 @@ var Place = class Place extends Object$1 {
|
|
|
40276
40900
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40277
40901
|
*/
|
|
40278
40902
|
static async fromJsonLd(json, options = {}) {
|
|
40279
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
40903
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40280
40904
|
try {
|
|
40281
40905
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
40282
40906
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40478,7 +41102,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
40478
41102
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40479
41103
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40480
41104
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40481
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41105
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40482
41106
|
let fetchResult;
|
|
40483
41107
|
try {
|
|
40484
41108
|
fetchResult = await documentLoader(url.href);
|
|
@@ -40682,7 +41306,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
40682
41306
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40683
41307
|
*/
|
|
40684
41308
|
static async fromJsonLd(json, options = {}) {
|
|
40685
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
41309
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40686
41310
|
try {
|
|
40687
41311
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
40688
41312
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40881,7 +41505,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
40881
41505
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40882
41506
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40883
41507
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40884
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41508
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40885
41509
|
let fetchResult;
|
|
40886
41510
|
try {
|
|
40887
41511
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41006,7 +41630,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41006
41630
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41007
41631
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41008
41632
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41009
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41633
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41010
41634
|
let fetchResult;
|
|
41011
41635
|
try {
|
|
41012
41636
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41147,7 +41771,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41147
41771
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41148
41772
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41149
41773
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41150
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41774
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41151
41775
|
let fetchResult;
|
|
41152
41776
|
try {
|
|
41153
41777
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41288,7 +41912,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41288
41912
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41289
41913
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41290
41914
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41291
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
41915
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41292
41916
|
let fetchResult;
|
|
41293
41917
|
try {
|
|
41294
41918
|
fetchResult = await documentLoader(url.href);
|
|
@@ -41543,7 +42167,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41543
42167
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41544
42168
|
*/
|
|
41545
42169
|
static async fromJsonLd(json, options = {}) {
|
|
41546
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42170
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41547
42171
|
try {
|
|
41548
42172
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
41549
42173
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41825,7 +42449,7 @@ var Read = class Read extends Activity {
|
|
|
41825
42449
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41826
42450
|
*/
|
|
41827
42451
|
static async fromJsonLd(json, options = {}) {
|
|
41828
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42452
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41829
42453
|
try {
|
|
41830
42454
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
41831
42455
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41975,7 +42599,7 @@ var Reject = class Reject extends Activity {
|
|
|
41975
42599
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41976
42600
|
*/
|
|
41977
42601
|
static async fromJsonLd(json, options = {}) {
|
|
41978
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
42602
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41979
42603
|
try {
|
|
41980
42604
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
41981
42605
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42149,7 +42773,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42149
42773
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42150
42774
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42151
42775
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42152
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
42776
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42153
42777
|
let fetchResult;
|
|
42154
42778
|
try {
|
|
42155
42779
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42275,7 +42899,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42275
42899
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42276
42900
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42277
42901
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42278
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
42902
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42279
42903
|
let fetchResult;
|
|
42280
42904
|
try {
|
|
42281
42905
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42443,7 +43067,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42443
43067
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42444
43068
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42445
43069
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42446
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
43070
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42447
43071
|
let fetchResult;
|
|
42448
43072
|
try {
|
|
42449
43073
|
fetchResult = await documentLoader(url.href);
|
|
@@ -42727,7 +43351,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42727
43351
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42728
43352
|
*/
|
|
42729
43353
|
static async fromJsonLd(json, options = {}) {
|
|
42730
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
43354
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42731
43355
|
try {
|
|
42732
43356
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
42733
43357
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42946,7 +43570,7 @@ var Remove = class Remove extends Activity {
|
|
|
42946
43570
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42947
43571
|
*/
|
|
42948
43572
|
static async fromJsonLd(json, options = {}) {
|
|
42949
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
43573
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42950
43574
|
try {
|
|
42951
43575
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
42952
43576
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43342,7 +43966,7 @@ var Service = class Service extends Object$1 {
|
|
|
43342
43966
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43343
43967
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43344
43968
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43345
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
43969
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43346
43970
|
let fetchResult;
|
|
43347
43971
|
try {
|
|
43348
43972
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43510,7 +44134,7 @@ var Service = class Service extends Object$1 {
|
|
|
43510
44134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43511
44135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43512
44136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43513
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44137
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43514
44138
|
let fetchResult;
|
|
43515
44139
|
try {
|
|
43516
44140
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43696,7 +44320,7 @@ var Service = class Service extends Object$1 {
|
|
|
43696
44320
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43697
44321
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43698
44322
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43699
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44323
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43700
44324
|
let fetchResult;
|
|
43701
44325
|
try {
|
|
43702
44326
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43841,7 +44465,7 @@ var Service = class Service extends Object$1 {
|
|
|
43841
44465
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43842
44466
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43843
44467
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43844
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44468
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43845
44469
|
let fetchResult;
|
|
43846
44470
|
try {
|
|
43847
44471
|
fetchResult = await documentLoader(url.href);
|
|
@@ -43983,7 +44607,7 @@ var Service = class Service extends Object$1 {
|
|
|
43983
44607
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
43984
44608
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
43985
44609
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
43986
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44610
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43987
44611
|
let fetchResult;
|
|
43988
44612
|
try {
|
|
43989
44613
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44110,7 +44734,7 @@ var Service = class Service extends Object$1 {
|
|
|
44110
44734
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44111
44735
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44112
44736
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44113
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44737
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44114
44738
|
let fetchResult;
|
|
44115
44739
|
try {
|
|
44116
44740
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44240,7 +44864,7 @@ var Service = class Service extends Object$1 {
|
|
|
44240
44864
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44241
44865
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44242
44866
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44243
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44867
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44244
44868
|
let fetchResult;
|
|
44245
44869
|
try {
|
|
44246
44870
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44368,7 +44992,7 @@ var Service = class Service extends Object$1 {
|
|
|
44368
44992
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44369
44993
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44370
44994
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44371
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
44995
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44372
44996
|
let fetchResult;
|
|
44373
44997
|
try {
|
|
44374
44998
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44494,7 +45118,7 @@ var Service = class Service extends Object$1 {
|
|
|
44494
45118
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44495
45119
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44496
45120
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44497
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45121
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44498
45122
|
let fetchResult;
|
|
44499
45123
|
try {
|
|
44500
45124
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44620,7 +45244,7 @@ var Service = class Service extends Object$1 {
|
|
|
44620
45244
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44621
45245
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44622
45246
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44623
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45247
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44624
45248
|
let fetchResult;
|
|
44625
45249
|
try {
|
|
44626
45250
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44785,7 +45409,7 @@ var Service = class Service extends Object$1 {
|
|
|
44785
45409
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44786
45410
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44787
45411
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44788
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45412
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44789
45413
|
let fetchResult;
|
|
44790
45414
|
try {
|
|
44791
45415
|
fetchResult = await documentLoader(url.href);
|
|
@@ -44954,7 +45578,7 @@ var Service = class Service extends Object$1 {
|
|
|
44954
45578
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44955
45579
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44956
45580
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44957
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45581
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44958
45582
|
let fetchResult;
|
|
44959
45583
|
try {
|
|
44960
45584
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45174,7 +45798,7 @@ var Service = class Service extends Object$1 {
|
|
|
45174
45798
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
45175
45799
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
45176
45800
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
45177
|
-
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.
|
|
45801
|
+
return await tracerProvider.getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45178
45802
|
let fetchResult;
|
|
45179
45803
|
try {
|
|
45180
45804
|
fetchResult = await documentLoader(url.href);
|
|
@@ -45865,7 +46489,7 @@ var Service = class Service extends Object$1 {
|
|
|
45865
46489
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45866
46490
|
*/
|
|
45867
46491
|
static async fromJsonLd(json, options = {}) {
|
|
45868
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
46492
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45869
46493
|
try {
|
|
45870
46494
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
45871
46495
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46567,7 +47191,7 @@ var Source = class {
|
|
|
46567
47191
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46568
47192
|
*/
|
|
46569
47193
|
static async fromJsonLd(json, options = {}) {
|
|
46570
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47194
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46571
47195
|
try {
|
|
46572
47196
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
46573
47197
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46746,7 +47370,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
46746
47370
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46747
47371
|
*/
|
|
46748
47372
|
static async fromJsonLd(json, options = {}) {
|
|
46749
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47373
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46750
47374
|
try {
|
|
46751
47375
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
46752
47376
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46896,7 +47520,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
46896
47520
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46897
47521
|
*/
|
|
46898
47522
|
static async fromJsonLd(json, options = {}) {
|
|
46899
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47523
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46900
47524
|
try {
|
|
46901
47525
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
46902
47526
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47135,7 +47759,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47135
47759
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47136
47760
|
*/
|
|
47137
47761
|
static async fromJsonLd(json, options = {}) {
|
|
47138
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47762
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47139
47763
|
try {
|
|
47140
47764
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
47141
47765
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47322,7 +47946,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
47322
47946
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47323
47947
|
*/
|
|
47324
47948
|
static async fromJsonLd(json, options = {}) {
|
|
47325
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
47949
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47326
47950
|
try {
|
|
47327
47951
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
47328
47952
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47486,7 +48110,7 @@ var Undo = class Undo extends Activity {
|
|
|
47486
48110
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47487
48111
|
*/
|
|
47488
48112
|
static async fromJsonLd(json, options = {}) {
|
|
47489
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48113
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47490
48114
|
try {
|
|
47491
48115
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
47492
48116
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47698,7 +48322,7 @@ var Update = class Update extends Activity {
|
|
|
47698
48322
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47699
48323
|
*/
|
|
47700
48324
|
static async fromJsonLd(json, options = {}) {
|
|
47701
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48325
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47702
48326
|
try {
|
|
47703
48327
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
47704
48328
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47861,7 +48485,7 @@ var Video = class Video extends Document {
|
|
|
47861
48485
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47862
48486
|
*/
|
|
47863
48487
|
static async fromJsonLd(json, options = {}) {
|
|
47864
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48488
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47865
48489
|
try {
|
|
47866
48490
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
47867
48491
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48010,7 +48634,7 @@ var View = class View extends Activity {
|
|
|
48010
48634
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48011
48635
|
*/
|
|
48012
48636
|
static async fromJsonLd(json, options = {}) {
|
|
48013
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.
|
|
48637
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.0").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48014
48638
|
try {
|
|
48015
48639
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
48016
48640
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48092,6 +48716,7 @@ const entityTypeSet = new Set([
|
|
|
48092
48716
|
DataIntegrityProof,
|
|
48093
48717
|
CryptographicKey,
|
|
48094
48718
|
Multikey,
|
|
48719
|
+
Agreement,
|
|
48095
48720
|
Proposal,
|
|
48096
48721
|
Accept,
|
|
48097
48722
|
Add,
|
|
@@ -48163,6 +48788,7 @@ const entityTypeIds = new Map([
|
|
|
48163
48788
|
["https://w3id.org/security#DataIntegrityProof", DataIntegrityProof],
|
|
48164
48789
|
["https://w3id.org/security#Key", CryptographicKey],
|
|
48165
48790
|
["https://w3id.org/security#Multikey", Multikey],
|
|
48791
|
+
["https://w3id.org/valueflows/ont/vf#Agreement", Agreement],
|
|
48166
48792
|
["https://w3id.org/valueflows/ont/vf#Proposal", Proposal],
|
|
48167
48793
|
["https://www.w3.org/ns/activitystreams#Accept", Accept],
|
|
48168
48794
|
["https://www.w3.org/ns/activitystreams#Add", Add],
|
|
@@ -48706,4 +49332,4 @@ async function* traverseCollection(collection, options = {}) {
|
|
|
48706
49332
|
}
|
|
48707
49333
|
}
|
|
48708
49334
|
//#endregion
|
|
48709
|
-
export { Accept, Activity, Add, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, Intent, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, Measure, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Proposal, Question, QuoteAuthorization, QuoteRequest, Read, Reject, Relationship, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getEntityTypeById, getTypeId, isActor, isEntityType, isFediverseHandle, lookupObject, normalizeActorHandle, normalizeLinkToImage, parseFediverseHandle, toAcctUrl, traverseCollection };
|
|
49335
|
+
export { Accept, Activity, Add, Agreement, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Commitment, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, Intent, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, Measure, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Proposal, Question, QuoteAuthorization, QuoteRequest, Read, Reject, Relationship, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getEntityTypeById, getTypeId, isActor, isEntityType, isFediverseHandle, lookupObject, normalizeActorHandle, normalizeLinkToImage, parseFediverseHandle, toAcctUrl, traverseCollection };
|