@fedify/fedify 0.15.1 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +27 -0
- package/esm/runtime/contexts.js +10 -0
- package/esm/vocab/vocab.js +289 -87
- package/esm/webfinger/handler.js +1 -1
- package/package.json +1 -1
- package/types/runtime/contexts.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +63 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/esm/vocab/vocab.js
CHANGED
@@ -2805,15 +2805,7 @@ export class Object {
|
|
2805
2805
|
...options,
|
2806
2806
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
2807
2807
|
};
|
2808
|
-
if (options.format == null &&
|
2809
|
-
(this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content == null ||
|
2810
|
-
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.length < 1) &&
|
2811
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name == null ||
|
2812
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length < 1) &&
|
2813
|
-
(this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary == null ||
|
2814
|
-
this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.length < 1) &&
|
2815
|
-
(this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof == null ||
|
2816
|
-
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.length < 1)) {
|
2808
|
+
if (options.format == null && this.isCompactable()) {
|
2817
2809
|
const result = {};
|
2818
2810
|
// deno-lint-ignore no-unused-vars
|
2819
2811
|
let compactItems;
|
@@ -3663,6 +3655,21 @@ export class Object {
|
|
3663
3655
|
}
|
3664
3656
|
return compacted;
|
3665
3657
|
}
|
3658
|
+
isCompactable() {
|
3659
|
+
if (this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content != null &&
|
3660
|
+
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.length > 0)
|
3661
|
+
return false;
|
3662
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name != null &&
|
3663
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0)
|
3664
|
+
return false;
|
3665
|
+
if (this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary != null &&
|
3666
|
+
this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.length > 0)
|
3667
|
+
return false;
|
3668
|
+
if (this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof != null &&
|
3669
|
+
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.length > 0)
|
3670
|
+
return false;
|
3671
|
+
return true;
|
3672
|
+
}
|
3666
3673
|
/**
|
3667
3674
|
* Converts a JSON-LD structure to an object of this type.
|
3668
3675
|
* @param json The JSON-LD structure to convert.
|
@@ -5428,7 +5435,7 @@ export class Emoji extends Object {
|
|
5428
5435
|
...options,
|
5429
5436
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5430
5437
|
};
|
5431
|
-
if (options.format == null) {
|
5438
|
+
if (options.format == null && this.isCompactable()) {
|
5432
5439
|
const result = await super.toJsonLd({
|
5433
5440
|
...options,
|
5434
5441
|
format: undefined,
|
@@ -5481,6 +5488,9 @@ export class Emoji extends Object {
|
|
5481
5488
|
}
|
5482
5489
|
return compacted;
|
5483
5490
|
}
|
5491
|
+
isCompactable() {
|
5492
|
+
return super.isCompactable();
|
5493
|
+
}
|
5484
5494
|
/**
|
5485
5495
|
* Converts a JSON-LD structure to an object of this type.
|
5486
5496
|
* @param json The JSON-LD structure to convert.
|
@@ -5642,7 +5652,7 @@ export class ChatMessage extends Object {
|
|
5642
5652
|
...options,
|
5643
5653
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5644
5654
|
};
|
5645
|
-
if (options.format == null) {
|
5655
|
+
if (options.format == null && this.isCompactable()) {
|
5646
5656
|
const result = await super.toJsonLd({
|
5647
5657
|
...options,
|
5648
5658
|
format: undefined,
|
@@ -5742,6 +5752,9 @@ export class ChatMessage extends Object {
|
|
5742
5752
|
}
|
5743
5753
|
return compacted;
|
5744
5754
|
}
|
5755
|
+
isCompactable() {
|
5756
|
+
return super.isCompactable();
|
5757
|
+
}
|
5745
5758
|
/**
|
5746
5759
|
* Converts a JSON-LD structure to an object of this type.
|
5747
5760
|
* @param json The JSON-LD structure to convert.
|
@@ -5975,11 +5988,7 @@ export class PropertyValue {
|
|
5975
5988
|
...options,
|
5976
5989
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5977
5990
|
};
|
5978
|
-
if (options.format == null &&
|
5979
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name == null ||
|
5980
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length < 1) &&
|
5981
|
-
(this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value == null ||
|
5982
|
-
this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.length < 1)) {
|
5991
|
+
if (options.format == null && this.isCompactable()) {
|
5983
5992
|
const result = {};
|
5984
5993
|
// deno-lint-ignore no-unused-vars
|
5985
5994
|
let compactItems;
|
@@ -6064,6 +6073,15 @@ export class PropertyValue {
|
|
6064
6073
|
}
|
6065
6074
|
return compacted;
|
6066
6075
|
}
|
6076
|
+
isCompactable() {
|
6077
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name != null &&
|
6078
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0)
|
6079
|
+
return false;
|
6080
|
+
if (this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value != null &&
|
6081
|
+
this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.length > 0)
|
6082
|
+
return false;
|
6083
|
+
return true;
|
6084
|
+
}
|
6067
6085
|
/**
|
6068
6086
|
* Converts a JSON-LD structure to an object of this type.
|
6069
6087
|
* @param json The JSON-LD structure to convert.
|
@@ -6571,6 +6589,9 @@ export class DataIntegrityProof {
|
|
6571
6589
|
}
|
6572
6590
|
return compacted;
|
6573
6591
|
}
|
6592
|
+
isCompactable() {
|
6593
|
+
return true;
|
6594
|
+
}
|
6574
6595
|
/**
|
6575
6596
|
* Converts a JSON-LD structure to an object of this type.
|
6576
6597
|
* @param json The JSON-LD structure to convert.
|
@@ -6995,7 +7016,7 @@ export class CryptographicKey {
|
|
6995
7016
|
...options,
|
6996
7017
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
6997
7018
|
};
|
6998
|
-
if (options.format == null) {
|
7019
|
+
if (options.format == null && this.isCompactable()) {
|
6999
7020
|
const result = {};
|
7000
7021
|
// deno-lint-ignore no-unused-vars
|
7001
7022
|
let compactItems;
|
@@ -7100,6 +7121,9 @@ export class CryptographicKey {
|
|
7100
7121
|
}
|
7101
7122
|
return compacted;
|
7102
7123
|
}
|
7124
|
+
isCompactable() {
|
7125
|
+
return true;
|
7126
|
+
}
|
7103
7127
|
/**
|
7104
7128
|
* Converts a JSON-LD structure to an object of this type.
|
7105
7129
|
* @param json The JSON-LD structure to convert.
|
@@ -7480,7 +7504,7 @@ export class Multikey {
|
|
7480
7504
|
...options,
|
7481
7505
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
7482
7506
|
};
|
7483
|
-
if (options.format == null) {
|
7507
|
+
if (options.format == null && this.isCompactable()) {
|
7484
7508
|
const result = {};
|
7485
7509
|
// deno-lint-ignore no-unused-vars
|
7486
7510
|
let compactItems;
|
@@ -7588,6 +7612,9 @@ export class Multikey {
|
|
7588
7612
|
}
|
7589
7613
|
return compacted;
|
7590
7614
|
}
|
7615
|
+
isCompactable() {
|
7616
|
+
return true;
|
7617
|
+
}
|
7591
7618
|
/**
|
7592
7619
|
* Converts a JSON-LD structure to an object of this type.
|
7593
7620
|
* @param json The JSON-LD structure to convert.
|
@@ -8674,7 +8701,7 @@ export class Activity extends Object {
|
|
8674
8701
|
...options,
|
8675
8702
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
8676
8703
|
};
|
8677
|
-
if (options.format == null) {
|
8704
|
+
if (options.format == null && this.isCompactable()) {
|
8678
8705
|
const result = await super.toJsonLd({
|
8679
8706
|
...options,
|
8680
8707
|
format: undefined,
|
@@ -8913,6 +8940,9 @@ export class Activity extends Object {
|
|
8913
8940
|
}
|
8914
8941
|
return compacted;
|
8915
8942
|
}
|
8943
|
+
isCompactable() {
|
8944
|
+
return super.isCompactable();
|
8945
|
+
}
|
8916
8946
|
/**
|
8917
8947
|
* Converts a JSON-LD structure to an object of this type.
|
8918
8948
|
* @param json The JSON-LD structure to convert.
|
@@ -9359,7 +9389,7 @@ export class Accept extends Activity {
|
|
9359
9389
|
...options,
|
9360
9390
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9361
9391
|
};
|
9362
|
-
if (options.format == null) {
|
9392
|
+
if (options.format == null && this.isCompactable()) {
|
9363
9393
|
const result = await super.toJsonLd({
|
9364
9394
|
...options,
|
9365
9395
|
format: undefined,
|
@@ -9412,6 +9442,9 @@ export class Accept extends Activity {
|
|
9412
9442
|
}
|
9413
9443
|
return compacted;
|
9414
9444
|
}
|
9445
|
+
isCompactable() {
|
9446
|
+
return super.isCompactable();
|
9447
|
+
}
|
9415
9448
|
/**
|
9416
9449
|
* Converts a JSON-LD structure to an object of this type.
|
9417
9450
|
* @param json The JSON-LD structure to convert.
|
@@ -9536,7 +9569,7 @@ export class Add extends Activity {
|
|
9536
9569
|
...options,
|
9537
9570
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9538
9571
|
};
|
9539
|
-
if (options.format == null) {
|
9572
|
+
if (options.format == null && this.isCompactable()) {
|
9540
9573
|
const result = await super.toJsonLd({
|
9541
9574
|
...options,
|
9542
9575
|
format: undefined,
|
@@ -9589,6 +9622,9 @@ export class Add extends Activity {
|
|
9589
9622
|
}
|
9590
9623
|
return compacted;
|
9591
9624
|
}
|
9625
|
+
isCompactable() {
|
9626
|
+
return super.isCompactable();
|
9627
|
+
}
|
9592
9628
|
/**
|
9593
9629
|
* Converts a JSON-LD structure to an object of this type.
|
9594
9630
|
* @param json The JSON-LD structure to convert.
|
@@ -9709,7 +9745,7 @@ export class Announce extends Activity {
|
|
9709
9745
|
...options,
|
9710
9746
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9711
9747
|
};
|
9712
|
-
if (options.format == null) {
|
9748
|
+
if (options.format == null && this.isCompactable()) {
|
9713
9749
|
const result = await super.toJsonLd({
|
9714
9750
|
...options,
|
9715
9751
|
format: undefined,
|
@@ -9786,6 +9822,9 @@ export class Announce extends Activity {
|
|
9786
9822
|
}
|
9787
9823
|
return compacted;
|
9788
9824
|
}
|
9825
|
+
isCompactable() {
|
9826
|
+
return super.isCompactable();
|
9827
|
+
}
|
9789
9828
|
/**
|
9790
9829
|
* Converts a JSON-LD structure to an object of this type.
|
9791
9830
|
* @param json The JSON-LD structure to convert.
|
@@ -11335,9 +11374,7 @@ export class Application extends Object {
|
|
11335
11374
|
...options,
|
11336
11375
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
11337
11376
|
};
|
11338
|
-
if (options.format == null &&
|
11339
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername == null ||
|
11340
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length < 1)) {
|
11377
|
+
if (options.format == null && this.isCompactable()) {
|
11341
11378
|
const result = await super.toJsonLd({
|
11342
11379
|
...options,
|
11343
11380
|
format: undefined,
|
@@ -11875,6 +11912,12 @@ export class Application extends Object {
|
|
11875
11912
|
}
|
11876
11913
|
return compacted;
|
11877
11914
|
}
|
11915
|
+
isCompactable() {
|
11916
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null &&
|
11917
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0)
|
11918
|
+
return false;
|
11919
|
+
return super.isCompactable();
|
11920
|
+
}
|
11878
11921
|
/**
|
11879
11922
|
* Converts a JSON-LD structure to an object of this type.
|
11880
11923
|
* @param json The JSON-LD structure to convert.
|
@@ -12579,7 +12622,7 @@ export class IntransitiveActivity extends Activity {
|
|
12579
12622
|
...options,
|
12580
12623
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
12581
12624
|
};
|
12582
|
-
if (options.format == null) {
|
12625
|
+
if (options.format == null && this.isCompactable()) {
|
12583
12626
|
const result = await super.toJsonLd({
|
12584
12627
|
...options,
|
12585
12628
|
format: undefined,
|
@@ -12634,6 +12677,9 @@ export class IntransitiveActivity extends Activity {
|
|
12634
12677
|
}
|
12635
12678
|
return compacted;
|
12636
12679
|
}
|
12680
|
+
isCompactable() {
|
12681
|
+
return super.isCompactable();
|
12682
|
+
}
|
12637
12683
|
/**
|
12638
12684
|
* Converts a JSON-LD structure to an object of this type.
|
12639
12685
|
* @param json The JSON-LD structure to convert.
|
@@ -12799,6 +12845,9 @@ export class Arrive extends IntransitiveActivity {
|
|
12799
12845
|
}
|
12800
12846
|
return compacted;
|
12801
12847
|
}
|
12848
|
+
isCompactable() {
|
12849
|
+
return super.isCompactable();
|
12850
|
+
}
|
12802
12851
|
/**
|
12803
12852
|
* Converts a JSON-LD structure to an object of this type.
|
12804
12853
|
* @param json The JSON-LD structure to convert.
|
@@ -12956,7 +13005,7 @@ export class Article extends Object {
|
|
12956
13005
|
...options,
|
12957
13006
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
12958
13007
|
};
|
12959
|
-
if (options.format == null) {
|
13008
|
+
if (options.format == null && this.isCompactable()) {
|
12960
13009
|
const result = await super.toJsonLd({
|
12961
13010
|
...options,
|
12962
13011
|
format: undefined,
|
@@ -13058,6 +13107,9 @@ export class Article extends Object {
|
|
13058
13107
|
}
|
13059
13108
|
return compacted;
|
13060
13109
|
}
|
13110
|
+
isCompactable() {
|
13111
|
+
return super.isCompactable();
|
13112
|
+
}
|
13061
13113
|
/**
|
13062
13114
|
* Converts a JSON-LD structure to an object of this type.
|
13063
13115
|
* @param json The JSON-LD structure to convert.
|
@@ -13278,7 +13330,7 @@ export class Document extends Object {
|
|
13278
13330
|
...options,
|
13279
13331
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13280
13332
|
};
|
13281
|
-
if (options.format == null) {
|
13333
|
+
if (options.format == null && this.isCompactable()) {
|
13282
13334
|
const result = await super.toJsonLd({
|
13283
13335
|
...options,
|
13284
13336
|
format: undefined,
|
@@ -13375,6 +13427,9 @@ export class Document extends Object {
|
|
13375
13427
|
}
|
13376
13428
|
return compacted;
|
13377
13429
|
}
|
13430
|
+
isCompactable() {
|
13431
|
+
return super.isCompactable();
|
13432
|
+
}
|
13378
13433
|
/**
|
13379
13434
|
* Converts a JSON-LD structure to an object of this type.
|
13380
13435
|
* @param json The JSON-LD structure to convert.
|
@@ -13557,7 +13612,7 @@ export class Audio extends Document {
|
|
13557
13612
|
...options,
|
13558
13613
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13559
13614
|
};
|
13560
|
-
if (options.format == null) {
|
13615
|
+
if (options.format == null && this.isCompactable()) {
|
13561
13616
|
const result = await super.toJsonLd({
|
13562
13617
|
...options,
|
13563
13618
|
format: undefined,
|
@@ -13610,6 +13665,9 @@ export class Audio extends Document {
|
|
13610
13665
|
}
|
13611
13666
|
return compacted;
|
13612
13667
|
}
|
13668
|
+
isCompactable() {
|
13669
|
+
return super.isCompactable();
|
13670
|
+
}
|
13613
13671
|
/**
|
13614
13672
|
* Converts a JSON-LD structure to an object of this type.
|
13615
13673
|
* @param json The JSON-LD structure to convert.
|
@@ -13729,7 +13787,7 @@ export class Ignore extends Activity {
|
|
13729
13787
|
...options,
|
13730
13788
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13731
13789
|
};
|
13732
|
-
if (options.format == null) {
|
13790
|
+
if (options.format == null && this.isCompactable()) {
|
13733
13791
|
const result = await super.toJsonLd({
|
13734
13792
|
...options,
|
13735
13793
|
format: undefined,
|
@@ -13782,6 +13840,9 @@ export class Ignore extends Activity {
|
|
13782
13840
|
}
|
13783
13841
|
return compacted;
|
13784
13842
|
}
|
13843
|
+
isCompactable() {
|
13844
|
+
return super.isCompactable();
|
13845
|
+
}
|
13785
13846
|
/**
|
13786
13847
|
* Converts a JSON-LD structure to an object of this type.
|
13787
13848
|
* @param json The JSON-LD structure to convert.
|
@@ -13906,7 +13967,7 @@ export class Block extends Ignore {
|
|
13906
13967
|
...options,
|
13907
13968
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13908
13969
|
};
|
13909
|
-
if (options.format == null) {
|
13970
|
+
if (options.format == null && this.isCompactable()) {
|
13910
13971
|
const result = await super.toJsonLd({
|
13911
13972
|
...options,
|
13912
13973
|
format: undefined,
|
@@ -13959,6 +14020,9 @@ export class Block extends Ignore {
|
|
13959
14020
|
}
|
13960
14021
|
return compacted;
|
13961
14022
|
}
|
14023
|
+
isCompactable() {
|
14024
|
+
return super.isCompactable();
|
14025
|
+
}
|
13962
14026
|
/**
|
13963
14027
|
* Converts a JSON-LD structure to an object of this type.
|
13964
14028
|
* @param json The JSON-LD structure to convert.
|
@@ -14442,7 +14506,7 @@ export class Collection extends Object {
|
|
14442
14506
|
...options,
|
14443
14507
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
14444
14508
|
};
|
14445
|
-
if (options.format == null) {
|
14509
|
+
if (options.format == null && this.isCompactable()) {
|
14446
14510
|
const result = await super.toJsonLd({
|
14447
14511
|
...options,
|
14448
14512
|
format: undefined,
|
@@ -14639,6 +14703,9 @@ export class Collection extends Object {
|
|
14639
14703
|
}
|
14640
14704
|
return compacted;
|
14641
14705
|
}
|
14706
|
+
isCompactable() {
|
14707
|
+
return super.isCompactable();
|
14708
|
+
}
|
14642
14709
|
/**
|
14643
14710
|
* Converts a JSON-LD structure to an object of this type.
|
14644
14711
|
* @param json The JSON-LD structure to convert.
|
@@ -15225,7 +15292,7 @@ export class CollectionPage extends Collection {
|
|
15225
15292
|
...options,
|
15226
15293
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15227
15294
|
};
|
15228
|
-
if (options.format == null) {
|
15295
|
+
if (options.format == null && this.isCompactable()) {
|
15229
15296
|
const result = await super.toJsonLd({
|
15230
15297
|
...options,
|
15231
15298
|
format: undefined,
|
@@ -15365,6 +15432,9 @@ export class CollectionPage extends Collection {
|
|
15365
15432
|
}
|
15366
15433
|
return compacted;
|
15367
15434
|
}
|
15435
|
+
isCompactable() {
|
15436
|
+
return super.isCompactable();
|
15437
|
+
}
|
15368
15438
|
/**
|
15369
15439
|
* Converts a JSON-LD structure to an object of this type.
|
15370
15440
|
* @param json The JSON-LD structure to convert.
|
@@ -15580,7 +15650,7 @@ export class Create extends Activity {
|
|
15580
15650
|
...options,
|
15581
15651
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15582
15652
|
};
|
15583
|
-
if (options.format == null) {
|
15653
|
+
if (options.format == null && this.isCompactable()) {
|
15584
15654
|
const result = await super.toJsonLd({
|
15585
15655
|
...options,
|
15586
15656
|
format: undefined,
|
@@ -15659,6 +15729,9 @@ export class Create extends Activity {
|
|
15659
15729
|
}
|
15660
15730
|
return compacted;
|
15661
15731
|
}
|
15732
|
+
isCompactable() {
|
15733
|
+
return super.isCompactable();
|
15734
|
+
}
|
15662
15735
|
/**
|
15663
15736
|
* Converts a JSON-LD structure to an object of this type.
|
15664
15737
|
* @param json The JSON-LD structure to convert.
|
@@ -15778,7 +15851,7 @@ export class Delete extends Activity {
|
|
15778
15851
|
...options,
|
15779
15852
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15780
15853
|
};
|
15781
|
-
if (options.format == null) {
|
15854
|
+
if (options.format == null && this.isCompactable()) {
|
15782
15855
|
const result = await super.toJsonLd({
|
15783
15856
|
...options,
|
15784
15857
|
format: undefined,
|
@@ -15857,6 +15930,9 @@ export class Delete extends Activity {
|
|
15857
15930
|
}
|
15858
15931
|
return compacted;
|
15859
15932
|
}
|
15933
|
+
isCompactable() {
|
15934
|
+
return super.isCompactable();
|
15935
|
+
}
|
15860
15936
|
/**
|
15861
15937
|
* Converts a JSON-LD structure to an object of this type.
|
15862
15938
|
* @param json The JSON-LD structure to convert.
|
@@ -15975,7 +16051,7 @@ export class Dislike extends Activity {
|
|
15975
16051
|
...options,
|
15976
16052
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15977
16053
|
};
|
15978
|
-
if (options.format == null) {
|
16054
|
+
if (options.format == null && this.isCompactable()) {
|
15979
16055
|
const result = await super.toJsonLd({
|
15980
16056
|
...options,
|
15981
16057
|
format: undefined,
|
@@ -16028,6 +16104,9 @@ export class Dislike extends Activity {
|
|
16028
16104
|
}
|
16029
16105
|
return compacted;
|
16030
16106
|
}
|
16107
|
+
isCompactable() {
|
16108
|
+
return super.isCompactable();
|
16109
|
+
}
|
16031
16110
|
/**
|
16032
16111
|
* Converts a JSON-LD structure to an object of this type.
|
16033
16112
|
* @param json The JSON-LD structure to convert.
|
@@ -16387,7 +16466,7 @@ export class Endpoints {
|
|
16387
16466
|
...options,
|
16388
16467
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16389
16468
|
};
|
16390
|
-
if (options.format == null) {
|
16469
|
+
if (options.format == null && this.isCompactable()) {
|
16391
16470
|
const result = {};
|
16392
16471
|
// deno-lint-ignore no-unused-vars
|
16393
16472
|
let compactItems;
|
@@ -16531,6 +16610,9 @@ export class Endpoints {
|
|
16531
16610
|
}
|
16532
16611
|
return compacted;
|
16533
16612
|
}
|
16613
|
+
isCompactable() {
|
16614
|
+
return true;
|
16615
|
+
}
|
16534
16616
|
/**
|
16535
16617
|
* Converts a JSON-LD structure to an object of this type.
|
16536
16618
|
* @param json The JSON-LD structure to convert.
|
@@ -16808,7 +16890,7 @@ export class Event extends Object {
|
|
16808
16890
|
...options,
|
16809
16891
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16810
16892
|
};
|
16811
|
-
if (options.format == null) {
|
16893
|
+
if (options.format == null && this.isCompactable()) {
|
16812
16894
|
const result = await super.toJsonLd({
|
16813
16895
|
...options,
|
16814
16896
|
format: undefined,
|
@@ -16861,6 +16943,9 @@ export class Event extends Object {
|
|
16861
16943
|
}
|
16862
16944
|
return compacted;
|
16863
16945
|
}
|
16946
|
+
isCompactable() {
|
16947
|
+
return super.isCompactable();
|
16948
|
+
}
|
16864
16949
|
/**
|
16865
16950
|
* Converts a JSON-LD structure to an object of this type.
|
16866
16951
|
* @param json The JSON-LD structure to convert.
|
@@ -16981,7 +17066,7 @@ export class Flag extends Activity {
|
|
16981
17066
|
...options,
|
16982
17067
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16983
17068
|
};
|
16984
|
-
if (options.format == null) {
|
17069
|
+
if (options.format == null && this.isCompactable()) {
|
16985
17070
|
const result = await super.toJsonLd({
|
16986
17071
|
...options,
|
16987
17072
|
format: undefined,
|
@@ -17034,6 +17119,9 @@ export class Flag extends Activity {
|
|
17034
17119
|
}
|
17035
17120
|
return compacted;
|
17036
17121
|
}
|
17122
|
+
isCompactable() {
|
17123
|
+
return super.isCompactable();
|
17124
|
+
}
|
17037
17125
|
/**
|
17038
17126
|
* Converts a JSON-LD structure to an object of this type.
|
17039
17127
|
* @param json The JSON-LD structure to convert.
|
@@ -17155,7 +17243,7 @@ export class Follow extends Activity {
|
|
17155
17243
|
...options,
|
17156
17244
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
17157
17245
|
};
|
17158
|
-
if (options.format == null) {
|
17246
|
+
if (options.format == null && this.isCompactable()) {
|
17159
17247
|
const result = await super.toJsonLd({
|
17160
17248
|
...options,
|
17161
17249
|
format: undefined,
|
@@ -17208,6 +17296,9 @@ export class Follow extends Activity {
|
|
17208
17296
|
}
|
17209
17297
|
return compacted;
|
17210
17298
|
}
|
17299
|
+
isCompactable() {
|
17300
|
+
return super.isCompactable();
|
17301
|
+
}
|
17211
17302
|
/**
|
17212
17303
|
* Converts a JSON-LD structure to an object of this type.
|
17213
17304
|
* @param json The JSON-LD structure to convert.
|
@@ -18757,9 +18848,7 @@ export class Group extends Object {
|
|
18757
18848
|
...options,
|
18758
18849
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
18759
18850
|
};
|
18760
|
-
if (options.format == null &&
|
18761
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername == null ||
|
18762
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length < 1)) {
|
18851
|
+
if (options.format == null && this.isCompactable()) {
|
18763
18852
|
const result = await super.toJsonLd({
|
18764
18853
|
...options,
|
18765
18854
|
format: undefined,
|
@@ -19297,6 +19386,12 @@ export class Group extends Object {
|
|
19297
19386
|
}
|
19298
19387
|
return compacted;
|
19299
19388
|
}
|
19389
|
+
isCompactable() {
|
19390
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null &&
|
19391
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0)
|
19392
|
+
return false;
|
19393
|
+
return super.isCompactable();
|
19394
|
+
}
|
19300
19395
|
/**
|
19301
19396
|
* Converts a JSON-LD structure to an object of this type.
|
19302
19397
|
* @param json The JSON-LD structure to convert.
|
@@ -20416,9 +20511,7 @@ export class Link {
|
|
20416
20511
|
...options,
|
20417
20512
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
20418
20513
|
};
|
20419
|
-
if (options.format == null &&
|
20420
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name == null ||
|
20421
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length < 1)) {
|
20514
|
+
if (options.format == null && this.isCompactable()) {
|
20422
20515
|
const result = {};
|
20423
20516
|
// deno-lint-ignore no-unused-vars
|
20424
20517
|
let compactItems;
|
@@ -20625,6 +20718,12 @@ export class Link {
|
|
20625
20718
|
}
|
20626
20719
|
return compacted;
|
20627
20720
|
}
|
20721
|
+
isCompactable() {
|
20722
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name != null &&
|
20723
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0)
|
20724
|
+
return false;
|
20725
|
+
return true;
|
20726
|
+
}
|
20628
20727
|
/**
|
20629
20728
|
* Converts a JSON-LD structure to an object of this type.
|
20630
20729
|
* @param json The JSON-LD structure to convert.
|
@@ -21055,7 +21154,7 @@ export class Hashtag extends Link {
|
|
21055
21154
|
...options,
|
21056
21155
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21057
21156
|
};
|
21058
|
-
if (options.format == null) {
|
21157
|
+
if (options.format == null && this.isCompactable()) {
|
21059
21158
|
const result = await super.toJsonLd({
|
21060
21159
|
...options,
|
21061
21160
|
format: undefined,
|
@@ -21093,6 +21192,9 @@ export class Hashtag extends Link {
|
|
21093
21192
|
}
|
21094
21193
|
return compacted;
|
21095
21194
|
}
|
21195
|
+
isCompactable() {
|
21196
|
+
return super.isCompactable();
|
21197
|
+
}
|
21096
21198
|
/**
|
21097
21199
|
* Converts a JSON-LD structure to an object of this type.
|
21098
21200
|
* @param json The JSON-LD structure to convert.
|
@@ -21211,7 +21313,7 @@ export class Image extends Document {
|
|
21211
21313
|
...options,
|
21212
21314
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21213
21315
|
};
|
21214
|
-
if (options.format == null) {
|
21316
|
+
if (options.format == null && this.isCompactable()) {
|
21215
21317
|
const result = await super.toJsonLd({
|
21216
21318
|
...options,
|
21217
21319
|
format: undefined,
|
@@ -21258,6 +21360,9 @@ export class Image extends Document {
|
|
21258
21360
|
}
|
21259
21361
|
return compacted;
|
21260
21362
|
}
|
21363
|
+
isCompactable() {
|
21364
|
+
return super.isCompactable();
|
21365
|
+
}
|
21261
21366
|
/**
|
21262
21367
|
* Converts a JSON-LD structure to an object of this type.
|
21263
21368
|
* @param json The JSON-LD structure to convert.
|
@@ -21378,7 +21483,7 @@ export class Offer extends Activity {
|
|
21378
21483
|
...options,
|
21379
21484
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21380
21485
|
};
|
21381
|
-
if (options.format == null) {
|
21486
|
+
if (options.format == null && this.isCompactable()) {
|
21382
21487
|
const result = await super.toJsonLd({
|
21383
21488
|
...options,
|
21384
21489
|
format: undefined,
|
@@ -21431,6 +21536,9 @@ export class Offer extends Activity {
|
|
21431
21536
|
}
|
21432
21537
|
return compacted;
|
21433
21538
|
}
|
21539
|
+
isCompactable() {
|
21540
|
+
return super.isCompactable();
|
21541
|
+
}
|
21434
21542
|
/**
|
21435
21543
|
* Converts a JSON-LD structure to an object of this type.
|
21436
21544
|
* @param json The JSON-LD structure to convert.
|
@@ -21553,7 +21661,7 @@ export class Invite extends Offer {
|
|
21553
21661
|
...options,
|
21554
21662
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21555
21663
|
};
|
21556
|
-
if (options.format == null) {
|
21664
|
+
if (options.format == null && this.isCompactable()) {
|
21557
21665
|
const result = await super.toJsonLd({
|
21558
21666
|
...options,
|
21559
21667
|
format: undefined,
|
@@ -21606,6 +21714,9 @@ export class Invite extends Offer {
|
|
21606
21714
|
}
|
21607
21715
|
return compacted;
|
21608
21716
|
}
|
21717
|
+
isCompactable() {
|
21718
|
+
return super.isCompactable();
|
21719
|
+
}
|
21609
21720
|
/**
|
21610
21721
|
* Converts a JSON-LD structure to an object of this type.
|
21611
21722
|
* @param json The JSON-LD structure to convert.
|
@@ -21725,7 +21836,7 @@ export class Join extends Activity {
|
|
21725
21836
|
...options,
|
21726
21837
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21727
21838
|
};
|
21728
|
-
if (options.format == null) {
|
21839
|
+
if (options.format == null && this.isCompactable()) {
|
21729
21840
|
const result = await super.toJsonLd({
|
21730
21841
|
...options,
|
21731
21842
|
format: undefined,
|
@@ -21778,6 +21889,9 @@ export class Join extends Activity {
|
|
21778
21889
|
}
|
21779
21890
|
return compacted;
|
21780
21891
|
}
|
21892
|
+
isCompactable() {
|
21893
|
+
return super.isCompactable();
|
21894
|
+
}
|
21781
21895
|
/**
|
21782
21896
|
* Converts a JSON-LD structure to an object of this type.
|
21783
21897
|
* @param json The JSON-LD structure to convert.
|
@@ -21897,7 +22011,7 @@ export class Leave extends Activity {
|
|
21897
22011
|
...options,
|
21898
22012
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21899
22013
|
};
|
21900
|
-
if (options.format == null) {
|
22014
|
+
if (options.format == null && this.isCompactable()) {
|
21901
22015
|
const result = await super.toJsonLd({
|
21902
22016
|
...options,
|
21903
22017
|
format: undefined,
|
@@ -21950,6 +22064,9 @@ export class Leave extends Activity {
|
|
21950
22064
|
}
|
21951
22065
|
return compacted;
|
21952
22066
|
}
|
22067
|
+
isCompactable() {
|
22068
|
+
return super.isCompactable();
|
22069
|
+
}
|
21953
22070
|
/**
|
21954
22071
|
* Converts a JSON-LD structure to an object of this type.
|
21955
22072
|
* @param json The JSON-LD structure to convert.
|
@@ -22069,7 +22186,7 @@ export class Like extends Activity {
|
|
22069
22186
|
...options,
|
22070
22187
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22071
22188
|
};
|
22072
|
-
if (options.format == null) {
|
22189
|
+
if (options.format == null && this.isCompactable()) {
|
22073
22190
|
const result = await super.toJsonLd({
|
22074
22191
|
...options,
|
22075
22192
|
format: undefined,
|
@@ -22122,6 +22239,9 @@ export class Like extends Activity {
|
|
22122
22239
|
}
|
22123
22240
|
return compacted;
|
22124
22241
|
}
|
22242
|
+
isCompactable() {
|
22243
|
+
return super.isCompactable();
|
22244
|
+
}
|
22125
22245
|
/**
|
22126
22246
|
* Converts a JSON-LD structure to an object of this type.
|
22127
22247
|
* @param json The JSON-LD structure to convert.
|
@@ -22240,7 +22360,7 @@ export class Listen extends Activity {
|
|
22240
22360
|
...options,
|
22241
22361
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22242
22362
|
};
|
22243
|
-
if (options.format == null) {
|
22363
|
+
if (options.format == null && this.isCompactable()) {
|
22244
22364
|
const result = await super.toJsonLd({
|
22245
22365
|
...options,
|
22246
22366
|
format: undefined,
|
@@ -22293,6 +22413,9 @@ export class Listen extends Activity {
|
|
22293
22413
|
}
|
22294
22414
|
return compacted;
|
22295
22415
|
}
|
22416
|
+
isCompactable() {
|
22417
|
+
return super.isCompactable();
|
22418
|
+
}
|
22296
22419
|
/**
|
22297
22420
|
* Converts a JSON-LD structure to an object of this type.
|
22298
22421
|
* @param json The JSON-LD structure to convert.
|
@@ -22411,7 +22534,7 @@ export class Mention extends Link {
|
|
22411
22534
|
...options,
|
22412
22535
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22413
22536
|
};
|
22414
|
-
if (options.format == null) {
|
22537
|
+
if (options.format == null && this.isCompactable()) {
|
22415
22538
|
const result = await super.toJsonLd({
|
22416
22539
|
...options,
|
22417
22540
|
format: undefined,
|
@@ -22447,6 +22570,9 @@ export class Mention extends Link {
|
|
22447
22570
|
}
|
22448
22571
|
return compacted;
|
22449
22572
|
}
|
22573
|
+
isCompactable() {
|
22574
|
+
return super.isCompactable();
|
22575
|
+
}
|
22450
22576
|
/**
|
22451
22577
|
* Converts a JSON-LD structure to an object of this type.
|
22452
22578
|
* @param json The JSON-LD structure to convert.
|
@@ -22567,7 +22693,7 @@ export class Move extends Activity {
|
|
22567
22693
|
...options,
|
22568
22694
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22569
22695
|
};
|
22570
|
-
if (options.format == null) {
|
22696
|
+
if (options.format == null && this.isCompactable()) {
|
22571
22697
|
const result = await super.toJsonLd({
|
22572
22698
|
...options,
|
22573
22699
|
format: undefined,
|
@@ -22620,6 +22746,9 @@ export class Move extends Activity {
|
|
22620
22746
|
}
|
22621
22747
|
return compacted;
|
22622
22748
|
}
|
22749
|
+
isCompactable() {
|
22750
|
+
return super.isCompactable();
|
22751
|
+
}
|
22623
22752
|
/**
|
22624
22753
|
* Converts a JSON-LD structure to an object of this type.
|
22625
22754
|
* @param json The JSON-LD structure to convert.
|
@@ -22778,7 +22907,7 @@ export class Note extends Object {
|
|
22778
22907
|
...options,
|
22779
22908
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22780
22909
|
};
|
22781
|
-
if (options.format == null) {
|
22910
|
+
if (options.format == null && this.isCompactable()) {
|
22782
22911
|
const result = await super.toJsonLd({
|
22783
22912
|
...options,
|
22784
22913
|
format: undefined,
|
@@ -22880,6 +23009,9 @@ export class Note extends Object {
|
|
22880
23009
|
}
|
22881
23010
|
return compacted;
|
22882
23011
|
}
|
23012
|
+
isCompactable() {
|
23013
|
+
return super.isCompactable();
|
23014
|
+
}
|
22883
23015
|
/**
|
22884
23016
|
* Converts a JSON-LD structure to an object of this type.
|
22885
23017
|
* @param json The JSON-LD structure to convert.
|
@@ -23123,7 +23255,7 @@ export class OrderedCollection extends Collection {
|
|
23123
23255
|
...options,
|
23124
23256
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
23125
23257
|
};
|
23126
|
-
if (options.format == null) {
|
23258
|
+
if (options.format == null && this.isCompactable()) {
|
23127
23259
|
const result = await super.toJsonLd({
|
23128
23260
|
...options,
|
23129
23261
|
format: undefined,
|
@@ -23224,6 +23356,9 @@ export class OrderedCollection extends Collection {
|
|
23224
23356
|
}
|
23225
23357
|
return compacted;
|
23226
23358
|
}
|
23359
|
+
isCompactable() {
|
23360
|
+
return super.isCompactable();
|
23361
|
+
}
|
23227
23362
|
/**
|
23228
23363
|
* Converts a JSON-LD structure to an object of this type.
|
23229
23364
|
* @param json The JSON-LD structure to convert.
|
@@ -23568,7 +23703,7 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
23568
23703
|
...options,
|
23569
23704
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
23570
23705
|
};
|
23571
|
-
if (options.format == null) {
|
23706
|
+
if (options.format == null && this.isCompactable()) {
|
23572
23707
|
const result = await super.toJsonLd({
|
23573
23708
|
...options,
|
23574
23709
|
format: undefined,
|
@@ -23691,6 +23826,9 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
23691
23826
|
}
|
23692
23827
|
return compacted;
|
23693
23828
|
}
|
23829
|
+
isCompactable() {
|
23830
|
+
return super.isCompactable();
|
23831
|
+
}
|
23694
23832
|
/**
|
23695
23833
|
* Converts a JSON-LD structure to an object of this type.
|
23696
23834
|
* @param json The JSON-LD structure to convert.
|
@@ -25369,9 +25507,7 @@ export class Organization extends Object {
|
|
25369
25507
|
...options,
|
25370
25508
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
25371
25509
|
};
|
25372
|
-
if (options.format == null &&
|
25373
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername == null ||
|
25374
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length < 1)) {
|
25510
|
+
if (options.format == null && this.isCompactable()) {
|
25375
25511
|
const result = await super.toJsonLd({
|
25376
25512
|
...options,
|
25377
25513
|
format: undefined,
|
@@ -25909,6 +26045,12 @@ export class Organization extends Object {
|
|
25909
26045
|
}
|
25910
26046
|
return compacted;
|
25911
26047
|
}
|
26048
|
+
isCompactable() {
|
26049
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null &&
|
26050
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0)
|
26051
|
+
return false;
|
26052
|
+
return super.isCompactable();
|
26053
|
+
}
|
25912
26054
|
/**
|
25913
26055
|
* Converts a JSON-LD structure to an object of this type.
|
25914
26056
|
* @param json The JSON-LD structure to convert.
|
@@ -26611,7 +26753,7 @@ export class Page extends Document {
|
|
26611
26753
|
...options,
|
26612
26754
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
26613
26755
|
};
|
26614
|
-
if (options.format == null) {
|
26756
|
+
if (options.format == null && this.isCompactable()) {
|
26615
26757
|
const result = await super.toJsonLd({
|
26616
26758
|
...options,
|
26617
26759
|
format: undefined,
|
@@ -26664,6 +26806,9 @@ export class Page extends Document {
|
|
26664
26806
|
}
|
26665
26807
|
return compacted;
|
26666
26808
|
}
|
26809
|
+
isCompactable() {
|
26810
|
+
return super.isCompactable();
|
26811
|
+
}
|
26667
26812
|
/**
|
26668
26813
|
* Converts a JSON-LD structure to an object of this type.
|
26669
26814
|
* @param json The JSON-LD structure to convert.
|
@@ -28213,9 +28358,7 @@ export class Person extends Object {
|
|
28213
28358
|
...options,
|
28214
28359
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
28215
28360
|
};
|
28216
|
-
if (options.format == null &&
|
28217
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername == null ||
|
28218
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length < 1)) {
|
28361
|
+
if (options.format == null && this.isCompactable()) {
|
28219
28362
|
const result = await super.toJsonLd({
|
28220
28363
|
...options,
|
28221
28364
|
format: undefined,
|
@@ -28753,6 +28896,12 @@ export class Person extends Object {
|
|
28753
28896
|
}
|
28754
28897
|
return compacted;
|
28755
28898
|
}
|
28899
|
+
isCompactable() {
|
28900
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null &&
|
28901
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0)
|
28902
|
+
return false;
|
28903
|
+
return super.isCompactable();
|
28904
|
+
}
|
28756
28905
|
/**
|
28757
28906
|
* Converts a JSON-LD structure to an object of this type.
|
28758
28907
|
* @param json The JSON-LD structure to convert.
|
@@ -29651,7 +29800,7 @@ export class Place extends Object {
|
|
29651
29800
|
...options,
|
29652
29801
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
29653
29802
|
};
|
29654
|
-
if (options.format == null) {
|
29803
|
+
if (options.format == null && this.isCompactable()) {
|
29655
29804
|
const result = await super.toJsonLd({
|
29656
29805
|
...options,
|
29657
29806
|
format: undefined,
|
@@ -29839,6 +29988,9 @@ export class Place extends Object {
|
|
29839
29988
|
}
|
29840
29989
|
return compacted;
|
29841
29990
|
}
|
29991
|
+
isCompactable() {
|
29992
|
+
return super.isCompactable();
|
29993
|
+
}
|
29842
29994
|
/**
|
29843
29995
|
* Converts a JSON-LD structure to an object of this type.
|
29844
29996
|
* @param json The JSON-LD structure to convert.
|
@@ -30208,7 +30360,7 @@ export class Profile extends Object {
|
|
30208
30360
|
...options,
|
30209
30361
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
30210
30362
|
};
|
30211
|
-
if (options.format == null) {
|
30363
|
+
if (options.format == null && this.isCompactable()) {
|
30212
30364
|
const result = await super.toJsonLd({
|
30213
30365
|
...options,
|
30214
30366
|
format: undefined,
|
@@ -30286,6 +30438,9 @@ export class Profile extends Object {
|
|
30286
30438
|
}
|
30287
30439
|
return compacted;
|
30288
30440
|
}
|
30441
|
+
isCompactable() {
|
30442
|
+
return super.isCompactable();
|
30443
|
+
}
|
30289
30444
|
/**
|
30290
30445
|
* Converts a JSON-LD structure to an object of this type.
|
30291
30446
|
* @param json The JSON-LD structure to convert.
|
@@ -30705,7 +30860,7 @@ export class Question extends IntransitiveActivity {
|
|
30705
30860
|
...options,
|
30706
30861
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
30707
30862
|
};
|
30708
|
-
if (options.format == null) {
|
30863
|
+
if (options.format == null && this.isCompactable()) {
|
30709
30864
|
const result = await super.toJsonLd({
|
30710
30865
|
...options,
|
30711
30866
|
format: undefined,
|
@@ -30905,6 +31060,9 @@ export class Question extends IntransitiveActivity {
|
|
30905
31060
|
}
|
30906
31061
|
return compacted;
|
30907
31062
|
}
|
31063
|
+
isCompactable() {
|
31064
|
+
return super.isCompactable();
|
31065
|
+
}
|
30908
31066
|
/**
|
30909
31067
|
* Converts a JSON-LD structure to an object of this type.
|
30910
31068
|
* @param json The JSON-LD structure to convert.
|
@@ -31187,7 +31345,7 @@ export class Read extends Activity {
|
|
31187
31345
|
...options,
|
31188
31346
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
31189
31347
|
};
|
31190
|
-
if (options.format == null) {
|
31348
|
+
if (options.format == null && this.isCompactable()) {
|
31191
31349
|
const result = await super.toJsonLd({
|
31192
31350
|
...options,
|
31193
31351
|
format: undefined,
|
@@ -31240,6 +31398,9 @@ export class Read extends Activity {
|
|
31240
31398
|
}
|
31241
31399
|
return compacted;
|
31242
31400
|
}
|
31401
|
+
isCompactable() {
|
31402
|
+
return super.isCompactable();
|
31403
|
+
}
|
31243
31404
|
/**
|
31244
31405
|
* Converts a JSON-LD structure to an object of this type.
|
31245
31406
|
* @param json The JSON-LD structure to convert.
|
@@ -31359,7 +31520,7 @@ export class Reject extends Activity {
|
|
31359
31520
|
...options,
|
31360
31521
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
31361
31522
|
};
|
31362
|
-
if (options.format == null) {
|
31523
|
+
if (options.format == null && this.isCompactable()) {
|
31363
31524
|
const result = await super.toJsonLd({
|
31364
31525
|
...options,
|
31365
31526
|
format: undefined,
|
@@ -31412,6 +31573,9 @@ export class Reject extends Activity {
|
|
31412
31573
|
}
|
31413
31574
|
return compacted;
|
31414
31575
|
}
|
31576
|
+
isCompactable() {
|
31577
|
+
return super.isCompactable();
|
31578
|
+
}
|
31415
31579
|
/**
|
31416
31580
|
* Converts a JSON-LD structure to an object of this type.
|
31417
31581
|
* @param json The JSON-LD structure to convert.
|
@@ -31903,7 +32067,7 @@ export class Relationship extends Object {
|
|
31903
32067
|
...options,
|
31904
32068
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
31905
32069
|
};
|
31906
|
-
if (options.format == null) {
|
32070
|
+
if (options.format == null && this.isCompactable()) {
|
31907
32071
|
const result = await super.toJsonLd({
|
31908
32072
|
...options,
|
31909
32073
|
format: undefined,
|
@@ -32031,6 +32195,9 @@ export class Relationship extends Object {
|
|
32031
32195
|
}
|
32032
32196
|
return compacted;
|
32033
32197
|
}
|
32198
|
+
isCompactable() {
|
32199
|
+
return super.isCompactable();
|
32200
|
+
}
|
32034
32201
|
/**
|
32035
32202
|
* Converts a JSON-LD structure to an object of this type.
|
32036
32203
|
* @param json The JSON-LD structure to convert.
|
@@ -32253,7 +32420,7 @@ export class Remove extends Activity {
|
|
32253
32420
|
...options,
|
32254
32421
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
32255
32422
|
};
|
32256
|
-
if (options.format == null) {
|
32423
|
+
if (options.format == null && this.isCompactable()) {
|
32257
32424
|
const result = await super.toJsonLd({
|
32258
32425
|
...options,
|
32259
32426
|
format: undefined,
|
@@ -32306,6 +32473,9 @@ export class Remove extends Activity {
|
|
32306
32473
|
}
|
32307
32474
|
return compacted;
|
32308
32475
|
}
|
32476
|
+
isCompactable() {
|
32477
|
+
return super.isCompactable();
|
32478
|
+
}
|
32309
32479
|
/**
|
32310
32480
|
* Converts a JSON-LD structure to an object of this type.
|
32311
32481
|
* @param json The JSON-LD structure to convert.
|
@@ -33855,9 +34025,7 @@ export class Service extends Object {
|
|
33855
34025
|
...options,
|
33856
34026
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
33857
34027
|
};
|
33858
|
-
if (options.format == null &&
|
33859
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername == null ||
|
33860
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length < 1)) {
|
34028
|
+
if (options.format == null && this.isCompactable()) {
|
33861
34029
|
const result = await super.toJsonLd({
|
33862
34030
|
...options,
|
33863
34031
|
format: undefined,
|
@@ -34395,6 +34563,12 @@ export class Service extends Object {
|
|
34395
34563
|
}
|
34396
34564
|
return compacted;
|
34397
34565
|
}
|
34566
|
+
isCompactable() {
|
34567
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null &&
|
34568
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0)
|
34569
|
+
return false;
|
34570
|
+
return super.isCompactable();
|
34571
|
+
}
|
34398
34572
|
/**
|
34399
34573
|
* Converts a JSON-LD structure to an object of this type.
|
34400
34574
|
* @param json The JSON-LD structure to convert.
|
@@ -35213,9 +35387,7 @@ export class Source {
|
|
35213
35387
|
...options,
|
35214
35388
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35215
35389
|
};
|
35216
|
-
if (options.format == null &&
|
35217
|
-
(this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content == null ||
|
35218
|
-
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.length < 1)) {
|
35390
|
+
if (options.format == null && this.isCompactable()) {
|
35219
35391
|
const result = {};
|
35220
35392
|
// deno-lint-ignore no-unused-vars
|
35221
35393
|
let compactItems;
|
@@ -35286,6 +35458,12 @@ export class Source {
|
|
35286
35458
|
}
|
35287
35459
|
return compacted;
|
35288
35460
|
}
|
35461
|
+
isCompactable() {
|
35462
|
+
if (this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content != null &&
|
35463
|
+
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.length > 0)
|
35464
|
+
return false;
|
35465
|
+
return true;
|
35466
|
+
}
|
35289
35467
|
/**
|
35290
35468
|
* Converts a JSON-LD structure to an object of this type.
|
35291
35469
|
* @param json The JSON-LD structure to convert.
|
@@ -35470,7 +35648,7 @@ export class TentativeAccept extends Accept {
|
|
35470
35648
|
...options,
|
35471
35649
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35472
35650
|
};
|
35473
|
-
if (options.format == null) {
|
35651
|
+
if (options.format == null && this.isCompactable()) {
|
35474
35652
|
const result = await super.toJsonLd({
|
35475
35653
|
...options,
|
35476
35654
|
format: undefined,
|
@@ -35523,6 +35701,9 @@ export class TentativeAccept extends Accept {
|
|
35523
35701
|
}
|
35524
35702
|
return compacted;
|
35525
35703
|
}
|
35704
|
+
isCompactable() {
|
35705
|
+
return super.isCompactable();
|
35706
|
+
}
|
35526
35707
|
/**
|
35527
35708
|
* Converts a JSON-LD structure to an object of this type.
|
35528
35709
|
* @param json The JSON-LD structure to convert.
|
@@ -35642,7 +35823,7 @@ export class TentativeReject extends Reject {
|
|
35642
35823
|
...options,
|
35643
35824
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35644
35825
|
};
|
35645
|
-
if (options.format == null) {
|
35826
|
+
if (options.format == null && this.isCompactable()) {
|
35646
35827
|
const result = await super.toJsonLd({
|
35647
35828
|
...options,
|
35648
35829
|
format: undefined,
|
@@ -35695,6 +35876,9 @@ export class TentativeReject extends Reject {
|
|
35695
35876
|
}
|
35696
35877
|
return compacted;
|
35697
35878
|
}
|
35879
|
+
isCompactable() {
|
35880
|
+
return super.isCompactable();
|
35881
|
+
}
|
35698
35882
|
/**
|
35699
35883
|
* Converts a JSON-LD structure to an object of this type.
|
35700
35884
|
* @param json The JSON-LD structure to convert.
|
@@ -35846,7 +36030,7 @@ export class Tombstone extends Object {
|
|
35846
36030
|
...options,
|
35847
36031
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35848
36032
|
};
|
35849
|
-
if (options.format == null) {
|
36033
|
+
if (options.format == null && this.isCompactable()) {
|
35850
36034
|
const result = await super.toJsonLd({
|
35851
36035
|
...options,
|
35852
36036
|
format: undefined,
|
@@ -35921,6 +36105,9 @@ export class Tombstone extends Object {
|
|
35921
36105
|
}
|
35922
36106
|
return compacted;
|
35923
36107
|
}
|
36108
|
+
isCompactable() {
|
36109
|
+
return super.isCompactable();
|
36110
|
+
}
|
35924
36111
|
/**
|
35925
36112
|
* Converts a JSON-LD structure to an object of this type.
|
35926
36113
|
* @param json The JSON-LD structure to convert.
|
@@ -36068,7 +36255,7 @@ export class Travel extends IntransitiveActivity {
|
|
36068
36255
|
...options,
|
36069
36256
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36070
36257
|
};
|
36071
|
-
if (options.format == null) {
|
36258
|
+
if (options.format == null && this.isCompactable()) {
|
36072
36259
|
const result = await super.toJsonLd({
|
36073
36260
|
...options,
|
36074
36261
|
format: undefined,
|
@@ -36121,6 +36308,9 @@ export class Travel extends IntransitiveActivity {
|
|
36121
36308
|
}
|
36122
36309
|
return compacted;
|
36123
36310
|
}
|
36311
|
+
isCompactable() {
|
36312
|
+
return super.isCompactable();
|
36313
|
+
}
|
36124
36314
|
/**
|
36125
36315
|
* Converts a JSON-LD structure to an object of this type.
|
36126
36316
|
* @param json The JSON-LD structure to convert.
|
@@ -36245,7 +36435,7 @@ export class Undo extends Activity {
|
|
36245
36435
|
...options,
|
36246
36436
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36247
36437
|
};
|
36248
|
-
if (options.format == null) {
|
36438
|
+
if (options.format == null && this.isCompactable()) {
|
36249
36439
|
const result = await super.toJsonLd({
|
36250
36440
|
...options,
|
36251
36441
|
format: undefined,
|
@@ -36298,6 +36488,9 @@ export class Undo extends Activity {
|
|
36298
36488
|
}
|
36299
36489
|
return compacted;
|
36300
36490
|
}
|
36491
|
+
isCompactable() {
|
36492
|
+
return super.isCompactable();
|
36493
|
+
}
|
36301
36494
|
/**
|
36302
36495
|
* Converts a JSON-LD structure to an object of this type.
|
36303
36496
|
* @param json The JSON-LD structure to convert.
|
@@ -36420,7 +36613,7 @@ export class Update extends Activity {
|
|
36420
36613
|
...options,
|
36421
36614
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36422
36615
|
};
|
36423
|
-
if (options.format == null) {
|
36616
|
+
if (options.format == null && this.isCompactable()) {
|
36424
36617
|
const result = await super.toJsonLd({
|
36425
36618
|
...options,
|
36426
36619
|
format: undefined,
|
@@ -36499,6 +36692,9 @@ export class Update extends Activity {
|
|
36499
36692
|
}
|
36500
36693
|
return compacted;
|
36501
36694
|
}
|
36695
|
+
isCompactable() {
|
36696
|
+
return super.isCompactable();
|
36697
|
+
}
|
36502
36698
|
/**
|
36503
36699
|
* Converts a JSON-LD structure to an object of this type.
|
36504
36700
|
* @param json The JSON-LD structure to convert.
|
@@ -36617,7 +36813,7 @@ export class Video extends Document {
|
|
36617
36813
|
...options,
|
36618
36814
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36619
36815
|
};
|
36620
|
-
if (options.format == null) {
|
36816
|
+
if (options.format == null && this.isCompactable()) {
|
36621
36817
|
const result = await super.toJsonLd({
|
36622
36818
|
...options,
|
36623
36819
|
format: undefined,
|
@@ -36670,6 +36866,9 @@ export class Video extends Document {
|
|
36670
36866
|
}
|
36671
36867
|
return compacted;
|
36672
36868
|
}
|
36869
|
+
isCompactable() {
|
36870
|
+
return super.isCompactable();
|
36871
|
+
}
|
36673
36872
|
/**
|
36674
36873
|
* Converts a JSON-LD structure to an object of this type.
|
36675
36874
|
* @param json The JSON-LD structure to convert.
|
@@ -36788,7 +36987,7 @@ export class View extends Activity {
|
|
36788
36987
|
...options,
|
36789
36988
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36790
36989
|
};
|
36791
|
-
if (options.format == null) {
|
36990
|
+
if (options.format == null && this.isCompactable()) {
|
36792
36991
|
const result = await super.toJsonLd({
|
36793
36992
|
...options,
|
36794
36993
|
format: undefined,
|
@@ -36841,6 +37040,9 @@ export class View extends Activity {
|
|
36841
37040
|
}
|
36842
37041
|
return compacted;
|
36843
37042
|
}
|
37043
|
+
isCompactable() {
|
37044
|
+
return super.isCompactable();
|
37045
|
+
}
|
36844
37046
|
/**
|
36845
37047
|
* Converts a JSON-LD structure to an object of this type.
|
36846
37048
|
* @param json The JSON-LD structure to convert.
|