@fedify/fedify 0.15.0-dev.381 → 0.15.0-dev.383

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  import { getLogger } from "@logtape/logtape";
2
+ import { toASCII } from "node:punycode";
2
3
  import { Link as LinkObject } from "../vocab/mod.js";
3
4
  const logger = getLogger(["fedify", "webfinger", "server"]);
4
5
  /**
@@ -8,7 +9,7 @@ const logger = getLogger(["fedify", "webfinger", "server"]);
8
9
  * @param parameters The parameters for handling the request.
9
10
  * @returns The response to the request.
10
11
  */
11
- export async function handleWebFinger(request, { context, actorDispatcher, onNotFound, }) {
12
+ export async function handleWebFinger(request, { context, actorDispatcher, actorHandleMapper, onNotFound, }) {
12
13
  if (actorDispatcher == null)
13
14
  return await onNotFound(request);
14
15
  const resource = context.url.searchParams.get("resource");
@@ -25,22 +26,35 @@ export async function handleWebFinger(request, { context, actorDispatcher, onNot
25
26
  }
26
27
  throw new e();
27
28
  }
29
+ if (actorDispatcher == null) {
30
+ logger.error("Actor dispatcher is not set.");
31
+ return await onNotFound(request);
32
+ }
28
33
  let handle;
29
34
  const uriParsed = context.parseUri(resourceUrl);
30
35
  if (uriParsed?.type != "actor") {
31
36
  const match = /^acct:([^@]+)@([^@]+)$/.exec(resource);
32
- if (match == null || match[2] != context.url.host) {
37
+ if (match == null || toASCII(match[2].toLowerCase()) != context.url.host) {
33
38
  return await onNotFound(request);
34
39
  }
35
- handle = match[1];
40
+ const username = match[1];
41
+ if (actorHandleMapper == null) {
42
+ logger.error("No actor handle mapper is set; use the WebFinger username {username}" +
43
+ " as the actor's internal handle.", { username });
44
+ handle = username;
45
+ }
46
+ else {
47
+ handle = await actorHandleMapper(context, username);
48
+ if (handle == null) {
49
+ logger.error("Actor {username} not found.", { username });
50
+ return await onNotFound(request);
51
+ }
52
+ }
53
+ resourceUrl = new URL(`acct:${username}@${context.url.host}`);
36
54
  }
37
55
  else {
38
56
  handle = uriParsed.handle;
39
57
  }
40
- if (actorDispatcher == null) {
41
- logger.error("Actor dispatcher is not set.", { handle });
42
- return await onNotFound(request);
43
- }
44
58
  const actor = await actorDispatcher(context, handle);
45
59
  if (actor == null) {
46
60
  logger.error("Actor {handle} not found.", { handle });
@@ -69,8 +83,12 @@ export async function handleWebFinger(request, { context, actorDispatcher, onNot
69
83
  }
70
84
  }
71
85
  const jrd = {
72
- subject: `acct:${handle}@${context.url.host}`,
73
- aliases: [context.getActorUri(handle).href],
86
+ subject: resourceUrl.href,
87
+ aliases: resourceUrl.href === context.getActorUri(handle).href
88
+ ? (actor.preferredUsername == null
89
+ ? []
90
+ : [`acct:${actor.preferredUsername}@${context.url.host}`])
91
+ : [context.getActorUri(handle).href],
74
92
  links,
75
93
  };
76
94
  return new Response(JSON.stringify(jrd), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.15.0-dev.381+af99094c",
3
+ "version": "0.15.0-dev.383+22e07c3f",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -30,6 +30,15 @@ export type ActorDispatcher<TContextData> = (context: RequestContext<TContextDat
30
30
  * @since 0.10.0
31
31
  */
32
32
  export type ActorKeyPairsDispatcher<TContextData> = (context: Context<TContextData>, handle: string) => dntShim.CryptoKeyPair[] | Promise<dntShim.CryptoKeyPair[]>;
33
+ /**
34
+ * A callback that maps a WebFinger username to the corresponding actor's
35
+ * internal handle, or `null` if the username is not found.
36
+ * @typeParam TContextData The context data to pass to the {@link Context}.
37
+ * @param context The context.
38
+ * @param username The WebFinger username.
39
+ * @since 0.15.0
40
+ */
41
+ export type ActorHandleMapper<TContextData> = (context: Context<TContextData>, username: string) => string | null | Promise<string | null>;
33
42
  /**
34
43
  * A callback that dispatches an object.
35
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/federation/callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,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C,OAAO,CAAC,CAAC"}
@@ -4,7 +4,7 @@ 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
6
  import { Activity, type Hashtag, type Like, type Object } from "../vocab/vocab.js";
7
- import type { ActorDispatcher, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler, SharedInboxKeyDispatcher } from "./callback.js";
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";
10
10
  import type { MessageQueue } from "./mq.js";
@@ -507,6 +507,15 @@ export interface ActorCallbackSetters<TContextData> {
507
507
  * @since 0.10.0
508
508
  */
509
509
  setKeyPairsDispatcher(dispatcher: ActorKeyPairsDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
510
+ /**
511
+ * Sets the callback function that maps a WebFinger username to
512
+ * the corresponding actor's internal handle. If it's omitted, the handle
513
+ * is assumed to be the same as the WebFinger username, which makes your
514
+ * actors have the immutable handles. If you want to let your actors change
515
+ * their fediverse handles, you should set this dispatcher.
516
+ * @since 0.15.0
517
+ */
518
+ mapHandle(mapper: ActorHandleMapper<TContextData>): ActorCallbackSetters<TContextData>;
510
519
  /**
511
520
  * Specifies the conditions under which requests are authorized.
512
521
  * @param predicate A callback that returns whether a request is authorized.
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mapp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CAAC,GACjD,oBAAoB,CAAC,YAAY,CAAC,CAAC;CACvC"}
package/types/mod.d.ts CHANGED
@@ -26,7 +26,8 @@
26
26
  * following resources:
27
27
  *
28
28
  * - [GitHub](https://github.com/dahlia/fedify)
29
- * - [Tutorial](https://fedify.dev/tutorial)
29
+ * - Tutorials: [Learning the basics](https://fedify.dev/tutorial/basics)
30
+ * & [Creating a microblog](https://fedify.dev/tutorial/microblog)
30
31
  * - [Examples](https://github.com/dahlia/fedify/tree/main/examples)
31
32
  *
32
33
  * [ActivityPub]: https://www.w3.org/TR/activitypub/
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -862,6 +862,7 @@ export declare class ChatMessage extends Object {
862
862
  source?: Source | null;
863
863
  proof?: DataIntegrityProof | URL | null;
864
864
  proofs?: (DataIntegrityProof | URL)[];
865
+ quoteUrl?: URL | null;
865
866
  }, { documentLoader, contextLoader, }?: {
866
867
  documentLoader?: DocumentLoader;
867
868
  contextLoader?: DocumentLoader;
@@ -919,10 +920,23 @@ export declare class ChatMessage extends Object {
919
920
  source?: Source | null;
920
921
  proof?: DataIntegrityProof | URL | null;
921
922
  proofs?: (DataIntegrityProof | URL)[];
923
+ quoteUrl?: URL | null;
922
924
  }, options?: {
923
925
  documentLoader?: DocumentLoader;
924
926
  contextLoader?: DocumentLoader;
925
927
  }): ChatMessage;
928
+ /** The URI of the ActivityStreams object that this object quotes.
929
+ *
930
+ * This property sets three JSON-LD properties at once under the hood:
931
+ *
932
+ * 1. https://www.w3.org/ns/activitystreams#quoteUrl
933
+ * 2. https://misskey-hub.net/ns#_misskey_quote
934
+ * 3. http://fedibird.com/ns#quoteUri
935
+ *
936
+ * When a JSON-LD object is parsed, this property is filled with one of
937
+ * the values of those three properties in order.
938
+ */
939
+ get quoteUrl(): URL | null;
926
940
  /**
927
941
  * Converts this object to a JSON-LD structure.
928
942
  * @param options The options to use.
@@ -3055,6 +3069,7 @@ export declare class Article extends Object {
3055
3069
  source?: Source | null;
3056
3070
  proof?: DataIntegrityProof | URL | null;
3057
3071
  proofs?: (DataIntegrityProof | URL)[];
3072
+ quoteUrl?: URL | null;
3058
3073
  }, { documentLoader, contextLoader, }?: {
3059
3074
  documentLoader?: DocumentLoader;
3060
3075
  contextLoader?: DocumentLoader;
@@ -3112,10 +3127,23 @@ export declare class Article extends Object {
3112
3127
  source?: Source | null;
3113
3128
  proof?: DataIntegrityProof | URL | null;
3114
3129
  proofs?: (DataIntegrityProof | URL)[];
3130
+ quoteUrl?: URL | null;
3115
3131
  }, options?: {
3116
3132
  documentLoader?: DocumentLoader;
3117
3133
  contextLoader?: DocumentLoader;
3118
3134
  }): Article;
3135
+ /** The URI of the ActivityStreams object that this object quotes.
3136
+ *
3137
+ * This property sets three JSON-LD properties at once under the hood:
3138
+ *
3139
+ * 1. https://www.w3.org/ns/activitystreams#quoteUrl
3140
+ * 2. https://misskey-hub.net/ns#_misskey_quote
3141
+ * 3. http://fedibird.com/ns#quoteUri
3142
+ *
3143
+ * When a JSON-LD object is parsed, this property is filled with one of
3144
+ * the values of those three properties in order.
3145
+ */
3146
+ get quoteUrl(): URL | null;
3119
3147
  /**
3120
3148
  * Converts this object to a JSON-LD structure.
3121
3149
  * @param options The options to use.
@@ -7556,6 +7584,7 @@ export declare class Note extends Object {
7556
7584
  source?: Source | null;
7557
7585
  proof?: DataIntegrityProof | URL | null;
7558
7586
  proofs?: (DataIntegrityProof | URL)[];
7587
+ quoteUrl?: URL | null;
7559
7588
  }, { documentLoader, contextLoader, }?: {
7560
7589
  documentLoader?: DocumentLoader;
7561
7590
  contextLoader?: DocumentLoader;
@@ -7613,10 +7642,23 @@ export declare class Note extends Object {
7613
7642
  source?: Source | null;
7614
7643
  proof?: DataIntegrityProof | URL | null;
7615
7644
  proofs?: (DataIntegrityProof | URL)[];
7645
+ quoteUrl?: URL | null;
7616
7646
  }, options?: {
7617
7647
  documentLoader?: DocumentLoader;
7618
7648
  contextLoader?: DocumentLoader;
7619
7649
  }): Note;
7650
+ /** The URI of the ActivityStreams object that this object quotes.
7651
+ *
7652
+ * This property sets three JSON-LD properties at once under the hood:
7653
+ *
7654
+ * 1. https://www.w3.org/ns/activitystreams#quoteUrl
7655
+ * 2. https://misskey-hub.net/ns#_misskey_quote
7656
+ * 3. http://fedibird.com/ns#quoteUri
7657
+ *
7658
+ * When a JSON-LD object is parsed, this property is filled with one of
7659
+ * the values of those three properties in order.
7660
+ */
7661
+ get quoteUrl(): URL | null;
7620
7662
  /**
7621
7663
  * Converts this object to a JSON-LD structure.
7622
7664
  * @param options The options to use.
@@ -9528,6 +9570,7 @@ export declare class Question extends IntransitiveActivity {
9528
9570
  inclusiveOptions?: (Object | URL)[];
9529
9571
  closed?: dntShim.Temporal.Instant | boolean | null;
9530
9572
  voters?: number | null;
9573
+ quoteUrl?: URL | null;
9531
9574
  }, { documentLoader, contextLoader, }?: {
9532
9575
  documentLoader?: DocumentLoader;
9533
9576
  contextLoader?: DocumentLoader;
@@ -9601,6 +9644,7 @@ export declare class Question extends IntransitiveActivity {
9601
9644
  inclusiveOptions?: (Object | URL)[];
9602
9645
  closed?: dntShim.Temporal.Instant | boolean | null;
9603
9646
  voters?: number | null;
9647
+ quoteUrl?: URL | null;
9604
9648
  }, options?: {
9605
9649
  documentLoader?: DocumentLoader;
9606
9650
  contextLoader?: DocumentLoader;
@@ -9643,6 +9687,18 @@ export declare class Question extends IntransitiveActivity {
9643
9687
  * been cast (in the case of multiple-choice polls).
9644
9688
  */
9645
9689
  get voters(): number | null;
9690
+ /** The URI of the ActivityStreams object that this object quotes.
9691
+ *
9692
+ * This property sets three JSON-LD properties at once under the hood:
9693
+ *
9694
+ * 1. https://www.w3.org/ns/activitystreams#quoteUrl
9695
+ * 2. https://misskey-hub.net/ns#_misskey_quote
9696
+ * 3. http://fedibird.com/ns#quoteUri
9697
+ *
9698
+ * When a JSON-LD object is parsed, this property is filled with one of
9699
+ * the values of those three properties in order.
9700
+ */
9701
+ get quoteUrl(): URL | null;
9646
9702
  /**
9647
9703
  * Converts this object to a JSON-LD structure.
9648
9704
  * @param options The options to use.