@fedify/fedify 2.0.0-pr.445.1694 → 2.0.0-pr.449.1725

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 (116) hide show
  1. package/dist/{actor-DoMcqXsW.js → actor-C0gLJq8I.js} +187 -187
  2. package/dist/{actor-CwZ2m5rG.cjs → actor-CsRJa7wV.cjs} +187 -187
  3. package/dist/{actor-D8gCwLzv.js → actor-VrXd7EdX.js} +1 -1
  4. package/dist/{authdocloader-Cv_qEn1G.js → authdocloader-6F9IP-VO.js} +3 -3
  5. package/dist/{authdocloader-bsmVF6eO.cjs → authdocloader-BkuVo8LL.cjs} +3 -3
  6. package/dist/{authdocloader-DYTNpaMA.js → authdocloader-C8LXxsmU.js} +3 -3
  7. package/dist/{builder-1_skw-d2.js → builder-JjsppXTK.js} +8 -8
  8. package/dist/{client-D5CBsPrc.js → client-BS-GE3XI.js} +1 -1
  9. package/dist/compat/mod.d.cts +2 -2
  10. package/dist/compat/mod.d.ts +2 -2
  11. package/dist/compat/transformers.test.js +16 -16
  12. package/dist/{context-DBKpNBnc.d.ts → context-B1X8-X33.d.ts} +120 -87
  13. package/dist/{context-DiqjMRef.d.cts → context-DYCJXr7J.d.cts} +120 -87
  14. package/dist/{docloader-Czl3xV10.js → docloader-AMdJU291.js} +1 -1
  15. package/dist/{docloader-CYnQRIXv.cjs → docloader-BdF5STdg.cjs} +1 -1
  16. package/dist/{esm-Dl5T1RNE.js → esm-CvUgdJZ_.js} +1 -1
  17. package/dist/federation/builder.test.js +5 -5
  18. package/dist/federation/collection.test.js +3 -3
  19. package/dist/federation/handler.test.js +17 -17
  20. package/dist/federation/idempotency.test.js +17 -17
  21. package/dist/federation/inbox.test.js +4 -4
  22. package/dist/federation/keycache.test.js +4 -4
  23. package/dist/federation/kv.test.js +3 -3
  24. package/dist/federation/middleware.test.js +18 -18
  25. package/dist/federation/mod.cjs +10 -10
  26. package/dist/federation/mod.d.cts +2 -2
  27. package/dist/federation/mod.d.ts +2 -2
  28. package/dist/federation/mod.js +10 -10
  29. package/dist/federation/mq.test.js +3 -3
  30. package/dist/federation/negotiation.test.js +3 -3
  31. package/dist/federation/retry.test.js +3 -3
  32. package/dist/federation/router.test.js +3 -3
  33. package/dist/federation/send.test.js +10 -10
  34. package/dist/{http-C_Qc2neP.js → http-DVQEn98K.js} +3 -3
  35. package/dist/{http-CAusBl_3.cjs → http-D_BI5KHC.cjs} +3 -3
  36. package/dist/{http-CuS-d4U0.js → http-DbyMqL2X.js} +2 -2
  37. package/dist/{inbox-IETv_Qez.js → inbox-DQlf_-Dz.js} +1 -1
  38. package/dist/{key-C_ruQbbl.js → key-BBzfhQGE.js} +4 -4
  39. package/dist/key-BMz_uAnc.cjs +10 -0
  40. package/dist/{key-DnqhSgAv.js → key-BSJX6n9o.js} +2 -2
  41. package/dist/{key-DuXv64tg.cjs → key-D-RgWfcf.cjs} +2 -2
  42. package/dist/{key-BNJQQm3h.js → key-DFefr8X2.js} +2 -2
  43. package/dist/{key-DpFjiItf.js → key-DW2DrPGl.js} +3 -3
  44. package/dist/{keycache-CSBkusP8.js → keycache-CcIfdj0m.js} +1 -1
  45. package/dist/{keys-D3_MDK7n.js → keys-DnSaJmvD.js} +1 -1
  46. package/dist/{ld-Isot0tiW.js → ld-CAJ6Q2od.js} +2 -2
  47. package/dist/{lookup-D6dro5Au.cjs → lookup-B2Bsau2g.cjs} +1 -1
  48. package/dist/{lookup-Dhm78GlK.js → lookup-BGCuyJRy.js} +1 -1
  49. package/dist/{lookup-CbtuFbtg.js → lookup-C3pnuyiD.js} +1 -1
  50. package/dist/{middleware-BuHr2fzh.js → middleware-1oxZY_0z.js} +36 -37
  51. package/dist/middleware-B8WWe8Q2.js +26 -0
  52. package/dist/{middleware-DQYscW90.js → middleware-BDqkoMAQ.js} +35 -36
  53. package/dist/{middleware-Dgmdgrvb.cjs → middleware-D0XMPoN8.cjs} +36 -37
  54. package/dist/middleware-DipQbJmB.js +17 -0
  55. package/dist/middleware-mLaQeD_Z.cjs +17 -0
  56. package/dist/{mod-D_y2y32N.d.ts → mod-DcKxhFQ8.d.ts} +1 -1
  57. package/dist/{mod-Bpb5QLaZ.d.cts → mod-twdvV2hR.d.cts} +1 -1
  58. package/dist/mod.cjs +10 -10
  59. package/dist/mod.d.cts +3 -3
  60. package/dist/mod.d.ts +3 -3
  61. package/dist/mod.js +10 -10
  62. package/dist/nodeinfo/client.test.js +5 -5
  63. package/dist/nodeinfo/handler.test.js +16 -16
  64. package/dist/nodeinfo/mod.cjs +2 -2
  65. package/dist/nodeinfo/mod.js +2 -2
  66. package/dist/nodeinfo/types.test.js +3 -3
  67. package/dist/{owner-ChSL4aJ7.js → owner-CaIfLBwg.js} +2 -2
  68. package/dist/{proof-ONNmhInb.cjs → proof-AhyVJcNZ.cjs} +3 -3
  69. package/dist/{proof-x3IBewan.js → proof-BQwXHakc.js} +2 -2
  70. package/dist/{proof-BiSCuwyA.js → proof-CKXppjee.js} +3 -3
  71. package/dist/runtime/authdocloader.test.js +9 -9
  72. package/dist/runtime/docloader.test.js +4 -4
  73. package/dist/runtime/key.test.js +5 -5
  74. package/dist/runtime/langstr.test.js +3 -3
  75. package/dist/runtime/link.test.js +3 -3
  76. package/dist/runtime/mod.cjs +6 -6
  77. package/dist/runtime/mod.js +6 -6
  78. package/dist/runtime/multibase/multibase.test.js +3 -3
  79. package/dist/runtime/url.test.js +3 -3
  80. package/dist/{send-D5fjmUEj.js → send-DQd3R1Oc.js} +2 -2
  81. package/dist/sig/http.test.js +8 -8
  82. package/dist/sig/key.test.js +6 -6
  83. package/dist/sig/ld.test.js +7 -7
  84. package/dist/sig/mod.cjs +6 -6
  85. package/dist/sig/mod.js +6 -6
  86. package/dist/sig/owner.test.js +7 -7
  87. package/dist/sig/proof.test.js +7 -7
  88. package/dist/testing/docloader.test.js +3 -3
  89. package/dist/testing/mod.d.ts +119 -86
  90. package/dist/testing/mod.js +3 -3
  91. package/dist/{testing-tWr1VQxx.js → testing-BljKU-GG.js} +2 -2
  92. package/dist/{type-DaUr3Il7.js → type-COb6KNlm.js} +186 -186
  93. package/dist/{types-DQuSDtDg.js → types-CEn4wB51.js} +1 -1
  94. package/dist/{types-D2Nyz0tR.cjs → types-DI0yutHB.cjs} +1 -1
  95. package/dist/vocab/actor.test.js +5 -5
  96. package/dist/vocab/lookup.test.js +4 -4
  97. package/dist/vocab/mod.cjs +4 -4
  98. package/dist/vocab/mod.js +4 -4
  99. package/dist/vocab/type.test.js +3 -3
  100. package/dist/vocab/vocab.test.js +4 -4
  101. package/dist/{vocab-w--qk7HF.js → vocab-CkWH9P5l.js} +3 -3
  102. package/dist/{vocab-Dd4VMrr0.cjs → vocab-NZXL5Pr-.cjs} +3 -3
  103. package/dist/webfinger/handler.test.js +16 -16
  104. package/dist/webfinger/lookup.test.js +4 -4
  105. package/dist/webfinger/mod.cjs +2 -2
  106. package/dist/webfinger/mod.js +2 -2
  107. package/dist/x/cfworkers.test.js +3 -3
  108. package/dist/x/hono.d.cts +1 -1
  109. package/dist/x/hono.d.ts +1 -1
  110. package/dist/x/sveltekit.d.cts +1 -1
  111. package/dist/x/sveltekit.d.ts +1 -1
  112. package/package.json +1 -1
  113. package/dist/key-DIMJMxf4.cjs +0 -10
  114. package/dist/middleware-BpR6186a.js +0 -26
  115. package/dist/middleware-DDMxdtWM.cjs +0 -17
  116. package/dist/middleware-T-knSMwl.js +0 -17
@@ -281,7 +281,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
281
281
  * the entire collection without pagination.
282
282
  * @since 1.8.0
283
283
  */
284
- type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams, cursor: string | null) => PageItems<TItem> | null | Promise<PageItems<TItem> | null>;
284
+ type CustomCollectionDispatcher<TItem, TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>, cursor: string | null) => PageItems<TItem> | null | Promise<PageItems<TItem> | null>;
285
285
  /**
286
286
  * A callback that counts the number of items in a custom collection.
287
287
  *
@@ -291,7 +291,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
291
291
  * @param values The parameters of the requested URL.
292
292
  * @since 1.8.0
293
293
  */
294
- type CustomCollectionCounter<TParams extends Record<string, string>, TContextData> = (context: RequestContext<TContextData>, values: TParams) => number | bigint | null | Promise<number | bigint | null>;
294
+ type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
295
295
  /**
296
296
  * A callback that returns a cursor for a custom collection.
297
297
  *
@@ -304,7 +304,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
304
304
  * @param values The parameters of the requested URL.
305
305
  * @since 1.8.0
306
306
  */
307
- type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
307
+ type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
308
308
  //#endregion
309
309
  //#region src/federation/handler.d.ts
310
310
 
@@ -702,7 +702,7 @@ interface Federatable<TContextData> {
702
702
  * @returns An object with methods to set other actor dispatcher callbacks.
703
703
  * @throws {RouterError} Thrown if the path pattern is invalid.
704
704
  */
705
- setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
705
+ setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
706
706
  /**
707
707
  * Registers an object dispatcher.
708
708
  *
@@ -766,7 +766,7 @@ interface Federatable<TContextData> {
766
766
  */
767
767
  setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
768
768
  typeId: URL;
769
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
769
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
770
770
  /**
771
771
  * Registers an object dispatcher.
772
772
  *
@@ -782,7 +782,7 @@ interface Federatable<TContextData> {
782
782
  */
783
783
  setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
784
784
  typeId: URL;
785
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
785
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
786
786
  /**
787
787
  * Registers an object dispatcher.
788
788
  *
@@ -798,7 +798,7 @@ interface Federatable<TContextData> {
798
798
  */
799
799
  setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
800
800
  typeId: URL;
801
- }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
801
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
802
802
  /**
803
803
  * Registers an inbox dispatcher.
804
804
  *
@@ -810,7 +810,7 @@ interface Federatable<TContextData> {
810
810
  * @param dispatcher An inbox dispatcher callback to register.
811
811
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
812
812
  */
813
- setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
813
+ setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
814
814
  /**
815
815
  * Registers an outbox dispatcher.
816
816
  *
@@ -834,7 +834,7 @@ interface Federatable<TContextData> {
834
834
  * @param dispatcher An outbox dispatcher callback to register.
835
835
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
836
836
  */
837
- setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
837
+ setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
838
838
  /**
839
839
  * Registers a following collection dispatcher.
840
840
  * @param path The URI path pattern for the following collection. The syntax
@@ -846,7 +846,7 @@ interface Federatable<TContextData> {
846
846
  * callbacks.
847
847
  * @throws {RouterError} Thrown if the path pattern is invalid.
848
848
  */
849
- setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
849
+ setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
850
850
  /**
851
851
  * Registers a followers collection dispatcher.
852
852
  * @param path The URI path pattern for the followers collection. The syntax
@@ -858,7 +858,7 @@ interface Federatable<TContextData> {
858
858
  * callbacks.
859
859
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
860
860
  */
861
- setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
861
+ setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
862
862
  /**
863
863
  * Registers a liked collection dispatcher.
864
864
  * @param path The URI path pattern for the liked collection. The syntax
@@ -870,7 +870,7 @@ interface Federatable<TContextData> {
870
870
  * callbacks.
871
871
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
872
872
  */
873
- setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
873
+ setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
874
874
  /**
875
875
  * Registers a featured collection dispatcher.
876
876
  * @param path The URI path pattern for the featured collection. The syntax
@@ -882,7 +882,7 @@ interface Federatable<TContextData> {
882
882
  * callbacks.
883
883
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
884
884
  */
885
- setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
885
+ setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
886
886
  /**
887
887
  * Registers a featured tags collection dispatcher.
888
888
  * @param path The URI path pattern for the featured tags collection.
@@ -894,7 +894,7 @@ interface Federatable<TContextData> {
894
894
  * callbacks.
895
895
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
896
896
  */
897
- setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
897
+ setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
898
898
  /**
899
899
  * Assigns the URL path for the inbox and starts setting inbox listeners.
900
900
  *
@@ -924,7 +924,7 @@ interface Federatable<TContextData> {
924
924
  * @returns An object to register inbox listeners.
925
925
  * @throws {RouteError} Thrown if the path pattern is invalid.
926
926
  */
927
- setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
927
+ setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
928
928
  /**
929
929
  * Registers a collection of objects dispatcher.
930
930
  *
@@ -939,7 +939,43 @@ interface Federatable<TContextData> {
939
939
  * The path must have one or more variables.
940
940
  * @param dispatcher A collection dispatcher callback to register.
941
941
  */
942
- setCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
942
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
943
+ typeId: URL;
944
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
945
+ /**
946
+ * Registers a collection of objects dispatcher.
947
+ *
948
+ * @template TContextData The context data to pass to the {@link Context}.
949
+ * @template TObject The type of objects to dispatch.
950
+ * @template TParam The parameter names of the requested URL.
951
+ * @param name A unique name for the collection dispatcher.
952
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
953
+ * @param path The URI path pattern for the collection dispatcher.
954
+ * The syntax is based on URI Template
955
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
956
+ * The path must have one or more variables.
957
+ * @param dispatcher A collection dispatcher callback to register.
958
+ */
959
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
960
+ typeId: URL;
961
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
962
+ /**
963
+ * Registers a collection of objects dispatcher.
964
+ *
965
+ * @template TContextData The context data to pass to the {@link Context}.
966
+ * @template TObject The type of objects to dispatch.
967
+ * @template TParam The parameter names of the requested URL.
968
+ * @param name A unique name for the collection dispatcher.
969
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
970
+ * @param path The URI path pattern for the collection dispatcher.
971
+ * The syntax is based on URI Template
972
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
973
+ * The path must have one or more variables.
974
+ * @param dispatcher A collection dispatcher callback to register.
975
+ */
976
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
977
+ typeId: URL;
978
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
943
979
  /**
944
980
  * Registers an ordered collection of objects dispatcher.
945
981
  *
@@ -954,7 +990,43 @@ interface Federatable<TContextData> {
954
990
  * The path must have one or more variables.
955
991
  * @param dispatcher A collection dispatcher callback to register.
956
992
  */
957
- setOrderedCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
993
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
994
+ typeId: URL;
995
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
996
+ /**
997
+ * Registers an ordered collection of objects dispatcher.
998
+ *
999
+ * @template TContextData The context data to pass to the {@link Context}.
1000
+ * @template TObject The type of objects to dispatch.
1001
+ * @template TParam The parameter names of the requested URL.
1002
+ * @param name A unique name for the collection dispatcher.
1003
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
1004
+ * @param path The URI path pattern for the collection dispatcher.
1005
+ * The syntax is based on URI Template
1006
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
1007
+ * The path must have one or more variables.
1008
+ * @param dispatcher A collection dispatcher callback to register.
1009
+ */
1010
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
1011
+ typeId: URL;
1012
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
1013
+ /**
1014
+ * Registers an ordered collection of objects dispatcher.
1015
+ *
1016
+ * @template TContextData The context data to pass to the {@link Context}.
1017
+ * @template TObject The type of objects to dispatch.
1018
+ * @template TParam The parameter names of the requested URL.
1019
+ * @param name A unique name for the collection dispatcher.
1020
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
1021
+ * @param path The URI path pattern for the collection dispatcher.
1022
+ * The syntax is based on URI Template
1023
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
1024
+ * The path must have one or more variables.
1025
+ * @param dispatcher A collection dispatcher callback to register.
1026
+ */
1027
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
1028
+ typeId: URL;
1029
+ }, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
958
1030
  }
959
1031
  /**
960
1032
  * An object that registers federation-related business logic and dispatches
@@ -1426,38 +1498,38 @@ interface FederationFetchOptions<TContextData> {
1426
1498
  /**
1427
1499
  * Additional settings for a custom collection dispatcher.
1428
1500
  *
1429
- * @template TParams The type of the parameters in the URL path.
1501
+ * @template TParam The type of the parameters in the URL path.
1430
1502
  * @template TContext The type of the context. {@link Context} or
1431
1503
  * {@link RequestContext}.
1432
1504
  * @template TContextData The context data to pass to the {@link Context}.
1433
1505
  * @template TFilter The type of filter for the collection.
1434
1506
  */
1435
- interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> {
1507
+ interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
1436
1508
  /**
1437
1509
  * Sets the counter for the custom collection.
1438
1510
  * @param counter A callback that returns the number of items in the custom collection.
1439
1511
  * @returns The setters object so that settings can be chained.
1440
1512
  */
1441
- setCounter(counter: CustomCollectionCounter<TParams, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
1513
+ setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
1442
1514
  /**
1443
1515
  * Sets the first cursor for the custom collection.
1444
1516
  * @param cursor The cursor for the first item in the custom collection.
1445
1517
  * @returns The setters object so that settings can be chained.
1446
1518
  */
1447
- setFirstCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
1519
+ setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
1448
1520
  /**
1449
1521
  * Sets the last cursor for the custom collection.
1450
1522
  * @param cursor The cursor for the last item in the custom collection.
1451
1523
  * @returns The setters object so that settings can be chained.
1452
1524
  */
1453
- setLastCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
1525
+ setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
1454
1526
  /**
1455
1527
  * Specifies the conditions under which requests are authorized.
1456
1528
  * @param predicate A callback that returns whether a request is authorized.
1457
1529
  * @returns The setters object so that settings can be chained.
1458
1530
  * @since 0.7.0
1459
1531
  */
1460
- authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
1532
+ authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
1461
1533
  }
1462
1534
  /**
1463
1535
  * Represents an object with a type ID, which is either a constructor or an
@@ -1469,73 +1541,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
1469
1541
  typeId: URL;
1470
1542
  };
1471
1543
  /**
1472
- * Represents a path from the key of parameter objects.
1473
- * @param Params - A record of parameters where keys are parameter names and
1474
- * values are their string representations.
1475
- * @returns A string representing the path with all parameters.
1476
- * @example
1477
- * ```ts
1478
- * type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
1479
- * let userPostPath: UserPostPath;
1480
- * // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
1481
- * // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
1482
- * userPostPath = "/users/{userId}/posts/{postId}"; // valid
1483
- * userPostPath = "/posts/{postId}/users/{userId}"; // valid
1484
- * ```
1485
- */
1486
- type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
1487
- /**
1488
- * Represents a path with multiple parameters.
1489
- * All permutations of the parameters are included in the union type.
1490
- * The path must have all parameters in the form of `{paramName}`.
1491
- * @param Params - A union of parameter names.
1492
- * @returns A string representing the path with all parameters.
1493
- * @example
1494
- * ```ts
1495
- * type UserPostPath = ParamsPath<"userId" | "postId">;
1496
- * // = `${string}{userId}${string}` & `${string}{postId}${string}`
1497
- * // =
1498
- * // | `${string}{userId}${string}{postId}${string}`
1499
- * // | `${string}{postId}${string}{userId}${string}`
1500
- * let userPostPath: UserPostPath;
1501
- * userPostPath = "/users/posts"; // ❌ invalid
1502
- * userPostPath = "/users/{userId}"; // ❌ invalid
1503
- * userPostPath = "/posts/{postId}"; // ❌ invalid
1504
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
1505
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
1506
- */
1507
- type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
1508
- /**
1509
- * Represents a path with a single parameter.
1510
- * The path must have at least one of the parameters in the form of `{paramName}`.
1511
- * @param Param - The name of the parameter.
1512
- * @returns A string representing the path with the parameter.
1513
- * @example
1514
- * ```ts
1515
- * type UserPostPath = ParamPath<"userId" | "postId">;
1516
- * // = `${string}{userId}${string}` | `${string}{postId}${string}`
1517
- * let userPostPath: UserPostPath;
1518
- * userPostPath = "/users/posts"; // ❌ invalid
1519
- * userPostPath = "/users/{userId}"; // ✅ valid
1520
- * userPostPath = "/posts/{postId}"; // ✅ valid
1521
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
1522
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
1523
- */
1524
- type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
1525
- /**
1526
- * Converts union types to intersection types.
1544
+ * Defines a union of all valid RFC 6570 URI Template expressions for a given
1545
+ * parameter name.
1527
1546
  *
1528
- * @template U - The union type to convert.
1529
- * @returns The intersection type of the union.
1547
+ * RFC 6570 specifies a syntax for URI templates, allowing for variable
1548
+ * expansion. This type captures all Level 1-4 operator expressions for a
1549
+ * single, named variable.
1550
+ *
1551
+ * The supported expression types are:
1552
+ * - `{Param}`: Simple string expansion
1553
+ * - `+{Param}`: Reserved string expansion
1554
+ * - `#{Param}`: Fragment expansion
1555
+ * - `{.Param}`: Label expansion with a dot-prefix
1556
+ * - `{/Param}`: Path segment expansion
1557
+ * - `{;Param}`: Path-style parameter expansion
1558
+ * - `{?Param}`: Query component expansion
1559
+ * - `{&Param}`: Query continuation expansion
1560
+ *
1561
+ * @template Param The name of the parameter to be used in the expressions.
1530
1562
  * @example
1531
1563
  * ```ts
1532
- * type A = { a: string };
1533
- * type B = { b: number };
1534
- * type AorB = A | B;
1535
- * type AandB = UnionToIntersection<AorB>;
1536
- * // AandB = { a: string; b: number }
1564
+ * type UserIdExpression = Rfc6570Expression<"userId">;
1565
+ *
1566
+ * // The variable `userPath` can be assigned any of the valid expressions.
1567
+ * const userPath: UserIdExpression = "{/userId}";
1568
+ * ```
1569
+ * @see {@link https://tools.ietf.org/html/rfc6570} for the full specification.
1537
1570
  */
1538
- type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
1571
+ type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
1539
1572
  //#endregion
1540
1573
  //#region src/federation/context.d.ts
1541
1574
  /**
@@ -2306,4 +2339,4 @@ interface ActorKeyPair extends CryptoKeyPair {
2306
2339
  multikey: Multikey;
2307
2340
  }
2308
2341
  //#endregion
2309
- 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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
2342
+ 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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
@@ -9,7 +9,7 @@ import { isIP } from "node:net";
9
9
 
10
10
  //#region deno.json
11
11
  var name = "@fedify/fedify";
12
- var version = "2.0.0-pr.445.1694+d0c7cd75";
12
+ var version = "2.0.0-pr.449.1725+70c3284b";
13
13
  var license = "MIT";
14
14
  var exports = {
15
15
  ".": "./src/mod.ts",
@@ -10,7 +10,7 @@ const node_net = require_chunk.__toESM(require("node:net"));
10
10
 
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "2.0.0-pr.445.1694+d0c7cd75";
13
+ var version = "2.0.0-pr.449.1725+70c3284b";
14
14
  var license = "MIT";
15
15
  var exports$1 = {
16
16
  ".": "./src/mod.ts",
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __commonJS, __toESM } from "./type-DaUr3Il7.js";
6
+ import { __commonJS, __toESM } from "./type-COb6KNlm.js";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
9
9
  var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
@@ -3,15 +3,15 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Note, Person } from "../type-DaUr3Il7.js";
6
+ import { Activity, Note, Person } from "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import "../lookup-CbtuFbtg.js";
12
- import "../inbox-IETv_Qez.js";
13
- import { createFederationBuilder } from "../builder-1_skw-d2.js";
14
- import { test } from "../testing-tWr1VQxx.js";
11
+ import "../lookup-C3pnuyiD.js";
12
+ import "../inbox-DQlf_-Dz.js";
13
+ import { createFederationBuilder } from "../builder-JjsppXTK.js";
14
+ import { test } from "../testing-BljKU-GG.js";
15
15
  import { assertExists } from "../std__assert-X-_kMxKM.js";
16
16
  import "../assert_rejects-DiIiJbZn.js";
17
17
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DaUr3Il7.js";
6
+ import "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-CbtuFbtg.js";
10
+ import "../lookup-C3pnuyiD.js";
11
11
  import { buildCollectionSynchronizationHeader, digest } from "../collection-CcnIw1qY.js";
12
- import { test } from "../testing-tWr1VQxx.js";
12
+ import { test } from "../testing-BljKU-GG.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,36 +3,36 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create, Note, Person } from "../type-DaUr3Il7.js";
6
+ import { Create, Note, Person } from "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DQYscW90.js";
12
- import "../client-D5CBsPrc.js";
13
- import "../lookup-CbtuFbtg.js";
11
+ import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BDqkoMAQ.js";
12
+ import "../client-BS-GE3XI.js";
13
+ import "../lookup-C3pnuyiD.js";
14
14
  import "../types-BSuWJsOm.js";
15
- import "../actor-D8gCwLzv.js";
16
- import "../key-DnqhSgAv.js";
17
- import { signRequest } from "../http-CuS-d4U0.js";
18
- import "../authdocloader-DYTNpaMA.js";
19
- import "../ld-Isot0tiW.js";
20
- import "../owner-ChSL4aJ7.js";
21
- import "../proof-x3IBewan.js";
22
- import { InboxListenerSet } from "../inbox-IETv_Qez.js";
23
- import "../builder-1_skw-d2.js";
15
+ import "../actor-VrXd7EdX.js";
16
+ import "../key-BSJX6n9o.js";
17
+ import { signRequest } from "../http-DbyMqL2X.js";
18
+ import "../authdocloader-C8LXxsmU.js";
19
+ import "../ld-CAJ6Q2od.js";
20
+ import "../owner-CaIfLBwg.js";
21
+ import "../proof-BQwXHakc.js";
22
+ import { InboxListenerSet } from "../inbox-DQlf_-Dz.js";
23
+ import "../builder-JjsppXTK.js";
24
24
  import "../collection-CcnIw1qY.js";
25
- import "../keycache-CSBkusP8.js";
25
+ import "../keycache-CcIfdj0m.js";
26
26
  import "../negotiation-5NPJL6zp.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-D5fjmUEj.js";
29
- import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-tWr1VQxx.js";
28
+ import "../send-DQd3R1Oc.js";
29
+ import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-BljKU-GG.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
33
33
  import "../assert_not_equals-f3m3epl3.js";
34
34
  import "../assert_throws-BOO88avQ.js";
35
- import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-D3_MDK7n.js";
35
+ import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DnSaJmvD.js";
36
36
 
37
37
  //#region src/federation/handler.test.ts
38
38
  test("handleActor()", async () => {
@@ -3,36 +3,36 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create, Follow, Person } from "../type-DaUr3Il7.js";
6
+ import { Create, Follow, Person } from "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { createFederation } from "../middleware-DQYscW90.js";
12
- import "../client-D5CBsPrc.js";
13
- import "../lookup-CbtuFbtg.js";
11
+ import { createFederation } from "../middleware-BDqkoMAQ.js";
12
+ import "../client-BS-GE3XI.js";
13
+ import "../lookup-C3pnuyiD.js";
14
14
  import "../types-BSuWJsOm.js";
15
- import "../actor-D8gCwLzv.js";
16
- import "../key-DnqhSgAv.js";
17
- import "../http-CuS-d4U0.js";
18
- import "../authdocloader-DYTNpaMA.js";
19
- import "../ld-Isot0tiW.js";
20
- import "../owner-ChSL4aJ7.js";
21
- import { signObject } from "../proof-x3IBewan.js";
22
- import "../inbox-IETv_Qez.js";
23
- import "../builder-1_skw-d2.js";
15
+ import "../actor-VrXd7EdX.js";
16
+ import "../key-BSJX6n9o.js";
17
+ import "../http-DbyMqL2X.js";
18
+ import "../authdocloader-C8LXxsmU.js";
19
+ import "../ld-CAJ6Q2od.js";
20
+ import "../owner-CaIfLBwg.js";
21
+ import { signObject } from "../proof-BQwXHakc.js";
22
+ import "../inbox-DQlf_-Dz.js";
23
+ import "../builder-JjsppXTK.js";
24
24
  import "../collection-CcnIw1qY.js";
25
- import "../keycache-CSBkusP8.js";
25
+ import "../keycache-CcIfdj0m.js";
26
26
  import "../negotiation-5NPJL6zp.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-D5fjmUEj.js";
29
- import { mockDocumentLoader, test } from "../testing-tWr1VQxx.js";
28
+ import "../send-DQd3R1Oc.js";
29
+ import { mockDocumentLoader, test } from "../testing-BljKU-GG.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
33
33
  import "../assert_not_equals-f3m3epl3.js";
34
34
  import "../assert_throws-BOO88avQ.js";
35
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-D3_MDK7n.js";
35
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-DnSaJmvD.js";
36
36
 
37
37
  //#region src/federation/idempotency.test.ts
38
38
  const kv = new MemoryKvStore();
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Create, Invite, Offer, Update } from "../type-DaUr3Il7.js";
6
+ import { Activity, Create, Invite, Offer, Update } from "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-CbtuFbtg.js";
9
- import { InboxListenerSet } from "../inbox-IETv_Qez.js";
10
- import { test } from "../testing-tWr1VQxx.js";
8
+ import "../lookup-C3pnuyiD.js";
9
+ import { InboxListenerSet } from "../inbox-DQlf_-Dz.js";
10
+ import { test } from "../testing-BljKU-GG.js";
11
11
  import "../assert_is_error-BPGph1Jx.js";
12
12
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
13
13
 
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "../type-DaUr3Il7.js";
6
+ import { CryptographicKey, Multikey } from "../type-COb6KNlm.js";
7
7
  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-CRZrzyXm.js";
11
- import "../lookup-CbtuFbtg.js";
12
- import { KvKeyCache } from "../keycache-CSBkusP8.js";
13
- import { test } from "../testing-tWr1VQxx.js";
11
+ import "../lookup-C3pnuyiD.js";
12
+ import { KvKeyCache } from "../keycache-CcIfdj0m.js";
13
+ import { test } from "../testing-BljKU-GG.js";
14
14
 
15
15
  //#region src/federation/keycache.test.ts
16
16
  test("KvKeyCache.set()", async () => {
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DaUr3Il7.js";
6
+ import "../type-COb6KNlm.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import "../lookup-CbtuFbtg.js";
12
- import { test } from "../testing-tWr1VQxx.js";
11
+ import "../lookup-C3pnuyiD.js";
12
+ import { test } from "../testing-BljKU-GG.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";