@fedify/fedify 0.10.0-dev.198 → 0.10.0-dev.199
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +3 -0
- package/esm/vocab/vocab.js +296 -259
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts +48 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/esm/vocab/vocab.js
CHANGED
@@ -2059,11 +2059,12 @@ export class Object {
|
|
2059
2059
|
if (options.expand) {
|
2060
2060
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
2061
2061
|
}
|
2062
|
-
return await jsonld.compact(values,
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2062
|
+
return await jsonld.compact(values, options.context ??
|
2063
|
+
[
|
2064
|
+
"https://www.w3.org/ns/activitystreams",
|
2065
|
+
"https://w3id.org/security/data-integrity/v1",
|
2066
|
+
{ "sensitive": "as:sensitive" },
|
2067
|
+
], { documentLoader: options.contextLoader });
|
2067
2068
|
}
|
2068
2069
|
/**
|
2069
2070
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3471,10 +3472,11 @@ export class Emoji extends Object {
|
|
3471
3472
|
if (options.expand) {
|
3472
3473
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
3473
3474
|
}
|
3474
|
-
return await jsonld.compact(values,
|
3475
|
-
|
3476
|
-
|
3477
|
-
|
3475
|
+
return await jsonld.compact(values, options.context ??
|
3476
|
+
["https://www.w3.org/ns/activitystreams", {
|
3477
|
+
"toot": "http://joinmastodon.org/ns#",
|
3478
|
+
"Emoji": "toot:Emoji",
|
3479
|
+
}], { documentLoader: options.contextLoader });
|
3478
3480
|
}
|
3479
3481
|
/**
|
3480
3482
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3637,11 +3639,12 @@ export class PropertyValue {
|
|
3637
3639
|
if (options.expand) {
|
3638
3640
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
3639
3641
|
}
|
3640
|
-
return await jsonld.compact(values,
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3642
|
+
return await jsonld.compact(values, options.context ??
|
3643
|
+
["https://www.w3.org/ns/activitystreams", {
|
3644
|
+
"schema": "http://schema.org#",
|
3645
|
+
"PropertyValue": "schema:PropertyValue",
|
3646
|
+
"value": "schema:value",
|
3647
|
+
}], { documentLoader: options.contextLoader });
|
3645
3648
|
}
|
3646
3649
|
/**
|
3647
3650
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3977,7 +3980,7 @@ export class DataIntegrityProof {
|
|
3977
3980
|
if (options.expand) {
|
3978
3981
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
3979
3982
|
}
|
3980
|
-
return await jsonld.compact(values, "https://w3id.org/security/data-integrity/v1", { documentLoader: options.contextLoader });
|
3983
|
+
return await jsonld.compact(values, options.context ?? "https://w3id.org/security/data-integrity/v1", { documentLoader: options.contextLoader });
|
3981
3984
|
}
|
3982
3985
|
/**
|
3983
3986
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4311,7 +4314,7 @@ export class CryptographicKey {
|
|
4311
4314
|
if (options.expand) {
|
4312
4315
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
4313
4316
|
}
|
4314
|
-
return await jsonld.compact(values, "https://w3id.org/security/v1", { documentLoader: options.contextLoader });
|
4317
|
+
return await jsonld.compact(values, options.context ?? "https://w3id.org/security/v1", { documentLoader: options.contextLoader });
|
4315
4318
|
}
|
4316
4319
|
/**
|
4317
4320
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4624,7 +4627,7 @@ export class Multikey {
|
|
4624
4627
|
if (options.expand) {
|
4625
4628
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
4626
4629
|
}
|
4627
|
-
return await jsonld.compact(values, "https://w3id.org/security/multikey/v1", { documentLoader: options.contextLoader });
|
4630
|
+
return await jsonld.compact(values, options.context ?? "https://w3id.org/security/multikey/v1", { documentLoader: options.contextLoader });
|
4628
4631
|
}
|
4629
4632
|
/**
|
4630
4633
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5045,11 +5048,12 @@ export class Activity extends Object {
|
|
5045
5048
|
if (options.expand) {
|
5046
5049
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
5047
5050
|
}
|
5048
|
-
return await jsonld.compact(values,
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5051
|
+
return await jsonld.compact(values, options.context ??
|
5052
|
+
[
|
5053
|
+
"https://www.w3.org/ns/activitystreams",
|
5054
|
+
"https://w3id.org/security/v1",
|
5055
|
+
"https://w3id.org/security/data-integrity/v1",
|
5056
|
+
], { documentLoader: options.contextLoader });
|
5053
5057
|
}
|
5054
5058
|
/**
|
5055
5059
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5300,10 +5304,11 @@ export class Accept extends Activity {
|
|
5300
5304
|
if (options.expand) {
|
5301
5305
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
5302
5306
|
}
|
5303
|
-
return await jsonld.compact(values,
|
5304
|
-
|
5305
|
-
|
5306
|
-
|
5307
|
+
return await jsonld.compact(values, options.context ??
|
5308
|
+
[
|
5309
|
+
"https://www.w3.org/ns/activitystreams",
|
5310
|
+
"https://w3id.org/security/data-integrity/v1",
|
5311
|
+
], { documentLoader: options.contextLoader });
|
5307
5312
|
}
|
5308
5313
|
/**
|
5309
5314
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5412,10 +5417,11 @@ export class Add extends Activity {
|
|
5412
5417
|
if (options.expand) {
|
5413
5418
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
5414
5419
|
}
|
5415
|
-
return await jsonld.compact(values,
|
5416
|
-
|
5417
|
-
|
5418
|
-
|
5420
|
+
return await jsonld.compact(values, options.context ??
|
5421
|
+
[
|
5422
|
+
"https://www.w3.org/ns/activitystreams",
|
5423
|
+
"https://w3id.org/security/data-integrity/v1",
|
5424
|
+
], { documentLoader: options.contextLoader });
|
5419
5425
|
}
|
5420
5426
|
/**
|
5421
5427
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5523,16 +5529,17 @@ export class Announce extends Activity {
|
|
5523
5529
|
if (options.expand) {
|
5524
5530
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
5525
5531
|
}
|
5526
|
-
return await jsonld.compact(values,
|
5527
|
-
|
5528
|
-
|
5529
|
-
|
5530
|
-
|
5531
|
-
|
5532
|
-
|
5533
|
-
|
5534
|
-
|
5535
|
-
|
5532
|
+
return await jsonld.compact(values, options.context ??
|
5533
|
+
[
|
5534
|
+
"https://www.w3.org/ns/activitystreams",
|
5535
|
+
"https://w3id.org/security/data-integrity/v1",
|
5536
|
+
{
|
5537
|
+
"toot": "http://joinmastodon.org/ns#",
|
5538
|
+
"sensitive": "as:sensitive",
|
5539
|
+
"Emoji": "toot:Emoji",
|
5540
|
+
"Hashtag": "as:Hashtag",
|
5541
|
+
},
|
5542
|
+
], { documentLoader: options.contextLoader });
|
5536
5543
|
}
|
5537
5544
|
/**
|
5538
5545
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6403,24 +6410,25 @@ export class Application extends Object {
|
|
6403
6410
|
if (options.expand) {
|
6404
6411
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
6405
6412
|
}
|
6406
|
-
return await jsonld.compact(values,
|
6407
|
-
|
6408
|
-
|
6409
|
-
|
6410
|
-
|
6411
|
-
|
6412
|
-
|
6413
|
-
|
6414
|
-
|
6415
|
-
|
6416
|
-
|
6417
|
-
|
6418
|
-
|
6419
|
-
|
6420
|
-
|
6421
|
-
|
6422
|
-
|
6423
|
-
|
6413
|
+
return await jsonld.compact(values, options.context ??
|
6414
|
+
[
|
6415
|
+
"https://www.w3.org/ns/activitystreams",
|
6416
|
+
"https://w3id.org/security/v1",
|
6417
|
+
"https://w3id.org/security/data-integrity/v1",
|
6418
|
+
"https://www.w3.org/ns/did/v1",
|
6419
|
+
"https://w3id.org/security/multikey/v1",
|
6420
|
+
{
|
6421
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
6422
|
+
"toot": "http://joinmastodon.org/ns#",
|
6423
|
+
"discoverable": "toot:discoverable",
|
6424
|
+
"suspended": "toot:suspended",
|
6425
|
+
"memorial": "toot:memorial",
|
6426
|
+
"indexable": "toot:indexable",
|
6427
|
+
"schema": "http://schema.org#",
|
6428
|
+
"PropertyValue": "schema:PropertyValue",
|
6429
|
+
"value": "schema:value",
|
6430
|
+
},
|
6431
|
+
], { documentLoader: options.contextLoader });
|
6424
6432
|
}
|
6425
6433
|
/**
|
6426
6434
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6864,16 +6872,17 @@ export class Article extends Object {
|
|
6864
6872
|
if (options.expand) {
|
6865
6873
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
6866
6874
|
}
|
6867
|
-
return await jsonld.compact(values,
|
6868
|
-
|
6869
|
-
|
6870
|
-
|
6871
|
-
|
6872
|
-
|
6873
|
-
|
6874
|
-
|
6875
|
-
|
6876
|
-
|
6875
|
+
return await jsonld.compact(values, options.context ??
|
6876
|
+
[
|
6877
|
+
"https://www.w3.org/ns/activitystreams",
|
6878
|
+
"https://w3id.org/security/data-integrity/v1",
|
6879
|
+
{
|
6880
|
+
"toot": "http://joinmastodon.org/ns#",
|
6881
|
+
"sensitive": "as:sensitive",
|
6882
|
+
"Emoji": "toot:Emoji",
|
6883
|
+
"Hashtag": "as:Hashtag",
|
6884
|
+
},
|
6885
|
+
], { documentLoader: options.contextLoader });
|
6877
6886
|
}
|
6878
6887
|
/**
|
6879
6888
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7031,10 +7040,11 @@ export class Document extends Object {
|
|
7031
7040
|
if (options.expand) {
|
7032
7041
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
7033
7042
|
}
|
7034
|
-
return await jsonld.compact(values,
|
7035
|
-
|
7036
|
-
|
7037
|
-
|
7043
|
+
return await jsonld.compact(values, options.context ??
|
7044
|
+
[
|
7045
|
+
"https://www.w3.org/ns/activitystreams",
|
7046
|
+
"https://w3id.org/security/data-integrity/v1",
|
7047
|
+
], { documentLoader: options.contextLoader });
|
7038
7048
|
}
|
7039
7049
|
/**
|
7040
7050
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7192,10 +7202,11 @@ export class Audio extends Document {
|
|
7192
7202
|
if (options.expand) {
|
7193
7203
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
7194
7204
|
}
|
7195
|
-
return await jsonld.compact(values,
|
7196
|
-
|
7197
|
-
|
7198
|
-
|
7205
|
+
return await jsonld.compact(values, options.context ??
|
7206
|
+
[
|
7207
|
+
"https://www.w3.org/ns/activitystreams",
|
7208
|
+
"https://w3id.org/security/data-integrity/v1",
|
7209
|
+
], { documentLoader: options.contextLoader });
|
7199
7210
|
}
|
7200
7211
|
/**
|
7201
7212
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7302,10 +7313,11 @@ export class Ignore extends Activity {
|
|
7302
7313
|
if (options.expand) {
|
7303
7314
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
7304
7315
|
}
|
7305
|
-
return await jsonld.compact(values,
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7316
|
+
return await jsonld.compact(values, options.context ??
|
7317
|
+
[
|
7318
|
+
"https://www.w3.org/ns/activitystreams",
|
7319
|
+
"https://w3id.org/security/data-integrity/v1",
|
7320
|
+
], { documentLoader: options.contextLoader });
|
7309
7321
|
}
|
7310
7322
|
/**
|
7311
7323
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7418,10 +7430,11 @@ export class Block extends Ignore {
|
|
7418
7430
|
if (options.expand) {
|
7419
7431
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
7420
7432
|
}
|
7421
|
-
return await jsonld.compact(values,
|
7422
|
-
|
7423
|
-
|
7424
|
-
|
7433
|
+
return await jsonld.compact(values, options.context ??
|
7434
|
+
[
|
7435
|
+
"https://www.w3.org/ns/activitystreams",
|
7436
|
+
"https://w3id.org/security/data-integrity/v1",
|
7437
|
+
], { documentLoader: options.contextLoader });
|
7425
7438
|
}
|
7426
7439
|
/**
|
7427
7440
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7843,7 +7856,7 @@ export class Collection extends Object {
|
|
7843
7856
|
if (options.expand) {
|
7844
7857
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
7845
7858
|
}
|
7846
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
7859
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
7847
7860
|
}
|
7848
7861
|
/**
|
7849
7862
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8400,7 +8413,7 @@ export class CollectionPage extends Collection {
|
|
8400
8413
|
if (options.expand) {
|
8401
8414
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
8402
8415
|
}
|
8403
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
8416
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
8404
8417
|
}
|
8405
8418
|
/**
|
8406
8419
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8636,16 +8649,17 @@ export class Create extends Activity {
|
|
8636
8649
|
if (options.expand) {
|
8637
8650
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
8638
8651
|
}
|
8639
|
-
return await jsonld.compact(values,
|
8640
|
-
|
8641
|
-
|
8642
|
-
|
8643
|
-
|
8644
|
-
|
8645
|
-
|
8646
|
-
|
8647
|
-
|
8648
|
-
|
8652
|
+
return await jsonld.compact(values, options.context ??
|
8653
|
+
[
|
8654
|
+
"https://www.w3.org/ns/activitystreams",
|
8655
|
+
"https://w3id.org/security/data-integrity/v1",
|
8656
|
+
{
|
8657
|
+
"toot": "http://joinmastodon.org/ns#",
|
8658
|
+
"sensitive": "as:sensitive",
|
8659
|
+
"Emoji": "toot:Emoji",
|
8660
|
+
"Hashtag": "as:Hashtag",
|
8661
|
+
},
|
8662
|
+
], { documentLoader: options.contextLoader });
|
8649
8663
|
}
|
8650
8664
|
/**
|
8651
8665
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8752,10 +8766,11 @@ export class Delete extends Activity {
|
|
8752
8766
|
if (options.expand) {
|
8753
8767
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
8754
8768
|
}
|
8755
|
-
return await jsonld.compact(values,
|
8756
|
-
|
8757
|
-
|
8758
|
-
|
8769
|
+
return await jsonld.compact(values, options.context ??
|
8770
|
+
[
|
8771
|
+
"https://www.w3.org/ns/activitystreams",
|
8772
|
+
"https://w3id.org/security/data-integrity/v1",
|
8773
|
+
], { documentLoader: options.contextLoader });
|
8759
8774
|
}
|
8760
8775
|
/**
|
8761
8776
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8861,10 +8876,11 @@ export class Dislike extends Activity {
|
|
8861
8876
|
if (options.expand) {
|
8862
8877
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
8863
8878
|
}
|
8864
|
-
return await jsonld.compact(values,
|
8865
|
-
|
8866
|
-
|
8867
|
-
|
8879
|
+
return await jsonld.compact(values, options.context ??
|
8880
|
+
[
|
8881
|
+
"https://www.w3.org/ns/activitystreams",
|
8882
|
+
"https://w3id.org/security/data-integrity/v1",
|
8883
|
+
], { documentLoader: options.contextLoader });
|
8868
8884
|
}
|
8869
8885
|
/**
|
8870
8886
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -9138,7 +9154,7 @@ export class Endpoints {
|
|
9138
9154
|
if (options.expand) {
|
9139
9155
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
9140
9156
|
}
|
9141
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
9157
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
9142
9158
|
}
|
9143
9159
|
/**
|
9144
9160
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -9358,10 +9374,11 @@ export class Event extends Object {
|
|
9358
9374
|
if (options.expand) {
|
9359
9375
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
9360
9376
|
}
|
9361
|
-
return await jsonld.compact(values,
|
9362
|
-
|
9363
|
-
|
9364
|
-
|
9377
|
+
return await jsonld.compact(values, options.context ??
|
9378
|
+
[
|
9379
|
+
"https://www.w3.org/ns/activitystreams",
|
9380
|
+
"https://w3id.org/security/data-integrity/v1",
|
9381
|
+
], { documentLoader: options.contextLoader });
|
9365
9382
|
}
|
9366
9383
|
/**
|
9367
9384
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -9469,10 +9486,11 @@ export class Flag extends Activity {
|
|
9469
9486
|
if (options.expand) {
|
9470
9487
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
9471
9488
|
}
|
9472
|
-
return await jsonld.compact(values,
|
9473
|
-
|
9474
|
-
|
9475
|
-
|
9489
|
+
return await jsonld.compact(values, options.context ??
|
9490
|
+
[
|
9491
|
+
"https://www.w3.org/ns/activitystreams",
|
9492
|
+
"https://w3id.org/security/data-integrity/v1",
|
9493
|
+
], { documentLoader: options.contextLoader });
|
9476
9494
|
}
|
9477
9495
|
/**
|
9478
9496
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -9581,10 +9599,11 @@ export class Follow extends Activity {
|
|
9581
9599
|
if (options.expand) {
|
9582
9600
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
9583
9601
|
}
|
9584
|
-
return await jsonld.compact(values,
|
9585
|
-
|
9586
|
-
|
9587
|
-
|
9602
|
+
return await jsonld.compact(values, options.context ??
|
9603
|
+
[
|
9604
|
+
"https://www.w3.org/ns/activitystreams",
|
9605
|
+
"https://w3id.org/security/data-integrity/v1",
|
9606
|
+
], { documentLoader: options.contextLoader });
|
9588
9607
|
}
|
9589
9608
|
/**
|
9590
9609
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -10455,24 +10474,25 @@ export class Group extends Object {
|
|
10455
10474
|
if (options.expand) {
|
10456
10475
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
10457
10476
|
}
|
10458
|
-
return await jsonld.compact(values,
|
10459
|
-
|
10460
|
-
|
10461
|
-
|
10462
|
-
|
10463
|
-
|
10464
|
-
|
10465
|
-
|
10466
|
-
|
10467
|
-
|
10468
|
-
|
10469
|
-
|
10470
|
-
|
10471
|
-
|
10472
|
-
|
10473
|
-
|
10474
|
-
|
10475
|
-
|
10477
|
+
return await jsonld.compact(values, options.context ??
|
10478
|
+
[
|
10479
|
+
"https://www.w3.org/ns/activitystreams",
|
10480
|
+
"https://w3id.org/security/v1",
|
10481
|
+
"https://w3id.org/security/data-integrity/v1",
|
10482
|
+
"https://www.w3.org/ns/did/v1",
|
10483
|
+
"https://w3id.org/security/multikey/v1",
|
10484
|
+
{
|
10485
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
10486
|
+
"toot": "http://joinmastodon.org/ns#",
|
10487
|
+
"discoverable": "toot:discoverable",
|
10488
|
+
"suspended": "toot:suspended",
|
10489
|
+
"memorial": "toot:memorial",
|
10490
|
+
"indexable": "toot:indexable",
|
10491
|
+
"schema": "http://schema.org#",
|
10492
|
+
"PropertyValue": "schema:PropertyValue",
|
10493
|
+
"value": "schema:value",
|
10494
|
+
},
|
10495
|
+
], { documentLoader: options.contextLoader });
|
10476
10496
|
}
|
10477
10497
|
/**
|
10478
10498
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -11222,7 +11242,7 @@ export class Link {
|
|
11222
11242
|
if (options.expand) {
|
11223
11243
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
11224
11244
|
}
|
11225
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
11245
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
11226
11246
|
}
|
11227
11247
|
/**
|
11228
11248
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -11569,7 +11589,8 @@ export class Hashtag extends Link {
|
|
11569
11589
|
if (options.expand) {
|
11570
11590
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
11571
11591
|
}
|
11572
|
-
return await jsonld.compact(values,
|
11592
|
+
return await jsonld.compact(values, options.context ??
|
11593
|
+
["https://www.w3.org/ns/activitystreams", { "Hashtag": "as:Hashtag" }], { documentLoader: options.contextLoader });
|
11573
11594
|
}
|
11574
11595
|
/**
|
11575
11596
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -11675,7 +11696,7 @@ export class Image extends Document {
|
|
11675
11696
|
if (options.expand) {
|
11676
11697
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
11677
11698
|
}
|
11678
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
11699
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
11679
11700
|
}
|
11680
11701
|
/**
|
11681
11702
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -11785,10 +11806,11 @@ export class IntransitiveActivity extends Activity {
|
|
11785
11806
|
if (options.expand) {
|
11786
11807
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
11787
11808
|
}
|
11788
|
-
return await jsonld.compact(values,
|
11789
|
-
|
11790
|
-
|
11791
|
-
|
11809
|
+
return await jsonld.compact(values, options.context ??
|
11810
|
+
[
|
11811
|
+
"https://www.w3.org/ns/activitystreams",
|
11812
|
+
"https://w3id.org/security/data-integrity/v1",
|
11813
|
+
], { documentLoader: options.contextLoader });
|
11792
11814
|
}
|
11793
11815
|
/**
|
11794
11816
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -11895,10 +11917,11 @@ export class Like extends Activity {
|
|
11895
11917
|
if (options.expand) {
|
11896
11918
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
11897
11919
|
}
|
11898
|
-
return await jsonld.compact(values,
|
11899
|
-
|
11900
|
-
|
11901
|
-
|
11920
|
+
return await jsonld.compact(values, options.context ??
|
11921
|
+
[
|
11922
|
+
"https://www.w3.org/ns/activitystreams",
|
11923
|
+
"https://w3id.org/security/data-integrity/v1",
|
11924
|
+
], { documentLoader: options.contextLoader });
|
11902
11925
|
}
|
11903
11926
|
/**
|
11904
11927
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -12004,7 +12027,7 @@ export class Mention extends Link {
|
|
12004
12027
|
if (options.expand) {
|
12005
12028
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
12006
12029
|
}
|
12007
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12030
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12008
12031
|
}
|
12009
12032
|
/**
|
12010
12033
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -12111,16 +12134,17 @@ export class Note extends Object {
|
|
12111
12134
|
if (options.expand) {
|
12112
12135
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
12113
12136
|
}
|
12114
|
-
return await jsonld.compact(values,
|
12115
|
-
|
12116
|
-
|
12117
|
-
|
12118
|
-
|
12119
|
-
|
12120
|
-
|
12121
|
-
|
12122
|
-
|
12123
|
-
|
12137
|
+
return await jsonld.compact(values, options.context ??
|
12138
|
+
[
|
12139
|
+
"https://www.w3.org/ns/activitystreams",
|
12140
|
+
"https://w3id.org/security/data-integrity/v1",
|
12141
|
+
{
|
12142
|
+
"toot": "http://joinmastodon.org/ns#",
|
12143
|
+
"sensitive": "as:sensitive",
|
12144
|
+
"Emoji": "toot:Emoji",
|
12145
|
+
"Hashtag": "as:Hashtag",
|
12146
|
+
},
|
12147
|
+
], { documentLoader: options.contextLoader });
|
12124
12148
|
}
|
12125
12149
|
/**
|
12126
12150
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -12229,7 +12253,7 @@ export class OrderedCollection extends Collection {
|
|
12229
12253
|
if (options.expand) {
|
12230
12254
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
12231
12255
|
}
|
12232
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12256
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12233
12257
|
}
|
12234
12258
|
/**
|
12235
12259
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -12365,7 +12389,7 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
12365
12389
|
if (options.expand) {
|
12366
12390
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
12367
12391
|
}
|
12368
|
-
return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12392
|
+
return await jsonld.compact(values, options.context ?? "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
|
12369
12393
|
}
|
12370
12394
|
/**
|
12371
12395
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -13255,24 +13279,25 @@ export class Organization extends Object {
|
|
13255
13279
|
if (options.expand) {
|
13256
13280
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
13257
13281
|
}
|
13258
|
-
return await jsonld.compact(values,
|
13259
|
-
|
13260
|
-
|
13261
|
-
|
13262
|
-
|
13263
|
-
|
13264
|
-
|
13265
|
-
|
13266
|
-
|
13267
|
-
|
13268
|
-
|
13269
|
-
|
13270
|
-
|
13271
|
-
|
13272
|
-
|
13273
|
-
|
13274
|
-
|
13275
|
-
|
13282
|
+
return await jsonld.compact(values, options.context ??
|
13283
|
+
[
|
13284
|
+
"https://www.w3.org/ns/activitystreams",
|
13285
|
+
"https://w3id.org/security/v1",
|
13286
|
+
"https://w3id.org/security/data-integrity/v1",
|
13287
|
+
"https://www.w3.org/ns/did/v1",
|
13288
|
+
"https://w3id.org/security/multikey/v1",
|
13289
|
+
{
|
13290
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
13291
|
+
"toot": "http://joinmastodon.org/ns#",
|
13292
|
+
"discoverable": "toot:discoverable",
|
13293
|
+
"suspended": "toot:suspended",
|
13294
|
+
"memorial": "toot:memorial",
|
13295
|
+
"indexable": "toot:indexable",
|
13296
|
+
"schema": "http://schema.org#",
|
13297
|
+
"PropertyValue": "schema:PropertyValue",
|
13298
|
+
"value": "schema:value",
|
13299
|
+
},
|
13300
|
+
], { documentLoader: options.contextLoader });
|
13276
13301
|
}
|
13277
13302
|
/**
|
13278
13303
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -13716,10 +13741,11 @@ export class Page extends Document {
|
|
13716
13741
|
if (options.expand) {
|
13717
13742
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
13718
13743
|
}
|
13719
|
-
return await jsonld.compact(values,
|
13720
|
-
|
13721
|
-
|
13722
|
-
|
13744
|
+
return await jsonld.compact(values, options.context ??
|
13745
|
+
[
|
13746
|
+
"https://www.w3.org/ns/activitystreams",
|
13747
|
+
"https://w3id.org/security/data-integrity/v1",
|
13748
|
+
], { documentLoader: options.contextLoader });
|
13723
13749
|
}
|
13724
13750
|
/**
|
13725
13751
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -14590,24 +14616,25 @@ export class Person extends Object {
|
|
14590
14616
|
if (options.expand) {
|
14591
14617
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
14592
14618
|
}
|
14593
|
-
return await jsonld.compact(values,
|
14594
|
-
|
14595
|
-
|
14596
|
-
|
14597
|
-
|
14598
|
-
|
14599
|
-
|
14600
|
-
|
14601
|
-
|
14602
|
-
|
14603
|
-
|
14604
|
-
|
14605
|
-
|
14606
|
-
|
14607
|
-
|
14608
|
-
|
14609
|
-
|
14610
|
-
|
14619
|
+
return await jsonld.compact(values, options.context ??
|
14620
|
+
[
|
14621
|
+
"https://www.w3.org/ns/activitystreams",
|
14622
|
+
"https://w3id.org/security/v1",
|
14623
|
+
"https://w3id.org/security/data-integrity/v1",
|
14624
|
+
"https://www.w3.org/ns/did/v1",
|
14625
|
+
"https://w3id.org/security/multikey/v1",
|
14626
|
+
{
|
14627
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
14628
|
+
"toot": "http://joinmastodon.org/ns#",
|
14629
|
+
"discoverable": "toot:discoverable",
|
14630
|
+
"suspended": "toot:suspended",
|
14631
|
+
"memorial": "toot:memorial",
|
14632
|
+
"indexable": "toot:indexable",
|
14633
|
+
"schema": "http://schema.org#",
|
14634
|
+
"PropertyValue": "schema:PropertyValue",
|
14635
|
+
"value": "schema:value",
|
14636
|
+
},
|
14637
|
+
], { documentLoader: options.contextLoader });
|
14611
14638
|
}
|
14612
14639
|
/**
|
14613
14640
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -15211,10 +15238,11 @@ export class Place extends Object {
|
|
15211
15238
|
if (options.expand) {
|
15212
15239
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
15213
15240
|
}
|
15214
|
-
return await jsonld.compact(values,
|
15215
|
-
|
15216
|
-
|
15217
|
-
|
15241
|
+
return await jsonld.compact(values, options.context ??
|
15242
|
+
[
|
15243
|
+
"https://www.w3.org/ns/activitystreams",
|
15244
|
+
"https://w3id.org/security/data-integrity/v1",
|
15245
|
+
], { documentLoader: options.contextLoader });
|
15218
15246
|
}
|
15219
15247
|
/**
|
15220
15248
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -15501,10 +15529,11 @@ export class Profile extends Object {
|
|
15501
15529
|
if (options.expand) {
|
15502
15530
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
15503
15531
|
}
|
15504
|
-
return await jsonld.compact(values,
|
15505
|
-
|
15506
|
-
|
15507
|
-
|
15532
|
+
return await jsonld.compact(values, options.context ??
|
15533
|
+
[
|
15534
|
+
"https://www.w3.org/ns/activitystreams",
|
15535
|
+
"https://w3id.org/security/data-integrity/v1",
|
15536
|
+
], { documentLoader: options.contextLoader });
|
15508
15537
|
}
|
15509
15538
|
/**
|
15510
15539
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -15634,10 +15663,11 @@ export class Reject extends Activity {
|
|
15634
15663
|
if (options.expand) {
|
15635
15664
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
15636
15665
|
}
|
15637
|
-
return await jsonld.compact(values,
|
15638
|
-
|
15639
|
-
|
15640
|
-
|
15666
|
+
return await jsonld.compact(values, options.context ??
|
15667
|
+
[
|
15668
|
+
"https://www.w3.org/ns/activitystreams",
|
15669
|
+
"https://w3id.org/security/data-integrity/v1",
|
15670
|
+
], { documentLoader: options.contextLoader });
|
15641
15671
|
}
|
15642
15672
|
/**
|
15643
15673
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -16005,10 +16035,11 @@ export class Relationship extends Object {
|
|
16005
16035
|
if (options.expand) {
|
16006
16036
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
16007
16037
|
}
|
16008
|
-
return await jsonld.compact(values,
|
16009
|
-
|
16010
|
-
|
16011
|
-
|
16038
|
+
return await jsonld.compact(values, options.context ??
|
16039
|
+
[
|
16040
|
+
"https://www.w3.org/ns/activitystreams",
|
16041
|
+
"https://w3id.org/security/data-integrity/v1",
|
16042
|
+
], { documentLoader: options.contextLoader });
|
16012
16043
|
}
|
16013
16044
|
/**
|
16014
16045
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -16195,10 +16226,11 @@ export class Remove extends Activity {
|
|
16195
16226
|
if (options.expand) {
|
16196
16227
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
16197
16228
|
}
|
16198
|
-
return await jsonld.compact(values,
|
16199
|
-
|
16200
|
-
|
16201
|
-
|
16229
|
+
return await jsonld.compact(values, options.context ??
|
16230
|
+
[
|
16231
|
+
"https://www.w3.org/ns/activitystreams",
|
16232
|
+
"https://w3id.org/security/data-integrity/v1",
|
16233
|
+
], { documentLoader: options.contextLoader });
|
16202
16234
|
}
|
16203
16235
|
/**
|
16204
16236
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -17069,24 +17101,25 @@ export class Service extends Object {
|
|
17069
17101
|
if (options.expand) {
|
17070
17102
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
17071
17103
|
}
|
17072
|
-
return await jsonld.compact(values,
|
17073
|
-
|
17074
|
-
|
17075
|
-
|
17076
|
-
|
17077
|
-
|
17078
|
-
|
17079
|
-
|
17080
|
-
|
17081
|
-
|
17082
|
-
|
17083
|
-
|
17084
|
-
|
17085
|
-
|
17086
|
-
|
17087
|
-
|
17088
|
-
|
17089
|
-
|
17104
|
+
return await jsonld.compact(values, options.context ??
|
17105
|
+
[
|
17106
|
+
"https://www.w3.org/ns/activitystreams",
|
17107
|
+
"https://w3id.org/security/v1",
|
17108
|
+
"https://w3id.org/security/data-integrity/v1",
|
17109
|
+
"https://www.w3.org/ns/did/v1",
|
17110
|
+
"https://w3id.org/security/multikey/v1",
|
17111
|
+
{
|
17112
|
+
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
17113
|
+
"toot": "http://joinmastodon.org/ns#",
|
17114
|
+
"discoverable": "toot:discoverable",
|
17115
|
+
"suspended": "toot:suspended",
|
17116
|
+
"memorial": "toot:memorial",
|
17117
|
+
"indexable": "toot:indexable",
|
17118
|
+
"schema": "http://schema.org#",
|
17119
|
+
"PropertyValue": "schema:PropertyValue",
|
17120
|
+
"value": "schema:value",
|
17121
|
+
},
|
17122
|
+
], { documentLoader: options.contextLoader });
|
17090
17123
|
}
|
17091
17124
|
/**
|
17092
17125
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -17558,10 +17591,11 @@ export class Tombstone extends Object {
|
|
17558
17591
|
if (options.expand) {
|
17559
17592
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
17560
17593
|
}
|
17561
|
-
return await jsonld.compact(values,
|
17562
|
-
|
17563
|
-
|
17564
|
-
|
17594
|
+
return await jsonld.compact(values, options.context ??
|
17595
|
+
[
|
17596
|
+
"https://www.w3.org/ns/activitystreams",
|
17597
|
+
"https://w3id.org/security/data-integrity/v1",
|
17598
|
+
], { documentLoader: options.contextLoader });
|
17565
17599
|
}
|
17566
17600
|
/**
|
17567
17601
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -17691,10 +17725,11 @@ export class Undo extends Activity {
|
|
17691
17725
|
if (options.expand) {
|
17692
17726
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
17693
17727
|
}
|
17694
|
-
return await jsonld.compact(values,
|
17695
|
-
|
17696
|
-
|
17697
|
-
|
17728
|
+
return await jsonld.compact(values, options.context ??
|
17729
|
+
[
|
17730
|
+
"https://www.w3.org/ns/activitystreams",
|
17731
|
+
"https://w3id.org/security/data-integrity/v1",
|
17732
|
+
], { documentLoader: options.contextLoader });
|
17698
17733
|
}
|
17699
17734
|
/**
|
17700
17735
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -17804,16 +17839,17 @@ export class Update extends Activity {
|
|
17804
17839
|
if (options.expand) {
|
17805
17840
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
17806
17841
|
}
|
17807
|
-
return await jsonld.compact(values,
|
17808
|
-
|
17809
|
-
|
17810
|
-
|
17811
|
-
|
17812
|
-
|
17813
|
-
|
17814
|
-
|
17815
|
-
|
17816
|
-
|
17842
|
+
return await jsonld.compact(values, options.context ??
|
17843
|
+
[
|
17844
|
+
"https://www.w3.org/ns/activitystreams",
|
17845
|
+
"https://w3id.org/security/data-integrity/v1",
|
17846
|
+
{
|
17847
|
+
"toot": "http://joinmastodon.org/ns#",
|
17848
|
+
"sensitive": "as:sensitive",
|
17849
|
+
"Emoji": "toot:Emoji",
|
17850
|
+
"Hashtag": "as:Hashtag",
|
17851
|
+
},
|
17852
|
+
], { documentLoader: options.contextLoader });
|
17817
17853
|
}
|
17818
17854
|
/**
|
17819
17855
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -17919,10 +17955,11 @@ export class Video extends Document {
|
|
17919
17955
|
if (options.expand) {
|
17920
17956
|
return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
17921
17957
|
}
|
17922
|
-
return await jsonld.compact(values,
|
17923
|
-
|
17924
|
-
|
17925
|
-
|
17958
|
+
return await jsonld.compact(values, options.context ??
|
17959
|
+
[
|
17960
|
+
"https://www.w3.org/ns/activitystreams",
|
17961
|
+
"https://w3id.org/security/data-integrity/v1",
|
17962
|
+
], { documentLoader: options.contextLoader });
|
17926
17963
|
}
|
17927
17964
|
/**
|
17928
17965
|
* Converts a JSON-LD structure to an object of this type.
|