@fedify/fedify 0.15.0-dev.383 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -6,7 +6,7 @@ Fedify changelog
6
6
  Version 0.15.0
7
7
  --------------
8
8
 
9
- To be released.
9
+ Released on September 11, 2024.
10
10
 
11
11
  - Actors, collections, and objects now can have their URIs that do not consist
12
12
  of a WebFinger username, which means actors can change their fediverse
@@ -31,6 +31,15 @@ To be released.
31
31
  - `new Question()` constructor now accepts `quoteUrl` option.
32
32
  - `Question.clone()` method now accepts `quoteUrl` option.
33
33
 
34
+ - The element type of the liked collection is now `Object` or `URL` instead of
35
+ `Like`.
36
+
37
+ - Changed the type of `Federation.setLikedDispatcher()` method's second
38
+ parameter to `CollectionDispatcher<Object | URL,
39
+ RequestContext<TContextData>, TContextData, void>` (was
40
+ `CollectionDispatcher<Like, RequestContext<TContextData>, TContextData,
41
+ void>`).
42
+
34
43
  - Removed `expand` option of `Object.toJsonLd()` method, which was deprecated
35
44
  in version 0.14.0. Use `format: "expand"` option instead.
36
45
 
@@ -908,8 +917,8 @@ is now distributed under the [MIT License] to encourage wider adoption.
908
917
  [#68]: https://github.com/dahlia/fedify/pull/68
909
918
  [AGPL 3.0]: https://www.gnu.org/licenses/agpl-3.0.en.html
910
919
  [MIT License]: https://minhee.mit-license.org/
911
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
912
- [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
920
+ [FEP-521a]: https://w3id.org/fep/521a
921
+ [FEP-8b32]: https://w3id.org/fep/8b32
913
922
  [x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
914
923
 
915
924
 
@@ -1117,7 +1126,7 @@ Released on May 6, 2024.
1117
1126
 
1118
1127
  [@fedify/cli]: https://jsr.io/@fedify/cli
1119
1128
  [releases]: https://github.com/dahlia/fedify/releases
1120
- [FEP-8fcf]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8fcf/fep-8fcf.md
1129
+ [FEP-8fcf]: https://w3id.org/fep/8fcf
1121
1130
  [#47]: https://github.com/dahlia/fedify/issues/47
1122
1131
 
1123
1132
 
package/FEDERATION.md CHANGED
@@ -28,13 +28,13 @@ Supported FEPs
28
28
  - [FEP-5feb][]: Search indexing consent for actors
29
29
  - [FEP-c7d3][]: Ownership
30
30
 
31
- [FEP-67ff]: https://codeberg.org/fediverse/fep/src/branch/main/fep/67ff/fep-67ff.md
32
- [FEP-8fcf]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8fcf/fep-8fcf.md
33
- [FEP-f1d5]: https://codeberg.org/fediverse/fep/src/branch/main/fep/f1d5/fep-f1d5.md
34
- [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
35
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
36
- [FEP-5feb]: https://codeberg.org/fediverse/fep/src/branch/main/fep/5feb/fep-5feb.md
37
- [FEP-c7d3]: https://codeberg.org/silverpill/feps/src/branch/main/c7d3/fep-c7d3.md
31
+ [FEP-67ff]: https://w3id.org/fep/67ff
32
+ [FEP-8fcf]: https://w3id.org/fep/8fcf
33
+ [FEP-f1d5]: https://w3id.org/fep/f1d5
34
+ [FEP-8b32]: https://w3id.org/fep/8b32
35
+ [FEP-521a]: https://w3id.org/fep/521a
36
+ [FEP-5feb]: https://w3id.org/fep/5feb
37
+ [FEP-c7d3]: https://w3id.org/fep/c7d3
38
38
 
39
39
 
40
40
  ActivityPub
package/README.md CHANGED
@@ -66,7 +66,7 @@ join our [Matrix chat space][Matrix] or [GitHub Discussions]. Or tag
66
66
  [Activity Vocabulary]: https://www.w3.org/TR/activitystreams-vocabulary/
67
67
  [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
68
68
  [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
69
- [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
69
+ [FEP-8b32]: https://w3id.org/fep/8b32
70
70
  [NodeInfo]: https://nodeinfo.diaspora.software/
71
71
  [GitHub Discussions]: https://github.com/dahlia/fedify/discussions
72
72
  [#Fedify]: https://mastodon.social/tags/fedify
package/esm/mod.js CHANGED
@@ -35,7 +35,7 @@
35
35
  * [Activity Vocabulary]: https://www.w3.org/TR/activitystreams-vocabulary/
36
36
  * [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
37
37
  * [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
38
- * [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
38
+ * [FEP-8b32]: https://w3id.org/fep/8b32
39
39
  * [NodeInfo]: https://nodeinfo.diaspora.software/
40
40
  *
41
41
  * @module
@@ -12,8 +12,13 @@ defaultContext:
12
12
  - "https://www.w3.org/ns/activitystreams"
13
13
  - "https://w3id.org/security/data-integrity/v1"
14
14
  - toot: "http://joinmastodon.org/ns#"
15
+ misskey: "https://misskey-hub.net/ns#"
16
+ fedibird: "http://fedibird.com/ns#"
15
17
  sensitive: "as:sensitive"
16
18
  votersCount: "toot:votersCount"
17
19
  Emoji: "toot:Emoji"
18
20
  Hashtag: "as:Hashtag"
21
+ quoteUrl: "as:quoteUrl"
22
+ _misskey_quote: "misskey:_misskey_quote"
23
+ quoteUri: "fedibird:quoteUri"
19
24
  properties: []
@@ -59,7 +59,7 @@ properties:
59
59
  Represents this actor's public keys. It serves as equivalent to
60
60
  the `publicKeys` property, but is used for [FEP-521a] compliance.
61
61
 
62
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
62
+ [FEP-521a]: https://w3id.org/fep/521a
63
63
  range:
64
64
  - "https://w3id.org/security#Multikey"
65
65
 
@@ -9,9 +9,14 @@ defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
10
  - "https://w3id.org/security/data-integrity/v1"
11
11
  - toot: "http://joinmastodon.org/ns#"
12
+ misskey: "https://misskey-hub.net/ns#"
13
+ fedibird: "http://fedibird.com/ns#"
12
14
  sensitive: "as:sensitive"
13
15
  votersCount: "toot:votersCount"
14
16
  Emoji: "toot:Emoji"
15
17
  Hashtag: "as:Hashtag"
16
18
  ChatMessage: "http://litepub.social/ns#ChatMessage"
19
+ quoteUrl: "as:quoteUrl"
20
+ _misskey_quote: "misskey:_misskey_quote"
21
+ quoteUri: "fedibird:quoteUri"
17
22
  properties: []
@@ -23,7 +23,7 @@ properties:
23
23
  A key owned by an actor according to [FEP-521a: Representing actor's public
24
24
  keys][1].
25
25
 
26
- [1]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
26
+ [1]: https://w3id.org/fep/521a
27
27
  range:
28
28
  - "https://w3id.org/security#Multikey"
29
29
 
@@ -11,9 +11,14 @@ defaultContext:
11
11
  - "https://www.w3.org/ns/activitystreams"
12
12
  - "https://w3id.org/security/data-integrity/v1"
13
13
  - toot: "http://joinmastodon.org/ns#"
14
+ misskey: "https://misskey-hub.net/ns#"
15
+ fedibird: "http://fedibird.com/ns#"
14
16
  sensitive: "as:sensitive"
15
17
  votersCount: "toot:votersCount"
16
18
  Emoji: "toot:Emoji"
17
19
  Hashtag: "as:Hashtag"
18
20
  ChatMessage: "http://litepub.social/ns#ChatMessage"
21
+ quoteUrl: "as:quoteUrl"
22
+ _misskey_quote: "misskey:_misskey_quote"
23
+ quoteUri: "fedibird:quoteUri"
19
24
  properties: []
@@ -59,7 +59,7 @@ properties:
59
59
  Represents this actor's public keys. It serves as equivalent to
60
60
  the `publicKeys` property, but is used for [FEP-521a] compliance.
61
61
 
62
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
62
+ [FEP-521a]: https://w3id.org/fep/521a
63
63
  range:
64
64
  - "https://w3id.org/security#Multikey"
65
65
 
@@ -7,7 +7,7 @@ description: |
7
7
  Represents a key owned by an actor according to [FEP-521a: Representing
8
8
  actor's public keys.][1]
9
9
 
10
- [1]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
10
+ [1]: https://w3id.org/fep/521a
11
11
  defaultContext: "https://w3id.org/security/multikey/v1"
12
12
 
13
13
  properties:
@@ -59,7 +59,7 @@ properties:
59
59
  Represents this actor's public keys. It serves as equivalent to
60
60
  the `publicKeys` property, but is used for [FEP-521a] compliance.
61
61
 
62
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
62
+ [FEP-521a]: https://w3id.org/fep/521a
63
63
  range:
64
64
  - "https://w3id.org/security#Multikey"
65
65
 
@@ -59,7 +59,7 @@ properties:
59
59
  Represents this actor's public keys. It serves as equivalent to
60
60
  the `publicKeys` property, but is used for [FEP-521a] compliance.
61
61
 
62
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
62
+ [FEP-521a]: https://w3id.org/fep/521a
63
63
  range:
64
64
  - "https://w3id.org/security#Multikey"
65
65
 
@@ -59,7 +59,7 @@ properties:
59
59
  Represents this actor's public keys. It serves as equivalent to
60
60
  the `publicKeys` property, but is used for [FEP-521a] compliance.
61
61
 
62
- [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
62
+ [FEP-521a]: https://w3id.org/fep/521a
63
63
  range:
64
64
  - "https://w3id.org/security#Multikey"
65
65
 
@@ -14,9 +14,14 @@ defaultContext:
14
14
  - "https://www.w3.org/ns/activitystreams"
15
15
  - "https://w3id.org/security/data-integrity/v1"
16
16
  - toot: "http://joinmastodon.org/ns#"
17
+ misskey: "https://misskey-hub.net/ns#"
18
+ fedibird: "http://fedibird.com/ns#"
17
19
  sensitive: "as:sensitive"
18
20
  votersCount: "toot:votersCount"
19
21
  Emoji: "toot:Emoji"
20
22
  Hashtag: "as:Hashtag"
21
23
  ChatMessage: "http://litepub.social/ns#ChatMessage"
24
+ quoteUrl: "as:quoteUrl"
25
+ _misskey_quote: "misskey:_misskey_quote"
26
+ quoteUri: "fedibird:quoteUri"
22
27
  properties: []
@@ -6433,7 +6433,7 @@ export class DataIntegrityProof {
6433
6433
  /** A key owned by an actor according to [FEP-521a: Representing actor's public
6434
6434
  * keys][1].
6435
6435
  *
6436
- * [1]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
6436
+ * [1]: https://w3id.org/fep/521a
6437
6437
  */
6438
6438
  async getVerificationMethod(options = {}) {
6439
6439
  if (this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.length < 1) {
@@ -7249,7 +7249,7 @@ export class CryptographicKey {
7249
7249
  /** Represents a key owned by an actor according to [FEP-521a: Representing
7250
7250
  * actor's public keys.][1]
7251
7251
  *
7252
- * [1]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
7252
+ * [1]: https://w3id.org/fep/521a
7253
7253
  */
7254
7254
  export class Multikey {
7255
7255
  #documentLoader;
@@ -9725,10 +9725,15 @@ export class Announce extends Activity {
9725
9725
  "https://w3id.org/security/data-integrity/v1",
9726
9726
  {
9727
9727
  "toot": "http://joinmastodon.org/ns#",
9728
+ "misskey": "https://misskey-hub.net/ns#",
9729
+ "fedibird": "http://fedibird.com/ns#",
9728
9730
  "sensitive": "as:sensitive",
9729
9731
  "votersCount": "toot:votersCount",
9730
9732
  "Emoji": "toot:Emoji",
9731
9733
  "Hashtag": "as:Hashtag",
9734
+ "quoteUrl": "as:quoteUrl",
9735
+ "_misskey_quote": "misskey:_misskey_quote",
9736
+ "quoteUri": "fedibird:quoteUri",
9732
9737
  },
9733
9738
  ];
9734
9739
  return result;
@@ -9753,10 +9758,15 @@ export class Announce extends Activity {
9753
9758
  "https://w3id.org/security/data-integrity/v1",
9754
9759
  {
9755
9760
  "toot": "http://joinmastodon.org/ns#",
9761
+ "misskey": "https://misskey-hub.net/ns#",
9762
+ "fedibird": "http://fedibird.com/ns#",
9756
9763
  "sensitive": "as:sensitive",
9757
9764
  "votersCount": "toot:votersCount",
9758
9765
  "Emoji": "toot:Emoji",
9759
9766
  "Hashtag": "as:Hashtag",
9767
+ "quoteUrl": "as:quoteUrl",
9768
+ "_misskey_quote": "misskey:_misskey_quote",
9769
+ "quoteUri": "fedibird:quoteUri",
9760
9770
  },
9761
9771
  ];
9762
9772
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -10603,7 +10613,7 @@ export class Application extends Object {
10603
10613
  /** Represents this actor's public keys. It serves as equivalent to
10604
10614
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
10605
10615
  *
10606
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
10616
+ * [FEP-521a]: https://w3id.org/fep/521a
10607
10617
  */
10608
10618
  async getAssertionMethod(options = {}) {
10609
10619
  if (this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length < 1) {
@@ -10630,7 +10640,7 @@ export class Application extends Object {
10630
10640
  /** Represents this actor's public keys. It serves as equivalent to
10631
10641
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
10632
10642
  *
10633
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
10643
+ * [FEP-521a]: https://w3id.org/fep/521a
10634
10644
  */
10635
10645
  async *getAssertionMethods(options = {}) {
10636
10646
  const vs = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -15586,11 +15596,16 @@ export class Create extends Activity {
15586
15596
  "https://w3id.org/security/data-integrity/v1",
15587
15597
  {
15588
15598
  "toot": "http://joinmastodon.org/ns#",
15599
+ "misskey": "https://misskey-hub.net/ns#",
15600
+ "fedibird": "http://fedibird.com/ns#",
15589
15601
  "sensitive": "as:sensitive",
15590
15602
  "votersCount": "toot:votersCount",
15591
15603
  "Emoji": "toot:Emoji",
15592
15604
  "Hashtag": "as:Hashtag",
15593
15605
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
15606
+ "quoteUrl": "as:quoteUrl",
15607
+ "_misskey_quote": "misskey:_misskey_quote",
15608
+ "quoteUri": "fedibird:quoteUri",
15594
15609
  },
15595
15610
  ];
15596
15611
  return result;
@@ -15615,11 +15630,16 @@ export class Create extends Activity {
15615
15630
  "https://w3id.org/security/data-integrity/v1",
15616
15631
  {
15617
15632
  "toot": "http://joinmastodon.org/ns#",
15633
+ "misskey": "https://misskey-hub.net/ns#",
15634
+ "fedibird": "http://fedibird.com/ns#",
15618
15635
  "sensitive": "as:sensitive",
15619
15636
  "votersCount": "toot:votersCount",
15620
15637
  "Emoji": "toot:Emoji",
15621
15638
  "Hashtag": "as:Hashtag",
15622
15639
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
15640
+ "quoteUrl": "as:quoteUrl",
15641
+ "_misskey_quote": "misskey:_misskey_quote",
15642
+ "quoteUri": "fedibird:quoteUri",
15623
15643
  },
15624
15644
  ];
15625
15645
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -15774,11 +15794,16 @@ export class Delete extends Activity {
15774
15794
  "https://w3id.org/security/data-integrity/v1",
15775
15795
  {
15776
15796
  "toot": "http://joinmastodon.org/ns#",
15797
+ "misskey": "https://misskey-hub.net/ns#",
15798
+ "fedibird": "http://fedibird.com/ns#",
15777
15799
  "sensitive": "as:sensitive",
15778
15800
  "votersCount": "toot:votersCount",
15779
15801
  "Emoji": "toot:Emoji",
15780
15802
  "Hashtag": "as:Hashtag",
15781
15803
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
15804
+ "quoteUrl": "as:quoteUrl",
15805
+ "_misskey_quote": "misskey:_misskey_quote",
15806
+ "quoteUri": "fedibird:quoteUri",
15782
15807
  },
15783
15808
  ];
15784
15809
  return result;
@@ -15803,11 +15828,16 @@ export class Delete extends Activity {
15803
15828
  "https://w3id.org/security/data-integrity/v1",
15804
15829
  {
15805
15830
  "toot": "http://joinmastodon.org/ns#",
15831
+ "misskey": "https://misskey-hub.net/ns#",
15832
+ "fedibird": "http://fedibird.com/ns#",
15806
15833
  "sensitive": "as:sensitive",
15807
15834
  "votersCount": "toot:votersCount",
15808
15835
  "Emoji": "toot:Emoji",
15809
15836
  "Hashtag": "as:Hashtag",
15810
15837
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
15838
+ "quoteUrl": "as:quoteUrl",
15839
+ "_misskey_quote": "misskey:_misskey_quote",
15840
+ "quoteUri": "fedibird:quoteUri",
15811
15841
  },
15812
15842
  ];
15813
15843
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -18005,7 +18035,7 @@ export class Group extends Object {
18005
18035
  /** Represents this actor's public keys. It serves as equivalent to
18006
18036
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
18007
18037
  *
18008
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
18038
+ * [FEP-521a]: https://w3id.org/fep/521a
18009
18039
  */
18010
18040
  async getAssertionMethod(options = {}) {
18011
18041
  if (this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length < 1) {
@@ -18032,7 +18062,7 @@ export class Group extends Object {
18032
18062
  /** Represents this actor's public keys. It serves as equivalent to
18033
18063
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
18034
18064
  *
18035
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
18065
+ * [FEP-521a]: https://w3id.org/fep/521a
18036
18066
  */
18037
18067
  async *getAssertionMethods(options = {}) {
18038
18068
  const vs = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -24617,7 +24647,7 @@ export class Organization extends Object {
24617
24647
  /** Represents this actor's public keys. It serves as equivalent to
24618
24648
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
24619
24649
  *
24620
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
24650
+ * [FEP-521a]: https://w3id.org/fep/521a
24621
24651
  */
24622
24652
  async getAssertionMethod(options = {}) {
24623
24653
  if (this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length < 1) {
@@ -24644,7 +24674,7 @@ export class Organization extends Object {
24644
24674
  /** Represents this actor's public keys. It serves as equivalent to
24645
24675
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
24646
24676
  *
24647
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
24677
+ * [FEP-521a]: https://w3id.org/fep/521a
24648
24678
  */
24649
24679
  async *getAssertionMethods(options = {}) {
24650
24680
  const vs = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -27461,7 +27491,7 @@ export class Person extends Object {
27461
27491
  /** Represents this actor's public keys. It serves as equivalent to
27462
27492
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
27463
27493
  *
27464
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
27494
+ * [FEP-521a]: https://w3id.org/fep/521a
27465
27495
  */
27466
27496
  async getAssertionMethod(options = {}) {
27467
27497
  if (this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length < 1) {
@@ -27488,7 +27518,7 @@ export class Person extends Object {
27488
27518
  /** Represents this actor's public keys. It serves as equivalent to
27489
27519
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
27490
27520
  *
27491
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
27521
+ * [FEP-521a]: https://w3id.org/fep/521a
27492
27522
  */
27493
27523
  async *getAssertionMethods(options = {}) {
27494
27524
  const vs = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -33103,7 +33133,7 @@ export class Service extends Object {
33103
33133
  /** Represents this actor's public keys. It serves as equivalent to
33104
33134
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
33105
33135
  *
33106
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
33136
+ * [FEP-521a]: https://w3id.org/fep/521a
33107
33137
  */
33108
33138
  async getAssertionMethod(options = {}) {
33109
33139
  if (this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length < 1) {
@@ -33130,7 +33160,7 @@ export class Service extends Object {
33130
33160
  /** Represents this actor's public keys. It serves as equivalent to
33131
33161
  * the `publicKeys` property, but is used for [FEP-521a] compliance.
33132
33162
  *
33133
- * [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
33163
+ * [FEP-521a]: https://w3id.org/fep/521a
33134
33164
  */
33135
33165
  async *getAssertionMethods(options = {}) {
33136
33166
  const vs = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
@@ -36406,11 +36436,16 @@ export class Update extends Activity {
36406
36436
  "https://w3id.org/security/data-integrity/v1",
36407
36437
  {
36408
36438
  "toot": "http://joinmastodon.org/ns#",
36439
+ "misskey": "https://misskey-hub.net/ns#",
36440
+ "fedibird": "http://fedibird.com/ns#",
36409
36441
  "sensitive": "as:sensitive",
36410
36442
  "votersCount": "toot:votersCount",
36411
36443
  "Emoji": "toot:Emoji",
36412
36444
  "Hashtag": "as:Hashtag",
36413
36445
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
36446
+ "quoteUrl": "as:quoteUrl",
36447
+ "_misskey_quote": "misskey:_misskey_quote",
36448
+ "quoteUri": "fedibird:quoteUri",
36414
36449
  },
36415
36450
  ];
36416
36451
  return result;
@@ -36435,11 +36470,16 @@ export class Update extends Activity {
36435
36470
  "https://w3id.org/security/data-integrity/v1",
36436
36471
  {
36437
36472
  "toot": "http://joinmastodon.org/ns#",
36473
+ "misskey": "https://misskey-hub.net/ns#",
36474
+ "fedibird": "http://fedibird.com/ns#",
36438
36475
  "sensitive": "as:sensitive",
36439
36476
  "votersCount": "toot:votersCount",
36440
36477
  "Emoji": "toot:Emoji",
36441
36478
  "Hashtag": "as:Hashtag",
36442
36479
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
36480
+ "quoteUrl": "as:quoteUrl",
36481
+ "_misskey_quote": "misskey:_misskey_quote",
36482
+ "quoteUri": "fedibird:quoteUri",
36443
36483
  },
36444
36484
  ];
36445
36485
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.15.0-dev.383+22e07c3f",
3
+ "version": "0.15.0",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -3,7 +3,7 @@
3
3
  import * as dntShim from "../_dnt.shims.js";
4
4
  import { type AuthenticatedDocumentLoaderFactory, type DocumentLoader } from "../runtime/docloader.js";
5
5
  import type { Actor, Recipient } from "../vocab/actor.js";
6
- import { Activity, type Hashtag, type Like, type Object } from "../vocab/vocab.js";
6
+ import { Activity, type Hashtag, type Object } from "../vocab/vocab.js";
7
7
  import type { ActorDispatcher, ActorHandleMapper, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler, SharedInboxKeyDispatcher } from "./callback.js";
8
8
  import type { Context, RequestContext } from "./context.js";
9
9
  import type { KvKey, KvStore } from "./kv.js";
@@ -376,7 +376,7 @@ export interface Federation<TContextData> {
376
376
  * callbacks.
377
377
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
378
378
  */
379
- setLikedDispatcher(path: `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Like, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
379
+ setLikedDispatcher(path: `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
380
380
  /**
381
381
  * Registers a featured collection dispatcher.
382
382
  * @param path The URI path pattern for the featured collection. The syntax
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EACL,QAAQ,EAER,KAAK,OAAO,EACZ,KAAK,IAAI,EAET,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAEV,OAAO,EAEP,cAAc,EAEf,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,OAAO,EAAkC,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9E;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE3C;;;;OAIG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;O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AAE,SAAS,CAAC,GAC/C,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACvC,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;;;OAQG;IACH,sBAAsB,CACpB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,GACjD,oBAAoB,CAAC,YAAY,CAAC,CAAC;CACvC"}
package/types/mod.d.ts CHANGED
@@ -35,7 +35,7 @@
35
35
  * [Activity Vocabulary]: https://www.w3.org/TR/activitystreams-vocabulary/
36
36
  * [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
37
37
  * [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
38
- * [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
38
+ * [FEP-8b32]: https://w3id.org/fep/8b32
39
39
  * [NodeInfo]: https://nodeinfo.diaspora.software/
40
40
  *
41
41
  * @module