@fedify/fedify 1.1.0-dev.421 → 1.1.0-dev.423

Sign up to get free protection for your applications and to get access to all the features.
@@ -8701,135 +8701,6 @@ export class Activity extends Object {
8701
8701
  ...options,
8702
8702
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
8703
8703
  };
8704
- if (options.format == null && this.isCompactable()) {
8705
- const result = await super.toJsonLd({
8706
- ...options,
8707
- format: undefined,
8708
- context: undefined,
8709
- });
8710
- // deno-lint-ignore no-unused-vars
8711
- let compactItems;
8712
- compactItems = [];
8713
- for (const v of this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor) {
8714
- const item = v instanceof URL
8715
- ? v.href
8716
- : v instanceof Application
8717
- ? await v.toJsonLd({
8718
- ...options,
8719
- format: undefined,
8720
- context: undefined,
8721
- })
8722
- : v instanceof Group
8723
- ? await v.toJsonLd({
8724
- ...options,
8725
- format: undefined,
8726
- context: undefined,
8727
- })
8728
- : v instanceof Organization
8729
- ? await v.toJsonLd({
8730
- ...options,
8731
- format: undefined,
8732
- context: undefined,
8733
- })
8734
- : v instanceof Person
8735
- ? await v.toJsonLd({
8736
- ...options,
8737
- format: undefined,
8738
- context: undefined,
8739
- })
8740
- : await v.toJsonLd({
8741
- ...options,
8742
- format: undefined,
8743
- context: undefined,
8744
- });
8745
- compactItems.push(item);
8746
- }
8747
- if (compactItems.length > 0) {
8748
- result["actor"] = compactItems.length > 1
8749
- ? compactItems
8750
- : compactItems[0];
8751
- }
8752
- compactItems = [];
8753
- for (const v of this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object) {
8754
- const item = v instanceof URL ? v.href : await v.toJsonLd({
8755
- ...options,
8756
- format: undefined,
8757
- context: undefined,
8758
- });
8759
- compactItems.push(item);
8760
- }
8761
- if (compactItems.length > 0) {
8762
- result["object"] = compactItems.length > 1
8763
- ? compactItems
8764
- : compactItems[0];
8765
- }
8766
- compactItems = [];
8767
- for (const v of this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target) {
8768
- const item = v instanceof URL ? v.href : await v.toJsonLd({
8769
- ...options,
8770
- format: undefined,
8771
- context: undefined,
8772
- });
8773
- compactItems.push(item);
8774
- }
8775
- if (compactItems.length > 0) {
8776
- result["target"] = compactItems.length > 1
8777
- ? compactItems
8778
- : compactItems[0];
8779
- }
8780
- compactItems = [];
8781
- for (const v of this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result) {
8782
- const item = v instanceof URL ? v.href : await v.toJsonLd({
8783
- ...options,
8784
- format: undefined,
8785
- context: undefined,
8786
- });
8787
- compactItems.push(item);
8788
- }
8789
- if (compactItems.length > 0) {
8790
- result["result"] = compactItems.length > 1
8791
- ? compactItems
8792
- : compactItems[0];
8793
- }
8794
- compactItems = [];
8795
- for (const v of this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin) {
8796
- const item = v instanceof URL ? v.href : await v.toJsonLd({
8797
- ...options,
8798
- format: undefined,
8799
- context: undefined,
8800
- });
8801
- compactItems.push(item);
8802
- }
8803
- if (compactItems.length > 0) {
8804
- result["origin"] = compactItems.length > 1
8805
- ? compactItems
8806
- : compactItems[0];
8807
- }
8808
- compactItems = [];
8809
- for (const v of this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument) {
8810
- const item = v instanceof URL ? v.href : await v.toJsonLd({
8811
- ...options,
8812
- format: undefined,
8813
- context: undefined,
8814
- });
8815
- compactItems.push(item);
8816
- }
8817
- if (compactItems.length > 0) {
8818
- result["instrument"] = compactItems.length > 1
8819
- ? compactItems
8820
- : compactItems[0];
8821
- }
8822
- result["type"] = "Activity";
8823
- if (this.id != null)
8824
- result["id"] = this.id.href;
8825
- result["@context"] = [
8826
- "https://www.w3.org/ns/activitystreams",
8827
- "https://w3id.org/security/v1",
8828
- "https://w3id.org/security/data-integrity/v1",
8829
- "https://w3id.org/identity/v1",
8830
- ];
8831
- return result;
8832
- }
8833
8704
  // deno-lint-ignore no-unused-vars prefer-const
8834
8705
  let array;
8835
8706
  const baseValues = await super.toJsonLd({
@@ -8920,10 +8791,10 @@ export class Activity extends Object {
8920
8791
  }
8921
8792
  const docContext = options.context ??
8922
8793
  [
8794
+ "https://w3id.org/identity/v1",
8923
8795
  "https://www.w3.org/ns/activitystreams",
8924
8796
  "https://w3id.org/security/v1",
8925
8797
  "https://w3id.org/security/data-integrity/v1",
8926
- "https://w3id.org/identity/v1",
8927
8798
  ];
8928
8799
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
8929
8800
  if (docContext != null) {
@@ -9391,24 +9262,6 @@ export class Accept extends Activity {
9391
9262
  ...options,
9392
9263
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
9393
9264
  };
9394
- if (options.format == null && this.isCompactable()) {
9395
- const result = await super.toJsonLd({
9396
- ...options,
9397
- format: undefined,
9398
- context: undefined,
9399
- });
9400
- // deno-lint-ignore no-unused-vars
9401
- let compactItems;
9402
- result["type"] = "Accept";
9403
- if (this.id != null)
9404
- result["id"] = this.id.href;
9405
- result["@context"] = [
9406
- "https://www.w3.org/ns/activitystreams",
9407
- "https://w3id.org/security/data-integrity/v1",
9408
- "https://w3id.org/identity/v1",
9409
- ];
9410
- return result;
9411
- }
9412
9265
  // deno-lint-ignore no-unused-vars prefer-const
9413
9266
  let array;
9414
9267
  const baseValues = await super.toJsonLd({
@@ -9425,9 +9278,9 @@ export class Accept extends Activity {
9425
9278
  }
9426
9279
  const docContext = options.context ??
9427
9280
  [
9281
+ "https://w3id.org/identity/v1",
9428
9282
  "https://www.w3.org/ns/activitystreams",
9429
9283
  "https://w3id.org/security/data-integrity/v1",
9430
- "https://w3id.org/identity/v1",
9431
9284
  ];
9432
9285
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
9433
9286
  if (docContext != null) {
@@ -9573,24 +9426,6 @@ export class Add extends Activity {
9573
9426
  ...options,
9574
9427
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
9575
9428
  };
9576
- if (options.format == null && this.isCompactable()) {
9577
- const result = await super.toJsonLd({
9578
- ...options,
9579
- format: undefined,
9580
- context: undefined,
9581
- });
9582
- // deno-lint-ignore no-unused-vars
9583
- let compactItems;
9584
- result["type"] = "Add";
9585
- if (this.id != null)
9586
- result["id"] = this.id.href;
9587
- result["@context"] = [
9588
- "https://www.w3.org/ns/activitystreams",
9589
- "https://w3id.org/security/data-integrity/v1",
9590
- "https://w3id.org/identity/v1",
9591
- ];
9592
- return result;
9593
- }
9594
9429
  // deno-lint-ignore no-unused-vars prefer-const
9595
9430
  let array;
9596
9431
  const baseValues = await super.toJsonLd({
@@ -9607,9 +9442,9 @@ export class Add extends Activity {
9607
9442
  }
9608
9443
  const docContext = options.context ??
9609
9444
  [
9445
+ "https://w3id.org/identity/v1",
9610
9446
  "https://www.w3.org/ns/activitystreams",
9611
9447
  "https://w3id.org/security/data-integrity/v1",
9612
- "https://w3id.org/identity/v1",
9613
9448
  ];
9614
9449
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
9615
9450
  if (docContext != null) {
@@ -9751,36 +9586,6 @@ export class Announce extends Activity {
9751
9586
  ...options,
9752
9587
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
9753
9588
  };
9754
- if (options.format == null && this.isCompactable()) {
9755
- const result = await super.toJsonLd({
9756
- ...options,
9757
- format: undefined,
9758
- context: undefined,
9759
- });
9760
- // deno-lint-ignore no-unused-vars
9761
- let compactItems;
9762
- result["type"] = "Announce";
9763
- if (this.id != null)
9764
- result["id"] = this.id.href;
9765
- result["@context"] = [
9766
- "https://www.w3.org/ns/activitystreams",
9767
- "https://w3id.org/security/data-integrity/v1",
9768
- "https://w3id.org/identity/v1",
9769
- {
9770
- "toot": "http://joinmastodon.org/ns#",
9771
- "misskey": "https://misskey-hub.net/ns#",
9772
- "fedibird": "http://fedibird.com/ns#",
9773
- "sensitive": "as:sensitive",
9774
- "votersCount": "toot:votersCount",
9775
- "Emoji": "toot:Emoji",
9776
- "Hashtag": "as:Hashtag",
9777
- "quoteUrl": "as:quoteUrl",
9778
- "_misskey_quote": "misskey:_misskey_quote",
9779
- "quoteUri": "fedibird:quoteUri",
9780
- },
9781
- ];
9782
- return result;
9783
- }
9784
9589
  // deno-lint-ignore no-unused-vars prefer-const
9785
9590
  let array;
9786
9591
  const baseValues = await super.toJsonLd({
@@ -9797,9 +9602,9 @@ export class Announce extends Activity {
9797
9602
  }
9798
9603
  const docContext = options.context ??
9799
9604
  [
9605
+ "https://w3id.org/identity/v1",
9800
9606
  "https://www.w3.org/ns/activitystreams",
9801
9607
  "https://w3id.org/security/data-integrity/v1",
9802
- "https://w3id.org/identity/v1",
9803
9608
  {
9804
9609
  "toot": "http://joinmastodon.org/ns#",
9805
9610
  "misskey": "https://misskey-hub.net/ns#",
@@ -12712,24 +12517,6 @@ export class IntransitiveActivity extends Activity {
12712
12517
  ...options,
12713
12518
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
12714
12519
  };
12715
- if (options.format == null && this.isCompactable()) {
12716
- const result = await super.toJsonLd({
12717
- ...options,
12718
- format: undefined,
12719
- context: undefined,
12720
- });
12721
- // deno-lint-ignore no-unused-vars
12722
- let compactItems;
12723
- result["type"] = "IntransitiveActivity";
12724
- if (this.id != null)
12725
- result["id"] = this.id.href;
12726
- result["@context"] = [
12727
- "https://www.w3.org/ns/activitystreams",
12728
- "https://w3id.org/security/data-integrity/v1",
12729
- "https://w3id.org/identity/v1",
12730
- ];
12731
- return result;
12732
- }
12733
12520
  // deno-lint-ignore no-unused-vars prefer-const
12734
12521
  let array;
12735
12522
  const baseValues = await super.toJsonLd({
@@ -12748,9 +12535,9 @@ export class IntransitiveActivity extends Activity {
12748
12535
  }
12749
12536
  const docContext = options.context ??
12750
12537
  [
12538
+ "https://w3id.org/identity/v1",
12751
12539
  "https://www.w3.org/ns/activitystreams",
12752
12540
  "https://w3id.org/security/data-integrity/v1",
12753
- "https://w3id.org/identity/v1",
12754
12541
  ];
12755
12542
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
12756
12543
  if (docContext != null) {
@@ -12917,9 +12704,9 @@ export class Arrive extends IntransitiveActivity {
12917
12704
  }
12918
12705
  const docContext = options.context ??
12919
12706
  [
12707
+ "https://w3id.org/identity/v1",
12920
12708
  "https://www.w3.org/ns/activitystreams",
12921
12709
  "https://w3id.org/security/data-integrity/v1",
12922
- "https://w3id.org/identity/v1",
12923
12710
  ];
12924
12711
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
12925
12712
  if (docContext != null) {
@@ -13880,24 +13667,6 @@ export class Ignore extends Activity {
13880
13667
  ...options,
13881
13668
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
13882
13669
  };
13883
- if (options.format == null && this.isCompactable()) {
13884
- const result = await super.toJsonLd({
13885
- ...options,
13886
- format: undefined,
13887
- context: undefined,
13888
- });
13889
- // deno-lint-ignore no-unused-vars
13890
- let compactItems;
13891
- result["type"] = "Ignore";
13892
- if (this.id != null)
13893
- result["id"] = this.id.href;
13894
- result["@context"] = [
13895
- "https://www.w3.org/ns/activitystreams",
13896
- "https://w3id.org/security/data-integrity/v1",
13897
- "https://w3id.org/identity/v1",
13898
- ];
13899
- return result;
13900
- }
13901
13670
  // deno-lint-ignore no-unused-vars prefer-const
13902
13671
  let array;
13903
13672
  const baseValues = await super.toJsonLd({
@@ -13914,9 +13683,9 @@ export class Ignore extends Activity {
13914
13683
  }
13915
13684
  const docContext = options.context ??
13916
13685
  [
13686
+ "https://w3id.org/identity/v1",
13917
13687
  "https://www.w3.org/ns/activitystreams",
13918
13688
  "https://w3id.org/security/data-integrity/v1",
13919
- "https://w3id.org/identity/v1",
13920
13689
  ];
13921
13690
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
13922
13691
  if (docContext != null) {
@@ -14062,24 +13831,6 @@ export class Block extends Ignore {
14062
13831
  ...options,
14063
13832
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
14064
13833
  };
14065
- if (options.format == null && this.isCompactable()) {
14066
- const result = await super.toJsonLd({
14067
- ...options,
14068
- format: undefined,
14069
- context: undefined,
14070
- });
14071
- // deno-lint-ignore no-unused-vars
14072
- let compactItems;
14073
- result["type"] = "Block";
14074
- if (this.id != null)
14075
- result["id"] = this.id.href;
14076
- result["@context"] = [
14077
- "https://www.w3.org/ns/activitystreams",
14078
- "https://w3id.org/security/data-integrity/v1",
14079
- "https://w3id.org/identity/v1",
14080
- ];
14081
- return result;
14082
- }
14083
13834
  // deno-lint-ignore no-unused-vars prefer-const
14084
13835
  let array;
14085
13836
  const baseValues = await super.toJsonLd({
@@ -14096,9 +13847,9 @@ export class Block extends Ignore {
14096
13847
  }
14097
13848
  const docContext = options.context ??
14098
13849
  [
13850
+ "https://w3id.org/identity/v1",
14099
13851
  "https://www.w3.org/ns/activitystreams",
14100
13852
  "https://w3id.org/security/data-integrity/v1",
14101
- "https://w3id.org/identity/v1",
14102
13853
  ];
14103
13854
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
14104
13855
  if (docContext != null) {
@@ -15747,37 +15498,6 @@ export class Create extends Activity {
15747
15498
  ...options,
15748
15499
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
15749
15500
  };
15750
- if (options.format == null && this.isCompactable()) {
15751
- const result = await super.toJsonLd({
15752
- ...options,
15753
- format: undefined,
15754
- context: undefined,
15755
- });
15756
- // deno-lint-ignore no-unused-vars
15757
- let compactItems;
15758
- result["type"] = "Create";
15759
- if (this.id != null)
15760
- result["id"] = this.id.href;
15761
- result["@context"] = [
15762
- "https://www.w3.org/ns/activitystreams",
15763
- "https://w3id.org/security/data-integrity/v1",
15764
- "https://w3id.org/identity/v1",
15765
- {
15766
- "toot": "http://joinmastodon.org/ns#",
15767
- "misskey": "https://misskey-hub.net/ns#",
15768
- "fedibird": "http://fedibird.com/ns#",
15769
- "sensitive": "as:sensitive",
15770
- "votersCount": "toot:votersCount",
15771
- "Emoji": "toot:Emoji",
15772
- "Hashtag": "as:Hashtag",
15773
- "ChatMessage": "http://litepub.social/ns#ChatMessage",
15774
- "quoteUrl": "as:quoteUrl",
15775
- "_misskey_quote": "misskey:_misskey_quote",
15776
- "quoteUri": "fedibird:quoteUri",
15777
- },
15778
- ];
15779
- return result;
15780
- }
15781
15501
  // deno-lint-ignore no-unused-vars prefer-const
15782
15502
  let array;
15783
15503
  const baseValues = await super.toJsonLd({
@@ -15794,9 +15514,9 @@ export class Create extends Activity {
15794
15514
  }
15795
15515
  const docContext = options.context ??
15796
15516
  [
15517
+ "https://w3id.org/identity/v1",
15797
15518
  "https://www.w3.org/ns/activitystreams",
15798
15519
  "https://w3id.org/security/data-integrity/v1",
15799
- "https://w3id.org/identity/v1",
15800
15520
  {
15801
15521
  "toot": "http://joinmastodon.org/ns#",
15802
15522
  "misskey": "https://misskey-hub.net/ns#",
@@ -15950,37 +15670,6 @@ export class Delete extends Activity {
15950
15670
  ...options,
15951
15671
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
15952
15672
  };
15953
- if (options.format == null && this.isCompactable()) {
15954
- const result = await super.toJsonLd({
15955
- ...options,
15956
- format: undefined,
15957
- context: undefined,
15958
- });
15959
- // deno-lint-ignore no-unused-vars
15960
- let compactItems;
15961
- result["type"] = "Delete";
15962
- if (this.id != null)
15963
- result["id"] = this.id.href;
15964
- result["@context"] = [
15965
- "https://www.w3.org/ns/activitystreams",
15966
- "https://w3id.org/security/data-integrity/v1",
15967
- "https://w3id.org/identity/v1",
15968
- {
15969
- "toot": "http://joinmastodon.org/ns#",
15970
- "misskey": "https://misskey-hub.net/ns#",
15971
- "fedibird": "http://fedibird.com/ns#",
15972
- "sensitive": "as:sensitive",
15973
- "votersCount": "toot:votersCount",
15974
- "Emoji": "toot:Emoji",
15975
- "Hashtag": "as:Hashtag",
15976
- "ChatMessage": "http://litepub.social/ns#ChatMessage",
15977
- "quoteUrl": "as:quoteUrl",
15978
- "_misskey_quote": "misskey:_misskey_quote",
15979
- "quoteUri": "fedibird:quoteUri",
15980
- },
15981
- ];
15982
- return result;
15983
- }
15984
15673
  // deno-lint-ignore no-unused-vars prefer-const
15985
15674
  let array;
15986
15675
  const baseValues = await super.toJsonLd({
@@ -15997,9 +15686,9 @@ export class Delete extends Activity {
15997
15686
  }
15998
15687
  const docContext = options.context ??
15999
15688
  [
15689
+ "https://w3id.org/identity/v1",
16000
15690
  "https://www.w3.org/ns/activitystreams",
16001
15691
  "https://w3id.org/security/data-integrity/v1",
16002
- "https://w3id.org/identity/v1",
16003
15692
  {
16004
15693
  "toot": "http://joinmastodon.org/ns#",
16005
15694
  "misskey": "https://misskey-hub.net/ns#",
@@ -16152,24 +15841,6 @@ export class Dislike extends Activity {
16152
15841
  ...options,
16153
15842
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
16154
15843
  };
16155
- if (options.format == null && this.isCompactable()) {
16156
- const result = await super.toJsonLd({
16157
- ...options,
16158
- format: undefined,
16159
- context: undefined,
16160
- });
16161
- // deno-lint-ignore no-unused-vars
16162
- let compactItems;
16163
- result["type"] = "Dislike";
16164
- if (this.id != null)
16165
- result["id"] = this.id.href;
16166
- result["@context"] = [
16167
- "https://www.w3.org/ns/activitystreams",
16168
- "https://w3id.org/security/data-integrity/v1",
16169
- "https://w3id.org/identity/v1",
16170
- ];
16171
- return result;
16172
- }
16173
15844
  // deno-lint-ignore no-unused-vars prefer-const
16174
15845
  let array;
16175
15846
  const baseValues = await super.toJsonLd({
@@ -16186,9 +15857,9 @@ export class Dislike extends Activity {
16186
15857
  }
16187
15858
  const docContext = options.context ??
16188
15859
  [
15860
+ "https://w3id.org/identity/v1",
16189
15861
  "https://www.w3.org/ns/activitystreams",
16190
15862
  "https://w3id.org/security/data-integrity/v1",
16191
- "https://w3id.org/identity/v1",
16192
15863
  ];
16193
15864
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
16194
15865
  if (docContext != null) {
@@ -17169,24 +16840,6 @@ export class Flag extends Activity {
17169
16840
  ...options,
17170
16841
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
17171
16842
  };
17172
- if (options.format == null && this.isCompactable()) {
17173
- const result = await super.toJsonLd({
17174
- ...options,
17175
- format: undefined,
17176
- context: undefined,
17177
- });
17178
- // deno-lint-ignore no-unused-vars
17179
- let compactItems;
17180
- result["type"] = "Flag";
17181
- if (this.id != null)
17182
- result["id"] = this.id.href;
17183
- result["@context"] = [
17184
- "https://www.w3.org/ns/activitystreams",
17185
- "https://w3id.org/security/data-integrity/v1",
17186
- "https://w3id.org/identity/v1",
17187
- ];
17188
- return result;
17189
- }
17190
16843
  // deno-lint-ignore no-unused-vars prefer-const
17191
16844
  let array;
17192
16845
  const baseValues = await super.toJsonLd({
@@ -17203,9 +16856,9 @@ export class Flag extends Activity {
17203
16856
  }
17204
16857
  const docContext = options.context ??
17205
16858
  [
16859
+ "https://w3id.org/identity/v1",
17206
16860
  "https://www.w3.org/ns/activitystreams",
17207
16861
  "https://w3id.org/security/data-integrity/v1",
17208
- "https://w3id.org/identity/v1",
17209
16862
  ];
17210
16863
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
17211
16864
  if (docContext != null) {
@@ -17348,24 +17001,6 @@ export class Follow extends Activity {
17348
17001
  ...options,
17349
17002
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
17350
17003
  };
17351
- if (options.format == null && this.isCompactable()) {
17352
- const result = await super.toJsonLd({
17353
- ...options,
17354
- format: undefined,
17355
- context: undefined,
17356
- });
17357
- // deno-lint-ignore no-unused-vars
17358
- let compactItems;
17359
- result["type"] = "Follow";
17360
- if (this.id != null)
17361
- result["id"] = this.id.href;
17362
- result["@context"] = [
17363
- "https://www.w3.org/ns/activitystreams",
17364
- "https://w3id.org/security/data-integrity/v1",
17365
- "https://w3id.org/identity/v1",
17366
- ];
17367
- return result;
17368
- }
17369
17004
  // deno-lint-ignore no-unused-vars prefer-const
17370
17005
  let array;
17371
17006
  const baseValues = await super.toJsonLd({
@@ -17382,9 +17017,9 @@ export class Follow extends Activity {
17382
17017
  }
17383
17018
  const docContext = options.context ??
17384
17019
  [
17020
+ "https://w3id.org/identity/v1",
17385
17021
  "https://www.w3.org/ns/activitystreams",
17386
17022
  "https://w3id.org/security/data-integrity/v1",
17387
- "https://w3id.org/identity/v1",
17388
17023
  ];
17389
17024
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
17390
17025
  if (docContext != null) {
@@ -21672,24 +21307,6 @@ export class Offer extends Activity {
21672
21307
  ...options,
21673
21308
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
21674
21309
  };
21675
- if (options.format == null && this.isCompactable()) {
21676
- const result = await super.toJsonLd({
21677
- ...options,
21678
- format: undefined,
21679
- context: undefined,
21680
- });
21681
- // deno-lint-ignore no-unused-vars
21682
- let compactItems;
21683
- result["type"] = "Offer";
21684
- if (this.id != null)
21685
- result["id"] = this.id.href;
21686
- result["@context"] = [
21687
- "https://www.w3.org/ns/activitystreams",
21688
- "https://w3id.org/security/data-integrity/v1",
21689
- "https://w3id.org/identity/v1",
21690
- ];
21691
- return result;
21692
- }
21693
21310
  // deno-lint-ignore no-unused-vars prefer-const
21694
21311
  let array;
21695
21312
  const baseValues = await super.toJsonLd({
@@ -21706,9 +21323,9 @@ export class Offer extends Activity {
21706
21323
  }
21707
21324
  const docContext = options.context ??
21708
21325
  [
21326
+ "https://w3id.org/identity/v1",
21709
21327
  "https://www.w3.org/ns/activitystreams",
21710
21328
  "https://w3id.org/security/data-integrity/v1",
21711
- "https://w3id.org/identity/v1",
21712
21329
  ];
21713
21330
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21714
21331
  if (docContext != null) {
@@ -21852,24 +21469,6 @@ export class Invite extends Offer {
21852
21469
  ...options,
21853
21470
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
21854
21471
  };
21855
- if (options.format == null && this.isCompactable()) {
21856
- const result = await super.toJsonLd({
21857
- ...options,
21858
- format: undefined,
21859
- context: undefined,
21860
- });
21861
- // deno-lint-ignore no-unused-vars
21862
- let compactItems;
21863
- result["type"] = "Invite";
21864
- if (this.id != null)
21865
- result["id"] = this.id.href;
21866
- result["@context"] = [
21867
- "https://www.w3.org/ns/activitystreams",
21868
- "https://w3id.org/security/data-integrity/v1",
21869
- "https://w3id.org/identity/v1",
21870
- ];
21871
- return result;
21872
- }
21873
21472
  // deno-lint-ignore no-unused-vars prefer-const
21874
21473
  let array;
21875
21474
  const baseValues = await super.toJsonLd({
@@ -21886,9 +21485,9 @@ export class Invite extends Offer {
21886
21485
  }
21887
21486
  const docContext = options.context ??
21888
21487
  [
21488
+ "https://w3id.org/identity/v1",
21889
21489
  "https://www.w3.org/ns/activitystreams",
21890
21490
  "https://w3id.org/security/data-integrity/v1",
21891
- "https://w3id.org/identity/v1",
21892
21491
  ];
21893
21492
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21894
21493
  if (docContext != null) {
@@ -22029,24 +21628,6 @@ export class Join extends Activity {
22029
21628
  ...options,
22030
21629
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
22031
21630
  };
22032
- if (options.format == null && this.isCompactable()) {
22033
- const result = await super.toJsonLd({
22034
- ...options,
22035
- format: undefined,
22036
- context: undefined,
22037
- });
22038
- // deno-lint-ignore no-unused-vars
22039
- let compactItems;
22040
- result["type"] = "Join";
22041
- if (this.id != null)
22042
- result["id"] = this.id.href;
22043
- result["@context"] = [
22044
- "https://www.w3.org/ns/activitystreams",
22045
- "https://w3id.org/security/data-integrity/v1",
22046
- "https://w3id.org/identity/v1",
22047
- ];
22048
- return result;
22049
- }
22050
21631
  // deno-lint-ignore no-unused-vars prefer-const
22051
21632
  let array;
22052
21633
  const baseValues = await super.toJsonLd({
@@ -22063,9 +21644,9 @@ export class Join extends Activity {
22063
21644
  }
22064
21645
  const docContext = options.context ??
22065
21646
  [
21647
+ "https://w3id.org/identity/v1",
22066
21648
  "https://www.w3.org/ns/activitystreams",
22067
21649
  "https://w3id.org/security/data-integrity/v1",
22068
- "https://w3id.org/identity/v1",
22069
21650
  ];
22070
21651
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22071
21652
  if (docContext != null) {
@@ -22206,24 +21787,6 @@ export class Leave extends Activity {
22206
21787
  ...options,
22207
21788
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
22208
21789
  };
22209
- if (options.format == null && this.isCompactable()) {
22210
- const result = await super.toJsonLd({
22211
- ...options,
22212
- format: undefined,
22213
- context: undefined,
22214
- });
22215
- // deno-lint-ignore no-unused-vars
22216
- let compactItems;
22217
- result["type"] = "Leave";
22218
- if (this.id != null)
22219
- result["id"] = this.id.href;
22220
- result["@context"] = [
22221
- "https://www.w3.org/ns/activitystreams",
22222
- "https://w3id.org/security/data-integrity/v1",
22223
- "https://w3id.org/identity/v1",
22224
- ];
22225
- return result;
22226
- }
22227
21790
  // deno-lint-ignore no-unused-vars prefer-const
22228
21791
  let array;
22229
21792
  const baseValues = await super.toJsonLd({
@@ -22240,9 +21803,9 @@ export class Leave extends Activity {
22240
21803
  }
22241
21804
  const docContext = options.context ??
22242
21805
  [
21806
+ "https://w3id.org/identity/v1",
22243
21807
  "https://www.w3.org/ns/activitystreams",
22244
21808
  "https://w3id.org/security/data-integrity/v1",
22245
- "https://w3id.org/identity/v1",
22246
21809
  ];
22247
21810
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22248
21811
  if (docContext != null) {
@@ -22383,24 +21946,6 @@ export class Like extends Activity {
22383
21946
  ...options,
22384
21947
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
22385
21948
  };
22386
- if (options.format == null && this.isCompactable()) {
22387
- const result = await super.toJsonLd({
22388
- ...options,
22389
- format: undefined,
22390
- context: undefined,
22391
- });
22392
- // deno-lint-ignore no-unused-vars
22393
- let compactItems;
22394
- result["type"] = "Like";
22395
- if (this.id != null)
22396
- result["id"] = this.id.href;
22397
- result["@context"] = [
22398
- "https://www.w3.org/ns/activitystreams",
22399
- "https://w3id.org/security/data-integrity/v1",
22400
- "https://w3id.org/identity/v1",
22401
- ];
22402
- return result;
22403
- }
22404
21949
  // deno-lint-ignore no-unused-vars prefer-const
22405
21950
  let array;
22406
21951
  const baseValues = await super.toJsonLd({
@@ -22417,9 +21962,9 @@ export class Like extends Activity {
22417
21962
  }
22418
21963
  const docContext = options.context ??
22419
21964
  [
21965
+ "https://w3id.org/identity/v1",
22420
21966
  "https://www.w3.org/ns/activitystreams",
22421
21967
  "https://w3id.org/security/data-integrity/v1",
22422
- "https://w3id.org/identity/v1",
22423
21968
  ];
22424
21969
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22425
21970
  if (docContext != null) {
@@ -22559,24 +22104,6 @@ export class Listen extends Activity {
22559
22104
  ...options,
22560
22105
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
22561
22106
  };
22562
- if (options.format == null && this.isCompactable()) {
22563
- const result = await super.toJsonLd({
22564
- ...options,
22565
- format: undefined,
22566
- context: undefined,
22567
- });
22568
- // deno-lint-ignore no-unused-vars
22569
- let compactItems;
22570
- result["type"] = "Listen";
22571
- if (this.id != null)
22572
- result["id"] = this.id.href;
22573
- result["@context"] = [
22574
- "https://www.w3.org/ns/activitystreams",
22575
- "https://w3id.org/security/data-integrity/v1",
22576
- "https://w3id.org/identity/v1",
22577
- ];
22578
- return result;
22579
- }
22580
22107
  // deno-lint-ignore no-unused-vars prefer-const
22581
22108
  let array;
22582
22109
  const baseValues = await super.toJsonLd({
@@ -22593,9 +22120,9 @@ export class Listen extends Activity {
22593
22120
  }
22594
22121
  const docContext = options.context ??
22595
22122
  [
22123
+ "https://w3id.org/identity/v1",
22596
22124
  "https://www.w3.org/ns/activitystreams",
22597
22125
  "https://w3id.org/security/data-integrity/v1",
22598
- "https://w3id.org/identity/v1",
22599
22126
  ];
22600
22127
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22601
22128
  if (docContext != null) {
@@ -22894,24 +22421,6 @@ export class Move extends Activity {
22894
22421
  ...options,
22895
22422
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
22896
22423
  };
22897
- if (options.format == null && this.isCompactable()) {
22898
- const result = await super.toJsonLd({
22899
- ...options,
22900
- format: undefined,
22901
- context: undefined,
22902
- });
22903
- // deno-lint-ignore no-unused-vars
22904
- let compactItems;
22905
- result["type"] = "Move";
22906
- if (this.id != null)
22907
- result["id"] = this.id.href;
22908
- result["@context"] = [
22909
- "https://www.w3.org/ns/activitystreams",
22910
- "https://w3id.org/security/data-integrity/v1",
22911
- "https://w3id.org/identity/v1",
22912
- ];
22913
- return result;
22914
- }
22915
22424
  // deno-lint-ignore no-unused-vars prefer-const
22916
22425
  let array;
22917
22426
  const baseValues = await super.toJsonLd({
@@ -22928,9 +22437,9 @@ export class Move extends Activity {
22928
22437
  }
22929
22438
  const docContext = options.context ??
22930
22439
  [
22440
+ "https://w3id.org/identity/v1",
22931
22441
  "https://www.w3.org/ns/activitystreams",
22932
22442
  "https://w3id.org/security/data-integrity/v1",
22933
- "https://w3id.org/identity/v1",
22934
22443
  ];
22935
22444
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22936
22445
  if (docContext != null) {
@@ -31227,100 +30736,6 @@ export class Question extends IntransitiveActivity {
31227
30736
  ...options,
31228
30737
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
31229
30738
  };
31230
- if (options.format == null && this.isCompactable()) {
31231
- const result = await super.toJsonLd({
31232
- ...options,
31233
- format: undefined,
31234
- context: undefined,
31235
- });
31236
- // deno-lint-ignore no-unused-vars
31237
- let compactItems;
31238
- compactItems = [];
31239
- for (const v of this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf) {
31240
- const item = v instanceof URL ? v.href : await v.toJsonLd({
31241
- ...options,
31242
- format: undefined,
31243
- context: undefined,
31244
- });
31245
- compactItems.push(item);
31246
- }
31247
- if (compactItems.length > 0) {
31248
- result["oneOf"] = compactItems.length > 1
31249
- ? compactItems
31250
- : compactItems[0];
31251
- }
31252
- compactItems = [];
31253
- for (const v of this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf) {
31254
- const item = v instanceof URL ? v.href : await v.toJsonLd({
31255
- ...options,
31256
- format: undefined,
31257
- context: undefined,
31258
- });
31259
- compactItems.push(item);
31260
- }
31261
- if (compactItems.length > 0) {
31262
- result["anyOf"] = compactItems.length > 1
31263
- ? compactItems
31264
- : compactItems[0];
31265
- }
31266
- compactItems = [];
31267
- for (const v of this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed) {
31268
- const item = v instanceof dntShim.Temporal.Instant ? v.toString() : v;
31269
- compactItems.push(item);
31270
- }
31271
- if (compactItems.length > 0) {
31272
- result["closed"] = compactItems.length > 1
31273
- ? compactItems
31274
- : compactItems[0];
31275
- }
31276
- compactItems = [];
31277
- for (const v of this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount) {
31278
- const item = v;
31279
- compactItems.push(item);
31280
- }
31281
- if (compactItems.length > 0) {
31282
- result["votersCount"] = compactItems.length > 1
31283
- ? compactItems
31284
- : compactItems[0];
31285
- }
31286
- compactItems = [];
31287
- for (const v of this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl) {
31288
- const item = v.href;
31289
- compactItems.push(item);
31290
- }
31291
- if (compactItems.length > 0) {
31292
- result["quoteUrl"] = compactItems.length > 1
31293
- ? compactItems
31294
- : compactItems[0];
31295
- result["_misskey_quote"] = compactItems.length > 1
31296
- ? compactItems
31297
- : compactItems[0];
31298
- result["quoteUri"] = compactItems.length > 1
31299
- ? compactItems
31300
- : compactItems[0];
31301
- }
31302
- result["type"] = "Question";
31303
- if (this.id != null)
31304
- result["id"] = this.id.href;
31305
- result["@context"] = [
31306
- "https://www.w3.org/ns/activitystreams",
31307
- "https://w3id.org/security/data-integrity/v1",
31308
- "https://w3id.org/identity/v1",
31309
- {
31310
- "toot": "http://joinmastodon.org/ns#",
31311
- "misskey": "https://misskey-hub.net/ns#",
31312
- "fedibird": "http://fedibird.com/ns#",
31313
- "sensitive": "as:sensitive",
31314
- "votersCount": "toot:votersCount",
31315
- "Emoji": "toot:Emoji",
31316
- "Hashtag": "as:Hashtag",
31317
- "quoteUrl": "as:quoteUrl",
31318
- "_misskey_quote": "misskey:_misskey_quote",
31319
- "quoteUri": "fedibird:quoteUri",
31320
- },
31321
- ];
31322
- return result;
31323
- }
31324
30739
  // deno-lint-ignore no-unused-vars prefer-const
31325
30740
  let array;
31326
30741
  const baseValues = await super.toJsonLd({
@@ -31396,9 +30811,9 @@ export class Question extends IntransitiveActivity {
31396
30811
  }
31397
30812
  const docContext = options.context ??
31398
30813
  [
30814
+ "https://w3id.org/identity/v1",
31399
30815
  "https://www.w3.org/ns/activitystreams",
31400
30816
  "https://w3id.org/security/data-integrity/v1",
31401
- "https://w3id.org/identity/v1",
31402
30817
  {
31403
30818
  "toot": "http://joinmastodon.org/ns#",
31404
30819
  "misskey": "https://misskey-hub.net/ns#",
@@ -31714,24 +31129,6 @@ export class Read extends Activity {
31714
31129
  ...options,
31715
31130
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
31716
31131
  };
31717
- if (options.format == null && this.isCompactable()) {
31718
- const result = await super.toJsonLd({
31719
- ...options,
31720
- format: undefined,
31721
- context: undefined,
31722
- });
31723
- // deno-lint-ignore no-unused-vars
31724
- let compactItems;
31725
- result["type"] = "Read";
31726
- if (this.id != null)
31727
- result["id"] = this.id.href;
31728
- result["@context"] = [
31729
- "https://www.w3.org/ns/activitystreams",
31730
- "https://w3id.org/security/data-integrity/v1",
31731
- "https://w3id.org/identity/v1",
31732
- ];
31733
- return result;
31734
- }
31735
31132
  // deno-lint-ignore no-unused-vars prefer-const
31736
31133
  let array;
31737
31134
  const baseValues = await super.toJsonLd({
@@ -31748,9 +31145,9 @@ export class Read extends Activity {
31748
31145
  }
31749
31146
  const docContext = options.context ??
31750
31147
  [
31148
+ "https://w3id.org/identity/v1",
31751
31149
  "https://www.w3.org/ns/activitystreams",
31752
31150
  "https://w3id.org/security/data-integrity/v1",
31753
- "https://w3id.org/identity/v1",
31754
31151
  ];
31755
31152
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
31756
31153
  if (docContext != null) {
@@ -31891,24 +31288,6 @@ export class Reject extends Activity {
31891
31288
  ...options,
31892
31289
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
31893
31290
  };
31894
- if (options.format == null && this.isCompactable()) {
31895
- const result = await super.toJsonLd({
31896
- ...options,
31897
- format: undefined,
31898
- context: undefined,
31899
- });
31900
- // deno-lint-ignore no-unused-vars
31901
- let compactItems;
31902
- result["type"] = "Reject";
31903
- if (this.id != null)
31904
- result["id"] = this.id.href;
31905
- result["@context"] = [
31906
- "https://www.w3.org/ns/activitystreams",
31907
- "https://w3id.org/security/data-integrity/v1",
31908
- "https://w3id.org/identity/v1",
31909
- ];
31910
- return result;
31911
- }
31912
31291
  // deno-lint-ignore no-unused-vars prefer-const
31913
31292
  let array;
31914
31293
  const baseValues = await super.toJsonLd({
@@ -31925,9 +31304,9 @@ export class Reject extends Activity {
31925
31304
  }
31926
31305
  const docContext = options.context ??
31927
31306
  [
31307
+ "https://w3id.org/identity/v1",
31928
31308
  "https://www.w3.org/ns/activitystreams",
31929
31309
  "https://w3id.org/security/data-integrity/v1",
31930
- "https://w3id.org/identity/v1",
31931
31310
  ];
31932
31311
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
31933
31312
  if (docContext != null) {
@@ -32793,24 +32172,6 @@ export class Remove extends Activity {
32793
32172
  ...options,
32794
32173
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
32795
32174
  };
32796
- if (options.format == null && this.isCompactable()) {
32797
- const result = await super.toJsonLd({
32798
- ...options,
32799
- format: undefined,
32800
- context: undefined,
32801
- });
32802
- // deno-lint-ignore no-unused-vars
32803
- let compactItems;
32804
- result["type"] = "Remove";
32805
- if (this.id != null)
32806
- result["id"] = this.id.href;
32807
- result["@context"] = [
32808
- "https://www.w3.org/ns/activitystreams",
32809
- "https://w3id.org/security/data-integrity/v1",
32810
- "https://w3id.org/identity/v1",
32811
- ];
32812
- return result;
32813
- }
32814
32175
  // deno-lint-ignore no-unused-vars prefer-const
32815
32176
  let array;
32816
32177
  const baseValues = await super.toJsonLd({
@@ -32827,9 +32188,9 @@ export class Remove extends Activity {
32827
32188
  }
32828
32189
  const docContext = options.context ??
32829
32190
  [
32191
+ "https://w3id.org/identity/v1",
32830
32192
  "https://www.w3.org/ns/activitystreams",
32831
32193
  "https://w3id.org/security/data-integrity/v1",
32832
- "https://w3id.org/identity/v1",
32833
32194
  ];
32834
32195
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
32835
32196
  if (docContext != null) {
@@ -36105,24 +35466,6 @@ export class TentativeAccept extends Accept {
36105
35466
  ...options,
36106
35467
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
36107
35468
  };
36108
- if (options.format == null && this.isCompactable()) {
36109
- const result = await super.toJsonLd({
36110
- ...options,
36111
- format: undefined,
36112
- context: undefined,
36113
- });
36114
- // deno-lint-ignore no-unused-vars
36115
- let compactItems;
36116
- result["type"] = "TentativeAccept";
36117
- if (this.id != null)
36118
- result["id"] = this.id.href;
36119
- result["@context"] = [
36120
- "https://www.w3.org/ns/activitystreams",
36121
- "https://w3id.org/security/data-integrity/v1",
36122
- "https://w3id.org/identity/v1",
36123
- ];
36124
- return result;
36125
- }
36126
35469
  // deno-lint-ignore no-unused-vars prefer-const
36127
35470
  let array;
36128
35471
  const baseValues = await super.toJsonLd({
@@ -36139,9 +35482,9 @@ export class TentativeAccept extends Accept {
36139
35482
  }
36140
35483
  const docContext = options.context ??
36141
35484
  [
35485
+ "https://w3id.org/identity/v1",
36142
35486
  "https://www.w3.org/ns/activitystreams",
36143
35487
  "https://w3id.org/security/data-integrity/v1",
36144
- "https://w3id.org/identity/v1",
36145
35488
  ];
36146
35489
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36147
35490
  if (docContext != null) {
@@ -36282,24 +35625,6 @@ export class TentativeReject extends Reject {
36282
35625
  ...options,
36283
35626
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
36284
35627
  };
36285
- if (options.format == null && this.isCompactable()) {
36286
- const result = await super.toJsonLd({
36287
- ...options,
36288
- format: undefined,
36289
- context: undefined,
36290
- });
36291
- // deno-lint-ignore no-unused-vars
36292
- let compactItems;
36293
- result["type"] = "TentativeReject";
36294
- if (this.id != null)
36295
- result["id"] = this.id.href;
36296
- result["@context"] = [
36297
- "https://www.w3.org/ns/activitystreams",
36298
- "https://w3id.org/security/data-integrity/v1",
36299
- "https://w3id.org/identity/v1",
36300
- ];
36301
- return result;
36302
- }
36303
35628
  // deno-lint-ignore no-unused-vars prefer-const
36304
35629
  let array;
36305
35630
  const baseValues = await super.toJsonLd({
@@ -36316,9 +35641,9 @@ export class TentativeReject extends Reject {
36316
35641
  }
36317
35642
  const docContext = options.context ??
36318
35643
  [
35644
+ "https://w3id.org/identity/v1",
36319
35645
  "https://www.w3.org/ns/activitystreams",
36320
35646
  "https://w3id.org/security/data-integrity/v1",
36321
- "https://w3id.org/identity/v1",
36322
35647
  ];
36323
35648
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36324
35649
  if (docContext != null) {
@@ -36716,24 +36041,6 @@ export class Travel extends IntransitiveActivity {
36716
36041
  ...options,
36717
36042
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
36718
36043
  };
36719
- if (options.format == null && this.isCompactable()) {
36720
- const result = await super.toJsonLd({
36721
- ...options,
36722
- format: undefined,
36723
- context: undefined,
36724
- });
36725
- // deno-lint-ignore no-unused-vars
36726
- let compactItems;
36727
- result["type"] = "Travel";
36728
- if (this.id != null)
36729
- result["id"] = this.id.href;
36730
- result["@context"] = [
36731
- "https://www.w3.org/ns/activitystreams",
36732
- "https://w3id.org/security/data-integrity/v1",
36733
- "https://w3id.org/identity/v1",
36734
- ];
36735
- return result;
36736
- }
36737
36044
  // deno-lint-ignore no-unused-vars prefer-const
36738
36045
  let array;
36739
36046
  const baseValues = await super.toJsonLd({
@@ -36750,9 +36057,9 @@ export class Travel extends IntransitiveActivity {
36750
36057
  }
36751
36058
  const docContext = options.context ??
36752
36059
  [
36060
+ "https://w3id.org/identity/v1",
36753
36061
  "https://www.w3.org/ns/activitystreams",
36754
36062
  "https://w3id.org/security/data-integrity/v1",
36755
- "https://w3id.org/identity/v1",
36756
36063
  ];
36757
36064
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36758
36065
  if (docContext != null) {
@@ -36898,24 +36205,6 @@ export class Undo extends Activity {
36898
36205
  ...options,
36899
36206
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
36900
36207
  };
36901
- if (options.format == null && this.isCompactable()) {
36902
- const result = await super.toJsonLd({
36903
- ...options,
36904
- format: undefined,
36905
- context: undefined,
36906
- });
36907
- // deno-lint-ignore no-unused-vars
36908
- let compactItems;
36909
- result["type"] = "Undo";
36910
- if (this.id != null)
36911
- result["id"] = this.id.href;
36912
- result["@context"] = [
36913
- "https://www.w3.org/ns/activitystreams",
36914
- "https://w3id.org/security/data-integrity/v1",
36915
- "https://w3id.org/identity/v1",
36916
- ];
36917
- return result;
36918
- }
36919
36208
  // deno-lint-ignore no-unused-vars prefer-const
36920
36209
  let array;
36921
36210
  const baseValues = await super.toJsonLd({
@@ -36932,9 +36221,9 @@ export class Undo extends Activity {
36932
36221
  }
36933
36222
  const docContext = options.context ??
36934
36223
  [
36224
+ "https://w3id.org/identity/v1",
36935
36225
  "https://www.w3.org/ns/activitystreams",
36936
36226
  "https://w3id.org/security/data-integrity/v1",
36937
- "https://w3id.org/identity/v1",
36938
36227
  ];
36939
36228
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36940
36229
  if (docContext != null) {
@@ -37078,47 +36367,6 @@ export class Update extends Activity {
37078
36367
  ...options,
37079
36368
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
37080
36369
  };
37081
- if (options.format == null && this.isCompactable()) {
37082
- const result = await super.toJsonLd({
37083
- ...options,
37084
- format: undefined,
37085
- context: undefined,
37086
- });
37087
- // deno-lint-ignore no-unused-vars
37088
- let compactItems;
37089
- result["type"] = "Update";
37090
- if (this.id != null)
37091
- result["id"] = this.id.href;
37092
- result["@context"] = [
37093
- "https://www.w3.org/ns/activitystreams",
37094
- "https://w3id.org/security/data-integrity/v1",
37095
- "https://w3id.org/identity/v1",
37096
- {
37097
- "toot": "http://joinmastodon.org/ns#",
37098
- "schema": "http://schema.org#",
37099
- "misskey": "https://misskey-hub.net/ns#",
37100
- "fedibird": "http://fedibird.com/ns#",
37101
- "PropertyValue": "schema:PropertyValue",
37102
- "value": "schema:value",
37103
- "sensitive": "as:sensitive",
37104
- "votersCount": "toot:votersCount",
37105
- "featured": { "@id": "toot:featured", "@type": "@id" },
37106
- "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
37107
- "discoverable": "toot:discoverable",
37108
- "suspended": "toot:suspended",
37109
- "memorial": "toot:memorial",
37110
- "indexable": "toot:indexable",
37111
- "Emoji": "toot:Emoji",
37112
- "Hashtag": "as:Hashtag",
37113
- "ChatMessage": "http://litepub.social/ns#ChatMessage",
37114
- "quoteUrl": "as:quoteUrl",
37115
- "_misskey_quote": "misskey:_misskey_quote",
37116
- "quoteUri": "fedibird:quoteUri",
37117
- "isCat": "misskey:isCat",
37118
- },
37119
- ];
37120
- return result;
37121
- }
37122
36370
  // deno-lint-ignore no-unused-vars prefer-const
37123
36371
  let array;
37124
36372
  const baseValues = await super.toJsonLd({
@@ -37135,9 +36383,9 @@ export class Update extends Activity {
37135
36383
  }
37136
36384
  const docContext = options.context ??
37137
36385
  [
36386
+ "https://w3id.org/identity/v1",
37138
36387
  "https://www.w3.org/ns/activitystreams",
37139
36388
  "https://w3id.org/security/data-integrity/v1",
37140
- "https://w3id.org/identity/v1",
37141
36389
  {
37142
36390
  "toot": "http://joinmastodon.org/ns#",
37143
36391
  "schema": "http://schema.org#",
@@ -37474,24 +36722,6 @@ export class View extends Activity {
37474
36722
  ...options,
37475
36723
  contextLoader: options.contextLoader ?? fetchDocumentLoader,
37476
36724
  };
37477
- if (options.format == null && this.isCompactable()) {
37478
- const result = await super.toJsonLd({
37479
- ...options,
37480
- format: undefined,
37481
- context: undefined,
37482
- });
37483
- // deno-lint-ignore no-unused-vars
37484
- let compactItems;
37485
- result["type"] = "View";
37486
- if (this.id != null)
37487
- result["id"] = this.id.href;
37488
- result["@context"] = [
37489
- "https://www.w3.org/ns/activitystreams",
37490
- "https://w3id.org/security/data-integrity/v1",
37491
- "https://w3id.org/identity/v1",
37492
- ];
37493
- return result;
37494
- }
37495
36725
  // deno-lint-ignore no-unused-vars prefer-const
37496
36726
  let array;
37497
36727
  const baseValues = await super.toJsonLd({
@@ -37508,9 +36738,9 @@ export class View extends Activity {
37508
36738
  }
37509
36739
  const docContext = options.context ??
37510
36740
  [
36741
+ "https://w3id.org/identity/v1",
37511
36742
  "https://www.w3.org/ns/activitystreams",
37512
36743
  "https://w3id.org/security/data-integrity/v1",
37513
- "https://w3id.org/identity/v1",
37514
36744
  ];
37515
36745
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
37516
36746
  if (docContext != null) {