@fedify/fedify 1.0.0-dev.386 → 1.0.0-dev.388

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/CHANGES.md +27 -0
  2. package/FEDERATION.md +2 -0
  3. package/esm/federation/handler.js +44 -17
  4. package/esm/federation/send.js +31 -13
  5. package/esm/runtime/contexts.js +152 -0
  6. package/esm/sig/http.js +11 -1
  7. package/esm/sig/ld.js +203 -0
  8. package/esm/sig/mod.js +1 -0
  9. package/esm/testing/fixtures/activitypub.academy/users/brauca_darradiul +83 -0
  10. package/esm/testing/fixtures/w3id.org/identity/v1 +152 -0
  11. package/esm/vocab/accept.yaml +1 -0
  12. package/esm/vocab/activity.yaml +1 -0
  13. package/esm/vocab/add.yaml +1 -0
  14. package/esm/vocab/announce.yaml +1 -0
  15. package/esm/vocab/arrive.yaml +1 -0
  16. package/esm/vocab/block.yaml +1 -0
  17. package/esm/vocab/create.yaml +1 -0
  18. package/esm/vocab/delete.yaml +1 -0
  19. package/esm/vocab/dislike.yaml +1 -0
  20. package/esm/vocab/flag.yaml +1 -0
  21. package/esm/vocab/follow.yaml +1 -0
  22. package/esm/vocab/ignore.yaml +1 -0
  23. package/esm/vocab/intransitiveactivity.yaml +1 -0
  24. package/esm/vocab/invite.yaml +1 -0
  25. package/esm/vocab/join.yaml +1 -0
  26. package/esm/vocab/leave.yaml +1 -0
  27. package/esm/vocab/like.yaml +1 -0
  28. package/esm/vocab/listen.yaml +1 -0
  29. package/esm/vocab/move.yaml +1 -0
  30. package/esm/vocab/offer.yaml +1 -0
  31. package/esm/vocab/question.yaml +1 -0
  32. package/esm/vocab/read.yaml +1 -0
  33. package/esm/vocab/reject.yaml +1 -0
  34. package/esm/vocab/remove.yaml +1 -0
  35. package/esm/vocab/tentativeaccept.yaml +1 -0
  36. package/esm/vocab/tentativereject.yaml +1 -0
  37. package/esm/vocab/travel.yaml +1 -0
  38. package/esm/vocab/undo.yaml +1 -0
  39. package/esm/vocab/update.yaml +1 -0
  40. package/esm/vocab/view.yaml +1 -0
  41. package/esm/vocab/vocab.js +59 -0
  42. package/package.json +1 -1
  43. package/types/federation/handler.d.ts.map +1 -1
  44. package/types/federation/send.d.ts.map +1 -1
  45. package/types/runtime/contexts.d.ts.map +1 -1
  46. package/types/sig/http.d.ts.map +1 -1
  47. package/types/sig/ld.d.ts +129 -0
  48. package/types/sig/ld.d.ts.map +1 -0
  49. package/types/sig/mod.d.ts +1 -0
  50. package/types/sig/mod.d.ts.map +1 -1
  51. package/types/vocab/vocab.d.ts.map +1 -1
@@ -8799,6 +8799,7 @@ export class Activity extends Object {
8799
8799
  "https://www.w3.org/ns/activitystreams",
8800
8800
  "https://w3id.org/security/v1",
8801
8801
  "https://w3id.org/security/data-integrity/v1",
8802
+ "https://w3id.org/identity/v1",
8802
8803
  ];
8803
8804
  return result;
8804
8805
  }
@@ -8895,6 +8896,7 @@ export class Activity extends Object {
8895
8896
  "https://www.w3.org/ns/activitystreams",
8896
8897
  "https://w3id.org/security/v1",
8897
8898
  "https://w3id.org/security/data-integrity/v1",
8899
+ "https://w3id.org/identity/v1",
8898
8900
  ];
8899
8901
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
8900
8902
  if (docContext != null) {
@@ -9373,6 +9375,7 @@ export class Accept extends Activity {
9373
9375
  result["@context"] = [
9374
9376
  "https://www.w3.org/ns/activitystreams",
9375
9377
  "https://w3id.org/security/data-integrity/v1",
9378
+ "https://w3id.org/identity/v1",
9376
9379
  ];
9377
9380
  return result;
9378
9381
  }
@@ -9394,6 +9397,7 @@ export class Accept extends Activity {
9394
9397
  [
9395
9398
  "https://www.w3.org/ns/activitystreams",
9396
9399
  "https://w3id.org/security/data-integrity/v1",
9400
+ "https://w3id.org/identity/v1",
9397
9401
  ];
9398
9402
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
9399
9403
  if (docContext != null) {
@@ -9550,6 +9554,7 @@ export class Add extends Activity {
9550
9554
  result["@context"] = [
9551
9555
  "https://www.w3.org/ns/activitystreams",
9552
9556
  "https://w3id.org/security/data-integrity/v1",
9557
+ "https://w3id.org/identity/v1",
9553
9558
  ];
9554
9559
  return result;
9555
9560
  }
@@ -9571,6 +9576,7 @@ export class Add extends Activity {
9571
9576
  [
9572
9577
  "https://www.w3.org/ns/activitystreams",
9573
9578
  "https://w3id.org/security/data-integrity/v1",
9579
+ "https://w3id.org/identity/v1",
9574
9580
  ];
9575
9581
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
9576
9582
  if (docContext != null) {
@@ -9723,6 +9729,7 @@ export class Announce extends Activity {
9723
9729
  result["@context"] = [
9724
9730
  "https://www.w3.org/ns/activitystreams",
9725
9731
  "https://w3id.org/security/data-integrity/v1",
9732
+ "https://w3id.org/identity/v1",
9726
9733
  {
9727
9734
  "toot": "http://joinmastodon.org/ns#",
9728
9735
  "misskey": "https://misskey-hub.net/ns#",
@@ -9756,6 +9763,7 @@ export class Announce extends Activity {
9756
9763
  [
9757
9764
  "https://www.w3.org/ns/activitystreams",
9758
9765
  "https://w3id.org/security/data-integrity/v1",
9766
+ "https://w3id.org/identity/v1",
9759
9767
  {
9760
9768
  "toot": "http://joinmastodon.org/ns#",
9761
9769
  "misskey": "https://misskey-hub.net/ns#",
@@ -12593,6 +12601,7 @@ export class IntransitiveActivity extends Activity {
12593
12601
  result["@context"] = [
12594
12602
  "https://www.w3.org/ns/activitystreams",
12595
12603
  "https://w3id.org/security/data-integrity/v1",
12604
+ "https://w3id.org/identity/v1",
12596
12605
  ];
12597
12606
  return result;
12598
12607
  }
@@ -12616,6 +12625,7 @@ export class IntransitiveActivity extends Activity {
12616
12625
  [
12617
12626
  "https://www.w3.org/ns/activitystreams",
12618
12627
  "https://w3id.org/security/data-integrity/v1",
12628
+ "https://w3id.org/identity/v1",
12619
12629
  ];
12620
12630
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
12621
12631
  if (docContext != null) {
@@ -12781,6 +12791,7 @@ export class Arrive extends IntransitiveActivity {
12781
12791
  [
12782
12792
  "https://www.w3.org/ns/activitystreams",
12783
12793
  "https://w3id.org/security/data-integrity/v1",
12794
+ "https://w3id.org/identity/v1",
12784
12795
  ];
12785
12796
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
12786
12797
  if (docContext != null) {
@@ -13743,6 +13754,7 @@ export class Ignore extends Activity {
13743
13754
  result["@context"] = [
13744
13755
  "https://www.w3.org/ns/activitystreams",
13745
13756
  "https://w3id.org/security/data-integrity/v1",
13757
+ "https://w3id.org/identity/v1",
13746
13758
  ];
13747
13759
  return result;
13748
13760
  }
@@ -13764,6 +13776,7 @@ export class Ignore extends Activity {
13764
13776
  [
13765
13777
  "https://www.w3.org/ns/activitystreams",
13766
13778
  "https://w3id.org/security/data-integrity/v1",
13779
+ "https://w3id.org/identity/v1",
13767
13780
  ];
13768
13781
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
13769
13782
  if (docContext != null) {
@@ -13920,6 +13933,7 @@ export class Block extends Ignore {
13920
13933
  result["@context"] = [
13921
13934
  "https://www.w3.org/ns/activitystreams",
13922
13935
  "https://w3id.org/security/data-integrity/v1",
13936
+ "https://w3id.org/identity/v1",
13923
13937
  ];
13924
13938
  return result;
13925
13939
  }
@@ -13941,6 +13955,7 @@ export class Block extends Ignore {
13941
13955
  [
13942
13956
  "https://www.w3.org/ns/activitystreams",
13943
13957
  "https://w3id.org/security/data-integrity/v1",
13958
+ "https://w3id.org/identity/v1",
13944
13959
  ];
13945
13960
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
13946
13961
  if (docContext != null) {
@@ -15594,6 +15609,7 @@ export class Create extends Activity {
15594
15609
  result["@context"] = [
15595
15610
  "https://www.w3.org/ns/activitystreams",
15596
15611
  "https://w3id.org/security/data-integrity/v1",
15612
+ "https://w3id.org/identity/v1",
15597
15613
  {
15598
15614
  "toot": "http://joinmastodon.org/ns#",
15599
15615
  "misskey": "https://misskey-hub.net/ns#",
@@ -15628,6 +15644,7 @@ export class Create extends Activity {
15628
15644
  [
15629
15645
  "https://www.w3.org/ns/activitystreams",
15630
15646
  "https://w3id.org/security/data-integrity/v1",
15647
+ "https://w3id.org/identity/v1",
15631
15648
  {
15632
15649
  "toot": "http://joinmastodon.org/ns#",
15633
15650
  "misskey": "https://misskey-hub.net/ns#",
@@ -15792,6 +15809,7 @@ export class Delete extends Activity {
15792
15809
  result["@context"] = [
15793
15810
  "https://www.w3.org/ns/activitystreams",
15794
15811
  "https://w3id.org/security/data-integrity/v1",
15812
+ "https://w3id.org/identity/v1",
15795
15813
  {
15796
15814
  "toot": "http://joinmastodon.org/ns#",
15797
15815
  "misskey": "https://misskey-hub.net/ns#",
@@ -15826,6 +15844,7 @@ export class Delete extends Activity {
15826
15844
  [
15827
15845
  "https://www.w3.org/ns/activitystreams",
15828
15846
  "https://w3id.org/security/data-integrity/v1",
15847
+ "https://w3id.org/identity/v1",
15829
15848
  {
15830
15849
  "toot": "http://joinmastodon.org/ns#",
15831
15850
  "misskey": "https://misskey-hub.net/ns#",
@@ -15989,6 +16008,7 @@ export class Dislike extends Activity {
15989
16008
  result["@context"] = [
15990
16009
  "https://www.w3.org/ns/activitystreams",
15991
16010
  "https://w3id.org/security/data-integrity/v1",
16011
+ "https://w3id.org/identity/v1",
15992
16012
  ];
15993
16013
  return result;
15994
16014
  }
@@ -16010,6 +16030,7 @@ export class Dislike extends Activity {
16010
16030
  [
16011
16031
  "https://www.w3.org/ns/activitystreams",
16012
16032
  "https://w3id.org/security/data-integrity/v1",
16033
+ "https://w3id.org/identity/v1",
16013
16034
  ];
16014
16035
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
16015
16036
  if (docContext != null) {
@@ -16995,6 +17016,7 @@ export class Flag extends Activity {
16995
17016
  result["@context"] = [
16996
17017
  "https://www.w3.org/ns/activitystreams",
16997
17018
  "https://w3id.org/security/data-integrity/v1",
17019
+ "https://w3id.org/identity/v1",
16998
17020
  ];
16999
17021
  return result;
17000
17022
  }
@@ -17016,6 +17038,7 @@ export class Flag extends Activity {
17016
17038
  [
17017
17039
  "https://www.w3.org/ns/activitystreams",
17018
17040
  "https://w3id.org/security/data-integrity/v1",
17041
+ "https://w3id.org/identity/v1",
17019
17042
  ];
17020
17043
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
17021
17044
  if (docContext != null) {
@@ -17169,6 +17192,7 @@ export class Follow extends Activity {
17169
17192
  result["@context"] = [
17170
17193
  "https://www.w3.org/ns/activitystreams",
17171
17194
  "https://w3id.org/security/data-integrity/v1",
17195
+ "https://w3id.org/identity/v1",
17172
17196
  ];
17173
17197
  return result;
17174
17198
  }
@@ -17190,6 +17214,7 @@ export class Follow extends Activity {
17190
17214
  [
17191
17215
  "https://www.w3.org/ns/activitystreams",
17192
17216
  "https://w3id.org/security/data-integrity/v1",
17217
+ "https://w3id.org/identity/v1",
17193
17218
  ];
17194
17219
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
17195
17220
  if (docContext != null) {
@@ -21392,6 +21417,7 @@ export class Offer extends Activity {
21392
21417
  result["@context"] = [
21393
21418
  "https://www.w3.org/ns/activitystreams",
21394
21419
  "https://w3id.org/security/data-integrity/v1",
21420
+ "https://w3id.org/identity/v1",
21395
21421
  ];
21396
21422
  return result;
21397
21423
  }
@@ -21413,6 +21439,7 @@ export class Offer extends Activity {
21413
21439
  [
21414
21440
  "https://www.w3.org/ns/activitystreams",
21415
21441
  "https://w3id.org/security/data-integrity/v1",
21442
+ "https://w3id.org/identity/v1",
21416
21443
  ];
21417
21444
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21418
21445
  if (docContext != null) {
@@ -21567,6 +21594,7 @@ export class Invite extends Offer {
21567
21594
  result["@context"] = [
21568
21595
  "https://www.w3.org/ns/activitystreams",
21569
21596
  "https://w3id.org/security/data-integrity/v1",
21597
+ "https://w3id.org/identity/v1",
21570
21598
  ];
21571
21599
  return result;
21572
21600
  }
@@ -21588,6 +21616,7 @@ export class Invite extends Offer {
21588
21616
  [
21589
21617
  "https://www.w3.org/ns/activitystreams",
21590
21618
  "https://w3id.org/security/data-integrity/v1",
21619
+ "https://w3id.org/identity/v1",
21591
21620
  ];
21592
21621
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21593
21622
  if (docContext != null) {
@@ -21739,6 +21768,7 @@ export class Join extends Activity {
21739
21768
  result["@context"] = [
21740
21769
  "https://www.w3.org/ns/activitystreams",
21741
21770
  "https://w3id.org/security/data-integrity/v1",
21771
+ "https://w3id.org/identity/v1",
21742
21772
  ];
21743
21773
  return result;
21744
21774
  }
@@ -21760,6 +21790,7 @@ export class Join extends Activity {
21760
21790
  [
21761
21791
  "https://www.w3.org/ns/activitystreams",
21762
21792
  "https://w3id.org/security/data-integrity/v1",
21793
+ "https://w3id.org/identity/v1",
21763
21794
  ];
21764
21795
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21765
21796
  if (docContext != null) {
@@ -21911,6 +21942,7 @@ export class Leave extends Activity {
21911
21942
  result["@context"] = [
21912
21943
  "https://www.w3.org/ns/activitystreams",
21913
21944
  "https://w3id.org/security/data-integrity/v1",
21945
+ "https://w3id.org/identity/v1",
21914
21946
  ];
21915
21947
  return result;
21916
21948
  }
@@ -21932,6 +21964,7 @@ export class Leave extends Activity {
21932
21964
  [
21933
21965
  "https://www.w3.org/ns/activitystreams",
21934
21966
  "https://w3id.org/security/data-integrity/v1",
21967
+ "https://w3id.org/identity/v1",
21935
21968
  ];
21936
21969
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
21937
21970
  if (docContext != null) {
@@ -22083,6 +22116,7 @@ export class Like extends Activity {
22083
22116
  result["@context"] = [
22084
22117
  "https://www.w3.org/ns/activitystreams",
22085
22118
  "https://w3id.org/security/data-integrity/v1",
22119
+ "https://w3id.org/identity/v1",
22086
22120
  ];
22087
22121
  return result;
22088
22122
  }
@@ -22104,6 +22138,7 @@ export class Like extends Activity {
22104
22138
  [
22105
22139
  "https://www.w3.org/ns/activitystreams",
22106
22140
  "https://w3id.org/security/data-integrity/v1",
22141
+ "https://w3id.org/identity/v1",
22107
22142
  ];
22108
22143
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22109
22144
  if (docContext != null) {
@@ -22254,6 +22289,7 @@ export class Listen extends Activity {
22254
22289
  result["@context"] = [
22255
22290
  "https://www.w3.org/ns/activitystreams",
22256
22291
  "https://w3id.org/security/data-integrity/v1",
22292
+ "https://w3id.org/identity/v1",
22257
22293
  ];
22258
22294
  return result;
22259
22295
  }
@@ -22275,6 +22311,7 @@ export class Listen extends Activity {
22275
22311
  [
22276
22312
  "https://www.w3.org/ns/activitystreams",
22277
22313
  "https://w3id.org/security/data-integrity/v1",
22314
+ "https://w3id.org/identity/v1",
22278
22315
  ];
22279
22316
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22280
22317
  if (docContext != null) {
@@ -22581,6 +22618,7 @@ export class Move extends Activity {
22581
22618
  result["@context"] = [
22582
22619
  "https://www.w3.org/ns/activitystreams",
22583
22620
  "https://w3id.org/security/data-integrity/v1",
22621
+ "https://w3id.org/identity/v1",
22584
22622
  ];
22585
22623
  return result;
22586
22624
  }
@@ -22602,6 +22640,7 @@ export class Move extends Activity {
22602
22640
  [
22603
22641
  "https://www.w3.org/ns/activitystreams",
22604
22642
  "https://w3id.org/security/data-integrity/v1",
22643
+ "https://w3id.org/identity/v1",
22605
22644
  ];
22606
22645
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
22607
22646
  if (docContext != null) {
@@ -30783,6 +30822,7 @@ export class Question extends IntransitiveActivity {
30783
30822
  result["@context"] = [
30784
30823
  "https://www.w3.org/ns/activitystreams",
30785
30824
  "https://w3id.org/security/data-integrity/v1",
30825
+ "https://w3id.org/identity/v1",
30786
30826
  {
30787
30827
  "toot": "http://joinmastodon.org/ns#",
30788
30828
  "misskey": "https://misskey-hub.net/ns#",
@@ -30875,6 +30915,7 @@ export class Question extends IntransitiveActivity {
30875
30915
  [
30876
30916
  "https://www.w3.org/ns/activitystreams",
30877
30917
  "https://w3id.org/security/data-integrity/v1",
30918
+ "https://w3id.org/identity/v1",
30878
30919
  {
30879
30920
  "toot": "http://joinmastodon.org/ns#",
30880
30921
  "misskey": "https://misskey-hub.net/ns#",
@@ -31201,6 +31242,7 @@ export class Read extends Activity {
31201
31242
  result["@context"] = [
31202
31243
  "https://www.w3.org/ns/activitystreams",
31203
31244
  "https://w3id.org/security/data-integrity/v1",
31245
+ "https://w3id.org/identity/v1",
31204
31246
  ];
31205
31247
  return result;
31206
31248
  }
@@ -31222,6 +31264,7 @@ export class Read extends Activity {
31222
31264
  [
31223
31265
  "https://www.w3.org/ns/activitystreams",
31224
31266
  "https://w3id.org/security/data-integrity/v1",
31267
+ "https://w3id.org/identity/v1",
31225
31268
  ];
31226
31269
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
31227
31270
  if (docContext != null) {
@@ -31373,6 +31416,7 @@ export class Reject extends Activity {
31373
31416
  result["@context"] = [
31374
31417
  "https://www.w3.org/ns/activitystreams",
31375
31418
  "https://w3id.org/security/data-integrity/v1",
31419
+ "https://w3id.org/identity/v1",
31376
31420
  ];
31377
31421
  return result;
31378
31422
  }
@@ -31394,6 +31438,7 @@ export class Reject extends Activity {
31394
31438
  [
31395
31439
  "https://www.w3.org/ns/activitystreams",
31396
31440
  "https://w3id.org/security/data-integrity/v1",
31441
+ "https://w3id.org/identity/v1",
31397
31442
  ];
31398
31443
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
31399
31444
  if (docContext != null) {
@@ -32267,6 +32312,7 @@ export class Remove extends Activity {
32267
32312
  result["@context"] = [
32268
32313
  "https://www.w3.org/ns/activitystreams",
32269
32314
  "https://w3id.org/security/data-integrity/v1",
32315
+ "https://w3id.org/identity/v1",
32270
32316
  ];
32271
32317
  return result;
32272
32318
  }
@@ -32288,6 +32334,7 @@ export class Remove extends Activity {
32288
32334
  [
32289
32335
  "https://www.w3.org/ns/activitystreams",
32290
32336
  "https://w3id.org/security/data-integrity/v1",
32337
+ "https://w3id.org/identity/v1",
32291
32338
  ];
32292
32339
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
32293
32340
  if (docContext != null) {
@@ -35484,6 +35531,7 @@ export class TentativeAccept extends Accept {
35484
35531
  result["@context"] = [
35485
35532
  "https://www.w3.org/ns/activitystreams",
35486
35533
  "https://w3id.org/security/data-integrity/v1",
35534
+ "https://w3id.org/identity/v1",
35487
35535
  ];
35488
35536
  return result;
35489
35537
  }
@@ -35505,6 +35553,7 @@ export class TentativeAccept extends Accept {
35505
35553
  [
35506
35554
  "https://www.w3.org/ns/activitystreams",
35507
35555
  "https://w3id.org/security/data-integrity/v1",
35556
+ "https://w3id.org/identity/v1",
35508
35557
  ];
35509
35558
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
35510
35559
  if (docContext != null) {
@@ -35656,6 +35705,7 @@ export class TentativeReject extends Reject {
35656
35705
  result["@context"] = [
35657
35706
  "https://www.w3.org/ns/activitystreams",
35658
35707
  "https://w3id.org/security/data-integrity/v1",
35708
+ "https://w3id.org/identity/v1",
35659
35709
  ];
35660
35710
  return result;
35661
35711
  }
@@ -35677,6 +35727,7 @@ export class TentativeReject extends Reject {
35677
35727
  [
35678
35728
  "https://www.w3.org/ns/activitystreams",
35679
35729
  "https://w3id.org/security/data-integrity/v1",
35730
+ "https://w3id.org/identity/v1",
35680
35731
  ];
35681
35732
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
35682
35733
  if (docContext != null) {
@@ -36082,6 +36133,7 @@ export class Travel extends IntransitiveActivity {
36082
36133
  result["@context"] = [
36083
36134
  "https://www.w3.org/ns/activitystreams",
36084
36135
  "https://w3id.org/security/data-integrity/v1",
36136
+ "https://w3id.org/identity/v1",
36085
36137
  ];
36086
36138
  return result;
36087
36139
  }
@@ -36103,6 +36155,7 @@ export class Travel extends IntransitiveActivity {
36103
36155
  [
36104
36156
  "https://www.w3.org/ns/activitystreams",
36105
36157
  "https://w3id.org/security/data-integrity/v1",
36158
+ "https://w3id.org/identity/v1",
36106
36159
  ];
36107
36160
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36108
36161
  if (docContext != null) {
@@ -36259,6 +36312,7 @@ export class Undo extends Activity {
36259
36312
  result["@context"] = [
36260
36313
  "https://www.w3.org/ns/activitystreams",
36261
36314
  "https://w3id.org/security/data-integrity/v1",
36315
+ "https://w3id.org/identity/v1",
36262
36316
  ];
36263
36317
  return result;
36264
36318
  }
@@ -36280,6 +36334,7 @@ export class Undo extends Activity {
36280
36334
  [
36281
36335
  "https://www.w3.org/ns/activitystreams",
36282
36336
  "https://w3id.org/security/data-integrity/v1",
36337
+ "https://w3id.org/identity/v1",
36283
36338
  ];
36284
36339
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36285
36340
  if (docContext != null) {
@@ -36434,6 +36489,7 @@ export class Update extends Activity {
36434
36489
  result["@context"] = [
36435
36490
  "https://www.w3.org/ns/activitystreams",
36436
36491
  "https://w3id.org/security/data-integrity/v1",
36492
+ "https://w3id.org/identity/v1",
36437
36493
  {
36438
36494
  "toot": "http://joinmastodon.org/ns#",
36439
36495
  "misskey": "https://misskey-hub.net/ns#",
@@ -36468,6 +36524,7 @@ export class Update extends Activity {
36468
36524
  [
36469
36525
  "https://www.w3.org/ns/activitystreams",
36470
36526
  "https://w3id.org/security/data-integrity/v1",
36527
+ "https://w3id.org/identity/v1",
36471
36528
  {
36472
36529
  "toot": "http://joinmastodon.org/ns#",
36473
36530
  "misskey": "https://misskey-hub.net/ns#",
@@ -36802,6 +36859,7 @@ export class View extends Activity {
36802
36859
  result["@context"] = [
36803
36860
  "https://www.w3.org/ns/activitystreams",
36804
36861
  "https://w3id.org/security/data-integrity/v1",
36862
+ "https://w3id.org/identity/v1",
36805
36863
  ];
36806
36864
  return result;
36807
36865
  }
@@ -36823,6 +36881,7 @@ export class View extends Activity {
36823
36881
  [
36824
36882
  "https://www.w3.org/ns/activitystreams",
36825
36883
  "https://w3id.org/security/data-integrity/v1",
36884
+ "https://w3id.org/identity/v1",
36826
36885
  ];
36827
36886
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
36828
36887
  if (docContext != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.0.0-dev.386+a86e6806",
3
+ "version": "1.0.0-dev.388+37999dd9",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/federation/handler.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAGL,IAAI,EAEJ,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CASvD;AAED,MAAM,WAAW,sBAAsB,CAAC,Y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,cAAc,EACd,OAAO,GACR,EAAE,sBAAsB,GACxB,OAAO,CAAC,IAAI,CAAC,CAkHf"}
@@ -1 +1 @@
1
- {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/runtime/contexts.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAonB9C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/runtime/contexts.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA6wB9C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/sig/http.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAY,KAAK,QAAQ,EAAqB,MAAM,UAAU,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,GACT,OAAO,CAAC,OAAO,CAAC,CA0ClB;AAQD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,GAAG,KAAK,CAAC;IAEnD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAEvC;;;OA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OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAoMlC"}
@@ -0,0 +1,129 @@
1
+ /// <reference types="node" />
2
+ import * as dntShim from "../_dnt.shims.js";
3
+ import { type DocumentLoader } from "../runtime/docloader.js";
4
+ import { CryptographicKey } from "../vocab/vocab.js";
5
+ import { type KeyCache } from "./key.js";
6
+ /**
7
+ * A signature of a JSON-LD document.
8
+ * @since 1.0.0
9
+ */
10
+ export interface Signature {
11
+ "@context"?: "https://w3id.org/identity/v1";
12
+ type: "RsaSignature2017";
13
+ id?: string;
14
+ creator: string;
15
+ created: string;
16
+ signatureValue: string;
17
+ }
18
+ /**
19
+ * Attaches a LD signature to the given JSON-LD document.
20
+ * @param jsonLd The JSON-LD document to attach the signature to. It is not
21
+ * modified.
22
+ * @param signature The signature to attach.
23
+ * @returns The JSON-LD document with the attached signature.
24
+ * @throws {TypeError} If the input document is not a valid JSON-LD document.
25
+ * @since 1.0.0
26
+ */
27
+ export declare function attachSignature(jsonLd: unknown, signature: Signature): {
28
+ signature: Signature;
29
+ };
30
+ /**
31
+ * Options for creating Linked Data Signatures.
32
+ * @since 1.0.0
33
+ */
34
+ export interface CreateSignatureOptions {
35
+ /**
36
+ * The context loader for loading remote JSON-LD contexts.
37
+ */
38
+ contextLoader?: DocumentLoader;
39
+ /**
40
+ * The time when the signature was created. If not specified, the current
41
+ * time will be used.
42
+ */
43
+ created?: dntShim.Temporal.Instant;
44
+ }
45
+ /**
46
+ * Creates a LD signature for the given JSON-LD document.
47
+ * @param jsonLd The JSON-LD document to sign.
48
+ * @param privateKey The private key to sign the document.
49
+ * @param keyId The ID of the public key that corresponds to the private key.
50
+ * @param options Additional options for creating the signature.
51
+ * See also {@link CreateSignatureOptions}.
52
+ * @return The created signature.
53
+ * @throws {TypeError} If the private key is invalid or unsupported.
54
+ * @since 1.0.0
55
+ */
56
+ export declare function createSignature(jsonLd: unknown, privateKey: dntShim.CryptoKey, keyId: URL, { contextLoader, created }?: CreateSignatureOptions): Promise<Signature>;
57
+ /**
58
+ * Options for signing JSON-LD documents.
59
+ * @since 1.0.0
60
+ */
61
+ export interface SignJsonLdOptions extends CreateSignatureOptions {
62
+ }
63
+ /**
64
+ * Signs the given JSON-LD document with the private key and returns the signed
65
+ * JSON-LD document.
66
+ * @param jsonLd The JSON-LD document to sign.
67
+ * @param privateKey The private key to sign the document.
68
+ * @param keyId The key ID to use in the signature. It will be used by the
69
+ * verifier to fetch the corresponding public key.
70
+ * @param options Additional options for signing the document.
71
+ * See also {@link SignJsonLdOptions}.
72
+ * @returns The signed JSON-LD document.
73
+ * @throws {TypeError} If the private key is invalid or unsupported.
74
+ * @since 1.0.0
75
+ */
76
+ export declare function signJsonLd(jsonLd: unknown, privateKey: dntShim.CryptoKey, keyId: URL, options: SignJsonLdOptions): Promise<{
77
+ signature: Signature;
78
+ }>;
79
+ /**
80
+ * Detaches Linked Data Signatures from the given JSON-LD document.
81
+ * @param jsonLd The JSON-LD document to modify.
82
+ * @returns The modified JSON-LD document. If the input document does not
83
+ * contain a signature, the original document is returned.
84
+ * @since 1.0.0
85
+ */
86
+ export declare function detachSignature(jsonLd: unknown): unknown;
87
+ /**
88
+ * Options for verifying Linked Data Signatures.
89
+ * @since 1.0.0
90
+ */
91
+ export interface VerifySignatureOptions {
92
+ /**
93
+ * The document loader to use for fetching the public key.
94
+ */
95
+ documentLoader?: DocumentLoader;
96
+ /**
97
+ * The context loader to use for JSON-LD context retrieval.
98
+ */
99
+ contextLoader?: DocumentLoader;
100
+ /**
101
+ * The key cache to use for caching public keys.
102
+ */
103
+ keyCache?: KeyCache;
104
+ }
105
+ /**
106
+ * Verifies Linked Data Signatures of the given JSON-LD document.
107
+ * @param jsonLd The JSON-LD document to verify.
108
+ * @param options Options for verifying the signature.
109
+ * @returns The public key that signed the document or `null` if the signature
110
+ * is invalid or the key is not found.
111
+ * @since 1.0.0
112
+ */
113
+ export declare function verifySignature(jsonLd: unknown, options?: VerifySignatureOptions): Promise<CryptographicKey | null>;
114
+ /**
115
+ * Options for verifying JSON-LD documents.
116
+ */
117
+ export interface VerifyJsonLdOptions extends VerifySignatureOptions {
118
+ }
119
+ /**
120
+ * Verify the authenticity of the given JSON-LD document using Linked Data
121
+ * Signatures. If the document is signed, this function verifies the signature
122
+ * and checks if the document is attributed to the owner of the public key.
123
+ * If the document is not signed, this function returns `false`.
124
+ * @param jsonLd The JSON-LD document to verify.
125
+ * @param options Options for verifying the document.
126
+ * @returns `true` if the document is authentic; `false` otherwise.
127
+ */
128
+ export declare function verifyJsonLd(jsonLd: unknown, options?: VerifyJsonLdOptions): Promise<boolean>;
129
+ //# sourceMappingURL=ld.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ld.d.ts","sourceRoot":"","sources":["../../src/sig/ld.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAM5C,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAY,gBAAgB,EAAU,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAY,KAAK,QAAQ,EAAqB,MAAM,UAAU,CAAC;AAItE;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAC5C,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,SAAS,GACnB;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAO1B;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,EACV,EAAE,aAAa,EAAE,OAAO,EAAE,GAAE,sBAA2B,GACtD,OAAO,CAAC,SAAS,CAAC,CAyBpB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;CAChE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,CAGnC;AAoBD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAKxD;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CA4ElC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;CAClE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,OAAO,CAAC,CAsBlB"}
@@ -5,6 +5,7 @@
5
5
  */
6
6
  export { signRequest, verifyRequest, type VerifyRequestOptions, } from "./http.js";
7
7
  export { exportJwk, generateCryptoKeyPair, importJwk, type KeyCache, } from "./key.js";
8
+ export * from "./ld.js";
8
9
  export { doesActorOwnKey, type DoesActorOwnKeyOptions, getKeyOwner, type GetKeyOwnerOptions, } from "./owner.js";
9
10
  export * from "./proof.js";
10
11
  //# sourceMappingURL=mod.d.ts.map