@fedify/vocab-tools 2.1.24 → 2.1.25
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 +53 -11
- package/dist/mod.js +53 -11
- package/package.json +1 -1
- package/src/__snapshots__/class.test.ts.deno.snap +1710 -170
- package/src/__snapshots__/class.test.ts.node.snap +1710 -170
- package/src/__snapshots__/class.test.ts.snap +1710 -170
- package/src/class.ts +11 -0
- package/src/codec.ts +10 -1
- package/src/property.ts +22 -2
- package/src/type.ts +17 -4
|
@@ -27,6 +27,16 @@ import {
|
|
|
27
27
|
isTemporalInstant,
|
|
28
28
|
} from \\"@fedify/vocab-runtime/temporal\\";
|
|
29
29
|
|
|
30
|
+
function canDecodeIri(iri: string): boolean {
|
|
31
|
+
return URL.canParse(iri) || iri.startsWith(\\"at://\\");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function decodeIri(iri: string): URL {
|
|
35
|
+
return !URL.canParse(iri) && iri.startsWith(\\"at://\\")
|
|
36
|
+
? new URL(\\"at://\\" + encodeURIComponent(iri.substring(5)))
|
|
37
|
+
: new URL(iri);
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
function isValidLanguageTag(language: string): boolean {
|
|
31
41
|
try {
|
|
32
42
|
new Intl.Locale(language);
|
|
@@ -2359,7 +2369,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2359
2369
|
\\"attachment\\"];
|
|
2360
2370
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2361
2371
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
2362
|
-
|
|
2372
|
+
try {
|
|
2373
|
+
v = await this.#attachment_fromJsonLd(obj, options);
|
|
2374
|
+
} catch (error) {
|
|
2375
|
+
if (!options.suppressError) throw error;
|
|
2376
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
2377
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
2378
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#attachment\\", index: i, error },
|
|
2379
|
+
);
|
|
2380
|
+
continue;
|
|
2381
|
+
}
|
|
2363
2382
|
}
|
|
2364
2383
|
}
|
|
2365
2384
|
|
|
@@ -2613,7 +2632,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2613
2632
|
\\"attributedTo\\"];
|
|
2614
2633
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2615
2634
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
2616
|
-
|
|
2635
|
+
try {
|
|
2636
|
+
v = await this.#attribution_fromJsonLd(doc, options);
|
|
2637
|
+
} catch (error) {
|
|
2638
|
+
if (!options.suppressError) throw error;
|
|
2639
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
2640
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
2641
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", error },
|
|
2642
|
+
);
|
|
2643
|
+
return null;
|
|
2644
|
+
}
|
|
2617
2645
|
}
|
|
2618
2646
|
}
|
|
2619
2647
|
|
|
@@ -2709,7 +2737,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2709
2737
|
\\"attributedTo\\"];
|
|
2710
2738
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2711
2739
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
2712
|
-
|
|
2740
|
+
try {
|
|
2741
|
+
v = await this.#attribution_fromJsonLd(obj, options);
|
|
2742
|
+
} catch (error) {
|
|
2743
|
+
if (!options.suppressError) throw error;
|
|
2744
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
2745
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
2746
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", index: i, error },
|
|
2747
|
+
);
|
|
2748
|
+
continue;
|
|
2749
|
+
}
|
|
2713
2750
|
}
|
|
2714
2751
|
}
|
|
2715
2752
|
|
|
@@ -2926,7 +2963,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2926
2963
|
\\"audience\\"];
|
|
2927
2964
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2928
2965
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
2929
|
-
|
|
2966
|
+
try {
|
|
2967
|
+
v = await this.#audience_fromJsonLd(doc, options);
|
|
2968
|
+
} catch (error) {
|
|
2969
|
+
if (!options.suppressError) throw error;
|
|
2970
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
2971
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
2972
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#audience\\", error },
|
|
2973
|
+
);
|
|
2974
|
+
return null;
|
|
2975
|
+
}
|
|
2930
2976
|
}
|
|
2931
2977
|
}
|
|
2932
2978
|
|
|
@@ -3021,7 +3067,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
3021
3067
|
\\"audience\\"];
|
|
3022
3068
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3023
3069
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
3024
|
-
|
|
3070
|
+
try {
|
|
3071
|
+
v = await this.#audience_fromJsonLd(obj, options);
|
|
3072
|
+
} catch (error) {
|
|
3073
|
+
if (!options.suppressError) throw error;
|
|
3074
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
3075
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
3076
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#audience\\", index: i, error },
|
|
3077
|
+
);
|
|
3078
|
+
continue;
|
|
3079
|
+
}
|
|
3025
3080
|
}
|
|
3026
3081
|
}
|
|
3027
3082
|
|
|
@@ -3282,7 +3337,16 @@ get contents(): ((string | LanguageString))[] {
|
|
|
3282
3337
|
\\"context\\"];
|
|
3283
3338
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3284
3339
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
3285
|
-
|
|
3340
|
+
try {
|
|
3341
|
+
v = await this.#context_fromJsonLd(obj, options);
|
|
3342
|
+
} catch (error) {
|
|
3343
|
+
if (!options.suppressError) throw error;
|
|
3344
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
3345
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
3346
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#context\\", index: i, error },
|
|
3347
|
+
);
|
|
3348
|
+
continue;
|
|
3349
|
+
}
|
|
3286
3350
|
}
|
|
3287
3351
|
}
|
|
3288
3352
|
|
|
@@ -3550,7 +3614,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
3550
3614
|
\\"generator\\"];
|
|
3551
3615
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3552
3616
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
3553
|
-
|
|
3617
|
+
try {
|
|
3618
|
+
v = await this.#generator_fromJsonLd(obj, options);
|
|
3619
|
+
} catch (error) {
|
|
3620
|
+
if (!options.suppressError) throw error;
|
|
3621
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
3622
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
3623
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#generator\\", index: i, error },
|
|
3624
|
+
);
|
|
3625
|
+
continue;
|
|
3626
|
+
}
|
|
3554
3627
|
}
|
|
3555
3628
|
}
|
|
3556
3629
|
|
|
@@ -3768,7 +3841,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
3768
3841
|
\\"icon\\"];
|
|
3769
3842
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3770
3843
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
3771
|
-
|
|
3844
|
+
try {
|
|
3845
|
+
v = await this.#icon_fromJsonLd(doc, options);
|
|
3846
|
+
} catch (error) {
|
|
3847
|
+
if (!options.suppressError) throw error;
|
|
3848
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
3849
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
3850
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#icon\\", error },
|
|
3851
|
+
);
|
|
3852
|
+
return null;
|
|
3853
|
+
}
|
|
3772
3854
|
}
|
|
3773
3855
|
}
|
|
3774
3856
|
|
|
@@ -3864,7 +3946,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
3864
3946
|
\\"icon\\"];
|
|
3865
3947
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3866
3948
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
3867
|
-
|
|
3949
|
+
try {
|
|
3950
|
+
v = await this.#icon_fromJsonLd(obj, options);
|
|
3951
|
+
} catch (error) {
|
|
3952
|
+
if (!options.suppressError) throw error;
|
|
3953
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
3954
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
3955
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#icon\\", index: i, error },
|
|
3956
|
+
);
|
|
3957
|
+
continue;
|
|
3958
|
+
}
|
|
3868
3959
|
}
|
|
3869
3960
|
}
|
|
3870
3961
|
|
|
@@ -4082,7 +4173,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4082
4173
|
\\"image\\"];
|
|
4083
4174
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4084
4175
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
4085
|
-
|
|
4176
|
+
try {
|
|
4177
|
+
v = await this.#image_fromJsonLd(doc, options);
|
|
4178
|
+
} catch (error) {
|
|
4179
|
+
if (!options.suppressError) throw error;
|
|
4180
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4181
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
4182
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#image\\", error },
|
|
4183
|
+
);
|
|
4184
|
+
return null;
|
|
4185
|
+
}
|
|
4086
4186
|
}
|
|
4087
4187
|
}
|
|
4088
4188
|
|
|
@@ -4178,7 +4278,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4178
4278
|
\\"image\\"];
|
|
4179
4279
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
4180
4280
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
4181
|
-
|
|
4281
|
+
try {
|
|
4282
|
+
v = await this.#image_fromJsonLd(obj, options);
|
|
4283
|
+
} catch (error) {
|
|
4284
|
+
if (!options.suppressError) throw error;
|
|
4285
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4286
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
4287
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#image\\", index: i, error },
|
|
4288
|
+
);
|
|
4289
|
+
continue;
|
|
4290
|
+
}
|
|
4182
4291
|
}
|
|
4183
4292
|
}
|
|
4184
4293
|
|
|
@@ -4404,7 +4513,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4404
4513
|
\\"inReplyTo\\"];
|
|
4405
4514
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4406
4515
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
4407
|
-
|
|
4516
|
+
try {
|
|
4517
|
+
v = await this.#replyTarget_fromJsonLd(doc, options);
|
|
4518
|
+
} catch (error) {
|
|
4519
|
+
if (!options.suppressError) throw error;
|
|
4520
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4521
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
4522
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", error },
|
|
4523
|
+
);
|
|
4524
|
+
return null;
|
|
4525
|
+
}
|
|
4408
4526
|
}
|
|
4409
4527
|
}
|
|
4410
4528
|
|
|
@@ -4499,7 +4617,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4499
4617
|
\\"inReplyTo\\"];
|
|
4500
4618
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
4501
4619
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
4502
|
-
|
|
4620
|
+
try {
|
|
4621
|
+
v = await this.#replyTarget_fromJsonLd(obj, options);
|
|
4622
|
+
} catch (error) {
|
|
4623
|
+
if (!options.suppressError) throw error;
|
|
4624
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4625
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
4626
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", index: i, error },
|
|
4627
|
+
);
|
|
4628
|
+
continue;
|
|
4629
|
+
}
|
|
4503
4630
|
}
|
|
4504
4631
|
}
|
|
4505
4632
|
|
|
@@ -4725,7 +4852,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4725
4852
|
\\"location\\"];
|
|
4726
4853
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4727
4854
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
4728
|
-
|
|
4855
|
+
try {
|
|
4856
|
+
v = await this.#location_fromJsonLd(doc, options);
|
|
4857
|
+
} catch (error) {
|
|
4858
|
+
if (!options.suppressError) throw error;
|
|
4859
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4860
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
4861
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#location\\", error },
|
|
4862
|
+
);
|
|
4863
|
+
return null;
|
|
4864
|
+
}
|
|
4729
4865
|
}
|
|
4730
4866
|
}
|
|
4731
4867
|
|
|
@@ -4820,7 +4956,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
4820
4956
|
\\"location\\"];
|
|
4821
4957
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
4822
4958
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
4823
|
-
|
|
4959
|
+
try {
|
|
4960
|
+
v = await this.#location_fromJsonLd(obj, options);
|
|
4961
|
+
} catch (error) {
|
|
4962
|
+
if (!options.suppressError) throw error;
|
|
4963
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
4964
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
4965
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#location\\", index: i, error },
|
|
4966
|
+
);
|
|
4967
|
+
continue;
|
|
4968
|
+
}
|
|
4824
4969
|
}
|
|
4825
4970
|
}
|
|
4826
4971
|
|
|
@@ -5045,7 +5190,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
5045
5190
|
\\"preview\\"];
|
|
5046
5191
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
5047
5192
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
5048
|
-
|
|
5193
|
+
try {
|
|
5194
|
+
v = await this.#preview_fromJsonLd(doc, options);
|
|
5195
|
+
} catch (error) {
|
|
5196
|
+
if (!options.suppressError) throw error;
|
|
5197
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
5198
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
5199
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#preview\\", error },
|
|
5200
|
+
);
|
|
5201
|
+
return null;
|
|
5202
|
+
}
|
|
5049
5203
|
}
|
|
5050
5204
|
}
|
|
5051
5205
|
|
|
@@ -5139,7 +5293,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
5139
5293
|
\\"preview\\"];
|
|
5140
5294
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
5141
5295
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
5142
|
-
|
|
5296
|
+
try {
|
|
5297
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
5298
|
+
} catch (error) {
|
|
5299
|
+
if (!options.suppressError) throw error;
|
|
5300
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
5301
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
5302
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
|
|
5303
|
+
);
|
|
5304
|
+
continue;
|
|
5305
|
+
}
|
|
5143
5306
|
}
|
|
5144
5307
|
}
|
|
5145
5308
|
|
|
@@ -5369,7 +5532,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
5369
5532
|
\\"replies\\"];
|
|
5370
5533
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
5371
5534
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
5372
|
-
|
|
5535
|
+
try {
|
|
5536
|
+
v = await this.#replies_fromJsonLd(doc, options);
|
|
5537
|
+
} catch (error) {
|
|
5538
|
+
if (!options.suppressError) throw error;
|
|
5539
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
5540
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
5541
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#replies\\", error },
|
|
5542
|
+
);
|
|
5543
|
+
return null;
|
|
5544
|
+
}
|
|
5373
5545
|
}
|
|
5374
5546
|
}
|
|
5375
5547
|
|
|
@@ -5591,7 +5763,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
5591
5763
|
\\"shares\\"];
|
|
5592
5764
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
5593
5765
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
5594
|
-
|
|
5766
|
+
try {
|
|
5767
|
+
v = await this.#shares_fromJsonLd(doc, options);
|
|
5768
|
+
} catch (error) {
|
|
5769
|
+
if (!options.suppressError) throw error;
|
|
5770
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
5771
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
5772
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#shares\\", error },
|
|
5773
|
+
);
|
|
5774
|
+
return null;
|
|
5775
|
+
}
|
|
5595
5776
|
}
|
|
5596
5777
|
}
|
|
5597
5778
|
|
|
@@ -5813,7 +5994,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
5813
5994
|
\\"likes\\"];
|
|
5814
5995
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
5815
5996
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
5816
|
-
|
|
5997
|
+
try {
|
|
5998
|
+
v = await this.#likes_fromJsonLd(doc, options);
|
|
5999
|
+
} catch (error) {
|
|
6000
|
+
if (!options.suppressError) throw error;
|
|
6001
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
6002
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
6003
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#likes\\", error },
|
|
6004
|
+
);
|
|
6005
|
+
return null;
|
|
6006
|
+
}
|
|
5817
6007
|
}
|
|
5818
6008
|
}
|
|
5819
6009
|
|
|
@@ -6029,7 +6219,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
6029
6219
|
\\"emojiReactions\\"];
|
|
6030
6220
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6031
6221
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
6032
|
-
|
|
6222
|
+
try {
|
|
6223
|
+
v = await this.#emojiReactions_fromJsonLd(doc, options);
|
|
6224
|
+
} catch (error) {
|
|
6225
|
+
if (!options.suppressError) throw error;
|
|
6226
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
6227
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
6228
|
+
{ property: \\"http://fedibird.com/ns#emojiReactions\\", error },
|
|
6229
|
+
);
|
|
6230
|
+
return null;
|
|
6231
|
+
}
|
|
6033
6232
|
}
|
|
6034
6233
|
}
|
|
6035
6234
|
|
|
@@ -6297,7 +6496,16 @@ get summaries(): ((string | LanguageString))[] {
|
|
|
6297
6496
|
\\"tag\\"];
|
|
6298
6497
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6299
6498
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
6300
|
-
|
|
6499
|
+
try {
|
|
6500
|
+
v = await this.#tag_fromJsonLd(obj, options);
|
|
6501
|
+
} catch (error) {
|
|
6502
|
+
if (!options.suppressError) throw error;
|
|
6503
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
6504
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
6505
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#tag\\", index: i, error },
|
|
6506
|
+
);
|
|
6507
|
+
continue;
|
|
6508
|
+
}
|
|
6301
6509
|
}
|
|
6302
6510
|
}
|
|
6303
6511
|
|
|
@@ -6548,7 +6756,16 @@ get urls(): ((URL | Link))[] {
|
|
|
6548
6756
|
\\"to\\"];
|
|
6549
6757
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6550
6758
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
6551
|
-
|
|
6759
|
+
try {
|
|
6760
|
+
v = await this.#to_fromJsonLd(doc, options);
|
|
6761
|
+
} catch (error) {
|
|
6762
|
+
if (!options.suppressError) throw error;
|
|
6763
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
6764
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
6765
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#to\\", error },
|
|
6766
|
+
);
|
|
6767
|
+
return null;
|
|
6768
|
+
}
|
|
6552
6769
|
}
|
|
6553
6770
|
}
|
|
6554
6771
|
|
|
@@ -6643,7 +6860,16 @@ get urls(): ((URL | Link))[] {
|
|
|
6643
6860
|
\\"to\\"];
|
|
6644
6861
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6645
6862
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
6646
|
-
|
|
6863
|
+
try {
|
|
6864
|
+
v = await this.#to_fromJsonLd(obj, options);
|
|
6865
|
+
} catch (error) {
|
|
6866
|
+
if (!options.suppressError) throw error;
|
|
6867
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
6868
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
6869
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#to\\", index: i, error },
|
|
6870
|
+
);
|
|
6871
|
+
continue;
|
|
6872
|
+
}
|
|
6647
6873
|
}
|
|
6648
6874
|
}
|
|
6649
6875
|
|
|
@@ -6860,7 +7086,16 @@ get urls(): ((URL | Link))[] {
|
|
|
6860
7086
|
\\"bto\\"];
|
|
6861
7087
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6862
7088
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
6863
|
-
|
|
7089
|
+
try {
|
|
7090
|
+
v = await this.#bto_fromJsonLd(doc, options);
|
|
7091
|
+
} catch (error) {
|
|
7092
|
+
if (!options.suppressError) throw error;
|
|
7093
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7094
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
7095
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#bto\\", error },
|
|
7096
|
+
);
|
|
7097
|
+
return null;
|
|
7098
|
+
}
|
|
6864
7099
|
}
|
|
6865
7100
|
}
|
|
6866
7101
|
|
|
@@ -6955,7 +7190,16 @@ get urls(): ((URL | Link))[] {
|
|
|
6955
7190
|
\\"bto\\"];
|
|
6956
7191
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
6957
7192
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
6958
|
-
|
|
7193
|
+
try {
|
|
7194
|
+
v = await this.#bto_fromJsonLd(obj, options);
|
|
7195
|
+
} catch (error) {
|
|
7196
|
+
if (!options.suppressError) throw error;
|
|
7197
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7198
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
7199
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#bto\\", index: i, error },
|
|
7200
|
+
);
|
|
7201
|
+
continue;
|
|
7202
|
+
}
|
|
6959
7203
|
}
|
|
6960
7204
|
}
|
|
6961
7205
|
|
|
@@ -7172,7 +7416,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7172
7416
|
\\"cc\\"];
|
|
7173
7417
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7174
7418
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
7175
|
-
|
|
7419
|
+
try {
|
|
7420
|
+
v = await this.#cc_fromJsonLd(doc, options);
|
|
7421
|
+
} catch (error) {
|
|
7422
|
+
if (!options.suppressError) throw error;
|
|
7423
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7424
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
7425
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#cc\\", error },
|
|
7426
|
+
);
|
|
7427
|
+
return null;
|
|
7428
|
+
}
|
|
7176
7429
|
}
|
|
7177
7430
|
}
|
|
7178
7431
|
|
|
@@ -7267,7 +7520,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7267
7520
|
\\"cc\\"];
|
|
7268
7521
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7269
7522
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
7270
|
-
|
|
7523
|
+
try {
|
|
7524
|
+
v = await this.#cc_fromJsonLd(obj, options);
|
|
7525
|
+
} catch (error) {
|
|
7526
|
+
if (!options.suppressError) throw error;
|
|
7527
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7528
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
7529
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#cc\\", index: i, error },
|
|
7530
|
+
);
|
|
7531
|
+
continue;
|
|
7532
|
+
}
|
|
7271
7533
|
}
|
|
7272
7534
|
}
|
|
7273
7535
|
|
|
@@ -7484,7 +7746,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7484
7746
|
\\"bcc\\"];
|
|
7485
7747
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7486
7748
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
7487
|
-
|
|
7749
|
+
try {
|
|
7750
|
+
v = await this.#bcc_fromJsonLd(doc, options);
|
|
7751
|
+
} catch (error) {
|
|
7752
|
+
if (!options.suppressError) throw error;
|
|
7753
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7754
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
7755
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#bcc\\", error },
|
|
7756
|
+
);
|
|
7757
|
+
return null;
|
|
7758
|
+
}
|
|
7488
7759
|
}
|
|
7489
7760
|
}
|
|
7490
7761
|
|
|
@@ -7579,7 +7850,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7579
7850
|
\\"bcc\\"];
|
|
7580
7851
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7581
7852
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
7582
|
-
|
|
7853
|
+
try {
|
|
7854
|
+
v = await this.#bcc_fromJsonLd(obj, options);
|
|
7855
|
+
} catch (error) {
|
|
7856
|
+
if (!options.suppressError) throw error;
|
|
7857
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
7858
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
7859
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#bcc\\", index: i, error },
|
|
7860
|
+
);
|
|
7861
|
+
continue;
|
|
7862
|
+
}
|
|
7583
7863
|
}
|
|
7584
7864
|
}
|
|
7585
7865
|
|
|
@@ -7859,7 +8139,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7859
8139
|
\\"proof\\"];
|
|
7860
8140
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7861
8141
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
7862
|
-
|
|
8142
|
+
try {
|
|
8143
|
+
v = await this.#proof_fromJsonLd(doc, options);
|
|
8144
|
+
} catch (error) {
|
|
8145
|
+
if (!options.suppressError) throw error;
|
|
8146
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
8147
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
8148
|
+
{ property: \\"https://w3id.org/security#proof\\", error },
|
|
8149
|
+
);
|
|
8150
|
+
return null;
|
|
8151
|
+
}
|
|
7863
8152
|
}
|
|
7864
8153
|
}
|
|
7865
8154
|
|
|
@@ -7953,7 +8242,16 @@ get urls(): ((URL | Link))[] {
|
|
|
7953
8242
|
\\"proof\\"];
|
|
7954
8243
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7955
8244
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
7956
|
-
|
|
8245
|
+
try {
|
|
8246
|
+
v = await this.#proof_fromJsonLd(obj, options);
|
|
8247
|
+
} catch (error) {
|
|
8248
|
+
if (!options.suppressError) throw error;
|
|
8249
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
8250
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
8251
|
+
{ property: \\"https://w3id.org/security#proof\\", index: i, error },
|
|
8252
|
+
);
|
|
8253
|
+
continue;
|
|
8254
|
+
}
|
|
7957
8255
|
}
|
|
7958
8256
|
}
|
|
7959
8257
|
|
|
@@ -8209,7 +8507,16 @@ get urls(): ((URL | Link))[] {
|
|
|
8209
8507
|
\\"likeAuthorization\\"];
|
|
8210
8508
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8211
8509
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
8212
|
-
|
|
8510
|
+
try {
|
|
8511
|
+
v = await this.#likeAuthorization_fromJsonLd(doc, options);
|
|
8512
|
+
} catch (error) {
|
|
8513
|
+
if (!options.suppressError) throw error;
|
|
8514
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
8515
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
8516
|
+
{ property: \\"https://gotosocial.org/ns#likeAuthorization\\", error },
|
|
8517
|
+
);
|
|
8518
|
+
return null;
|
|
8519
|
+
}
|
|
8213
8520
|
}
|
|
8214
8521
|
}
|
|
8215
8522
|
|
|
@@ -8425,7 +8732,16 @@ get urls(): ((URL | Link))[] {
|
|
|
8425
8732
|
\\"replyAuthorization\\"];
|
|
8426
8733
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8427
8734
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
8428
|
-
|
|
8735
|
+
try {
|
|
8736
|
+
v = await this.#replyAuthorization_fromJsonLd(doc, options);
|
|
8737
|
+
} catch (error) {
|
|
8738
|
+
if (!options.suppressError) throw error;
|
|
8739
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
8740
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
8741
|
+
{ property: \\"https://gotosocial.org/ns#replyAuthorization\\", error },
|
|
8742
|
+
);
|
|
8743
|
+
return null;
|
|
8744
|
+
}
|
|
8429
8745
|
}
|
|
8430
8746
|
}
|
|
8431
8747
|
|
|
@@ -8641,7 +8957,16 @@ get urls(): ((URL | Link))[] {
|
|
|
8641
8957
|
\\"announceAuthorization\\"];
|
|
8642
8958
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8643
8959
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
8644
|
-
|
|
8960
|
+
try {
|
|
8961
|
+
v = await this.#announceAuthorization_fromJsonLd(doc, options);
|
|
8962
|
+
} catch (error) {
|
|
8963
|
+
if (!options.suppressError) throw error;
|
|
8964
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
8965
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
8966
|
+
{ property: \\"https://gotosocial.org/ns#announceAuthorization\\", error },
|
|
8967
|
+
);
|
|
8968
|
+
return null;
|
|
8969
|
+
}
|
|
8645
8970
|
}
|
|
8646
8971
|
}
|
|
8647
8972
|
|
|
@@ -13551,9 +13876,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
13551
13876
|
if (v == null) continue;
|
|
13552
13877
|
|
|
13553
13878
|
const decoded =
|
|
13554
|
-
|
|
13879
|
+
typeof v === \\"object\\" &&
|
|
13880
|
+
((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
|
|
13881
|
+
(typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
|
|
13882
|
+
typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
|
|
13883
|
+
) : undefined
|
|
13555
13884
|
;
|
|
13556
13885
|
|
|
13886
|
+
if (typeof decoded === \\"undefined\\") {
|
|
13887
|
+
shouldCacheJsonLd = false;
|
|
13888
|
+
continue;
|
|
13889
|
+
}
|
|
13890
|
+
|
|
13557
13891
|
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
13558
13892
|
shouldCacheJsonLd = false;
|
|
13559
13893
|
}
|
|
@@ -14465,7 +14799,16 @@ instruments?: (Object | URL)[];}
|
|
|
14465
14799
|
\\"actor\\"];
|
|
14466
14800
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14467
14801
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
14468
|
-
|
|
14802
|
+
try {
|
|
14803
|
+
v = await this.#actor_fromJsonLd(doc, options);
|
|
14804
|
+
} catch (error) {
|
|
14805
|
+
if (!options.suppressError) throw error;
|
|
14806
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
14807
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
14808
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#actor\\", error },
|
|
14809
|
+
);
|
|
14810
|
+
return null;
|
|
14811
|
+
}
|
|
14469
14812
|
}
|
|
14470
14813
|
}
|
|
14471
14814
|
|
|
@@ -14561,7 +14904,16 @@ instruments?: (Object | URL)[];}
|
|
|
14561
14904
|
\\"actor\\"];
|
|
14562
14905
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
14563
14906
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
14564
|
-
|
|
14907
|
+
try {
|
|
14908
|
+
v = await this.#actor_fromJsonLd(obj, options);
|
|
14909
|
+
} catch (error) {
|
|
14910
|
+
if (!options.suppressError) throw error;
|
|
14911
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
14912
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
14913
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#actor\\", index: i, error },
|
|
14914
|
+
);
|
|
14915
|
+
continue;
|
|
14916
|
+
}
|
|
14565
14917
|
}
|
|
14566
14918
|
}
|
|
14567
14919
|
|
|
@@ -14779,7 +15131,16 @@ instruments?: (Object | URL)[];}
|
|
|
14779
15131
|
\\"object\\"];
|
|
14780
15132
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14781
15133
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
14782
|
-
|
|
15134
|
+
try {
|
|
15135
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
15136
|
+
} catch (error) {
|
|
15137
|
+
if (!options.suppressError) throw error;
|
|
15138
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15139
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
15140
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
|
|
15141
|
+
);
|
|
15142
|
+
return null;
|
|
15143
|
+
}
|
|
14783
15144
|
}
|
|
14784
15145
|
}
|
|
14785
15146
|
|
|
@@ -14875,7 +15236,16 @@ instruments?: (Object | URL)[];}
|
|
|
14875
15236
|
\\"object\\"];
|
|
14876
15237
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
14877
15238
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
14878
|
-
|
|
15239
|
+
try {
|
|
15240
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
15241
|
+
} catch (error) {
|
|
15242
|
+
if (!options.suppressError) throw error;
|
|
15243
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15244
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
15245
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
|
|
15246
|
+
);
|
|
15247
|
+
continue;
|
|
15248
|
+
}
|
|
14879
15249
|
}
|
|
14880
15250
|
}
|
|
14881
15251
|
|
|
@@ -15096,7 +15466,16 @@ instruments?: (Object | URL)[];}
|
|
|
15096
15466
|
\\"target\\"];
|
|
15097
15467
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15098
15468
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
15099
|
-
|
|
15469
|
+
try {
|
|
15470
|
+
v = await this.#target_fromJsonLd(doc, options);
|
|
15471
|
+
} catch (error) {
|
|
15472
|
+
if (!options.suppressError) throw error;
|
|
15473
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15474
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
15475
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#target\\", error },
|
|
15476
|
+
);
|
|
15477
|
+
return null;
|
|
15478
|
+
}
|
|
15100
15479
|
}
|
|
15101
15480
|
}
|
|
15102
15481
|
|
|
@@ -15195,7 +15574,16 @@ instruments?: (Object | URL)[];}
|
|
|
15195
15574
|
\\"target\\"];
|
|
15196
15575
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
15197
15576
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
15198
|
-
|
|
15577
|
+
try {
|
|
15578
|
+
v = await this.#target_fromJsonLd(obj, options);
|
|
15579
|
+
} catch (error) {
|
|
15580
|
+
if (!options.suppressError) throw error;
|
|
15581
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15582
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
15583
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#target\\", index: i, error },
|
|
15584
|
+
);
|
|
15585
|
+
continue;
|
|
15586
|
+
}
|
|
15199
15587
|
}
|
|
15200
15588
|
}
|
|
15201
15589
|
|
|
@@ -15413,7 +15801,16 @@ instruments?: (Object | URL)[];}
|
|
|
15413
15801
|
\\"result\\"];
|
|
15414
15802
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15415
15803
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
15416
|
-
|
|
15804
|
+
try {
|
|
15805
|
+
v = await this.#result_fromJsonLd(doc, options);
|
|
15806
|
+
} catch (error) {
|
|
15807
|
+
if (!options.suppressError) throw error;
|
|
15808
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15809
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
15810
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#result\\", error },
|
|
15811
|
+
);
|
|
15812
|
+
return null;
|
|
15813
|
+
}
|
|
15417
15814
|
}
|
|
15418
15815
|
}
|
|
15419
15816
|
|
|
@@ -15509,7 +15906,16 @@ instruments?: (Object | URL)[];}
|
|
|
15509
15906
|
\\"result\\"];
|
|
15510
15907
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
15511
15908
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
15512
|
-
|
|
15909
|
+
try {
|
|
15910
|
+
v = await this.#result_fromJsonLd(obj, options);
|
|
15911
|
+
} catch (error) {
|
|
15912
|
+
if (!options.suppressError) throw error;
|
|
15913
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
15914
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
15915
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#result\\", index: i, error },
|
|
15916
|
+
);
|
|
15917
|
+
continue;
|
|
15918
|
+
}
|
|
15513
15919
|
}
|
|
15514
15920
|
}
|
|
15515
15921
|
|
|
@@ -15728,7 +16134,16 @@ instruments?: (Object | URL)[];}
|
|
|
15728
16134
|
\\"origin\\"];
|
|
15729
16135
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15730
16136
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
15731
|
-
|
|
16137
|
+
try {
|
|
16138
|
+
v = await this.#origin_fromJsonLd(doc, options);
|
|
16139
|
+
} catch (error) {
|
|
16140
|
+
if (!options.suppressError) throw error;
|
|
16141
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
16142
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
16143
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#origin\\", error },
|
|
16144
|
+
);
|
|
16145
|
+
return null;
|
|
16146
|
+
}
|
|
15732
16147
|
}
|
|
15733
16148
|
}
|
|
15734
16149
|
|
|
@@ -15825,7 +16240,16 @@ instruments?: (Object | URL)[];}
|
|
|
15825
16240
|
\\"origin\\"];
|
|
15826
16241
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
15827
16242
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
15828
|
-
|
|
16243
|
+
try {
|
|
16244
|
+
v = await this.#origin_fromJsonLd(obj, options);
|
|
16245
|
+
} catch (error) {
|
|
16246
|
+
if (!options.suppressError) throw error;
|
|
16247
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
16248
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
16249
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#origin\\", index: i, error },
|
|
16250
|
+
);
|
|
16251
|
+
continue;
|
|
16252
|
+
}
|
|
15829
16253
|
}
|
|
15830
16254
|
}
|
|
15831
16255
|
|
|
@@ -16042,7 +16466,16 @@ instruments?: (Object | URL)[];}
|
|
|
16042
16466
|
\\"instrument\\"];
|
|
16043
16467
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16044
16468
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
16045
|
-
|
|
16469
|
+
try {
|
|
16470
|
+
v = await this.#instrument_fromJsonLd(doc, options);
|
|
16471
|
+
} catch (error) {
|
|
16472
|
+
if (!options.suppressError) throw error;
|
|
16473
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
16474
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
16475
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#instrument\\", error },
|
|
16476
|
+
);
|
|
16477
|
+
return null;
|
|
16478
|
+
}
|
|
16046
16479
|
}
|
|
16047
16480
|
}
|
|
16048
16481
|
|
|
@@ -16137,7 +16570,16 @@ instruments?: (Object | URL)[];}
|
|
|
16137
16570
|
\\"instrument\\"];
|
|
16138
16571
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
16139
16572
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
16140
|
-
|
|
16573
|
+
try {
|
|
16574
|
+
v = await this.#instrument_fromJsonLd(obj, options);
|
|
16575
|
+
} catch (error) {
|
|
16576
|
+
if (!options.suppressError) throw error;
|
|
16577
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
16578
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
16579
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#instrument\\", index: i, error },
|
|
16580
|
+
);
|
|
16581
|
+
continue;
|
|
16582
|
+
}
|
|
16141
16583
|
}
|
|
16142
16584
|
}
|
|
16143
16585
|
|
|
@@ -18360,7 +18802,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
18360
18802
|
\\"interactingObject\\"];
|
|
18361
18803
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18362
18804
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
18363
|
-
|
|
18805
|
+
try {
|
|
18806
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
18807
|
+
} catch (error) {
|
|
18808
|
+
if (!options.suppressError) throw error;
|
|
18809
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
18810
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
18811
|
+
{ property: \\"https://gotosocial.org/ns#interactingObject\\", error },
|
|
18812
|
+
);
|
|
18813
|
+
return null;
|
|
18814
|
+
}
|
|
18364
18815
|
}
|
|
18365
18816
|
}
|
|
18366
18817
|
|
|
@@ -18575,7 +19026,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
18575
19026
|
\\"interactionTarget\\"];
|
|
18576
19027
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18577
19028
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
18578
|
-
|
|
19029
|
+
try {
|
|
19030
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
19031
|
+
} catch (error) {
|
|
19032
|
+
if (!options.suppressError) throw error;
|
|
19033
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
19034
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
19035
|
+
{ property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
|
|
19036
|
+
);
|
|
19037
|
+
return null;
|
|
19038
|
+
}
|
|
18579
19039
|
}
|
|
18580
19040
|
}
|
|
18581
19041
|
|
|
@@ -21170,7 +21630,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
21170
21630
|
\\"interactingObject\\"];
|
|
21171
21631
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21172
21632
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
21173
|
-
|
|
21633
|
+
try {
|
|
21634
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
21635
|
+
} catch (error) {
|
|
21636
|
+
if (!options.suppressError) throw error;
|
|
21637
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
21638
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
21639
|
+
{ property: \\"https://gotosocial.org/ns#interactingObject\\", error },
|
|
21640
|
+
);
|
|
21641
|
+
return null;
|
|
21642
|
+
}
|
|
21174
21643
|
}
|
|
21175
21644
|
}
|
|
21176
21645
|
|
|
@@ -21385,7 +21854,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
21385
21854
|
\\"interactionTarget\\"];
|
|
21386
21855
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21387
21856
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
21388
|
-
|
|
21857
|
+
try {
|
|
21858
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
21859
|
+
} catch (error) {
|
|
21860
|
+
if (!options.suppressError) throw error;
|
|
21861
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
21862
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
21863
|
+
{ property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
|
|
21864
|
+
);
|
|
21865
|
+
return null;
|
|
21866
|
+
}
|
|
21389
21867
|
}
|
|
21390
21868
|
}
|
|
21391
21869
|
|
|
@@ -22546,7 +23024,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
22546
23024
|
\\"interactingObject\\"];
|
|
22547
23025
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22548
23026
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
22549
|
-
|
|
23027
|
+
try {
|
|
23028
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
23029
|
+
} catch (error) {
|
|
23030
|
+
if (!options.suppressError) throw error;
|
|
23031
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
23032
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
23033
|
+
{ property: \\"https://gotosocial.org/ns#interactingObject\\", error },
|
|
23034
|
+
);
|
|
23035
|
+
return null;
|
|
23036
|
+
}
|
|
22550
23037
|
}
|
|
22551
23038
|
}
|
|
22552
23039
|
|
|
@@ -22761,7 +23248,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
22761
23248
|
\\"interactionTarget\\"];
|
|
22762
23249
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22763
23250
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
22764
|
-
|
|
23251
|
+
try {
|
|
23252
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
23253
|
+
} catch (error) {
|
|
23254
|
+
if (!options.suppressError) throw error;
|
|
23255
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
23256
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
23257
|
+
{ property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
|
|
23258
|
+
);
|
|
23259
|
+
return null;
|
|
23260
|
+
}
|
|
22765
23261
|
}
|
|
22766
23262
|
}
|
|
22767
23263
|
|
|
@@ -25915,7 +26411,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
|
|
|
25915
26411
|
\\"owner\\"];
|
|
25916
26412
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25917
26413
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
25918
|
-
|
|
26414
|
+
try {
|
|
26415
|
+
v = await this.#owner_fromJsonLd(doc, options);
|
|
26416
|
+
} catch (error) {
|
|
26417
|
+
if (!options.suppressError) throw error;
|
|
26418
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
26419
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
26420
|
+
{ property: \\"https://w3id.org/security#owner\\", error },
|
|
26421
|
+
);
|
|
26422
|
+
return null;
|
|
26423
|
+
}
|
|
25919
26424
|
}
|
|
25920
26425
|
}
|
|
25921
26426
|
|
|
@@ -26821,7 +27326,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
|
|
|
26821
27326
|
\\"controller\\"];
|
|
26822
27327
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26823
27328
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
26824
|
-
|
|
27329
|
+
try {
|
|
27330
|
+
v = await this.#controller_fromJsonLd(doc, options);
|
|
27331
|
+
} catch (error) {
|
|
27332
|
+
if (!options.suppressError) throw error;
|
|
27333
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
27334
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
27335
|
+
{ property: \\"https://w3id.org/security#controller\\", error },
|
|
27336
|
+
);
|
|
27337
|
+
return null;
|
|
27338
|
+
}
|
|
26825
27339
|
}
|
|
26826
27340
|
}
|
|
26827
27341
|
|
|
@@ -29548,7 +30062,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
29548
30062
|
\\"publicKey\\"];
|
|
29549
30063
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29550
30064
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
29551
|
-
|
|
30065
|
+
try {
|
|
30066
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
30067
|
+
} catch (error) {
|
|
30068
|
+
if (!options.suppressError) throw error;
|
|
30069
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
30070
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
30071
|
+
{ property: \\"https://w3id.org/security#publicKey\\", error },
|
|
30072
|
+
);
|
|
30073
|
+
return null;
|
|
30074
|
+
}
|
|
29552
30075
|
}
|
|
29553
30076
|
}
|
|
29554
30077
|
|
|
@@ -29641,7 +30164,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
29641
30164
|
\\"publicKey\\"];
|
|
29642
30165
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29643
30166
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
29644
|
-
|
|
30167
|
+
try {
|
|
30168
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
30169
|
+
} catch (error) {
|
|
30170
|
+
if (!options.suppressError) throw error;
|
|
30171
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
30172
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
30173
|
+
{ property: \\"https://w3id.org/security#publicKey\\", index: i, error },
|
|
30174
|
+
);
|
|
30175
|
+
continue;
|
|
30176
|
+
}
|
|
29645
30177
|
}
|
|
29646
30178
|
}
|
|
29647
30179
|
|
|
@@ -29860,7 +30392,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
29860
30392
|
\\"assertionMethod\\"];
|
|
29861
30393
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29862
30394
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
29863
|
-
|
|
30395
|
+
try {
|
|
30396
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
30397
|
+
} catch (error) {
|
|
30398
|
+
if (!options.suppressError) throw error;
|
|
30399
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
30400
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
30401
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", error },
|
|
30402
|
+
);
|
|
30403
|
+
return null;
|
|
30404
|
+
}
|
|
29864
30405
|
}
|
|
29865
30406
|
}
|
|
29866
30407
|
|
|
@@ -29957,7 +30498,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
29957
30498
|
\\"assertionMethod\\"];
|
|
29958
30499
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29959
30500
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
29960
|
-
|
|
30501
|
+
try {
|
|
30502
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
30503
|
+
} catch (error) {
|
|
30504
|
+
if (!options.suppressError) throw error;
|
|
30505
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
30506
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
30507
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
|
|
30508
|
+
);
|
|
30509
|
+
continue;
|
|
30510
|
+
}
|
|
29961
30511
|
}
|
|
29962
30512
|
}
|
|
29963
30513
|
|
|
@@ -30213,7 +30763,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
30213
30763
|
\\"inbox\\"];
|
|
30214
30764
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30215
30765
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
30216
|
-
|
|
30766
|
+
try {
|
|
30767
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
30768
|
+
} catch (error) {
|
|
30769
|
+
if (!options.suppressError) throw error;
|
|
30770
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
30771
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
30772
|
+
{ property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
|
|
30773
|
+
);
|
|
30774
|
+
return null;
|
|
30775
|
+
}
|
|
30217
30776
|
}
|
|
30218
30777
|
}
|
|
30219
30778
|
|
|
@@ -30446,7 +31005,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
30446
31005
|
\\"outbox\\"];
|
|
30447
31006
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30448
31007
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
30449
|
-
|
|
31008
|
+
try {
|
|
31009
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
31010
|
+
} catch (error) {
|
|
31011
|
+
if (!options.suppressError) throw error;
|
|
31012
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
31013
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
31014
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
|
|
31015
|
+
);
|
|
31016
|
+
return null;
|
|
31017
|
+
}
|
|
30450
31018
|
}
|
|
30451
31019
|
}
|
|
30452
31020
|
|
|
@@ -30665,7 +31233,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
30665
31233
|
\\"following\\"];
|
|
30666
31234
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30667
31235
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
30668
|
-
|
|
31236
|
+
try {
|
|
31237
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
31238
|
+
} catch (error) {
|
|
31239
|
+
if (!options.suppressError) throw error;
|
|
31240
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
31241
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
31242
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
|
|
31243
|
+
);
|
|
31244
|
+
return null;
|
|
31245
|
+
}
|
|
30669
31246
|
}
|
|
30670
31247
|
}
|
|
30671
31248
|
|
|
@@ -30887,7 +31464,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
30887
31464
|
\\"followers\\"];
|
|
30888
31465
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
30889
31466
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
30890
|
-
|
|
31467
|
+
try {
|
|
31468
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
31469
|
+
} catch (error) {
|
|
31470
|
+
if (!options.suppressError) throw error;
|
|
31471
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
31472
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
31473
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
|
|
31474
|
+
);
|
|
31475
|
+
return null;
|
|
31476
|
+
}
|
|
30891
31477
|
}
|
|
30892
31478
|
}
|
|
30893
31479
|
|
|
@@ -31107,7 +31693,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
31107
31693
|
\\"liked\\"];
|
|
31108
31694
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31109
31695
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
31110
|
-
|
|
31696
|
+
try {
|
|
31697
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
31698
|
+
} catch (error) {
|
|
31699
|
+
if (!options.suppressError) throw error;
|
|
31700
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
31701
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
31702
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
|
|
31703
|
+
);
|
|
31704
|
+
return null;
|
|
31705
|
+
}
|
|
31111
31706
|
}
|
|
31112
31707
|
}
|
|
31113
31708
|
|
|
@@ -31325,7 +31920,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
31325
31920
|
\\"featured\\"];
|
|
31326
31921
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31327
31922
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
31328
|
-
|
|
31923
|
+
try {
|
|
31924
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
31925
|
+
} catch (error) {
|
|
31926
|
+
if (!options.suppressError) throw error;
|
|
31927
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
31928
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
31929
|
+
{ property: \\"http://joinmastodon.org/ns#featured\\", error },
|
|
31930
|
+
);
|
|
31931
|
+
return null;
|
|
31932
|
+
}
|
|
31329
31933
|
}
|
|
31330
31934
|
}
|
|
31331
31935
|
|
|
@@ -31543,7 +32147,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
31543
32147
|
\\"featuredTags\\"];
|
|
31544
32148
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31545
32149
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
31546
|
-
|
|
32150
|
+
try {
|
|
32151
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
32152
|
+
} catch (error) {
|
|
32153
|
+
if (!options.suppressError) throw error;
|
|
32154
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
32155
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
32156
|
+
{ property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
|
|
32157
|
+
);
|
|
32158
|
+
return null;
|
|
32159
|
+
}
|
|
31547
32160
|
}
|
|
31548
32161
|
}
|
|
31549
32162
|
|
|
@@ -31759,7 +32372,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
31759
32372
|
\\"streams\\"];
|
|
31760
32373
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
31761
32374
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
31762
|
-
|
|
32375
|
+
try {
|
|
32376
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
32377
|
+
} catch (error) {
|
|
32378
|
+
if (!options.suppressError) throw error;
|
|
32379
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
32380
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
32381
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
|
|
32382
|
+
);
|
|
32383
|
+
continue;
|
|
32384
|
+
}
|
|
31763
32385
|
}
|
|
31764
32386
|
}
|
|
31765
32387
|
|
|
@@ -32085,7 +32707,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
32085
32707
|
\\"movedTo\\"];
|
|
32086
32708
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
32087
32709
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
32088
|
-
|
|
32710
|
+
try {
|
|
32711
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
32712
|
+
} catch (error) {
|
|
32713
|
+
if (!options.suppressError) throw error;
|
|
32714
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
32715
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
32716
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
|
|
32717
|
+
);
|
|
32718
|
+
return null;
|
|
32719
|
+
}
|
|
32089
32720
|
}
|
|
32090
32721
|
}
|
|
32091
32722
|
|
|
@@ -32339,7 +32970,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
32339
32970
|
\\"alsoKnownAs\\"];
|
|
32340
32971
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
32341
32972
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
32342
|
-
|
|
32973
|
+
try {
|
|
32974
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
32975
|
+
} catch (error) {
|
|
32976
|
+
if (!options.suppressError) throw error;
|
|
32977
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
32978
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
32979
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
|
|
32980
|
+
);
|
|
32981
|
+
return null;
|
|
32982
|
+
}
|
|
32343
32983
|
}
|
|
32344
32984
|
}
|
|
32345
32985
|
|
|
@@ -32436,7 +33076,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
32436
33076
|
\\"alsoKnownAs\\"];
|
|
32437
33077
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
32438
33078
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
32439
|
-
|
|
33079
|
+
try {
|
|
33080
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
33081
|
+
} catch (error) {
|
|
33082
|
+
if (!options.suppressError) throw error;
|
|
33083
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
33084
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
33085
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
|
|
33086
|
+
);
|
|
33087
|
+
continue;
|
|
33088
|
+
}
|
|
32440
33089
|
}
|
|
32441
33090
|
}
|
|
32442
33091
|
|
|
@@ -32655,7 +33304,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
32655
33304
|
\\"service\\"];
|
|
32656
33305
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
32657
33306
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
32658
|
-
|
|
33307
|
+
try {
|
|
33308
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
33309
|
+
} catch (error) {
|
|
33310
|
+
if (!options.suppressError) throw error;
|
|
33311
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
33312
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
33313
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", error },
|
|
33314
|
+
);
|
|
33315
|
+
return null;
|
|
33316
|
+
}
|
|
32659
33317
|
}
|
|
32660
33318
|
}
|
|
32661
33319
|
|
|
@@ -32752,7 +33410,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
32752
33410
|
\\"service\\"];
|
|
32753
33411
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
32754
33412
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
32755
|
-
|
|
33413
|
+
try {
|
|
33414
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
33415
|
+
} catch (error) {
|
|
33416
|
+
if (!options.suppressError) throw error;
|
|
33417
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
33418
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
33419
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
|
|
33420
|
+
);
|
|
33421
|
+
continue;
|
|
33422
|
+
}
|
|
32756
33423
|
}
|
|
32757
33424
|
}
|
|
32758
33425
|
|
|
@@ -36236,9 +36903,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
36236
36903
|
if (v == null) continue;
|
|
36237
36904
|
|
|
36238
36905
|
const decoded =
|
|
36239
|
-
|
|
36906
|
+
typeof v === \\"object\\" &&
|
|
36907
|
+
((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
|
|
36908
|
+
(typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
|
|
36909
|
+
typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
|
|
36910
|
+
) : undefined
|
|
36240
36911
|
;
|
|
36241
36912
|
|
|
36913
|
+
if (typeof decoded === \\"undefined\\") {
|
|
36914
|
+
shouldCacheJsonLd = false;
|
|
36915
|
+
continue;
|
|
36916
|
+
}
|
|
36917
|
+
|
|
36242
36918
|
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
36243
36919
|
shouldCacheJsonLd = false;
|
|
36244
36920
|
}
|
|
@@ -38629,7 +39305,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
38629
39305
|
\\"current\\"];
|
|
38630
39306
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38631
39307
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
38632
|
-
|
|
39308
|
+
try {
|
|
39309
|
+
v = await this.#current_fromJsonLd(doc, options);
|
|
39310
|
+
} catch (error) {
|
|
39311
|
+
if (!options.suppressError) throw error;
|
|
39312
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
39313
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
39314
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#current\\", error },
|
|
39315
|
+
);
|
|
39316
|
+
return null;
|
|
39317
|
+
}
|
|
38633
39318
|
}
|
|
38634
39319
|
}
|
|
38635
39320
|
|
|
@@ -38845,7 +39530,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
38845
39530
|
\\"first\\"];
|
|
38846
39531
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38847
39532
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
38848
|
-
|
|
39533
|
+
try {
|
|
39534
|
+
v = await this.#first_fromJsonLd(doc, options);
|
|
39535
|
+
} catch (error) {
|
|
39536
|
+
if (!options.suppressError) throw error;
|
|
39537
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
39538
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
39539
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#first\\", error },
|
|
39540
|
+
);
|
|
39541
|
+
return null;
|
|
39542
|
+
}
|
|
38849
39543
|
}
|
|
38850
39544
|
}
|
|
38851
39545
|
|
|
@@ -39061,7 +39755,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
39061
39755
|
\\"last\\"];
|
|
39062
39756
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39063
39757
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
39064
|
-
|
|
39758
|
+
try {
|
|
39759
|
+
v = await this.#last_fromJsonLd(doc, options);
|
|
39760
|
+
} catch (error) {
|
|
39761
|
+
if (!options.suppressError) throw error;
|
|
39762
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
39763
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
39764
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#last\\", error },
|
|
39765
|
+
);
|
|
39766
|
+
return null;
|
|
39767
|
+
}
|
|
39065
39768
|
}
|
|
39066
39769
|
}
|
|
39067
39770
|
|
|
@@ -39287,7 +39990,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
39287
39990
|
\\"items\\"];
|
|
39288
39991
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
39289
39992
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
39290
|
-
|
|
39993
|
+
try {
|
|
39994
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
39995
|
+
} catch (error) {
|
|
39996
|
+
if (!options.suppressError) throw error;
|
|
39997
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
39998
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
39999
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
|
|
40000
|
+
);
|
|
40001
|
+
continue;
|
|
40002
|
+
}
|
|
39291
40003
|
}
|
|
39292
40004
|
}
|
|
39293
40005
|
|
|
@@ -39503,7 +40215,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
39503
40215
|
\\"likesOf\\"];
|
|
39504
40216
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39505
40217
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
39506
|
-
|
|
40218
|
+
try {
|
|
40219
|
+
v = await this.#likesOf_fromJsonLd(doc, options);
|
|
40220
|
+
} catch (error) {
|
|
40221
|
+
if (!options.suppressError) throw error;
|
|
40222
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
40223
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
40224
|
+
{ property: \\"https://w3id.org/fep/5711#likesOf\\", error },
|
|
40225
|
+
);
|
|
40226
|
+
return null;
|
|
40227
|
+
}
|
|
39507
40228
|
}
|
|
39508
40229
|
}
|
|
39509
40230
|
|
|
@@ -39718,7 +40439,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
39718
40439
|
\\"sharesOf\\"];
|
|
39719
40440
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39720
40441
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
39721
|
-
|
|
40442
|
+
try {
|
|
40443
|
+
v = await this.#sharesOf_fromJsonLd(doc, options);
|
|
40444
|
+
} catch (error) {
|
|
40445
|
+
if (!options.suppressError) throw error;
|
|
40446
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
40447
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
40448
|
+
{ property: \\"https://w3id.org/fep/5711#sharesOf\\", error },
|
|
40449
|
+
);
|
|
40450
|
+
return null;
|
|
40451
|
+
}
|
|
39722
40452
|
}
|
|
39723
40453
|
}
|
|
39724
40454
|
|
|
@@ -39933,7 +40663,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
39933
40663
|
\\"repliesOf\\"];
|
|
39934
40664
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39935
40665
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
39936
|
-
|
|
40666
|
+
try {
|
|
40667
|
+
v = await this.#repliesOf_fromJsonLd(doc, options);
|
|
40668
|
+
} catch (error) {
|
|
40669
|
+
if (!options.suppressError) throw error;
|
|
40670
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
40671
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
40672
|
+
{ property: \\"https://w3id.org/fep/5711#repliesOf\\", error },
|
|
40673
|
+
);
|
|
40674
|
+
return null;
|
|
40675
|
+
}
|
|
39937
40676
|
}
|
|
39938
40677
|
}
|
|
39939
40678
|
|
|
@@ -40148,7 +40887,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
40148
40887
|
\\"inboxOf\\"];
|
|
40149
40888
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40150
40889
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
40151
|
-
|
|
40890
|
+
try {
|
|
40891
|
+
v = await this.#inboxOf_fromJsonLd(doc, options);
|
|
40892
|
+
} catch (error) {
|
|
40893
|
+
if (!options.suppressError) throw error;
|
|
40894
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
40895
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
40896
|
+
{ property: \\"https://w3id.org/fep/5711#inboxOf\\", error },
|
|
40897
|
+
);
|
|
40898
|
+
return null;
|
|
40899
|
+
}
|
|
40152
40900
|
}
|
|
40153
40901
|
}
|
|
40154
40902
|
|
|
@@ -40363,7 +41111,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
40363
41111
|
\\"outboxOf\\"];
|
|
40364
41112
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40365
41113
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
40366
|
-
|
|
41114
|
+
try {
|
|
41115
|
+
v = await this.#outboxOf_fromJsonLd(doc, options);
|
|
41116
|
+
} catch (error) {
|
|
41117
|
+
if (!options.suppressError) throw error;
|
|
41118
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
41119
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
41120
|
+
{ property: \\"https://w3id.org/fep/5711#outboxOf\\", error },
|
|
41121
|
+
);
|
|
41122
|
+
return null;
|
|
41123
|
+
}
|
|
40367
41124
|
}
|
|
40368
41125
|
}
|
|
40369
41126
|
|
|
@@ -40578,7 +41335,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
40578
41335
|
\\"followersOf\\"];
|
|
40579
41336
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40580
41337
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
40581
|
-
|
|
41338
|
+
try {
|
|
41339
|
+
v = await this.#followersOf_fromJsonLd(doc, options);
|
|
41340
|
+
} catch (error) {
|
|
41341
|
+
if (!options.suppressError) throw error;
|
|
41342
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
41343
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
41344
|
+
{ property: \\"https://w3id.org/fep/5711#followersOf\\", error },
|
|
41345
|
+
);
|
|
41346
|
+
return null;
|
|
41347
|
+
}
|
|
40582
41348
|
}
|
|
40583
41349
|
}
|
|
40584
41350
|
|
|
@@ -40793,7 +41559,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
40793
41559
|
\\"followingOf\\"];
|
|
40794
41560
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40795
41561
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
40796
|
-
|
|
41562
|
+
try {
|
|
41563
|
+
v = await this.#followingOf_fromJsonLd(doc, options);
|
|
41564
|
+
} catch (error) {
|
|
41565
|
+
if (!options.suppressError) throw error;
|
|
41566
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
41567
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
41568
|
+
{ property: \\"https://w3id.org/fep/5711#followingOf\\", error },
|
|
41569
|
+
);
|
|
41570
|
+
return null;
|
|
41571
|
+
}
|
|
40797
41572
|
}
|
|
40798
41573
|
}
|
|
40799
41574
|
|
|
@@ -41008,7 +41783,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
41008
41783
|
\\"likedOf\\"];
|
|
41009
41784
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
41010
41785
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
41011
|
-
|
|
41786
|
+
try {
|
|
41787
|
+
v = await this.#likedOf_fromJsonLd(doc, options);
|
|
41788
|
+
} catch (error) {
|
|
41789
|
+
if (!options.suppressError) throw error;
|
|
41790
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
41791
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
41792
|
+
{ property: \\"https://w3id.org/fep/5711#likedOf\\", error },
|
|
41793
|
+
);
|
|
41794
|
+
return null;
|
|
41795
|
+
}
|
|
41012
41796
|
}
|
|
41013
41797
|
}
|
|
41014
41798
|
|
|
@@ -42893,7 +43677,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
42893
43677
|
\\"partOf\\"];
|
|
42894
43678
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42895
43679
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
42896
|
-
|
|
43680
|
+
try {
|
|
43681
|
+
v = await this.#partOf_fromJsonLd(doc, options);
|
|
43682
|
+
} catch (error) {
|
|
43683
|
+
if (!options.suppressError) throw error;
|
|
43684
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
43685
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
43686
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#partOf\\", error },
|
|
43687
|
+
);
|
|
43688
|
+
return null;
|
|
43689
|
+
}
|
|
42897
43690
|
}
|
|
42898
43691
|
}
|
|
42899
43692
|
|
|
@@ -43107,7 +43900,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
43107
43900
|
\\"next\\"];
|
|
43108
43901
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43109
43902
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
43110
|
-
|
|
43903
|
+
try {
|
|
43904
|
+
v = await this.#next_fromJsonLd(doc, options);
|
|
43905
|
+
} catch (error) {
|
|
43906
|
+
if (!options.suppressError) throw error;
|
|
43907
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
43908
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
43909
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#next\\", error },
|
|
43910
|
+
);
|
|
43911
|
+
return null;
|
|
43912
|
+
}
|
|
43111
43913
|
}
|
|
43112
43914
|
}
|
|
43113
43915
|
|
|
@@ -43322,7 +44124,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
43322
44124
|
\\"prev\\"];
|
|
43323
44125
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43324
44126
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
43325
|
-
|
|
44127
|
+
try {
|
|
44128
|
+
v = await this.#prev_fromJsonLd(doc, options);
|
|
44129
|
+
} catch (error) {
|
|
44130
|
+
if (!options.suppressError) throw error;
|
|
44131
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
44132
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
44133
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#prev\\", error },
|
|
44134
|
+
);
|
|
44135
|
+
return null;
|
|
44136
|
+
}
|
|
43326
44137
|
}
|
|
43327
44138
|
}
|
|
43328
44139
|
|
|
@@ -48318,7 +49129,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48318
49129
|
\\"publicKey\\"];
|
|
48319
49130
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
48320
49131
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
48321
|
-
|
|
49132
|
+
try {
|
|
49133
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
49134
|
+
} catch (error) {
|
|
49135
|
+
if (!options.suppressError) throw error;
|
|
49136
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
49137
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
49138
|
+
{ property: \\"https://w3id.org/security#publicKey\\", error },
|
|
49139
|
+
);
|
|
49140
|
+
return null;
|
|
49141
|
+
}
|
|
48322
49142
|
}
|
|
48323
49143
|
}
|
|
48324
49144
|
|
|
@@ -48411,7 +49231,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48411
49231
|
\\"publicKey\\"];
|
|
48412
49232
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
48413
49233
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
48414
|
-
|
|
49234
|
+
try {
|
|
49235
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
49236
|
+
} catch (error) {
|
|
49237
|
+
if (!options.suppressError) throw error;
|
|
49238
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
49239
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
49240
|
+
{ property: \\"https://w3id.org/security#publicKey\\", index: i, error },
|
|
49241
|
+
);
|
|
49242
|
+
continue;
|
|
49243
|
+
}
|
|
48415
49244
|
}
|
|
48416
49245
|
}
|
|
48417
49246
|
|
|
@@ -48630,7 +49459,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48630
49459
|
\\"assertionMethod\\"];
|
|
48631
49460
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
48632
49461
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
48633
|
-
|
|
49462
|
+
try {
|
|
49463
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
49464
|
+
} catch (error) {
|
|
49465
|
+
if (!options.suppressError) throw error;
|
|
49466
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
49467
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
49468
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", error },
|
|
49469
|
+
);
|
|
49470
|
+
return null;
|
|
49471
|
+
}
|
|
48634
49472
|
}
|
|
48635
49473
|
}
|
|
48636
49474
|
|
|
@@ -48727,7 +49565,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48727
49565
|
\\"assertionMethod\\"];
|
|
48728
49566
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
48729
49567
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
48730
|
-
|
|
49568
|
+
try {
|
|
49569
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
49570
|
+
} catch (error) {
|
|
49571
|
+
if (!options.suppressError) throw error;
|
|
49572
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
49573
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
49574
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
|
|
49575
|
+
);
|
|
49576
|
+
continue;
|
|
49577
|
+
}
|
|
48731
49578
|
}
|
|
48732
49579
|
}
|
|
48733
49580
|
|
|
@@ -48983,7 +49830,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48983
49830
|
\\"inbox\\"];
|
|
48984
49831
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
48985
49832
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
48986
|
-
|
|
49833
|
+
try {
|
|
49834
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
49835
|
+
} catch (error) {
|
|
49836
|
+
if (!options.suppressError) throw error;
|
|
49837
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
49838
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
49839
|
+
{ property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
|
|
49840
|
+
);
|
|
49841
|
+
return null;
|
|
49842
|
+
}
|
|
48987
49843
|
}
|
|
48988
49844
|
}
|
|
48989
49845
|
|
|
@@ -49216,7 +50072,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49216
50072
|
\\"outbox\\"];
|
|
49217
50073
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
49218
50074
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
49219
|
-
|
|
50075
|
+
try {
|
|
50076
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
50077
|
+
} catch (error) {
|
|
50078
|
+
if (!options.suppressError) throw error;
|
|
50079
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
50080
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
50081
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
|
|
50082
|
+
);
|
|
50083
|
+
return null;
|
|
50084
|
+
}
|
|
49220
50085
|
}
|
|
49221
50086
|
}
|
|
49222
50087
|
|
|
@@ -49435,7 +50300,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49435
50300
|
\\"following\\"];
|
|
49436
50301
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
49437
50302
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
49438
|
-
|
|
50303
|
+
try {
|
|
50304
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
50305
|
+
} catch (error) {
|
|
50306
|
+
if (!options.suppressError) throw error;
|
|
50307
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
50308
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
50309
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
|
|
50310
|
+
);
|
|
50311
|
+
return null;
|
|
50312
|
+
}
|
|
49439
50313
|
}
|
|
49440
50314
|
}
|
|
49441
50315
|
|
|
@@ -49657,7 +50531,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49657
50531
|
\\"followers\\"];
|
|
49658
50532
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
49659
50533
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
49660
|
-
|
|
50534
|
+
try {
|
|
50535
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
50536
|
+
} catch (error) {
|
|
50537
|
+
if (!options.suppressError) throw error;
|
|
50538
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
50539
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
50540
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
|
|
50541
|
+
);
|
|
50542
|
+
return null;
|
|
50543
|
+
}
|
|
49661
50544
|
}
|
|
49662
50545
|
}
|
|
49663
50546
|
|
|
@@ -49877,7 +50760,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49877
50760
|
\\"liked\\"];
|
|
49878
50761
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
49879
50762
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
49880
|
-
|
|
50763
|
+
try {
|
|
50764
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
50765
|
+
} catch (error) {
|
|
50766
|
+
if (!options.suppressError) throw error;
|
|
50767
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
50768
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
50769
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
|
|
50770
|
+
);
|
|
50771
|
+
return null;
|
|
50772
|
+
}
|
|
49881
50773
|
}
|
|
49882
50774
|
}
|
|
49883
50775
|
|
|
@@ -50095,7 +50987,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50095
50987
|
\\"featured\\"];
|
|
50096
50988
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
50097
50989
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
50098
|
-
|
|
50990
|
+
try {
|
|
50991
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
50992
|
+
} catch (error) {
|
|
50993
|
+
if (!options.suppressError) throw error;
|
|
50994
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
50995
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
50996
|
+
{ property: \\"http://joinmastodon.org/ns#featured\\", error },
|
|
50997
|
+
);
|
|
50998
|
+
return null;
|
|
50999
|
+
}
|
|
50099
51000
|
}
|
|
50100
51001
|
}
|
|
50101
51002
|
|
|
@@ -50313,7 +51214,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50313
51214
|
\\"featuredTags\\"];
|
|
50314
51215
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
50315
51216
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
50316
|
-
|
|
51217
|
+
try {
|
|
51218
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
51219
|
+
} catch (error) {
|
|
51220
|
+
if (!options.suppressError) throw error;
|
|
51221
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
51222
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
51223
|
+
{ property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
|
|
51224
|
+
);
|
|
51225
|
+
return null;
|
|
51226
|
+
}
|
|
50317
51227
|
}
|
|
50318
51228
|
}
|
|
50319
51229
|
|
|
@@ -50529,7 +51439,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50529
51439
|
\\"streams\\"];
|
|
50530
51440
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
50531
51441
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
50532
|
-
|
|
51442
|
+
try {
|
|
51443
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
51444
|
+
} catch (error) {
|
|
51445
|
+
if (!options.suppressError) throw error;
|
|
51446
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
51447
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
51448
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
|
|
51449
|
+
);
|
|
51450
|
+
continue;
|
|
51451
|
+
}
|
|
50533
51452
|
}
|
|
50534
51453
|
}
|
|
50535
51454
|
|
|
@@ -50855,7 +51774,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50855
51774
|
\\"movedTo\\"];
|
|
50856
51775
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
50857
51776
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
50858
|
-
|
|
51777
|
+
try {
|
|
51778
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
51779
|
+
} catch (error) {
|
|
51780
|
+
if (!options.suppressError) throw error;
|
|
51781
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
51782
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
51783
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
|
|
51784
|
+
);
|
|
51785
|
+
return null;
|
|
51786
|
+
}
|
|
50859
51787
|
}
|
|
50860
51788
|
}
|
|
50861
51789
|
|
|
@@ -51109,7 +52037,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
51109
52037
|
\\"alsoKnownAs\\"];
|
|
51110
52038
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
51111
52039
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
51112
|
-
|
|
52040
|
+
try {
|
|
52041
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
52042
|
+
} catch (error) {
|
|
52043
|
+
if (!options.suppressError) throw error;
|
|
52044
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
52045
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
52046
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
|
|
52047
|
+
);
|
|
52048
|
+
return null;
|
|
52049
|
+
}
|
|
51113
52050
|
}
|
|
51114
52051
|
}
|
|
51115
52052
|
|
|
@@ -51206,7 +52143,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
51206
52143
|
\\"alsoKnownAs\\"];
|
|
51207
52144
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
51208
52145
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
51209
|
-
|
|
52146
|
+
try {
|
|
52147
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
52148
|
+
} catch (error) {
|
|
52149
|
+
if (!options.suppressError) throw error;
|
|
52150
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
52151
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
52152
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
|
|
52153
|
+
);
|
|
52154
|
+
continue;
|
|
52155
|
+
}
|
|
51210
52156
|
}
|
|
51211
52157
|
}
|
|
51212
52158
|
|
|
@@ -51425,7 +52371,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
51425
52371
|
\\"service\\"];
|
|
51426
52372
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
51427
52373
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
51428
|
-
|
|
52374
|
+
try {
|
|
52375
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
52376
|
+
} catch (error) {
|
|
52377
|
+
if (!options.suppressError) throw error;
|
|
52378
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
52379
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
52380
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", error },
|
|
52381
|
+
);
|
|
52382
|
+
return null;
|
|
52383
|
+
}
|
|
51429
52384
|
}
|
|
51430
52385
|
}
|
|
51431
52386
|
|
|
@@ -51522,7 +52477,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
51522
52477
|
\\"service\\"];
|
|
51523
52478
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
51524
52479
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
51525
|
-
|
|
52480
|
+
try {
|
|
52481
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
52482
|
+
} catch (error) {
|
|
52483
|
+
if (!options.suppressError) throw error;
|
|
52484
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
52485
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
52486
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
|
|
52487
|
+
);
|
|
52488
|
+
continue;
|
|
52489
|
+
}
|
|
51526
52490
|
}
|
|
51527
52491
|
}
|
|
51528
52492
|
|
|
@@ -54694,7 +55658,16 @@ get names(): ((string | LanguageString))[] {
|
|
|
54694
55658
|
\\"preview\\"];
|
|
54695
55659
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
54696
55660
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
54697
|
-
|
|
55661
|
+
try {
|
|
55662
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
55663
|
+
} catch (error) {
|
|
55664
|
+
if (!options.suppressError) throw error;
|
|
55665
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
55666
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
55667
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
|
|
55668
|
+
);
|
|
55669
|
+
continue;
|
|
55670
|
+
}
|
|
54698
55671
|
}
|
|
54699
55672
|
}
|
|
54700
55673
|
|
|
@@ -59409,9 +60382,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
59409
60382
|
if (v == null) continue;
|
|
59410
60383
|
|
|
59411
60384
|
const decoded =
|
|
59412
|
-
|
|
60385
|
+
typeof v === \\"object\\" &&
|
|
60386
|
+
((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
|
|
60387
|
+
(typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
|
|
60388
|
+
typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
|
|
60389
|
+
) : undefined
|
|
59413
60390
|
;
|
|
59414
60391
|
|
|
60392
|
+
if (typeof decoded === \\"undefined\\") {
|
|
60393
|
+
shouldCacheJsonLd = false;
|
|
60394
|
+
continue;
|
|
60395
|
+
}
|
|
60396
|
+
|
|
59415
60397
|
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
59416
60398
|
shouldCacheJsonLd = false;
|
|
59417
60399
|
}
|
|
@@ -59819,7 +60801,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
59819
60801
|
\\"orderedItems\\"];
|
|
59820
60802
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
59821
60803
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
59822
|
-
|
|
60804
|
+
try {
|
|
60805
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
60806
|
+
} catch (error) {
|
|
60807
|
+
if (!options.suppressError) throw error;
|
|
60808
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
60809
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
60810
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
|
|
60811
|
+
);
|
|
60812
|
+
continue;
|
|
60813
|
+
}
|
|
59823
60814
|
}
|
|
59824
60815
|
}
|
|
59825
60816
|
|
|
@@ -60570,7 +61561,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
60570
61561
|
\\"orderedItems\\"];
|
|
60571
61562
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
60572
61563
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
60573
|
-
|
|
61564
|
+
try {
|
|
61565
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
61566
|
+
} catch (error) {
|
|
61567
|
+
if (!options.suppressError) throw error;
|
|
61568
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
61569
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
61570
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
|
|
61571
|
+
);
|
|
61572
|
+
continue;
|
|
61573
|
+
}
|
|
60574
61574
|
}
|
|
60575
61575
|
}
|
|
60576
61576
|
|
|
@@ -62262,7 +63262,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
62262
63262
|
\\"publicKey\\"];
|
|
62263
63263
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
62264
63264
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
62265
|
-
|
|
63265
|
+
try {
|
|
63266
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
63267
|
+
} catch (error) {
|
|
63268
|
+
if (!options.suppressError) throw error;
|
|
63269
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
63270
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
63271
|
+
{ property: \\"https://w3id.org/security#publicKey\\", error },
|
|
63272
|
+
);
|
|
63273
|
+
return null;
|
|
63274
|
+
}
|
|
62266
63275
|
}
|
|
62267
63276
|
}
|
|
62268
63277
|
|
|
@@ -62355,7 +63364,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
62355
63364
|
\\"publicKey\\"];
|
|
62356
63365
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
62357
63366
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
62358
|
-
|
|
63367
|
+
try {
|
|
63368
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
63369
|
+
} catch (error) {
|
|
63370
|
+
if (!options.suppressError) throw error;
|
|
63371
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
63372
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
63373
|
+
{ property: \\"https://w3id.org/security#publicKey\\", index: i, error },
|
|
63374
|
+
);
|
|
63375
|
+
continue;
|
|
63376
|
+
}
|
|
62359
63377
|
}
|
|
62360
63378
|
}
|
|
62361
63379
|
|
|
@@ -62574,7 +63592,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
62574
63592
|
\\"assertionMethod\\"];
|
|
62575
63593
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
62576
63594
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
62577
|
-
|
|
63595
|
+
try {
|
|
63596
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
63597
|
+
} catch (error) {
|
|
63598
|
+
if (!options.suppressError) throw error;
|
|
63599
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
63600
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
63601
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", error },
|
|
63602
|
+
);
|
|
63603
|
+
return null;
|
|
63604
|
+
}
|
|
62578
63605
|
}
|
|
62579
63606
|
}
|
|
62580
63607
|
|
|
@@ -62671,7 +63698,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
62671
63698
|
\\"assertionMethod\\"];
|
|
62672
63699
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
62673
63700
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
62674
|
-
|
|
63701
|
+
try {
|
|
63702
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
63703
|
+
} catch (error) {
|
|
63704
|
+
if (!options.suppressError) throw error;
|
|
63705
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
63706
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
63707
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
|
|
63708
|
+
);
|
|
63709
|
+
continue;
|
|
63710
|
+
}
|
|
62675
63711
|
}
|
|
62676
63712
|
}
|
|
62677
63713
|
|
|
@@ -62927,7 +63963,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
62927
63963
|
\\"inbox\\"];
|
|
62928
63964
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
62929
63965
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
62930
|
-
|
|
63966
|
+
try {
|
|
63967
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
63968
|
+
} catch (error) {
|
|
63969
|
+
if (!options.suppressError) throw error;
|
|
63970
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
63971
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
63972
|
+
{ property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
|
|
63973
|
+
);
|
|
63974
|
+
return null;
|
|
63975
|
+
}
|
|
62931
63976
|
}
|
|
62932
63977
|
}
|
|
62933
63978
|
|
|
@@ -63160,7 +64205,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63160
64205
|
\\"outbox\\"];
|
|
63161
64206
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
63162
64207
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
63163
|
-
|
|
64208
|
+
try {
|
|
64209
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
64210
|
+
} catch (error) {
|
|
64211
|
+
if (!options.suppressError) throw error;
|
|
64212
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
64213
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
64214
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
|
|
64215
|
+
);
|
|
64216
|
+
return null;
|
|
64217
|
+
}
|
|
63164
64218
|
}
|
|
63165
64219
|
}
|
|
63166
64220
|
|
|
@@ -63379,7 +64433,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63379
64433
|
\\"following\\"];
|
|
63380
64434
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
63381
64435
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
63382
|
-
|
|
64436
|
+
try {
|
|
64437
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
64438
|
+
} catch (error) {
|
|
64439
|
+
if (!options.suppressError) throw error;
|
|
64440
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
64441
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
64442
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
|
|
64443
|
+
);
|
|
64444
|
+
return null;
|
|
64445
|
+
}
|
|
63383
64446
|
}
|
|
63384
64447
|
}
|
|
63385
64448
|
|
|
@@ -63601,7 +64664,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63601
64664
|
\\"followers\\"];
|
|
63602
64665
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
63603
64666
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
63604
|
-
|
|
64667
|
+
try {
|
|
64668
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
64669
|
+
} catch (error) {
|
|
64670
|
+
if (!options.suppressError) throw error;
|
|
64671
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
64672
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
64673
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
|
|
64674
|
+
);
|
|
64675
|
+
return null;
|
|
64676
|
+
}
|
|
63605
64677
|
}
|
|
63606
64678
|
}
|
|
63607
64679
|
|
|
@@ -63821,7 +64893,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63821
64893
|
\\"liked\\"];
|
|
63822
64894
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
63823
64895
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
63824
|
-
|
|
64896
|
+
try {
|
|
64897
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
64898
|
+
} catch (error) {
|
|
64899
|
+
if (!options.suppressError) throw error;
|
|
64900
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
64901
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
64902
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
|
|
64903
|
+
);
|
|
64904
|
+
return null;
|
|
64905
|
+
}
|
|
63825
64906
|
}
|
|
63826
64907
|
}
|
|
63827
64908
|
|
|
@@ -64039,7 +65120,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64039
65120
|
\\"featured\\"];
|
|
64040
65121
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
64041
65122
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
64042
|
-
|
|
65123
|
+
try {
|
|
65124
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
65125
|
+
} catch (error) {
|
|
65126
|
+
if (!options.suppressError) throw error;
|
|
65127
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
65128
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
65129
|
+
{ property: \\"http://joinmastodon.org/ns#featured\\", error },
|
|
65130
|
+
);
|
|
65131
|
+
return null;
|
|
65132
|
+
}
|
|
64043
65133
|
}
|
|
64044
65134
|
}
|
|
64045
65135
|
|
|
@@ -64257,7 +65347,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64257
65347
|
\\"featuredTags\\"];
|
|
64258
65348
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
64259
65349
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
64260
|
-
|
|
65350
|
+
try {
|
|
65351
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
65352
|
+
} catch (error) {
|
|
65353
|
+
if (!options.suppressError) throw error;
|
|
65354
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
65355
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
65356
|
+
{ property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
|
|
65357
|
+
);
|
|
65358
|
+
return null;
|
|
65359
|
+
}
|
|
64261
65360
|
}
|
|
64262
65361
|
}
|
|
64263
65362
|
|
|
@@ -64473,7 +65572,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64473
65572
|
\\"streams\\"];
|
|
64474
65573
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
64475
65574
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
64476
|
-
|
|
65575
|
+
try {
|
|
65576
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
65577
|
+
} catch (error) {
|
|
65578
|
+
if (!options.suppressError) throw error;
|
|
65579
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
65580
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
65581
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
|
|
65582
|
+
);
|
|
65583
|
+
continue;
|
|
65584
|
+
}
|
|
64477
65585
|
}
|
|
64478
65586
|
}
|
|
64479
65587
|
|
|
@@ -64799,7 +65907,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64799
65907
|
\\"movedTo\\"];
|
|
64800
65908
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
64801
65909
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
64802
|
-
|
|
65910
|
+
try {
|
|
65911
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
65912
|
+
} catch (error) {
|
|
65913
|
+
if (!options.suppressError) throw error;
|
|
65914
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
65915
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
65916
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
|
|
65917
|
+
);
|
|
65918
|
+
return null;
|
|
65919
|
+
}
|
|
64803
65920
|
}
|
|
64804
65921
|
}
|
|
64805
65922
|
|
|
@@ -65053,7 +66170,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65053
66170
|
\\"alsoKnownAs\\"];
|
|
65054
66171
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
65055
66172
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
65056
|
-
|
|
66173
|
+
try {
|
|
66174
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
66175
|
+
} catch (error) {
|
|
66176
|
+
if (!options.suppressError) throw error;
|
|
66177
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
66178
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
66179
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
|
|
66180
|
+
);
|
|
66181
|
+
return null;
|
|
66182
|
+
}
|
|
65057
66183
|
}
|
|
65058
66184
|
}
|
|
65059
66185
|
|
|
@@ -65150,7 +66276,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65150
66276
|
\\"alsoKnownAs\\"];
|
|
65151
66277
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
65152
66278
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
65153
|
-
|
|
66279
|
+
try {
|
|
66280
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
66281
|
+
} catch (error) {
|
|
66282
|
+
if (!options.suppressError) throw error;
|
|
66283
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
66284
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
66285
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
|
|
66286
|
+
);
|
|
66287
|
+
continue;
|
|
66288
|
+
}
|
|
65154
66289
|
}
|
|
65155
66290
|
}
|
|
65156
66291
|
|
|
@@ -65369,7 +66504,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65369
66504
|
\\"service\\"];
|
|
65370
66505
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
65371
66506
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
65372
|
-
|
|
66507
|
+
try {
|
|
66508
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
66509
|
+
} catch (error) {
|
|
66510
|
+
if (!options.suppressError) throw error;
|
|
66511
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
66512
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
66513
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", error },
|
|
66514
|
+
);
|
|
66515
|
+
return null;
|
|
66516
|
+
}
|
|
65373
66517
|
}
|
|
65374
66518
|
}
|
|
65375
66519
|
|
|
@@ -65466,7 +66610,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65466
66610
|
\\"service\\"];
|
|
65467
66611
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
65468
66612
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
65469
|
-
|
|
66613
|
+
try {
|
|
66614
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
66615
|
+
} catch (error) {
|
|
66616
|
+
if (!options.suppressError) throw error;
|
|
66617
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
66618
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
66619
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
|
|
66620
|
+
);
|
|
66621
|
+
continue;
|
|
66622
|
+
}
|
|
65470
66623
|
}
|
|
65471
66624
|
}
|
|
65472
66625
|
|
|
@@ -69395,7 +70548,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
69395
70548
|
\\"publicKey\\"];
|
|
69396
70549
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
69397
70550
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
69398
|
-
|
|
70551
|
+
try {
|
|
70552
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
70553
|
+
} catch (error) {
|
|
70554
|
+
if (!options.suppressError) throw error;
|
|
70555
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
70556
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
70557
|
+
{ property: \\"https://w3id.org/security#publicKey\\", error },
|
|
70558
|
+
);
|
|
70559
|
+
return null;
|
|
70560
|
+
}
|
|
69399
70561
|
}
|
|
69400
70562
|
}
|
|
69401
70563
|
|
|
@@ -69488,7 +70650,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
69488
70650
|
\\"publicKey\\"];
|
|
69489
70651
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
69490
70652
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
69491
|
-
|
|
70653
|
+
try {
|
|
70654
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
70655
|
+
} catch (error) {
|
|
70656
|
+
if (!options.suppressError) throw error;
|
|
70657
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
70658
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
70659
|
+
{ property: \\"https://w3id.org/security#publicKey\\", index: i, error },
|
|
70660
|
+
);
|
|
70661
|
+
continue;
|
|
70662
|
+
}
|
|
69492
70663
|
}
|
|
69493
70664
|
}
|
|
69494
70665
|
|
|
@@ -69707,7 +70878,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
69707
70878
|
\\"assertionMethod\\"];
|
|
69708
70879
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
69709
70880
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
69710
|
-
|
|
70881
|
+
try {
|
|
70882
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
70883
|
+
} catch (error) {
|
|
70884
|
+
if (!options.suppressError) throw error;
|
|
70885
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
70886
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
70887
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", error },
|
|
70888
|
+
);
|
|
70889
|
+
return null;
|
|
70890
|
+
}
|
|
69711
70891
|
}
|
|
69712
70892
|
}
|
|
69713
70893
|
|
|
@@ -69804,7 +70984,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
69804
70984
|
\\"assertionMethod\\"];
|
|
69805
70985
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
69806
70986
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
69807
|
-
|
|
70987
|
+
try {
|
|
70988
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
70989
|
+
} catch (error) {
|
|
70990
|
+
if (!options.suppressError) throw error;
|
|
70991
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
70992
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
70993
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
|
|
70994
|
+
);
|
|
70995
|
+
continue;
|
|
70996
|
+
}
|
|
69808
70997
|
}
|
|
69809
70998
|
}
|
|
69810
70999
|
|
|
@@ -70060,7 +71249,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
70060
71249
|
\\"inbox\\"];
|
|
70061
71250
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
70062
71251
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
70063
|
-
|
|
71252
|
+
try {
|
|
71253
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
71254
|
+
} catch (error) {
|
|
71255
|
+
if (!options.suppressError) throw error;
|
|
71256
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
71257
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
71258
|
+
{ property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
|
|
71259
|
+
);
|
|
71260
|
+
return null;
|
|
71261
|
+
}
|
|
70064
71262
|
}
|
|
70065
71263
|
}
|
|
70066
71264
|
|
|
@@ -70293,7 +71491,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
70293
71491
|
\\"outbox\\"];
|
|
70294
71492
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
70295
71493
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
70296
|
-
|
|
71494
|
+
try {
|
|
71495
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
71496
|
+
} catch (error) {
|
|
71497
|
+
if (!options.suppressError) throw error;
|
|
71498
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
71499
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
71500
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
|
|
71501
|
+
);
|
|
71502
|
+
return null;
|
|
71503
|
+
}
|
|
70297
71504
|
}
|
|
70298
71505
|
}
|
|
70299
71506
|
|
|
@@ -70512,7 +71719,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
70512
71719
|
\\"following\\"];
|
|
70513
71720
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
70514
71721
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
70515
|
-
|
|
71722
|
+
try {
|
|
71723
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
71724
|
+
} catch (error) {
|
|
71725
|
+
if (!options.suppressError) throw error;
|
|
71726
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
71727
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
71728
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
|
|
71729
|
+
);
|
|
71730
|
+
return null;
|
|
71731
|
+
}
|
|
70516
71732
|
}
|
|
70517
71733
|
}
|
|
70518
71734
|
|
|
@@ -70734,7 +71950,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
70734
71950
|
\\"followers\\"];
|
|
70735
71951
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
70736
71952
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
70737
|
-
|
|
71953
|
+
try {
|
|
71954
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
71955
|
+
} catch (error) {
|
|
71956
|
+
if (!options.suppressError) throw error;
|
|
71957
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
71958
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
71959
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
|
|
71960
|
+
);
|
|
71961
|
+
return null;
|
|
71962
|
+
}
|
|
70738
71963
|
}
|
|
70739
71964
|
}
|
|
70740
71965
|
|
|
@@ -70954,7 +72179,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
70954
72179
|
\\"liked\\"];
|
|
70955
72180
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
70956
72181
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
70957
|
-
|
|
72182
|
+
try {
|
|
72183
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
72184
|
+
} catch (error) {
|
|
72185
|
+
if (!options.suppressError) throw error;
|
|
72186
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
72187
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
72188
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
|
|
72189
|
+
);
|
|
72190
|
+
return null;
|
|
72191
|
+
}
|
|
70958
72192
|
}
|
|
70959
72193
|
}
|
|
70960
72194
|
|
|
@@ -71172,7 +72406,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
71172
72406
|
\\"featured\\"];
|
|
71173
72407
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
71174
72408
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
71175
|
-
|
|
72409
|
+
try {
|
|
72410
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
72411
|
+
} catch (error) {
|
|
72412
|
+
if (!options.suppressError) throw error;
|
|
72413
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
72414
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
72415
|
+
{ property: \\"http://joinmastodon.org/ns#featured\\", error },
|
|
72416
|
+
);
|
|
72417
|
+
return null;
|
|
72418
|
+
}
|
|
71176
72419
|
}
|
|
71177
72420
|
}
|
|
71178
72421
|
|
|
@@ -71390,7 +72633,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
71390
72633
|
\\"featuredTags\\"];
|
|
71391
72634
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
71392
72635
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
71393
|
-
|
|
72636
|
+
try {
|
|
72637
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
72638
|
+
} catch (error) {
|
|
72639
|
+
if (!options.suppressError) throw error;
|
|
72640
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
72641
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
72642
|
+
{ property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
|
|
72643
|
+
);
|
|
72644
|
+
return null;
|
|
72645
|
+
}
|
|
71394
72646
|
}
|
|
71395
72647
|
}
|
|
71396
72648
|
|
|
@@ -71606,7 +72858,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
71606
72858
|
\\"streams\\"];
|
|
71607
72859
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
71608
72860
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
71609
|
-
|
|
72861
|
+
try {
|
|
72862
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
72863
|
+
} catch (error) {
|
|
72864
|
+
if (!options.suppressError) throw error;
|
|
72865
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
72866
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
72867
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
|
|
72868
|
+
);
|
|
72869
|
+
continue;
|
|
72870
|
+
}
|
|
71610
72871
|
}
|
|
71611
72872
|
}
|
|
71612
72873
|
|
|
@@ -71932,7 +73193,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
71932
73193
|
\\"movedTo\\"];
|
|
71933
73194
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
71934
73195
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
71935
|
-
|
|
73196
|
+
try {
|
|
73197
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
73198
|
+
} catch (error) {
|
|
73199
|
+
if (!options.suppressError) throw error;
|
|
73200
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
73201
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
73202
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
|
|
73203
|
+
);
|
|
73204
|
+
return null;
|
|
73205
|
+
}
|
|
71936
73206
|
}
|
|
71937
73207
|
}
|
|
71938
73208
|
|
|
@@ -72186,7 +73456,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
72186
73456
|
\\"alsoKnownAs\\"];
|
|
72187
73457
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
72188
73458
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
72189
|
-
|
|
73459
|
+
try {
|
|
73460
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
73461
|
+
} catch (error) {
|
|
73462
|
+
if (!options.suppressError) throw error;
|
|
73463
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
73464
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
73465
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
|
|
73466
|
+
);
|
|
73467
|
+
return null;
|
|
73468
|
+
}
|
|
72190
73469
|
}
|
|
72191
73470
|
}
|
|
72192
73471
|
|
|
@@ -72283,7 +73562,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
72283
73562
|
\\"alsoKnownAs\\"];
|
|
72284
73563
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
72285
73564
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
72286
|
-
|
|
73565
|
+
try {
|
|
73566
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
73567
|
+
} catch (error) {
|
|
73568
|
+
if (!options.suppressError) throw error;
|
|
73569
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
73570
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
73571
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
|
|
73572
|
+
);
|
|
73573
|
+
continue;
|
|
73574
|
+
}
|
|
72287
73575
|
}
|
|
72288
73576
|
}
|
|
72289
73577
|
|
|
@@ -72502,7 +73790,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
72502
73790
|
\\"service\\"];
|
|
72503
73791
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
72504
73792
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
72505
|
-
|
|
73793
|
+
try {
|
|
73794
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
73795
|
+
} catch (error) {
|
|
73796
|
+
if (!options.suppressError) throw error;
|
|
73797
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
73798
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
73799
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", error },
|
|
73800
|
+
);
|
|
73801
|
+
return null;
|
|
73802
|
+
}
|
|
72506
73803
|
}
|
|
72507
73804
|
}
|
|
72508
73805
|
|
|
@@ -72599,7 +73896,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
72599
73896
|
\\"service\\"];
|
|
72600
73897
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
72601
73898
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
72602
|
-
|
|
73899
|
+
try {
|
|
73900
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
73901
|
+
} catch (error) {
|
|
73902
|
+
if (!options.suppressError) throw error;
|
|
73903
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
73904
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
73905
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
|
|
73906
|
+
);
|
|
73907
|
+
continue;
|
|
73908
|
+
}
|
|
72603
73909
|
}
|
|
72604
73910
|
}
|
|
72605
73911
|
|
|
@@ -76375,7 +77681,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
76375
77681
|
\\"describes\\"];
|
|
76376
77682
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
76377
77683
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
76378
|
-
|
|
77684
|
+
try {
|
|
77685
|
+
v = await this.#describes_fromJsonLd(doc, options);
|
|
77686
|
+
} catch (error) {
|
|
77687
|
+
if (!options.suppressError) throw error;
|
|
77688
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
77689
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
77690
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#describes\\", error },
|
|
77691
|
+
);
|
|
77692
|
+
return null;
|
|
77693
|
+
}
|
|
76379
77694
|
}
|
|
76380
77695
|
}
|
|
76381
77696
|
|
|
@@ -77215,7 +78530,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
|
|
|
77215
78530
|
\\"oneOf\\"];
|
|
77216
78531
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
77217
78532
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
77218
|
-
|
|
78533
|
+
try {
|
|
78534
|
+
v = await this.#exclusiveOption_fromJsonLd(obj, options);
|
|
78535
|
+
} catch (error) {
|
|
78536
|
+
if (!options.suppressError) throw error;
|
|
78537
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
78538
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
78539
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#oneOf\\", index: i, error },
|
|
78540
|
+
);
|
|
78541
|
+
continue;
|
|
78542
|
+
}
|
|
77219
78543
|
}
|
|
77220
78544
|
}
|
|
77221
78545
|
|
|
@@ -77434,7 +78758,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
|
|
|
77434
78758
|
\\"anyOf\\"];
|
|
77435
78759
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
77436
78760
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
77437
|
-
|
|
78761
|
+
try {
|
|
78762
|
+
v = await this.#inclusiveOption_fromJsonLd(obj, options);
|
|
78763
|
+
} catch (error) {
|
|
78764
|
+
if (!options.suppressError) throw error;
|
|
78765
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
78766
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
78767
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#anyOf\\", index: i, error },
|
|
78768
|
+
);
|
|
78769
|
+
continue;
|
|
78770
|
+
}
|
|
77438
78771
|
}
|
|
77439
78772
|
}
|
|
77440
78773
|
|
|
@@ -77952,9 +79285,18 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
|
|
|
77952
79285
|
if (v == null) continue;
|
|
77953
79286
|
|
|
77954
79287
|
const decoded =
|
|
77955
|
-
|
|
79288
|
+
typeof v === \\"object\\" &&
|
|
79289
|
+
((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
|
|
79290
|
+
(typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
|
|
79291
|
+
typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
|
|
79292
|
+
) : undefined
|
|
77956
79293
|
;
|
|
77957
79294
|
|
|
79295
|
+
if (typeof decoded === \\"undefined\\") {
|
|
79296
|
+
shouldCacheJsonLd = false;
|
|
79297
|
+
continue;
|
|
79298
|
+
}
|
|
79299
|
+
|
|
77958
79300
|
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
77959
79301
|
shouldCacheJsonLd = false;
|
|
77960
79302
|
}
|
|
@@ -79285,7 +80627,16 @@ relationships?: (Object | URL)[];}
|
|
|
79285
80627
|
\\"subject\\"];
|
|
79286
80628
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
79287
80629
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
79288
|
-
|
|
80630
|
+
try {
|
|
80631
|
+
v = await this.#subject_fromJsonLd(doc, options);
|
|
80632
|
+
} catch (error) {
|
|
80633
|
+
if (!options.suppressError) throw error;
|
|
80634
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
80635
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
80636
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#subject\\", error },
|
|
80637
|
+
);
|
|
80638
|
+
return null;
|
|
80639
|
+
}
|
|
79289
80640
|
}
|
|
79290
80641
|
}
|
|
79291
80642
|
|
|
@@ -79500,7 +80851,16 @@ relationships?: (Object | URL)[];}
|
|
|
79500
80851
|
\\"object\\"];
|
|
79501
80852
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
79502
80853
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
79503
|
-
|
|
80854
|
+
try {
|
|
80855
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
80856
|
+
} catch (error) {
|
|
80857
|
+
if (!options.suppressError) throw error;
|
|
80858
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
80859
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
80860
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
|
|
80861
|
+
);
|
|
80862
|
+
return null;
|
|
80863
|
+
}
|
|
79504
80864
|
}
|
|
79505
80865
|
}
|
|
79506
80866
|
|
|
@@ -79594,7 +80954,16 @@ relationships?: (Object | URL)[];}
|
|
|
79594
80954
|
\\"object\\"];
|
|
79595
80955
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
79596
80956
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
79597
|
-
|
|
80957
|
+
try {
|
|
80958
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
80959
|
+
} catch (error) {
|
|
80960
|
+
if (!options.suppressError) throw error;
|
|
80961
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
80962
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
80963
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
|
|
80964
|
+
);
|
|
80965
|
+
continue;
|
|
80966
|
+
}
|
|
79598
80967
|
}
|
|
79599
80968
|
}
|
|
79600
80969
|
|
|
@@ -79812,7 +81181,16 @@ relationships?: (Object | URL)[];}
|
|
|
79812
81181
|
\\"relationship\\"];
|
|
79813
81182
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
79814
81183
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
79815
|
-
|
|
81184
|
+
try {
|
|
81185
|
+
v = await this.#relationship_fromJsonLd(doc, options);
|
|
81186
|
+
} catch (error) {
|
|
81187
|
+
if (!options.suppressError) throw error;
|
|
81188
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
81189
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
81190
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#relationship\\", error },
|
|
81191
|
+
);
|
|
81192
|
+
return null;
|
|
81193
|
+
}
|
|
79816
81194
|
}
|
|
79817
81195
|
}
|
|
79818
81196
|
|
|
@@ -79908,7 +81286,16 @@ relationships?: (Object | URL)[];}
|
|
|
79908
81286
|
\\"relationship\\"];
|
|
79909
81287
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
79910
81288
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
79911
|
-
|
|
81289
|
+
try {
|
|
81290
|
+
v = await this.#relationship_fromJsonLd(obj, options);
|
|
81291
|
+
} catch (error) {
|
|
81292
|
+
if (!options.suppressError) throw error;
|
|
81293
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
81294
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
81295
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#relationship\\", index: i, error },
|
|
81296
|
+
);
|
|
81297
|
+
continue;
|
|
81298
|
+
}
|
|
79912
81299
|
}
|
|
79913
81300
|
}
|
|
79914
81301
|
|
|
@@ -82032,7 +83419,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82032
83419
|
\\"publicKey\\"];
|
|
82033
83420
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
82034
83421
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
82035
|
-
|
|
83422
|
+
try {
|
|
83423
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
83424
|
+
} catch (error) {
|
|
83425
|
+
if (!options.suppressError) throw error;
|
|
83426
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
83427
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
83428
|
+
{ property: \\"https://w3id.org/security#publicKey\\", error },
|
|
83429
|
+
);
|
|
83430
|
+
return null;
|
|
83431
|
+
}
|
|
82036
83432
|
}
|
|
82037
83433
|
}
|
|
82038
83434
|
|
|
@@ -82125,7 +83521,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82125
83521
|
\\"publicKey\\"];
|
|
82126
83522
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
82127
83523
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
82128
|
-
|
|
83524
|
+
try {
|
|
83525
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
83526
|
+
} catch (error) {
|
|
83527
|
+
if (!options.suppressError) throw error;
|
|
83528
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
83529
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
83530
|
+
{ property: \\"https://w3id.org/security#publicKey\\", index: i, error },
|
|
83531
|
+
);
|
|
83532
|
+
continue;
|
|
83533
|
+
}
|
|
82129
83534
|
}
|
|
82130
83535
|
}
|
|
82131
83536
|
|
|
@@ -82344,7 +83749,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82344
83749
|
\\"assertionMethod\\"];
|
|
82345
83750
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
82346
83751
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
82347
|
-
|
|
83752
|
+
try {
|
|
83753
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
83754
|
+
} catch (error) {
|
|
83755
|
+
if (!options.suppressError) throw error;
|
|
83756
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
83757
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
83758
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", error },
|
|
83759
|
+
);
|
|
83760
|
+
return null;
|
|
83761
|
+
}
|
|
82348
83762
|
}
|
|
82349
83763
|
}
|
|
82350
83764
|
|
|
@@ -82441,7 +83855,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82441
83855
|
\\"assertionMethod\\"];
|
|
82442
83856
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
82443
83857
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
82444
|
-
|
|
83858
|
+
try {
|
|
83859
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
83860
|
+
} catch (error) {
|
|
83861
|
+
if (!options.suppressError) throw error;
|
|
83862
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
83863
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
83864
|
+
{ property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
|
|
83865
|
+
);
|
|
83866
|
+
continue;
|
|
83867
|
+
}
|
|
82445
83868
|
}
|
|
82446
83869
|
}
|
|
82447
83870
|
|
|
@@ -82697,7 +84120,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82697
84120
|
\\"inbox\\"];
|
|
82698
84121
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
82699
84122
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
82700
|
-
|
|
84123
|
+
try {
|
|
84124
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
84125
|
+
} catch (error) {
|
|
84126
|
+
if (!options.suppressError) throw error;
|
|
84127
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
84128
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
84129
|
+
{ property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
|
|
84130
|
+
);
|
|
84131
|
+
return null;
|
|
84132
|
+
}
|
|
82701
84133
|
}
|
|
82702
84134
|
}
|
|
82703
84135
|
|
|
@@ -82930,7 +84362,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82930
84362
|
\\"outbox\\"];
|
|
82931
84363
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
82932
84364
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
82933
|
-
|
|
84365
|
+
try {
|
|
84366
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
84367
|
+
} catch (error) {
|
|
84368
|
+
if (!options.suppressError) throw error;
|
|
84369
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
84370
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
84371
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
|
|
84372
|
+
);
|
|
84373
|
+
return null;
|
|
84374
|
+
}
|
|
82934
84375
|
}
|
|
82935
84376
|
}
|
|
82936
84377
|
|
|
@@ -83149,7 +84590,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
83149
84590
|
\\"following\\"];
|
|
83150
84591
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
83151
84592
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
83152
|
-
|
|
84593
|
+
try {
|
|
84594
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
84595
|
+
} catch (error) {
|
|
84596
|
+
if (!options.suppressError) throw error;
|
|
84597
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
84598
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
84599
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
|
|
84600
|
+
);
|
|
84601
|
+
return null;
|
|
84602
|
+
}
|
|
83153
84603
|
}
|
|
83154
84604
|
}
|
|
83155
84605
|
|
|
@@ -83371,7 +84821,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
83371
84821
|
\\"followers\\"];
|
|
83372
84822
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
83373
84823
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
83374
|
-
|
|
84824
|
+
try {
|
|
84825
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
84826
|
+
} catch (error) {
|
|
84827
|
+
if (!options.suppressError) throw error;
|
|
84828
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
84829
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
84830
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
|
|
84831
|
+
);
|
|
84832
|
+
return null;
|
|
84833
|
+
}
|
|
83375
84834
|
}
|
|
83376
84835
|
}
|
|
83377
84836
|
|
|
@@ -83591,7 +85050,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
83591
85050
|
\\"liked\\"];
|
|
83592
85051
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
83593
85052
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
83594
|
-
|
|
85053
|
+
try {
|
|
85054
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
85055
|
+
} catch (error) {
|
|
85056
|
+
if (!options.suppressError) throw error;
|
|
85057
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
85058
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
85059
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
|
|
85060
|
+
);
|
|
85061
|
+
return null;
|
|
85062
|
+
}
|
|
83595
85063
|
}
|
|
83596
85064
|
}
|
|
83597
85065
|
|
|
@@ -83809,7 +85277,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
83809
85277
|
\\"featured\\"];
|
|
83810
85278
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
83811
85279
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
83812
|
-
|
|
85280
|
+
try {
|
|
85281
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
85282
|
+
} catch (error) {
|
|
85283
|
+
if (!options.suppressError) throw error;
|
|
85284
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
85285
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
85286
|
+
{ property: \\"http://joinmastodon.org/ns#featured\\", error },
|
|
85287
|
+
);
|
|
85288
|
+
return null;
|
|
85289
|
+
}
|
|
83813
85290
|
}
|
|
83814
85291
|
}
|
|
83815
85292
|
|
|
@@ -84027,7 +85504,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
84027
85504
|
\\"featuredTags\\"];
|
|
84028
85505
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
84029
85506
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
84030
|
-
|
|
85507
|
+
try {
|
|
85508
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
85509
|
+
} catch (error) {
|
|
85510
|
+
if (!options.suppressError) throw error;
|
|
85511
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
85512
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
85513
|
+
{ property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
|
|
85514
|
+
);
|
|
85515
|
+
return null;
|
|
85516
|
+
}
|
|
84031
85517
|
}
|
|
84032
85518
|
}
|
|
84033
85519
|
|
|
@@ -84243,7 +85729,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
84243
85729
|
\\"streams\\"];
|
|
84244
85730
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
84245
85731
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
84246
|
-
|
|
85732
|
+
try {
|
|
85733
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
85734
|
+
} catch (error) {
|
|
85735
|
+
if (!options.suppressError) throw error;
|
|
85736
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
85737
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
85738
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
|
|
85739
|
+
);
|
|
85740
|
+
continue;
|
|
85741
|
+
}
|
|
84247
85742
|
}
|
|
84248
85743
|
}
|
|
84249
85744
|
|
|
@@ -84569,7 +86064,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
84569
86064
|
\\"movedTo\\"];
|
|
84570
86065
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
84571
86066
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
84572
|
-
|
|
86067
|
+
try {
|
|
86068
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
86069
|
+
} catch (error) {
|
|
86070
|
+
if (!options.suppressError) throw error;
|
|
86071
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
86072
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
86073
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
|
|
86074
|
+
);
|
|
86075
|
+
return null;
|
|
86076
|
+
}
|
|
84573
86077
|
}
|
|
84574
86078
|
}
|
|
84575
86079
|
|
|
@@ -84823,7 +86327,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
84823
86327
|
\\"alsoKnownAs\\"];
|
|
84824
86328
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
84825
86329
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
84826
|
-
|
|
86330
|
+
try {
|
|
86331
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
86332
|
+
} catch (error) {
|
|
86333
|
+
if (!options.suppressError) throw error;
|
|
86334
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
86335
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
86336
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
|
|
86337
|
+
);
|
|
86338
|
+
return null;
|
|
86339
|
+
}
|
|
84827
86340
|
}
|
|
84828
86341
|
}
|
|
84829
86342
|
|
|
@@ -84920,7 +86433,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
84920
86433
|
\\"alsoKnownAs\\"];
|
|
84921
86434
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
84922
86435
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
84923
|
-
|
|
86436
|
+
try {
|
|
86437
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
86438
|
+
} catch (error) {
|
|
86439
|
+
if (!options.suppressError) throw error;
|
|
86440
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
86441
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
86442
|
+
{ property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
|
|
86443
|
+
);
|
|
86444
|
+
continue;
|
|
86445
|
+
}
|
|
84924
86446
|
}
|
|
84925
86447
|
}
|
|
84926
86448
|
|
|
@@ -85139,7 +86661,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
85139
86661
|
\\"service\\"];
|
|
85140
86662
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
85141
86663
|
if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
|
|
85142
|
-
|
|
86664
|
+
try {
|
|
86665
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
86666
|
+
} catch (error) {
|
|
86667
|
+
if (!options.suppressError) throw error;
|
|
86668
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
86669
|
+
\\"Failed to parse embedded value of {property}: {error}\\",
|
|
86670
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", error },
|
|
86671
|
+
);
|
|
86672
|
+
return null;
|
|
86673
|
+
}
|
|
85143
86674
|
}
|
|
85144
86675
|
}
|
|
85145
86676
|
|
|
@@ -85236,7 +86767,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
85236
86767
|
\\"service\\"];
|
|
85237
86768
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
85238
86769
|
if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
|
|
85239
|
-
|
|
86770
|
+
try {
|
|
86771
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
86772
|
+
} catch (error) {
|
|
86773
|
+
if (!options.suppressError) throw error;
|
|
86774
|
+
getLogger([\\"fedify\\", \\"vocab\\"]).debug(
|
|
86775
|
+
\\"Failed to parse embedded value of {property} at index {index}: {error}\\",
|
|
86776
|
+
{ property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
|
|
86777
|
+
);
|
|
86778
|
+
continue;
|
|
86779
|
+
}
|
|
85240
86780
|
}
|
|
85241
86781
|
}
|
|
85242
86782
|
|