@fedify/fedify 1.8.1-pr.339.1222 → 1.8.1-pr.339.1267

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 (191) hide show
  1. package/README.md +14 -11
  2. package/dist/{actor-B4TBtqRP.d.ts → actor-C2nhWp6O.d.ts} +3 -3
  3. package/dist/{actor-Bt5xDUZo.js → actor-CmkL94HP.js} +2 -2
  4. package/dist/{actor-DVPWhxHG.js → actor-aW87k6YP.js} +189 -189
  5. package/dist/{assert-DwEa6glZ.js → assert-MZs1qjMx.js} +2 -2
  6. package/dist/{assert_equals-C5gKCm6A.js → assert_equals-DSbWqCm3.js} +9 -9
  7. package/dist/{assert_instance_of-C9QtN-X9.js → assert_instance_of-DHz7EHNU.js} +2 -2
  8. package/dist/{assert_is_error-CeVBLPsZ.js → assert_is_error-BPGph1Jx.js} +2 -2
  9. package/dist/{assert_not_equals-D2R2nl5h.js → assert_not_equals-f3m3epl3.js} +2 -2
  10. package/dist/{assert_rejects-AjlKk-Vo.js → assert_rejects-DiIiJbZn.js} +4 -4
  11. package/dist/{assert_throws-CqMKbTh_.js → assert_throws-BOO88avQ.js} +3 -3
  12. package/dist/{authdocloader-DgY04ZH-.js → authdocloader-CSdMJ3OD.js} +4 -4
  13. package/dist/{authdocloader-C-AUsWQ2.js → authdocloader-CfZzF6aW.js} +4 -4
  14. package/dist/{builder-C9T8U_Uf.js → builder-KOoy-ITr.js} +6 -6
  15. package/dist/{client-BQ4AQGKo.d.ts → client-D2tgjFk3.d.ts} +4 -4
  16. package/dist/{client-DWpUfRbw.js → client-DfttEsJO.js} +3 -3
  17. package/dist/{collection-D5V3UzU3.js → collection-CSzG2j1P.js} +1 -1
  18. package/dist/compat/mod.d.ts +12 -12
  19. package/dist/compat/mod.js +1 -1
  20. package/dist/compat/transformers.test.js +25 -25
  21. package/dist/{context-Csbv_Ssv.d.ts → context-BBD2ZH_P.d.ts} +95 -95
  22. package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
  23. package/dist/{docloader-vzD7dFee.js → docloader-BCgyiRag.js} +34 -34
  24. package/dist/{docloader-BeCtcTOJ.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
  25. package/dist/{esm-CvgSbZB6.js → esm-BwBAFDMZ.js} +15 -15
  26. package/dist/federation/builder.test.js +16 -16
  27. package/dist/federation/collection.test.js +13 -13
  28. package/dist/federation/handler.test.js +31 -31
  29. package/dist/federation/inbox.test.js +8 -8
  30. package/dist/federation/keycache.test.js +9 -9
  31. package/dist/federation/kv.test.js +13 -13
  32. package/dist/federation/middleware.test.js +34 -34
  33. package/dist/federation/mod.d.ts +11 -11
  34. package/dist/federation/mod.js +12 -12
  35. package/dist/federation/mq.test.js +15 -15
  36. package/dist/federation/retry.test.js +7 -7
  37. package/dist/federation/router.test.js +12 -12
  38. package/dist/federation/send.test.js +19 -19
  39. package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
  40. package/dist/{http-CJ_WXWxy.js → http-B1ff1viM.js} +4 -4
  41. package/dist/{http-sujZOSn0.js → http-BUhvpgNR.js} +3 -3
  42. package/dist/{http-BL6S1G0j.d.ts → http-l4uEvaAw.d.ts} +5 -5
  43. package/dist/{inbox-ziHZFl9m.js → inbox-CJoj4ew9.js} +2 -2
  44. package/dist/{key-CqPfdz_a.js → key-B9HDRSYF.js} +4 -4
  45. package/dist/{key-C8O0PF-4.js → key-Bycq40gh.js} +4 -4
  46. package/dist/{key-B8eVu_yr.js → key-D-lyguVw.js} +3 -3
  47. package/dist/{key-CSJmowMR.js → key-Dytvox0s.js} +4 -4
  48. package/dist/{keycache-8pBZ0_On.js → keycache-DRL-euZL.js} +2 -2
  49. package/dist/{keys-BNpjYTyO.js → keys-3qmW6xNM.js} +2 -2
  50. package/dist/{kv-DDdb1hMa.d.ts → kv-C7sopW2E.d.ts} +2 -2
  51. package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
  52. package/dist/{ld-BL1xjQSp.js → ld-DCy3fb6F.js} +3 -3
  53. package/dist/{lookup-COgtfqH1.js → lookup-B0kqr1YK.js} +4 -4
  54. package/dist/{lookup-J_m4YZg0.d.ts → lookup-BJelGpWr.d.ts} +3 -3
  55. package/dist/{lookup-DofYsQEG.js → lookup-gra7DAIV.js} +2 -2
  56. package/dist/middleware-B8IJYZA9.js +17 -0
  57. package/dist/{middleware-CKluVPhT.js → middleware-CAzmuaK9.js} +53 -53
  58. package/dist/{middleware-DLufxElo.js → middleware-CWKaURv5.js} +51 -51
  59. package/dist/middleware-D8Av026r.js +26 -0
  60. package/dist/{mod-BFwgZ7_K.d.ts → mod-D79SaXL-.d.ts} +6 -6
  61. package/dist/{mod-Dc_fDCtK.d.ts → mod-DDwnlIlm.d.ts} +6 -6
  62. package/dist/{mod-D8-liXFY.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
  63. package/dist/{mod-j0OCtlRW.d.ts → mod-DwquBB1g.d.ts} +6 -6
  64. package/dist/mod.d.ts +14 -14
  65. package/dist/mod.js +12 -12
  66. package/dist/{mq-DYKDDJmp.d.ts → mq-CRGm1e_F.d.ts} +1 -1
  67. package/dist/nodeinfo/client.test.js +15 -15
  68. package/dist/nodeinfo/handler.test.js +30 -30
  69. package/dist/nodeinfo/mod.d.ts +3 -3
  70. package/dist/nodeinfo/mod.js +2 -2
  71. package/dist/nodeinfo/semver.test.js +13 -13
  72. package/dist/nodeinfo/types.test.js +14 -14
  73. package/dist/{owner-X6sRUlBy.js → owner-DExszVkD.js} +3 -3
  74. package/dist/{owner-CEv_PfyK.d.ts → owner-fFqUg4lq.d.ts} +4 -4
  75. package/dist/{proof-DeKaTDaf.js → proof-Cnxcwp1a.js} +4 -4
  76. package/dist/{proof-5_7xBmeg.js → proof-DY_ZcCZq.js} +7 -7
  77. package/dist/{retry-BnpVRGFC.js → retry-D4GJ670a.js} +1 -1
  78. package/dist/runtime/authdocloader.test.js +18 -18
  79. package/dist/runtime/docloader.test.js +14 -14
  80. package/dist/runtime/key.test.js +14 -14
  81. package/dist/runtime/langstr.test.js +12 -12
  82. package/dist/runtime/mod.d.ts +5 -5
  83. package/dist/runtime/mod.js +6 -6
  84. package/dist/runtime/multibase/multibase.test.js +12 -12
  85. package/dist/runtime/url.test.js +8 -8
  86. package/dist/{semver-DCqorrj5.js → semver-dArNLkR9.js} +1 -1
  87. package/dist/{send-CgfThRII.js → send-ovNk9TQg.js} +3 -3
  88. package/dist/sig/http.test.js +17 -17
  89. package/dist/sig/key.test.js +15 -15
  90. package/dist/sig/ld.test.js +13 -13
  91. package/dist/sig/mod.d.ts +7 -7
  92. package/dist/sig/mod.js +6 -6
  93. package/dist/sig/owner.test.js +16 -16
  94. package/dist/sig/proof.test.js +16 -16
  95. package/dist/{std__assert-BQdmxyzF.js → std__assert-X-_kMxKM.js} +6 -6
  96. package/dist/testing/docloader.test.js +12 -12
  97. package/dist/testing/mod.d.ts +90 -90
  98. package/dist/testing/mod.js +3 -3
  99. package/dist/{testing-BoRC_4LY.js → testing-Ddk8H2Ez.js} +5 -5
  100. package/dist/{transformers-ghwJuzGY.js → transformers-Dna8Fg7k.js} +4 -4
  101. package/dist/{type-ezvzDgRG.js → type-C4M92j6x.js} +221 -221
  102. package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
  103. package/dist/{types-CyMsyyYb.js → types-C0RmUAha.js} +4 -4
  104. package/dist/vocab/actor.test.js +143 -143
  105. package/dist/vocab/lookup.test.js +13 -13
  106. package/dist/vocab/mod.d.ts +5 -5
  107. package/dist/vocab/mod.js +4 -4
  108. package/dist/vocab/type.test.js +5 -5
  109. package/dist/vocab/vocab.test.js +54 -54
  110. package/dist/{vocab-By6mpzr-.d.ts → vocab-CA7YwVEz.d.ts} +3 -3
  111. package/dist/{vocab-DSvb-EJO.js → vocab-DyLqaidG.js} +6 -6
  112. package/dist/webfinger/handler.test.js +30 -30
  113. package/dist/webfinger/lookup.test.js +13 -13
  114. package/dist/webfinger/mod.d.ts +3 -3
  115. package/dist/webfinger/mod.js +2 -2
  116. package/dist/x/cfworkers.d.ts +3 -3
  117. package/dist/x/cfworkers.js +1 -1
  118. package/dist/x/cfworkers.test.js +13 -13
  119. package/dist/x/hono.d.ts +16 -16
  120. package/dist/x/hono.js +3 -3
  121. package/dist/x/sveltekit.d.ts +13 -13
  122. package/dist/x/sveltekit.js +2 -2
  123. package/package.json +3 -3
  124. package/dist/middleware-BJaUQkU6.js +0 -26
  125. package/dist/middleware-DsFygqcs.js +0 -17
  126. /package/dist/{vocab → src/vocab}/accept.yaml +0 -0
  127. /package/dist/{vocab → src/vocab}/activity.yaml +0 -0
  128. /package/dist/{vocab → src/vocab}/add.yaml +0 -0
  129. /package/dist/{vocab → src/vocab}/announce.yaml +0 -0
  130. /package/dist/{vocab → src/vocab}/application.yaml +0 -0
  131. /package/dist/{vocab → src/vocab}/arrive.yaml +0 -0
  132. /package/dist/{vocab → src/vocab}/article.yaml +0 -0
  133. /package/dist/{vocab → src/vocab}/audio.yaml +0 -0
  134. /package/dist/{vocab → src/vocab}/block.yaml +0 -0
  135. /package/dist/{vocab → src/vocab}/chatmessage.yaml +0 -0
  136. /package/dist/{vocab → src/vocab}/collection.yaml +0 -0
  137. /package/dist/{vocab → src/vocab}/collectionpage.yaml +0 -0
  138. /package/dist/{vocab → src/vocab}/create.yaml +0 -0
  139. /package/dist/{vocab → src/vocab}/dataintegrityproof.yaml +0 -0
  140. /package/dist/{vocab → src/vocab}/delete.yaml +0 -0
  141. /package/dist/{vocab → src/vocab}/didservice.yaml +0 -0
  142. /package/dist/{vocab → src/vocab}/dislike.yaml +0 -0
  143. /package/dist/{vocab → src/vocab}/document.yaml +0 -0
  144. /package/dist/{vocab → src/vocab}/emoji.yaml +0 -0
  145. /package/dist/{vocab → src/vocab}/emojireact.yaml +0 -0
  146. /package/dist/{vocab → src/vocab}/endpoints.yaml +0 -0
  147. /package/dist/{vocab → src/vocab}/event.yaml +0 -0
  148. /package/dist/{vocab → src/vocab}/export.yaml +0 -0
  149. /package/dist/{vocab → src/vocab}/flag.yaml +0 -0
  150. /package/dist/{vocab → src/vocab}/follow.yaml +0 -0
  151. /package/dist/{vocab → src/vocab}/group.yaml +0 -0
  152. /package/dist/{vocab → src/vocab}/hashtag.yaml +0 -0
  153. /package/dist/{vocab → src/vocab}/ignore.yaml +0 -0
  154. /package/dist/{vocab → src/vocab}/image.yaml +0 -0
  155. /package/dist/{vocab → src/vocab}/intransitiveactivity.yaml +0 -0
  156. /package/dist/{vocab → src/vocab}/invite.yaml +0 -0
  157. /package/dist/{vocab → src/vocab}/join.yaml +0 -0
  158. /package/dist/{vocab → src/vocab}/key.yaml +0 -0
  159. /package/dist/{vocab → src/vocab}/leave.yaml +0 -0
  160. /package/dist/{vocab → src/vocab}/like.yaml +0 -0
  161. /package/dist/{vocab → src/vocab}/link.yaml +0 -0
  162. /package/dist/{vocab → src/vocab}/listen.yaml +0 -0
  163. /package/dist/{vocab → src/vocab}/mention.yaml +0 -0
  164. /package/dist/{vocab → src/vocab}/move.yaml +0 -0
  165. /package/dist/{vocab → src/vocab}/multikey.yaml +0 -0
  166. /package/dist/{vocab → src/vocab}/note.yaml +0 -0
  167. /package/dist/{vocab → src/vocab}/object.yaml +0 -0
  168. /package/dist/{vocab → src/vocab}/offer.yaml +0 -0
  169. /package/dist/{vocab → src/vocab}/orderedcollection.yaml +0 -0
  170. /package/dist/{vocab → src/vocab}/orderedcollectionpage.yaml +0 -0
  171. /package/dist/{vocab → src/vocab}/organization.yaml +0 -0
  172. /package/dist/{vocab → src/vocab}/page.yaml +0 -0
  173. /package/dist/{vocab → src/vocab}/person.yaml +0 -0
  174. /package/dist/{vocab → src/vocab}/place.yaml +0 -0
  175. /package/dist/{vocab → src/vocab}/profile.yaml +0 -0
  176. /package/dist/{vocab → src/vocab}/propertyvalue.yaml +0 -0
  177. /package/dist/{vocab → src/vocab}/question.yaml +0 -0
  178. /package/dist/{vocab → src/vocab}/read.yaml +0 -0
  179. /package/dist/{vocab → src/vocab}/reject.yaml +0 -0
  180. /package/dist/{vocab → src/vocab}/relationship.yaml +0 -0
  181. /package/dist/{vocab → src/vocab}/remove.yaml +0 -0
  182. /package/dist/{vocab → src/vocab}/service.yaml +0 -0
  183. /package/dist/{vocab → src/vocab}/source.yaml +0 -0
  184. /package/dist/{vocab → src/vocab}/tentativeaccept.yaml +0 -0
  185. /package/dist/{vocab → src/vocab}/tentativereject.yaml +0 -0
  186. /package/dist/{vocab → src/vocab}/tombstone.yaml +0 -0
  187. /package/dist/{vocab → src/vocab}/travel.yaml +0 -0
  188. /package/dist/{vocab → src/vocab}/undo.yaml +0 -0
  189. /package/dist/{vocab → src/vocab}/update.yaml +0 -0
  190. /package/dist/{vocab → src/vocab}/video.yaml +0 -0
  191. /package/dist/{vocab → src/vocab}/view.yaml +0 -0
@@ -3,28 +3,28 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-ezvzDgRG.js";
7
- import { getNodeInfo } from "./client-DWpUfRbw.js";
8
- import { RouterError, lookupObject, traverseCollection } from "./lookup-COgtfqH1.js";
9
- import { nodeInfoToJson } from "./types-n7HI7VFr.js";
10
- import { exportJwk, importJwk, validateCryptoKey } from "./key-CSJmowMR.js";
11
- import { verifyRequest } from "./http-sujZOSn0.js";
12
- import { getAuthenticatedDocumentLoader } from "./authdocloader-C-AUsWQ2.js";
13
- import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BL1xjQSp.js";
14
- import { doesActorOwnKey, getKeyOwner } from "./owner-X6sRUlBy.js";
15
- import { signObject, verifyObject } from "./proof-DeKaTDaf.js";
16
- import { routeActivity } from "./inbox-ziHZFl9m.js";
17
- import { FederationBuilderImpl } from "./builder-C9T8U_Uf.js";
18
- import { buildCollectionSynchronizationHeader } from "./collection-D5V3UzU3.js";
19
- import { KvKeyCache } from "./keycache-8pBZ0_On.js";
20
- import { createExponentialBackoffPolicy } from "./retry-BnpVRGFC.js";
21
- import { extractInboxes, sendActivity } from "./send-CgfThRII.js";
6
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-C4M92j6x.js";
7
+ import { getNodeInfo } from "./client-DfttEsJO.js";
8
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-B0kqr1YK.js";
9
+ import { nodeInfoToJson } from "./types-BIgY6c-l.js";
10
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-Dytvox0s.js";
11
+ import { verifyRequest } from "./http-BUhvpgNR.js";
12
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-CfZzF6aW.js";
13
+ import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-DCy3fb6F.js";
14
+ import { doesActorOwnKey, getKeyOwner } from "./owner-DExszVkD.js";
15
+ import { signObject, verifyObject } from "./proof-Cnxcwp1a.js";
16
+ import { routeActivity } from "./inbox-CJoj4ew9.js";
17
+ import { FederationBuilderImpl } from "./builder-KOoy-ITr.js";
18
+ import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
19
+ import { KvKeyCache } from "./keycache-DRL-euZL.js";
20
+ import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
21
+ import { extractInboxes, sendActivity } from "./send-ovNk9TQg.js";
22
22
  import { getLogger, withContext } from "@logtape/logtape";
23
23
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
24
24
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
25
25
  import { domainToASCII } from "node:url";
26
26
 
27
- //#region compat/transformers.ts
27
+ //#region src/compat/transformers.ts
28
28
  const logger$1 = getLogger([
29
29
  "fedify",
30
30
  "compat",
@@ -42,7 +42,7 @@ const logger$1 = getLogger([
42
42
  * https://example.com/#Follow/12345678-1234-5678-1234-567812345678
43
43
  * ```
44
44
  *
45
- * @typeParam TContextData The type of the context data.
45
+ * @template TContextData The type of the context data.
46
46
  * @param activity The activity to assign an ID to.
47
47
  * @param context The context of the activity.
48
48
  * @return The activity with an ID assigned.
@@ -93,7 +93,7 @@ function autoIdAssigner(activity, context$1) {
93
93
  *
94
94
  * As some ActivityPub implementations like Threads fail to deal with inlined
95
95
  * actor objects, this transformer can be used to work around this issue.
96
- * @typeParam TContextData The type of the context data.
96
+ * @template TContextData The type of the context data.
97
97
  * @param activity The activity to dehydrate the actor property of.
98
98
  * @param context The context of the activity.
99
99
  * @returns The dehydrated activity.
@@ -106,7 +106,7 @@ function actorDehydrator(activity, _context) {
106
106
  /**
107
107
  * Gets the default activity transformers that are applied to all outgoing
108
108
  * activities.
109
- * @typeParam TContextData The type of the context data.
109
+ * @template TContextData The type of the context data.
110
110
  * @returns The default activity transformers.
111
111
  * @since 1.4.0
112
112
  */
@@ -115,7 +115,7 @@ function getDefaultActivityTransformers() {
115
115
  }
116
116
 
117
117
  //#endregion
118
- //#region nodeinfo/handler.ts
118
+ //#region src/nodeinfo/handler.ts
119
119
  /**
120
120
  * Handles a NodeInfo request. You would not typically call this function
121
121
  * directly, but instead use {@link Federation.handle} method.
@@ -153,7 +153,7 @@ function handleNodeInfoJrd(_request, context$1) {
153
153
  }
154
154
 
155
155
  //#endregion
156
- //#region vocab/constants.ts
156
+ //#region src/vocab/constants.ts
157
157
  /**
158
158
  * The special public collection for [public addressing]. *Do not mutate this
159
159
  * object.*
@@ -165,7 +165,7 @@ function handleNodeInfoJrd(_request, context$1) {
165
165
  const PUBLIC_COLLECTION = new URL("https://www.w3.org/ns/activitystreams#Public");
166
166
 
167
167
  //#endregion
168
- //#region webfinger/handler.ts
168
+ //#region src/webfinger/handler.ts
169
169
  const logger = getLogger([
170
170
  "fedify",
171
171
  "webfinger",
@@ -295,7 +295,7 @@ async function handleWebFingerInternal(request, { context: context$1, host, acto
295
295
  }
296
296
 
297
297
  //#endregion
298
- //#region federation/negotiation.ts
298
+ //#region src/federation/negotiation.ts
299
299
  function compareSpecs(a, b) {
300
300
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
301
301
  }
@@ -353,7 +353,7 @@ function preferredMediaTypes(accept) {
353
353
  }
354
354
 
355
355
  //#endregion
356
- //#region federation/handler.ts
356
+ //#region src/federation/handler.ts
357
357
  function acceptsJsonLd(request) {
358
358
  const accept = request.headers.get("Accept");
359
359
  const types = accept ? preferredMediaTypes(accept) : ["*/*"];
@@ -363,7 +363,7 @@ function acceptsJsonLd(request) {
363
363
  }
364
364
  /**
365
365
  * Handles an actor request.
366
- * @typeParam TContextData The context data to pass to the context.
366
+ * @template TContextData The context data to pass to the context.
367
367
  * @param request The HTTP request.
368
368
  * @param parameters The parameters for handling the actor.
369
369
  * @returns A promise that resolves to an HTTP response.
@@ -413,7 +413,7 @@ async function handleActor(request, { identifier, context: context$1, actorDispa
413
413
  }
414
414
  /**
415
415
  * Handles an object request.
416
- * @typeParam TContextData The context data to pass to the context.
416
+ * @template TContextData The context data to pass to the context.
417
417
  * @param request The HTTP request.
418
418
  * @param parameters The parameters for handling the object.
419
419
  * @returns A promise that resolves to an HTTP response.
@@ -452,10 +452,10 @@ async function handleObject(request, { values, context: context$1, objectDispatc
452
452
  }
453
453
  /**
454
454
  * Handles a collection request.
455
- * @typeParam TItem The type of items in the collection.
456
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
457
- * @typeParam TContextData The context data to pass to the `TContext`.
458
- * @typeParam TFilter The type of the filter.
455
+ * @template TItem The type of items in the collection.
456
+ * @template TContext The type of the context, extending {@link RequestContext}.
457
+ * @template TContextData The context data to pass to the `TContext`.
458
+ * @template TFilter The type of the filter.
459
459
  * @param request The HTTP request.
460
460
  * @param parameters The parameters for handling the collection.
461
461
  * @returns A promise that resolves to an HTTP response.
@@ -603,7 +603,7 @@ async function handleCollection(request, { name, identifier, uriGetter, filter,
603
603
  }
604
604
  /**
605
605
  * Filters collection items based on the provided predicate.
606
- * @typeParam TItem The type of items to filter.
606
+ * @template TItem The type of items to filter.
607
607
  * @param items The items to filter.
608
608
  * @param collectionName The name of the collection for logging purposes.
609
609
  * @param filterPredicate Optional predicate function to filter items.
@@ -634,7 +634,7 @@ function filterCollectionItems(items, collectionName, filterPredicate) {
634
634
  }
635
635
  /**
636
636
  * Handles an inbox request for ActivityPub activities.
637
- * @typeParam TContextData The context data to pass to the context.
637
+ * @template TContextData The context data to pass to the context.
638
638
  * @param request The HTTP request.
639
639
  * @param options The parameters for handling the inbox.
640
640
  * @returns A promise that resolves to an HTTP response.
@@ -662,7 +662,7 @@ async function handleInbox(request, options) {
662
662
  }
663
663
  /**
664
664
  * Internal function for handling inbox requests with detailed processing.
665
- * @typeParam TContextData The context data to pass to the context.
665
+ * @template TContextData The context data to pass to the context.
666
666
  * @param request The HTTP request.
667
667
  * @param options The parameters for handling the inbox.
668
668
  * @param span The OpenTelemetry span for tracing.
@@ -899,10 +899,10 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
899
899
  }
900
900
  /**
901
901
  * Handles a custom collection request.
902
- * @typeParam TItem The type of items in the collection.
903
- * @typeParam TParams The parameter names of the requested URL.
904
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
905
- * @typeParam TContextData The context data to pass to the `TContext`.
902
+ * @template TItem The type of items in the collection.
903
+ * @template TParams The parameter names of the requested URL.
904
+ * @template TContext The type of the context, extending {@link RequestContext}.
905
+ * @template TContextData The context data to pass to the `TContext`.
906
906
  * @param request The HTTP request.
907
907
  * @param handleParams Parameters for handling the collection.
908
908
  * @returns A promise that resolves to an HTTP response.
@@ -918,10 +918,10 @@ async function _handleCustomCollection(request, { name, values, context: context
918
918
  }
919
919
  /**
920
920
  * Handles an ordered collection request.
921
- * @typeParam TItem The type of items in the collection.
922
- * @typeParam TParams The parameter names of the requested URL.
923
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
924
- * @typeParam TContextData The context data to pass to the `TContext`.
921
+ * @template TItem The type of items in the collection.
922
+ * @template TParams The parameter names of the requested URL.
923
+ * @template TContext The type of the context, extending {@link RequestContext}.
924
+ * @template TContextData The context data to pass to the `TContext`.
925
925
  * @param request The HTTP request.
926
926
  * @param handleParams Parameters for handling the collection.
927
927
  * @returns A promise that resolves to an HTTP response.
@@ -939,12 +939,12 @@ async function _handleOrderedCollection(request, { name, values, context: contex
939
939
  * Handling custom collections with support for pagination and filtering.
940
940
  * The main flow is on `getCollection`, `dispatch`.
941
941
  *
942
- * @typeParam TItem The type of items in the collection.
943
- * @typeParam TParams The parameter names of the requested URL.
944
- * @typeParam TContext The type of the context. {@link Context} or {@link RequestContext}.
945
- * @typeParam TContextData The context data to pass to the `TContext`.
946
- * @typeParam TCollection The type of the collection, extending {@link Collection}.
947
- * @typeParam TCollectionPage The type of the collection page, extending {@link CollectionPage}.
942
+ * @template TItem The type of items in the collection.
943
+ * @template TParams The parameter names of the requested URL.
944
+ * @template TContext The type of the context. {@link Context} or {@link RequestContext}.
945
+ * @template TContextData The context data to pass to the `TContext`.
946
+ * @template TCollection The type of the collection, extending {@link Collection}.
947
+ * @template TCollectionPage The type of the collection page, extending {@link CollectionPage}.
948
948
  * @since 1.8.0
949
949
  */
950
950
  var CustomCollectionHandler = class {
@@ -1198,7 +1198,7 @@ var CustomCollectionHandler = class {
1198
1198
  };
1199
1199
  /**
1200
1200
  * A wrapper function that catches specific errors and handles them appropriately.
1201
- * @typeParam TParams The type of parameters that extend ErrorHandlers.
1201
+ * @template TParams The type of parameters that extend ErrorHandlers.
1202
1202
  * @param handler The handler function to wrap.
1203
1203
  * @returns A wrapped handler function that catches and handles specific errors.
1204
1204
  * @since 1.8.0
@@ -1220,7 +1220,7 @@ function exceptWrapper(handler) {
1220
1220
  }
1221
1221
  /**
1222
1222
  * Verifies that a value is defined (not undefined).
1223
- * @typeParam T The type of the value, excluding undefined.
1223
+ * @template T The type of the value, excluding undefined.
1224
1224
  * @param callbacks The value to verify.
1225
1225
  * @throws {ItemsNotFoundError} If the value is undefined.
1226
1226
  * @since 1.8.0
@@ -1239,7 +1239,7 @@ const verifyJsonLdRequest = (request) => {
1239
1239
  };
1240
1240
  /**
1241
1241
  * Performs authorization if needed based on the authorization predicate.
1242
- * @typeParam TContextData The context data type.
1242
+ * @template TContextData The context data type.
1243
1243
  * @param {RequestContext<TContextData>} context The request context.
1244
1244
  * @param {Record<string, string>} values The parameter values.
1245
1245
  * @param options Options containing the authorization predicate.
@@ -1273,7 +1273,7 @@ const warning = {
1273
1273
  };
1274
1274
  /**
1275
1275
  * Appends a cursor parameter to a URL if the cursor exists.
1276
- * @typeParam Cursor The type of the cursor (string, null, or undefined).
1276
+ * @template Cursor The type of the cursor (string, null, or undefined).
1277
1277
  * @param {URL} url The base URL to append the cursor to.
1278
1278
  * @param {string | null | undefined} cursor The cursor value to append.
1279
1279
  * @returns The URL with cursor appended if cursor is a string, null otherwise.
@@ -1366,7 +1366,7 @@ async function respondWithObjectIfAcceptable(object, request, options) {
1366
1366
  }
1367
1367
 
1368
1368
  //#endregion
1369
- //#region federation/middleware.ts
1369
+ //#region src/federation/middleware.ts
1370
1370
  /**
1371
1371
  * Create a new {@link Federation} instance.
1372
1372
  * @param parameters Parameters for initializing the instance.
@@ -2,16 +2,16 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-vzD7dFee.js";
7
- import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-DVPWhxHG.js";
8
- import { lookupWebFinger } from "./lookup-DofYsQEG.js";
9
- import { exportJwk, importJwk, validateCryptoKey } from "./key-CqPfdz_a.js";
10
- import { doubleKnock, verifyRequest } from "./http-CJ_WXWxy.js";
11
- import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-5_7xBmeg.js";
12
- import { getNodeInfo, nodeInfoToJson } from "./types-CyMsyyYb.js";
13
- import { getAuthenticatedDocumentLoader } from "./authdocloader-DgY04ZH-.js";
14
- import { lookupObject, traverseCollection } from "./vocab-DSvb-EJO.js";
5
+ import { getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-BCgyiRag.js";
7
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-aW87k6YP.js";
8
+ import { lookupWebFinger } from "./lookup-gra7DAIV.js";
9
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-B9HDRSYF.js";
10
+ import { doubleKnock, verifyRequest } from "./http-B1ff1viM.js";
11
+ import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DY_ZcCZq.js";
12
+ import { getNodeInfo, nodeInfoToJson } from "./types-C0RmUAha.js";
13
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-CSdMJ3OD.js";
14
+ import { lookupObject, traverseCollection } from "./vocab-DyLqaidG.js";
15
15
  import { getLogger, withContext } from "@logtape/logtape";
16
16
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
17
17
  import { encodeHex } from "byte-encodings/hex";
@@ -21,7 +21,7 @@ import { parseTemplate } from "url-template";
21
21
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
22
22
  import { domainToASCII } from "node:url";
23
23
 
24
- //#region federation/inbox.ts
24
+ //#region src/federation/inbox.ts
25
25
  var InboxListenerSet = class InboxListenerSet {
26
26
  #listeners;
27
27
  constructor() {
@@ -180,7 +180,7 @@ async function routeActivity({ context: ctx, json, activity, recipient, inboxLis
180
180
  }
181
181
 
182
182
  //#endregion
183
- //#region federation/router.ts
183
+ //#region src/federation/router.ts
184
184
  function cloneInnerRouter(router) {
185
185
  const clone = new Router();
186
186
  clone.nid = router.nid;
@@ -288,7 +288,7 @@ var RouterError = class extends Error {
288
288
  };
289
289
 
290
290
  //#endregion
291
- //#region federation/builder.ts
291
+ //#region src/federation/builder.ts
292
292
  var FederationBuilderImpl = class {
293
293
  router;
294
294
  actorCallbacks;
@@ -320,7 +320,7 @@ var FederationBuilderImpl = class {
320
320
  this.collectionTypeIds = {};
321
321
  }
322
322
  async build(options) {
323
- const { FederationImpl: FederationImpl$1 } = await import("./middleware-DsFygqcs.js");
323
+ const { FederationImpl: FederationImpl$1 } = await import("./middleware-B8IJYZA9.js");
324
324
  const f = new FederationImpl$1(options);
325
325
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
326
326
  f.router = this.router.clone();
@@ -803,7 +803,7 @@ var FederationBuilderImpl = class {
803
803
  /**
804
804
  * Get the URL path for a custom collection.
805
805
  * If the collection is not registered, returns null.
806
- * @typeParam TParam The parameter names of the requested URL.
806
+ * @template TParam The parameter names of the requested URL.
807
807
  * @param {string | symbol} name The name of the custom collection.
808
808
  * @param {TParam} values The values to fill in the URL parameters.
809
809
  * @returns {string | null} The URL path for the custom collection, or null if not registered.
@@ -837,7 +837,7 @@ function createFederationBuilder() {
837
837
  }
838
838
 
839
839
  //#endregion
840
- //#region federation/collection.ts
840
+ //#region src/federation/collection.ts
841
841
  /**
842
842
  * Calculates the [partial follower collection digest][1].
843
843
  *
@@ -878,7 +878,7 @@ async function buildCollectionSynchronizationHeader(collectionId, actorIds) {
878
878
  }
879
879
 
880
880
  //#endregion
881
- //#region federation/keycache.ts
881
+ //#region src/federation/keycache.ts
882
882
  var KvKeyCache = class {
883
883
  kv;
884
884
  prefix;
@@ -918,7 +918,7 @@ var KvKeyCache = class {
918
918
  };
919
919
 
920
920
  //#endregion
921
- //#region federation/negotiation.ts
921
+ //#region src/federation/negotiation.ts
922
922
  function compareSpecs(a, b) {
923
923
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
924
924
  }
@@ -976,7 +976,7 @@ function preferredMediaTypes(accept) {
976
976
  }
977
977
 
978
978
  //#endregion
979
- //#region federation/handler.ts
979
+ //#region src/federation/handler.ts
980
980
  function acceptsJsonLd(request) {
981
981
  const accept = request.headers.get("Accept");
982
982
  const types = accept ? preferredMediaTypes(accept) : ["*/*"];
@@ -986,7 +986,7 @@ function acceptsJsonLd(request) {
986
986
  }
987
987
  /**
988
988
  * Handles an actor request.
989
- * @typeParam TContextData The context data to pass to the context.
989
+ * @template TContextData The context data to pass to the context.
990
990
  * @param request The HTTP request.
991
991
  * @param parameters The parameters for handling the actor.
992
992
  * @returns A promise that resolves to an HTTP response.
@@ -1036,7 +1036,7 @@ async function handleActor(request, { identifier, context: context$1, actorDispa
1036
1036
  }
1037
1037
  /**
1038
1038
  * Handles an object request.
1039
- * @typeParam TContextData The context data to pass to the context.
1039
+ * @template TContextData The context data to pass to the context.
1040
1040
  * @param request The HTTP request.
1041
1041
  * @param parameters The parameters for handling the object.
1042
1042
  * @returns A promise that resolves to an HTTP response.
@@ -1075,10 +1075,10 @@ async function handleObject(request, { values, context: context$1, objectDispatc
1075
1075
  }
1076
1076
  /**
1077
1077
  * Handles a collection request.
1078
- * @typeParam TItem The type of items in the collection.
1079
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
1080
- * @typeParam TContextData The context data to pass to the `TContext`.
1081
- * @typeParam TFilter The type of the filter.
1078
+ * @template TItem The type of items in the collection.
1079
+ * @template TContext The type of the context, extending {@link RequestContext}.
1080
+ * @template TContextData The context data to pass to the `TContext`.
1081
+ * @template TFilter The type of the filter.
1082
1082
  * @param request The HTTP request.
1083
1083
  * @param parameters The parameters for handling the collection.
1084
1084
  * @returns A promise that resolves to an HTTP response.
@@ -1226,7 +1226,7 @@ async function handleCollection(request, { name, identifier, uriGetter, filter,
1226
1226
  }
1227
1227
  /**
1228
1228
  * Filters collection items based on the provided predicate.
1229
- * @typeParam TItem The type of items to filter.
1229
+ * @template TItem The type of items to filter.
1230
1230
  * @param items The items to filter.
1231
1231
  * @param collectionName The name of the collection for logging purposes.
1232
1232
  * @param filterPredicate Optional predicate function to filter items.
@@ -1257,7 +1257,7 @@ function filterCollectionItems(items, collectionName, filterPredicate) {
1257
1257
  }
1258
1258
  /**
1259
1259
  * Handles an inbox request for ActivityPub activities.
1260
- * @typeParam TContextData The context data to pass to the context.
1260
+ * @template TContextData The context data to pass to the context.
1261
1261
  * @param request The HTTP request.
1262
1262
  * @param options The parameters for handling the inbox.
1263
1263
  * @returns A promise that resolves to an HTTP response.
@@ -1285,7 +1285,7 @@ async function handleInbox(request, options) {
1285
1285
  }
1286
1286
  /**
1287
1287
  * Internal function for handling inbox requests with detailed processing.
1288
- * @typeParam TContextData The context data to pass to the context.
1288
+ * @template TContextData The context data to pass to the context.
1289
1289
  * @param request The HTTP request.
1290
1290
  * @param options The parameters for handling the inbox.
1291
1291
  * @param span The OpenTelemetry span for tracing.
@@ -1522,10 +1522,10 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
1522
1522
  }
1523
1523
  /**
1524
1524
  * Handles a custom collection request.
1525
- * @typeParam TItem The type of items in the collection.
1526
- * @typeParam TParams The parameter names of the requested URL.
1527
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
1528
- * @typeParam TContextData The context data to pass to the `TContext`.
1525
+ * @template TItem The type of items in the collection.
1526
+ * @template TParams The parameter names of the requested URL.
1527
+ * @template TContext The type of the context, extending {@link RequestContext}.
1528
+ * @template TContextData The context data to pass to the `TContext`.
1529
1529
  * @param request The HTTP request.
1530
1530
  * @param handleParams Parameters for handling the collection.
1531
1531
  * @returns A promise that resolves to an HTTP response.
@@ -1541,10 +1541,10 @@ async function _handleCustomCollection(request, { name, values, context: context
1541
1541
  }
1542
1542
  /**
1543
1543
  * Handles an ordered collection request.
1544
- * @typeParam TItem The type of items in the collection.
1545
- * @typeParam TParams The parameter names of the requested URL.
1546
- * @typeParam TContext The type of the context, extending {@link RequestContext}.
1547
- * @typeParam TContextData The context data to pass to the `TContext`.
1544
+ * @template TItem The type of items in the collection.
1545
+ * @template TParams The parameter names of the requested URL.
1546
+ * @template TContext The type of the context, extending {@link RequestContext}.
1547
+ * @template TContextData The context data to pass to the `TContext`.
1548
1548
  * @param request The HTTP request.
1549
1549
  * @param handleParams Parameters for handling the collection.
1550
1550
  * @returns A promise that resolves to an HTTP response.
@@ -1562,12 +1562,12 @@ async function _handleOrderedCollection(request, { name, values, context: contex
1562
1562
  * Handling custom collections with support for pagination and filtering.
1563
1563
  * The main flow is on `getCollection`, `dispatch`.
1564
1564
  *
1565
- * @typeParam TItem The type of items in the collection.
1566
- * @typeParam TParams The parameter names of the requested URL.
1567
- * @typeParam TContext The type of the context. {@link Context} or {@link RequestContext}.
1568
- * @typeParam TContextData The context data to pass to the `TContext`.
1569
- * @typeParam TCollection The type of the collection, extending {@link Collection}.
1570
- * @typeParam TCollectionPage The type of the collection page, extending {@link CollectionPage}.
1565
+ * @template TItem The type of items in the collection.
1566
+ * @template TParams The parameter names of the requested URL.
1567
+ * @template TContext The type of the context. {@link Context} or {@link RequestContext}.
1568
+ * @template TContextData The context data to pass to the `TContext`.
1569
+ * @template TCollection The type of the collection, extending {@link Collection}.
1570
+ * @template TCollectionPage The type of the collection page, extending {@link CollectionPage}.
1571
1571
  * @since 1.8.0
1572
1572
  */
1573
1573
  var CustomCollectionHandler = class {
@@ -1821,7 +1821,7 @@ var CustomCollectionHandler = class {
1821
1821
  };
1822
1822
  /**
1823
1823
  * A wrapper function that catches specific errors and handles them appropriately.
1824
- * @typeParam TParams The type of parameters that extend ErrorHandlers.
1824
+ * @template TParams The type of parameters that extend ErrorHandlers.
1825
1825
  * @param handler The handler function to wrap.
1826
1826
  * @returns A wrapped handler function that catches and handles specific errors.
1827
1827
  * @since 1.8.0
@@ -1843,7 +1843,7 @@ function exceptWrapper(handler) {
1843
1843
  }
1844
1844
  /**
1845
1845
  * Verifies that a value is defined (not undefined).
1846
- * @typeParam T The type of the value, excluding undefined.
1846
+ * @template T The type of the value, excluding undefined.
1847
1847
  * @param callbacks The value to verify.
1848
1848
  * @throws {ItemsNotFoundError} If the value is undefined.
1849
1849
  * @since 1.8.0
@@ -1862,7 +1862,7 @@ const verifyJsonLdRequest = (request) => {
1862
1862
  };
1863
1863
  /**
1864
1864
  * Performs authorization if needed based on the authorization predicate.
1865
- * @typeParam TContextData The context data type.
1865
+ * @template TContextData The context data type.
1866
1866
  * @param {RequestContext<TContextData>} context The request context.
1867
1867
  * @param {Record<string, string>} values The parameter values.
1868
1868
  * @param options Options containing the authorization predicate.
@@ -1896,7 +1896,7 @@ const warning = {
1896
1896
  };
1897
1897
  /**
1898
1898
  * Appends a cursor parameter to a URL if the cursor exists.
1899
- * @typeParam Cursor The type of the cursor (string, null, or undefined).
1899
+ * @template Cursor The type of the cursor (string, null, or undefined).
1900
1900
  * @param {URL} url The base URL to append the cursor to.
1901
1901
  * @param {string | null | undefined} cursor The cursor value to append.
1902
1902
  * @returns The URL with cursor appended if cursor is a string, null otherwise.
@@ -1989,7 +1989,7 @@ async function respondWithObjectIfAcceptable(object, request, options) {
1989
1989
  }
1990
1990
 
1991
1991
  //#endregion
1992
- //#region nodeinfo/handler.ts
1992
+ //#region src/nodeinfo/handler.ts
1993
1993
  /**
1994
1994
  * Handles a NodeInfo request. You would not typically call this function
1995
1995
  * directly, but instead use {@link Federation.handle} method.
@@ -2027,7 +2027,7 @@ function handleNodeInfoJrd(_request, context$1) {
2027
2027
  }
2028
2028
 
2029
2029
  //#endregion
2030
- //#region webfinger/handler.ts
2030
+ //#region src/webfinger/handler.ts
2031
2031
  const logger = getLogger([
2032
2032
  "fedify",
2033
2033
  "webfinger",
@@ -2157,7 +2157,7 @@ async function handleWebFingerInternal(request, { context: context$1, host, acto
2157
2157
  }
2158
2158
 
2159
2159
  //#endregion
2160
- //#region federation/retry.ts
2160
+ //#region src/federation/retry.ts
2161
2161
  /**
2162
2162
  * Creates an exponential backoff retry policy. The delay between retries
2163
2163
  * starts at the `initialDelay` and is multiplied by the `factor` for each
@@ -2188,7 +2188,7 @@ function createExponentialBackoffPolicy(options = {}) {
2188
2188
  }
2189
2189
 
2190
2190
  //#endregion
2191
- //#region federation/send.ts
2191
+ //#region src/federation/send.ts
2192
2192
  /**
2193
2193
  * Extracts the inbox URLs from recipients.
2194
2194
  * @param parameters The parameters to extract the inboxes.
@@ -2305,7 +2305,7 @@ async function sendActivityInternal({ activity, activityId, keys, inbox, headers
2305
2305
  }
2306
2306
 
2307
2307
  //#endregion
2308
- //#region federation/middleware.ts
2308
+ //#region src/federation/middleware.ts
2309
2309
  /**
2310
2310
  * Create a new {@link Federation} instance.
2311
2311
  * @param parameters Parameters for initializing the instance.
@@ -0,0 +1,26 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import "./type-C4M92j6x.js";
7
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CAzmuaK9.js";
8
+ import "./semver-dArNLkR9.js";
9
+ import "./client-DfttEsJO.js";
10
+ import "./lookup-B0kqr1YK.js";
11
+ import "./types-BIgY6c-l.js";
12
+ import "./actor-CmkL94HP.js";
13
+ import "./key-Dytvox0s.js";
14
+ import "./http-BUhvpgNR.js";
15
+ import "./authdocloader-CfZzF6aW.js";
16
+ import "./ld-DCy3fb6F.js";
17
+ import "./owner-DExszVkD.js";
18
+ import "./proof-Cnxcwp1a.js";
19
+ import "./inbox-CJoj4ew9.js";
20
+ import "./builder-KOoy-ITr.js";
21
+ import "./collection-CSzG2j1P.js";
22
+ import "./keycache-DRL-euZL.js";
23
+ import "./retry-D4GJ670a.js";
24
+ import "./send-ovNk9TQg.js";
25
+
26
+ export { FederationImpl };
@@ -1,10 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-BeCtcTOJ.js";
4
- import { Collection, Link, Object as Object$1 } from "./vocab-By6mpzr-.js";
3
+ import { DocumentLoader, GetUserAgentOptions } from "./docloader-Bz56sKV5.js";
4
+ import { Collection, Link, Object as Object$1 } from "./vocab-CA7YwVEz.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
- //#region vocab/lookup.d.ts
7
+ //#region src/vocab/lookup.d.ts
8
8
  /**
9
9
  * Options for the {@link lookupObject} function.
10
10
  *
@@ -116,7 +116,7 @@ interface TraverseCollectionOptions {
116
116
  */
117
117
  declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
118
118
  //#endregion
119
- //#region vocab/constants.d.ts
119
+ //#region src/vocab/constants.d.ts
120
120
  /**
121
121
  * The special public collection for [public addressing]. *Do not mutate this
122
122
  * object.*
@@ -127,7 +127,7 @@ declare function traverseCollection(collection: Collection, options?: TraverseCo
127
127
  */
128
128
  declare const PUBLIC_COLLECTION: URL;
129
129
  //#endregion
130
- //#region vocab/handle.d.ts
130
+ //#region src/vocab/handle.d.ts
131
131
  /**
132
132
  * Represents a fediverse handle, which consists of a username and a host.
133
133
  * The username can be alphanumeric and may include special characters,
@@ -201,7 +201,7 @@ declare function isFediverseHandle(handle: string): handle is `${string}@${strin
201
201
  */
202
202
  declare function toAcctUrl(handle: string): URL | null;
203
203
  //#endregion
204
- //#region vocab/type.d.ts
204
+ //#region src/vocab/type.d.ts
205
205
  /**
206
206
  * Returns the type URI of the given object.
207
207
  *
@@ -1,9 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-By6mpzr-.js";
4
- import { ActivityTransformer, Context } from "./context-Csbv_Ssv.js";
3
+ import { Activity } from "./vocab-CA7YwVEz.js";
4
+ import { ActivityTransformer, Context } from "./context-BBD2ZH_P.js";
5
5
 
6
- //#region compat/transformers.d.ts
6
+ //#region src/compat/transformers.d.ts
7
7
 
8
8
  /**
9
9
  * An activity transformer that assigns a new random ID to an activity if it
@@ -17,7 +17,7 @@ import { ActivityTransformer, Context } from "./context-Csbv_Ssv.js";
17
17
  * https://example.com/#Follow/12345678-1234-5678-1234-567812345678
18
18
  * ```
19
19
  *
20
- * @typeParam TContextData The type of the context data.
20
+ * @template TContextData The type of the context data.
21
21
  * @param activity The activity to assign an ID to.
22
22
  * @param context The context of the activity.
23
23
  * @return The activity with an ID assigned.
@@ -63,7 +63,7 @@ declare function autoIdAssigner<TContextData>(activity: Activity, context: Conte
63
63
  *
64
64
  * As some ActivityPub implementations like Threads fail to deal with inlined
65
65
  * actor objects, this transformer can be used to work around this issue.
66
- * @typeParam TContextData The type of the context data.
66
+ * @template TContextData The type of the context data.
67
67
  * @param activity The activity to dehydrate the actor property of.
68
68
  * @param context The context of the activity.
69
69
  * @returns The dehydrated activity.
@@ -73,7 +73,7 @@ declare function actorDehydrator<TContextData>(activity: Activity, _context: Con
73
73
  /**
74
74
  * Gets the default activity transformers that are applied to all outgoing
75
75
  * activities.
76
- * @typeParam TContextData The type of the context data.
76
+ * @template TContextData The type of the context data.
77
77
  * @returns The default activity transformers.
78
78
  * @since 1.4.0
79
79
  */