@fedify/fedify 2.0.0-dev.379 → 2.0.0-dev.380

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{builder-CTaPayj3.js → builder-yo-Bb1YI.js} +12 -57
  2. package/dist/compat/mod.d.cts +2 -2
  3. package/dist/compat/mod.d.ts +2 -2
  4. package/dist/compat/transformers.test.js +11 -11
  5. package/dist/{context-Cf0-LmZC.d.cts → context-Bo8rHkgD.d.cts} +15 -45
  6. package/dist/{context-liIe6DFH.d.ts → context-CvI-m4eX.d.ts} +15 -45
  7. package/dist/{deno-DqzG_RZH.js → deno-CtGMjqVA.js} +1 -1
  8. package/dist/{docloader-DzdrkeHk.js → docloader-DFtiZSjQ.js} +4 -12
  9. package/dist/federation/builder.test.js +3 -3
  10. package/dist/federation/handler.test.js +45 -45
  11. package/dist/federation/idempotency.test.js +11 -11
  12. package/dist/federation/inbox.test.js +2 -2
  13. package/dist/federation/middleware.test.js +43 -68
  14. package/dist/federation/mod.cjs +4 -4
  15. package/dist/federation/mod.d.cts +3 -3
  16. package/dist/federation/mod.d.ts +3 -3
  17. package/dist/federation/mod.js +4 -4
  18. package/dist/federation/send.test.js +5 -5
  19. package/dist/federation/webfinger.test.js +12 -15
  20. package/dist/{http-BgVFYDxB.cjs → http-DL7I-lJ1.cjs} +1 -1
  21. package/dist/{http-wC3zLKG0.js → http-MKkRvGCD.js} +2 -2
  22. package/dist/{http-wpL3tTw3.js → http-d87H9gTL.js} +1 -1
  23. package/dist/{inbox-DD3ldbso.js → inbox-t2HfUOpK.js} +1 -1
  24. package/dist/{key-DT5WUsoA.js → key-BaU3dCbr.js} +1 -1
  25. package/dist/{kv-cache-dm5snJVx.js → kv-cache-BlAk9XRp.js} +2 -4
  26. package/dist/{kv-cache-fDtLLSX6.cjs → kv-cache-P81gWIMl.cjs} +1 -3
  27. package/dist/{ld-DkkOCVAX.js → ld-Cl1Q2ID2.js} +2 -2
  28. package/dist/{middleware-1jFftSD2.js → middleware-C8EKZVUa.js} +48 -128
  29. package/dist/{middleware-DTsAIZ_v.js → middleware-CahwrUem.js} +4 -4
  30. package/dist/{middleware-CyiaCQia.cjs → middleware-CeNadM06.cjs} +51 -176
  31. package/dist/middleware-DzqLMJf8.cjs +12 -0
  32. package/dist/{middleware-BPQUgG_4.js → middleware-QKMHl3jD.js} +11 -11
  33. package/dist/{middleware-BgA11Zdl.js → middleware-qCIC-vDz.js} +51 -176
  34. package/dist/{mod-CvhyLrjX.d.ts → mod-CevNbUol.d.ts} +0 -18
  35. package/dist/{mod-Do_sZWAA.d.cts → mod-DyzMRG8B.d.cts} +1 -1
  36. package/dist/{mod-DWaA45ef.d.cts → mod-ErTjUJs9.d.cts} +0 -18
  37. package/dist/{mod-B9_l3te3.d.ts → mod-PmuFg9QD.d.ts} +1 -1
  38. package/dist/{mod-Dquroqiv.d.ts → mod-hcb60sG1.d.ts} +1 -1
  39. package/dist/{mod-H3ScYaOb.d.cts → mod-jzy1r56s.d.cts} +1 -1
  40. package/dist/mod.cjs +4 -4
  41. package/dist/mod.d.cts +6 -6
  42. package/dist/mod.d.ts +6 -6
  43. package/dist/mod.js +4 -4
  44. package/dist/nodeinfo/handler.test.js +11 -11
  45. package/dist/{owner-DkyFfykp.js → owner-CLtVml91.js} +1 -1
  46. package/dist/{proof-YGxK2bz_.js → proof-0NbL8saz.js} +2 -2
  47. package/dist/{proof-DiizpGmV.js → proof-B7X2V-RL.js} +1 -1
  48. package/dist/{proof-BAMTO1-Z.cjs → proof-BYSTK-fO.cjs} +1 -1
  49. package/dist/{send-Bh3NMyL9.js → send-yCNNrsU2.js} +2 -2
  50. package/dist/sig/http.test.js +3 -3
  51. package/dist/sig/key.test.js +2 -2
  52. package/dist/sig/ld.test.js +3 -3
  53. package/dist/sig/mod.cjs +2 -2
  54. package/dist/sig/mod.js +2 -2
  55. package/dist/sig/owner.test.js +3 -3
  56. package/dist/sig/proof.test.js +3 -3
  57. package/dist/testing/mod.d.ts +9 -32
  58. package/dist/utils/docloader.test.js +4 -4
  59. package/dist/utils/mod.cjs +2 -2
  60. package/dist/utils/mod.d.cts +1 -1
  61. package/dist/utils/mod.d.ts +1 -1
  62. package/dist/utils/mod.js +2 -2
  63. package/package.json +5 -5
  64. package/dist/middleware-DPeL5rKU.cjs +0 -12
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./deno-DqzG_RZH.js";
6
+ import { deno_default } from "./deno-CtGMjqVA.js";
7
7
  import { Router, RouterError } from "./router-D9eI0s4b.js";
8
- import { InboxListenerSet } from "./inbox-DD3ldbso.js";
8
+ import { InboxListenerSet } from "./inbox-t2HfUOpK.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { getTypeId } from "@fedify/vocab";
11
11
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -45,7 +45,7 @@ var FederationBuilderImpl = class {
45
45
  this.collectionTypeIds = {};
46
46
  }
47
47
  async build(options) {
48
- const { FederationImpl } = await import("./middleware-BPQUgG_4.js");
48
+ const { FederationImpl } = await import("./middleware-QKMHl3jD.js");
49
49
  const f = new FederationImpl(options);
50
50
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
51
51
  f.router = this.router.clone();
@@ -77,12 +77,7 @@ var FederationBuilderImpl = class {
77
77
  setActorDispatcher(path, dispatcher) {
78
78
  if (this.router.has("actor")) throw new RouterError("Actor dispatcher already set.");
79
79
  const variables = this.router.add(path, "actor");
80
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for actor dispatcher must have one variable: {identifier}");
81
- if (variables.has("handle")) getLogger([
82
- "fedify",
83
- "federation",
84
- "actor"
85
- ]).warn("The {{handle}} variable in the actor dispatcher path is deprecated. Use {{identifier}} instead.");
80
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for actor dispatcher must have one variable: {identifier}");
86
81
  const callbacks = { dispatcher: async (context$1, identifier) => {
87
82
  const actor = await this._getTracer().startActiveSpan("activitypub.dispatch_actor", {
88
83
  kind: SpanKind.SERVER,
@@ -244,12 +239,7 @@ var FederationBuilderImpl = class {
244
239
  if (this.inboxPath !== path) throw new RouterError("Inbox dispatcher path must match inbox listener path.");
245
240
  } else {
246
241
  const variables = this.router.add(path, "inbox");
247
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for inbox dispatcher must have one variable: {identifier}");
248
- if (variables.has("handle")) getLogger([
249
- "fedify",
250
- "federation",
251
- "inbox"
252
- ]).warn("The {{handle}} variable in the inbox dispatcher path is deprecated. Use {{identifier}} instead.");
242
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for inbox dispatcher must have one variable: {identifier}");
253
243
  this.inboxPath = path;
254
244
  }
255
245
  const callbacks = { dispatcher };
@@ -277,12 +267,7 @@ var FederationBuilderImpl = class {
277
267
  setOutboxDispatcher(path, dispatcher) {
278
268
  if (this.router.has("outbox")) throw new RouterError("Outbox dispatcher already set.");
279
269
  const variables = this.router.add(path, "outbox");
280
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for outbox dispatcher must have one variable: {identifier}");
281
- if (variables.has("handle")) getLogger([
282
- "fedify",
283
- "federation",
284
- "outbox"
285
- ]).warn("The {{handle}} variable in the outbox dispatcher path is deprecated. Use {{identifier}} instead.");
270
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for outbox dispatcher must have one variable: {identifier}");
286
271
  const callbacks = { dispatcher };
287
272
  this.outboxCallbacks = callbacks;
288
273
  const setters = {
@@ -308,12 +293,7 @@ var FederationBuilderImpl = class {
308
293
  setFollowingDispatcher(path, dispatcher) {
309
294
  if (this.router.has("following")) throw new RouterError("Following collection dispatcher already set.");
310
295
  const variables = this.router.add(path, "following");
311
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for following collection dispatcher must have one variable: {identifier}");
312
- if (variables.has("handle")) getLogger([
313
- "fedify",
314
- "federation",
315
- "collection"
316
- ]).warn("The {{handle}} variable in the following collection dispatcher path is deprecated. Use {{identifier}} instead.");
296
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for following collection dispatcher must have one variable: {identifier}");
317
297
  const callbacks = { dispatcher };
318
298
  this.followingCallbacks = callbacks;
319
299
  const setters = {
@@ -339,12 +319,7 @@ var FederationBuilderImpl = class {
339
319
  setFollowersDispatcher(path, dispatcher) {
340
320
  if (this.router.has("followers")) throw new RouterError("Followers collection dispatcher already set.");
341
321
  const variables = this.router.add(path, "followers");
342
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for followers collection dispatcher must have one variable: {identifier}");
343
- if (variables.has("handle")) getLogger([
344
- "fedify",
345
- "federation",
346
- "collection"
347
- ]).warn("The {{handle}} variable in the followers collection dispatcher path is deprecated. Use {{identifier}} instead.");
322
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for followers collection dispatcher must have one variable: {identifier}");
348
323
  const callbacks = { dispatcher };
349
324
  this.followersCallbacks = callbacks;
350
325
  const setters = {
@@ -370,12 +345,7 @@ var FederationBuilderImpl = class {
370
345
  setLikedDispatcher(path, dispatcher) {
371
346
  if (this.router.has("liked")) throw new RouterError("Liked collection dispatcher already set.");
372
347
  const variables = this.router.add(path, "liked");
373
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for liked collection dispatcher must have one variable: {identifier}");
374
- if (variables.has("handle")) getLogger([
375
- "fedify",
376
- "federation",
377
- "collection"
378
- ]).warn("The {{handle}} variable in the liked collection dispatcher path is deprecated. Use {{identifier}} instead.");
348
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for liked collection dispatcher must have one variable: {identifier}");
379
349
  const callbacks = { dispatcher };
380
350
  this.likedCallbacks = callbacks;
381
351
  const setters = {
@@ -401,12 +371,7 @@ var FederationBuilderImpl = class {
401
371
  setFeaturedDispatcher(path, dispatcher) {
402
372
  if (this.router.has("featured")) throw new RouterError("Featured collection dispatcher already set.");
403
373
  const variables = this.router.add(path, "featured");
404
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for featured collection dispatcher must have one variable: {identifier}");
405
- if (variables.has("handle")) getLogger([
406
- "fedify",
407
- "federation",
408
- "collection"
409
- ]).warn("The {{handle}} variable in the featured collection dispatcher path is deprecated. Use {{identifier}} instead.");
374
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for featured collection dispatcher must have one variable: {identifier}");
410
375
  const callbacks = { dispatcher };
411
376
  this.featuredCallbacks = callbacks;
412
377
  const setters = {
@@ -432,12 +397,7 @@ var FederationBuilderImpl = class {
432
397
  setFeaturedTagsDispatcher(path, dispatcher) {
433
398
  if (this.router.has("featuredTags")) throw new RouterError("Featured tags collection dispatcher already set.");
434
399
  const variables = this.router.add(path, "featuredTags");
435
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for featured tags collection dispatcher must have one variable: {identifier}");
436
- if (variables.has("handle")) getLogger([
437
- "fedify",
438
- "federation",
439
- "collection"
440
- ]).warn("The {{handle}} variable in the featured tags collection dispatcher path is deprecated. Use {{identifier}} instead.");
400
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for featured tags collection dispatcher must have one variable: {identifier}");
441
401
  const callbacks = { dispatcher };
442
402
  this.featuredTagsCallbacks = callbacks;
443
403
  const setters = {
@@ -466,13 +426,8 @@ var FederationBuilderImpl = class {
466
426
  if (this.inboxPath !== inboxPath) throw new RouterError("Inbox listener path must match inbox dispatcher path.");
467
427
  } else {
468
428
  const variables = this.router.add(inboxPath, "inbox");
469
- if (variables.size !== 1 || !(variables.has("identifier") || variables.has("handle"))) throw new RouterError("Path for inbox must have one variable: {identifier}");
429
+ if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for inbox must have one variable: {identifier}");
470
430
  this.inboxPath = inboxPath;
471
- if (variables.has("handle")) getLogger([
472
- "fedify",
473
- "federation",
474
- "inbox"
475
- ]).warn("The {{handle}} variable in the inbox path is deprecated. Use {{identifier}} instead.");
476
431
  }
477
432
  if (sharedInboxPath != null) {
478
433
  const siVars = this.router.add(sharedInboxPath, "sharedInbox");
@@ -1,7 +1,7 @@
1
1
  import "../client-CwkOPN13.cjs";
2
2
  import "../http-CCEu-x1_.cjs";
3
3
  import "../owner-9yZ5Ibsb.cjs";
4
- import { ActivityTransformer } from "../context-Cf0-LmZC.cjs";
4
+ import { ActivityTransformer } from "../context-Bo8rHkgD.cjs";
5
5
  import "../kv-g9jFc34-.cjs";
6
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-H3ScYaOb.cjs";
6
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-jzy1r56s.cjs";
7
7
  export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -3,7 +3,7 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../client-a7NwzhA2.js";
4
4
  import "../http-CODSJcKx.js";
5
5
  import "../owner-DQYAbVmX.js";
6
- import { ActivityTransformer } from "../context-liIe6DFH.js";
6
+ import { ActivityTransformer } from "../context-CvI-m4eX.js";
7
7
  import "../kv-jg_8SMc1.js";
8
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-B9_l3te3.js";
8
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-PmuFg9QD.js";
9
9
  export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-QzKcOQgP.js";
11
- import "../deno-DqzG_RZH.js";
12
- import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-1jFftSD2.js";
11
+ import "../deno-CtGMjqVA.js";
12
+ import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-C8EKZVUa.js";
13
13
  import "../client-Dg7OfUDA.js";
14
14
  import "../router-D9eI0s4b.js";
15
15
  import "../types-CPz01LGH.js";
16
- import "../key-DT5WUsoA.js";
17
- import "../http-wC3zLKG0.js";
18
- import "../ld-DkkOCVAX.js";
19
- import "../owner-DkyFfykp.js";
20
- import "../proof-YGxK2bz_.js";
21
- import "../docloader-DzdrkeHk.js";
16
+ import "../key-BaU3dCbr.js";
17
+ import "../http-MKkRvGCD.js";
18
+ import "../ld-Cl1Q2ID2.js";
19
+ import "../owner-CLtVml91.js";
20
+ import "../proof-0NbL8saz.js";
21
+ import "../docloader-DFtiZSjQ.js";
22
22
  import "../kv-cache-B__dHl7g.js";
23
- import "../inbox-DD3ldbso.js";
24
- import "../builder-CTaPayj3.js";
23
+ import "../inbox-t2HfUOpK.js";
24
+ import "../builder-yo-Bb1YI.js";
25
25
  import "../collection-CcnIw1qY.js";
26
26
  import "../keycache-DRxpZ5r9.js";
27
27
  import "../negotiation-5NPJL6zp.js";
28
28
  import "../retry-D4GJ670a.js";
29
- import "../send-Bh3NMyL9.js";
29
+ import "../send-yCNNrsU2.js";
30
30
  import { Follow, Person } from "@fedify/vocab";
31
31
 
32
32
  //#region src/compat/transformers.test.ts
@@ -233,14 +233,10 @@ type SharedInboxKeyDispatcher<TContextData> = (context: Context<TContextData>) =
233
233
  identifier: string;
234
234
  } | {
235
235
  username: string;
236
- } | {
237
- handle: string;
238
236
  } | null | Promise<SenderKeyPair | {
239
237
  identifier: string;
240
238
  } | {
241
239
  username: string;
242
- } | {
243
- handle: string;
244
240
  } | null>;
245
241
  /**
246
242
  * A callback that handles errors during outbox processing.
@@ -781,13 +777,6 @@ interface CreateExponentialBackoffPolicyOptions {
781
777
  declare function createExponentialBackoffPolicy(options?: CreateExponentialBackoffPolicyOptions): RetryPolicy;
782
778
  //#endregion
783
779
  //#region src/federation/middleware.d.ts
784
- /**
785
- * Options for {@link createFederation} function.
786
- * @template TContextData The type of the context data.
787
- * @since 0.10.0
788
- * @deprecated Use {@link FederationOptions} instead.
789
- */
790
- interface CreateFederationOptions<TContextData> extends FederationOptions<TContextData> {}
791
780
  /**
792
781
  * Configures the task queues for sending and receiving activities.
793
782
  * @since 1.3.0
@@ -842,7 +831,7 @@ interface FederationKvPrefixes {
842
831
  readonly httpMessageSignaturesSpec: KvKey;
843
832
  }
844
833
  /**
845
- * Options for {@link CreateFederationOptions.origin} when it is not a string.
834
+ * Options for {@link FederationOptions.origin} when it is not a string.
846
835
  * @since 1.5.0
847
836
  */
848
837
  interface FederationOrigin {
@@ -865,7 +854,7 @@ interface FederationOrigin {
865
854
  * @returns A new {@link Federation} instance.
866
855
  * @since 0.10.0
867
856
  */
868
- declare function createFederation<TContextData>(options: CreateFederationOptions<TContextData>): Federation<TContextData>;
857
+ declare function createFederation<TContextData>(options: FederationOptions<TContextData>): Federation<TContextData>;
869
858
  //#endregion
870
859
  //#region src/federation/federation.d.ts
871
860
  /**
@@ -930,7 +919,7 @@ interface Federatable<TContextData> {
930
919
  * @returns An object with methods to set other actor dispatcher callbacks.
931
920
  * @throws {RouterError} Thrown if the path pattern is invalid.
932
921
  */
933
- setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
922
+ setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
934
923
  /**
935
924
  * Registers an object dispatcher.
936
925
  *
@@ -1026,7 +1015,7 @@ interface Federatable<TContextData> {
1026
1015
  * @param dispatcher An inbox dispatcher callback to register.
1027
1016
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1028
1017
  */
1029
- setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1018
+ setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1030
1019
  /**
1031
1020
  * Registers an outbox dispatcher.
1032
1021
  *
@@ -1050,7 +1039,7 @@ interface Federatable<TContextData> {
1050
1039
  * @param dispatcher An outbox dispatcher callback to register.
1051
1040
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1052
1041
  */
1053
- setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1042
+ setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1054
1043
  /**
1055
1044
  * Registers a following collection dispatcher.
1056
1045
  * @param path The URI path pattern for the following collection. The syntax
@@ -1062,7 +1051,7 @@ interface Federatable<TContextData> {
1062
1051
  * callbacks.
1063
1052
  * @throws {RouterError} Thrown if the path pattern is invalid.
1064
1053
  */
1065
- setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1054
+ setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1066
1055
  /**
1067
1056
  * Registers a followers collection dispatcher.
1068
1057
  * @param path The URI path pattern for the followers collection. The syntax
@@ -1074,7 +1063,7 @@ interface Federatable<TContextData> {
1074
1063
  * callbacks.
1075
1064
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1076
1065
  */
1077
- setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
1066
+ setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
1078
1067
  /**
1079
1068
  * Registers a liked collection dispatcher.
1080
1069
  * @param path The URI path pattern for the liked collection. The syntax
@@ -1086,7 +1075,7 @@ interface Federatable<TContextData> {
1086
1075
  * callbacks.
1087
1076
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1088
1077
  */
1089
- setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1078
+ setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1090
1079
  /**
1091
1080
  * Registers a featured collection dispatcher.
1092
1081
  * @param path The URI path pattern for the featured collection. The syntax
@@ -1098,7 +1087,7 @@ interface Federatable<TContextData> {
1098
1087
  * callbacks.
1099
1088
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1100
1089
  */
1101
- setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1090
+ setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1102
1091
  /**
1103
1092
  * Registers a featured tags collection dispatcher.
1104
1093
  * @param path The URI path pattern for the featured tags collection.
@@ -1110,7 +1099,7 @@ interface Federatable<TContextData> {
1110
1099
  * callbacks.
1111
1100
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
1112
1101
  */
1113
- setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1102
+ setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
1114
1103
  /**
1115
1104
  * Assigns the URL path for the inbox and starts setting inbox listeners.
1116
1105
  *
@@ -1140,7 +1129,7 @@ interface Federatable<TContextData> {
1140
1129
  * @returns An object to register inbox listeners.
1141
1130
  * @throws {RouterError} Thrown if the path pattern is invalid.
1142
1131
  */
1143
- setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
1132
+ setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
1144
1133
  /**
1145
1134
  * Registers a collection of objects dispatcher.
1146
1135
  *
@@ -1391,9 +1380,9 @@ interface FederationOptions<TContextData> {
1391
1380
  /**
1392
1381
  * Whether to allow fetching private network addresses in the document loader.
1393
1382
  *
1394
- * If turned on, {@link CreateFederationOptions.documentLoader},
1395
- * {@link CreateFederationOptions.contextLoader}, and
1396
- * {@link CreateFederationOptions.authenticatedDocumentLoaderFactory}
1383
+ * If turned on, {@link FederationOptions.documentLoader},
1384
+ * {@link FederationOptions.contextLoader}, and
1385
+ * {@link FederationOptions.authenticatedDocumentLoaderFactory}
1397
1386
  * cannot be configured.
1398
1387
  *
1399
1388
  * Mostly useful for testing purposes. *Do not use in production.*
@@ -1980,8 +1969,6 @@ interface Context<TContextData> {
1980
1969
  identifier: string;
1981
1970
  } | {
1982
1971
  username: string;
1983
- } | {
1984
- handle: string;
1985
1972
  }): Promise<DocumentLoader>;
1986
1973
  /**
1987
1974
  * Gets an authenticated {@link DocumentLoader} for the given identity.
@@ -2112,8 +2099,6 @@ interface Context<TContextData> {
2112
2099
  identifier: string;
2113
2100
  } | {
2114
2101
  username: string;
2115
- } | {
2116
- handle: string;
2117
2102
  }, recipients: Recipient | Recipient[], activity: Activity, options?: SendActivityOptions): Promise<void>;
2118
2103
  /**
2119
2104
  * Sends an activity to the inboxes of the sender's followers.
@@ -2128,8 +2113,6 @@ interface Context<TContextData> {
2128
2113
  identifier: string;
2129
2114
  } | {
2130
2115
  username: string;
2131
- } | {
2132
- handle: string;
2133
2116
  }, recipients: "followers", activity: Activity, options?: SendActivityOptionsForCollection): Promise<void>;
2134
2117
  /**
2135
2118
  * Manually routes an activity to the appropriate inbox listener.
@@ -2307,8 +2290,6 @@ interface InboxContext<TContextData> extends Context<TContextData> {
2307
2290
  identifier: string;
2308
2291
  } | {
2309
2292
  username: string;
2310
- } | {
2311
- handle: string;
2312
2293
  }, recipients: Recipient | Recipient[], options?: ForwardActivityOptions): Promise<void>;
2313
2294
  /**
2314
2295
  * Forwards a received activity to the recipients' inboxes. The forwarded
@@ -2326,8 +2307,6 @@ interface InboxContext<TContextData> extends Context<TContextData> {
2326
2307
  identifier: string;
2327
2308
  } | {
2328
2309
  username: string;
2329
- } | {
2330
- handle: string;
2331
2310
  }, recipients: "followers", options?: ForwardActivityOptions): Promise<void>;
2332
2311
  }
2333
2312
  /**
@@ -2340,7 +2319,6 @@ type ParseUriResult =
2340
2319
  {
2341
2320
  readonly type: "actor";
2342
2321
  readonly identifier: string;
2343
- readonly handle: string;
2344
2322
  }
2345
2323
  /**
2346
2324
  * The case of an object URI.
@@ -2355,35 +2333,30 @@ type ParseUriResult =
2355
2333
  */ | {
2356
2334
  readonly type: "inbox";
2357
2335
  readonly identifier: undefined;
2358
- readonly handle: undefined;
2359
2336
  }
2360
2337
  /**
2361
2338
  * The case of an personal inbox URI.
2362
2339
  */ | {
2363
2340
  readonly type: "inbox";
2364
2341
  readonly identifier: string;
2365
- readonly handle: string;
2366
2342
  }
2367
2343
  /**
2368
2344
  * The case of an outbox collection URI.
2369
2345
  */ | {
2370
2346
  readonly type: "outbox";
2371
2347
  readonly identifier: string;
2372
- readonly handle: string;
2373
2348
  }
2374
2349
  /**
2375
2350
  * The case of a following collection URI.
2376
2351
  */ | {
2377
2352
  readonly type: "following";
2378
2353
  readonly identifier: string;
2379
- readonly handle: string;
2380
2354
  }
2381
2355
  /**
2382
2356
  * The case of a followers collection URI.
2383
2357
  */ | {
2384
2358
  readonly type: "followers";
2385
2359
  readonly identifier: string;
2386
- readonly handle: string;
2387
2360
  }
2388
2361
  /**
2389
2362
  * The case of a liked collection URI.
@@ -2391,7 +2364,6 @@ type ParseUriResult =
2391
2364
  */ | {
2392
2365
  readonly type: "liked";
2393
2366
  readonly identifier: string;
2394
- readonly handle: string;
2395
2367
  }
2396
2368
  /**
2397
2369
  * The case of a featured collection URI.
@@ -2399,7 +2371,6 @@ type ParseUriResult =
2399
2371
  */ | {
2400
2372
  readonly type: "featured";
2401
2373
  readonly identifier: string;
2402
- readonly handle: string;
2403
2374
  }
2404
2375
  /**
2405
2376
  * The case of a featured tags collection URI.
@@ -2407,7 +2378,6 @@ type ParseUriResult =
2407
2378
  */ | {
2408
2379
  readonly type: "featuredTags";
2409
2380
  readonly identifier: string;
2410
- readonly handle: string;
2411
2381
  }
2412
2382
  /**
2413
2383
  * The case of a custom collection URI.
@@ -2578,4 +2548,4 @@ interface ActorKeyPair extends CryptoKeyPair {
2578
2548
  readonly multikey: Multikey;
2579
2549
  }
2580
2550
  //#endregion
2581
- export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
2551
+ export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };