@fedify/fedify 2.0.0-pr.412.1692 → 2.0.0-pr.412.1794

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 (193) hide show
  1. package/README.md +3 -0
  2. package/dist/{actor-D5S46edz.js → actor-BXHc5r-q.js} +1 -1
  3. package/dist/{actor-CrTGiTZd.cjs → actor-Ba9Z1eNJ.cjs} +921 -1451
  4. package/dist/{actor-T6RyhRgk.d.ts → actor-DqFajh9s.d.ts} +2 -2
  5. package/dist/{actor-G2S5sPEA.js → actor-DzhunPC_.js} +189 -677
  6. package/dist/{actor-D6K058Tb.d.cts → actor-f2NtjyCg.d.cts} +2 -2
  7. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-Ce45JcFg.js} +1 -1
  8. package/dist/{assert_is_error-BPGph1Jx.js → assert_throws-BNXdRGWP.js} +31 -1
  9. package/dist/{builder-OA47XRft.js → builder-u7usRsT3.js} +7 -8
  10. package/dist/{client-CegPX0Rn.d.cts → client-94iWEfQa.d.cts} +1 -1
  11. package/dist/{client-bgSdkFa2.d.ts → client-BsGzbnV-.d.ts} +1 -1
  12. package/dist/{client-Bmd-i8x8.js → client-pY7-3icS.js} +1 -1
  13. package/dist/compat/mod.d.cts +11 -12
  14. package/dist/compat/mod.d.ts +11 -12
  15. package/dist/compat/transformers.test.js +20 -20
  16. package/dist/{context-ByZprN0S.d.ts → context-DG0huGW-.d.ts} +124 -127
  17. package/dist/{context-C5BsZkDr.d.cts → context-DJ8aSy2Q.d.cts} +124 -127
  18. package/dist/{authdocloader-SjwloJUA.js → docloader-CrbAy9Oc.js} +17 -8
  19. package/dist/{esm-CwHz8Y8t.js → esm-C-Qa1zEM.js} +11 -11
  20. package/dist/federation/builder.test.js +8 -10
  21. package/dist/federation/collection.test.js +7 -9
  22. package/dist/federation/handler.test.js +25 -26
  23. package/dist/federation/idempotency.test.js +25 -26
  24. package/dist/federation/inbox.test.js +4 -6
  25. package/dist/federation/keycache.test.js +3 -4
  26. package/dist/federation/kv.test.js +6 -8
  27. package/dist/federation/middleware.test.js +32 -33
  28. package/dist/federation/mod.cjs +9 -11
  29. package/dist/federation/mod.d.cts +12 -13
  30. package/dist/federation/mod.d.ts +12 -13
  31. package/dist/federation/mod.js +9 -11
  32. package/dist/federation/mq.test.js +8 -10
  33. package/dist/federation/negotiation.test.js +7 -9
  34. package/dist/federation/retry.test.js +4 -5
  35. package/dist/federation/router.test.js +6 -8
  36. package/dist/federation/send.test.js +13 -15
  37. package/dist/{http-D6Uj2x2y.d.ts → http-BbO0ejuk.d.ts} +2 -2
  38. package/dist/{http-C5tC93Hn.js → http-CUVx-vzb.js} +256 -6
  39. package/dist/{http-DGjdMiLc.js → http-D2kIm9la.js} +2 -2
  40. package/dist/{http-BiBofurJ.cjs → http-Dofes42e.cjs} +289 -9
  41. package/dist/{http-D-e6AFwR.d.cts → http-M8k5mKc0.d.cts} +2 -2
  42. package/dist/{inbox-BoDY3z8G.js → inbox-HjG5peXY.js} +1 -1
  43. package/dist/{key-IxRhZpOF.js → key-CxdLUFS6.js} +3 -2
  44. package/dist/{keycache-TEniXNel.js → keycache-bU7COwsh.js} +1 -1
  45. package/dist/{keys-bZxcrZ9Z.js → keys-DMHs8XNn.js} +2 -1
  46. package/dist/kv-cache-CGXcDejL.js +122 -0
  47. package/dist/kv-cache-DN9pfMBe.js +94 -0
  48. package/dist/kv-cache-Dkvbn6rg.cjs +134 -0
  49. package/dist/{ld-DW7A0uIc.js → ld-CIhvSCCr.js} +3 -2
  50. package/dist/{lookup-cVRa2QM-.js → lookup-CHkCVZTU.js} +131 -2
  51. package/dist/lookup-CfFkONZD.cjs +272 -0
  52. package/dist/{type-NEA09tSC.js → lookup-DQRtjvb1.js} +503 -5328
  53. package/dist/middleware-Bot7EEwV.js +26 -0
  54. package/dist/middleware-CFJgmUMW.cjs +15 -0
  55. package/dist/{middleware-Cgr3PtaJ.js → middleware-CJlj5Olw.js} +44 -48
  56. package/dist/middleware-CjHl2NHA.js +15 -0
  57. package/dist/{middleware-TfuVoceY.cjs → middleware-D74TgW2E.cjs} +60 -66
  58. package/dist/{middleware-DvvYAIsd.js → middleware-DMk2Mdn9.js} +40 -46
  59. package/dist/mod-0noXw66R.d.cts +107 -0
  60. package/dist/{mod-BhUKmBJD.d.ts → mod-B2iOw50L.d.ts} +3 -3
  61. package/dist/mod-B9M-8jm2.d.ts +109 -0
  62. package/dist/{mod-DlU8ISoa.d.ts → mod-BlVovdcy.d.ts} +2 -2
  63. package/dist/{mod-D6hQoxC5.d.ts → mod-BoHnwOCs.d.ts} +2 -2
  64. package/dist/{mod-CxkWO3Mg.d.cts → mod-BxRCHTz-.d.cts} +2 -2
  65. package/dist/{mod-jQ4OODsl.d.cts → mod-C58MZ7Wx.d.cts} +1 -1
  66. package/dist/{mod-8DMWKtQE.d.cts → mod-DJcZDvjA.d.cts} +2 -2
  67. package/dist/{mod-Djzcw2ry.d.cts → mod-DgdBYYa0.d.cts} +3 -3
  68. package/dist/{mod-DBzN0aCM.d.ts → mod-Ds0mpFZU.d.ts} +1 -1
  69. package/dist/mod.cjs +19 -32
  70. package/dist/mod.d.cts +15 -16
  71. package/dist/mod.d.ts +16 -17
  72. package/dist/mod.js +14 -16
  73. package/dist/nodeinfo/client.test.js +8 -10
  74. package/dist/nodeinfo/handler.test.js +24 -25
  75. package/dist/nodeinfo/mod.cjs +2 -3
  76. package/dist/nodeinfo/mod.d.cts +2 -4
  77. package/dist/nodeinfo/mod.d.ts +2 -4
  78. package/dist/nodeinfo/mod.js +2 -3
  79. package/dist/nodeinfo/types.test.js +7 -9
  80. package/dist/{owner-BN_tO3cY.d.cts → owner-B4HbyP8s.d.cts} +3 -3
  81. package/dist/{owner-6Vc3UXXE.js → owner-Dvh7mBvr.js} +3 -2
  82. package/dist/{owner-hd9lvQcP.d.ts → owner-kQRGVXG1.d.ts} +3 -3
  83. package/dist/{proof-CRJWXFfT.cjs → proof-D0uThUvD.cjs} +17 -16
  84. package/dist/{proof-C1jhbeNv.js → proof-Dgy35fzc.js} +2 -2
  85. package/dist/{proof-Chi90OXv.js → proof-fqzaMJ4g.js} +5 -4
  86. package/dist/{send-DjATl6i3.js → send-Drp20VO9.js} +2 -2
  87. package/dist/sig/http.test.js +12 -13
  88. package/dist/sig/key.test.js +9 -11
  89. package/dist/sig/ld.test.js +8 -10
  90. package/dist/sig/mod.cjs +9 -11
  91. package/dist/sig/mod.d.cts +5 -7
  92. package/dist/sig/mod.d.ts +5 -7
  93. package/dist/sig/mod.js +5 -7
  94. package/dist/sig/owner.test.js +10 -12
  95. package/dist/sig/proof.test.js +13 -14
  96. package/dist/testing/docloader.test.js +6 -8
  97. package/dist/testing/mod.d.ts +114 -196
  98. package/dist/testing/mod.js +2 -3
  99. package/dist/{testing-BnfPB5T-.js → testing-g4UC4liW.js} +1 -2
  100. package/dist/{types-dLXLjVLf.js → types-BtUjyi5y.js} +1 -1
  101. package/dist/{types-CmmUQisS.cjs → types-CWgzGaqk.cjs} +3 -3
  102. package/dist/{runtime/authdocloader.test.js → utils/docloader.test.js} +14 -15
  103. package/dist/utils/kv-cache.test.js +209 -0
  104. package/dist/utils/mod.cjs +12 -0
  105. package/dist/utils/mod.d.cts +5 -0
  106. package/dist/utils/mod.d.ts +7 -0
  107. package/dist/utils/mod.js +11 -0
  108. package/dist/vocab/actor.test.js +8 -10
  109. package/dist/vocab/lookup.test.js +7 -9
  110. package/dist/vocab/mod.cjs +3 -4
  111. package/dist/vocab/mod.d.cts +3 -5
  112. package/dist/vocab/mod.d.ts +3 -5
  113. package/dist/vocab/mod.js +3 -4
  114. package/dist/vocab/type.test.js +2 -3
  115. package/dist/vocab/vocab.test.js +9 -10
  116. package/dist/{vocab-BI0Ak5lL.d.ts → vocab-BCWe1Ih5.d.ts} +2 -21
  117. package/dist/{vocab-rWbHpc2J.js → vocab-BnR3nIU9.js} +3 -3
  118. package/dist/{vocab-Dw1-yVGg.d.cts → vocab-CeDBzu-f.d.cts} +2 -21
  119. package/dist/{vocab-C5Y-0fGj.cjs → vocab-DFaWWYDn.cjs} +5 -5
  120. package/dist/webfinger/handler.test.js +24 -25
  121. package/dist/webfinger/lookup.test.js +7 -9
  122. package/dist/webfinger/mod.cjs +2 -3
  123. package/dist/webfinger/mod.d.cts +1 -3
  124. package/dist/webfinger/mod.d.ts +1 -3
  125. package/dist/webfinger/mod.js +2 -3
  126. package/dist/x/cfworkers.d.cts +2 -2
  127. package/dist/x/cfworkers.d.ts +2 -2
  128. package/dist/x/cfworkers.test.js +6 -8
  129. package/dist/x/hono.d.cts +10 -11
  130. package/dist/x/hono.d.ts +10 -11
  131. package/dist/x/sveltekit.d.cts +10 -11
  132. package/dist/x/sveltekit.d.ts +10 -11
  133. package/package.json +18 -17
  134. package/dist/assert_throws-BOO88avQ.js +0 -39
  135. package/dist/authdocloader-C5AvdCCi.js +0 -52
  136. package/dist/authdocloader-CQMPmpaO.cjs +0 -58
  137. package/dist/docloader-7Ey7wNHx.cjs +0 -4861
  138. package/dist/docloader-CkweNhUH.js +0 -4795
  139. package/dist/docloader-CxWcuWqQ.d.ts +0 -221
  140. package/dist/docloader-D-MrRyHl.d.cts +0 -219
  141. package/dist/key-CZR7QraT.cjs +0 -290
  142. package/dist/key-Cf8MffVe.cjs +0 -10
  143. package/dist/key-CkxrAIyp.js +0 -260
  144. package/dist/key-Dk0j88Jo.js +0 -10
  145. package/dist/key-Epcl5jpz.js +0 -10
  146. package/dist/lookup-DhQCVVja.js +0 -331
  147. package/dist/lookup-DiV4LFBg.cjs +0 -137
  148. package/dist/middleware-Be1JStOx.js +0 -17
  149. package/dist/middleware-CDOK7WOb.js +0 -26
  150. package/dist/middleware-EjIW2mZB.cjs +0 -17
  151. package/dist/mod-CerN_Sza.d.ts +0 -104
  152. package/dist/mod-Cj1tHXBR.d.cts +0 -102
  153. package/dist/runtime/docloader.test.js +0 -522
  154. package/dist/runtime/key.test.d.ts +0 -3
  155. package/dist/runtime/key.test.js +0 -103
  156. package/dist/runtime/langstr.test.d.ts +0 -3
  157. package/dist/runtime/langstr.test.js +0 -39
  158. package/dist/runtime/link.test.d.ts +0 -3
  159. package/dist/runtime/link.test.js +0 -61
  160. package/dist/runtime/mod.cjs +0 -25
  161. package/dist/runtime/mod.d.cts +0 -6
  162. package/dist/runtime/mod.d.ts +0 -8
  163. package/dist/runtime/mod.js +0 -13
  164. package/dist/runtime/multibase/multibase.test.d.ts +0 -3
  165. package/dist/runtime/multibase/multibase.test.js +0 -358
  166. package/dist/runtime/url.test.d.ts +0 -3
  167. package/dist/runtime/url.test.js +0 -45
  168. /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
  169. /package/dist/{collection-CcnIw1qY.js → collection-BzWsN9pB.js} +0 -0
  170. /package/dist/{denokv-Bv33Xxea.js → denokv-CCssOzMJ.js} +0 -0
  171. /package/dist/{federation-H2_En3j5.cjs → federation-CRpdnOMS.cjs} +0 -0
  172. /package/dist/{federation-D1U8YY9t.js → federation-jcR8-ZxP.js} +0 -0
  173. /package/dist/{kv-C7sopW2E.d.ts → kv-BKNZ-Tb-.d.ts} +0 -0
  174. /package/dist/{kv-63Cil1MD.d.cts → kv-Bxr0Q87_.d.cts} +0 -0
  175. /package/dist/{mod-FZd39qVq.d.cts → mod-B-hUPT2N.d.cts} +0 -0
  176. /package/dist/{mod-1pDWKvUL.d.ts → mod-CVgZgliM.d.ts} +0 -0
  177. /package/dist/{mod-g0xFzAP9.d.ts → mod-xIj-IT58.d.ts} +0 -0
  178. /package/dist/{mq-CRGm1e_F.d.ts → mq-CUKlBw08.d.ts} +0 -0
  179. /package/dist/{mq-B7R1Q-M5.d.cts → mq-DcJPkXD5.d.cts} +0 -0
  180. /package/dist/{negotiation-5NPJL6zp.js → negotiation-C4nFufNk.js} +0 -0
  181. /package/dist/{nodeinfo-DfycQ8Wf.js → nodeinfo-BnthBobC.js} +0 -0
  182. /package/dist/{nodeinfo-Co9lJrWl.cjs → nodeinfo-CdN0rEnZ.cjs} +0 -0
  183. /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
  184. /package/dist/{runtime-DPYEDf-o.js → sig-C34-oHBl.js} +0 -0
  185. /package/dist/{runtime-C58AJWSv.cjs → sig-YYj5tCnr.cjs} +0 -0
  186. /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
  187. /package/dist/{types-BSuWJsOm.js → types-C2XVl6gj.js} +0 -0
  188. /package/dist/{runtime → utils}/docloader.test.d.ts +0 -0
  189. /package/dist/{runtime/authdocloader.test.d.ts → utils/kv-cache.test.d.ts} +0 -0
  190. /package/dist/{sig-Cj3tk-ig.js → utils-D-Va7aXC.js} +0 -0
  191. /package/dist/{sig-ByHXzqUi.cjs → utils-DyRU1gdZ.cjs} +0 -0
  192. /package/dist/{webfinger-De_bU0iE.js → webfinger-C72Y8lrh.js} +0 -0
  193. /package/dist/{webfinger-BjOEdFPs.cjs → webfinger-vAtLmxOF.cjs} +0 -0
@@ -3,21 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import { getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-CkweNhUH.js";
7
- import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-G2S5sPEA.js";
8
- import { lookupWebFinger } from "./lookup-cVRa2QM-.js";
9
- import { exportJwk, importJwk, validateCryptoKey } from "./key-CkxrAIyp.js";
10
- import { doubleKnock, verifyRequest } from "./http-C5tC93Hn.js";
11
- import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-Chi90OXv.js";
12
- import { getNodeInfo, nodeInfoToJson } from "./types-dLXLjVLf.js";
13
- import { getAuthenticatedDocumentLoader } from "./authdocloader-C5AvdCCi.js";
14
- import { lookupObject, traverseCollection } from "./vocab-rWbHpc2J.js";
6
+ import { deno_default, lookupWebFinger } from "./lookup-CHkCVZTU.js";
7
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-DzhunPC_.js";
8
+ import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-CUVx-vzb.js";
9
+ import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-fqzaMJ4g.js";
10
+ import { getNodeInfo, nodeInfoToJson } from "./types-BtUjyi5y.js";
11
+ import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-CGXcDejL.js";
12
+ import { lookupObject, traverseCollection } from "./vocab-BnR3nIU9.js";
15
13
  import { getLogger, withContext } from "@logtape/logtape";
16
14
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
17
- import { encodeHex } from "byte-encodings/hex";
15
+ import { getDocumentLoader } from "@fedify/vocab-runtime";
18
16
  import { cloneDeep } from "es-toolkit";
19
17
  import { Router } from "uri-template-router";
20
18
  import { parseTemplate } from "url-template";
19
+ import { encodeHex } from "byte-encodings/hex";
21
20
  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
21
  import { domainToASCII } from "node:url";
23
22
 
@@ -339,7 +338,7 @@ var FederationBuilderImpl = class {
339
338
  this.collectionTypeIds = {};
340
339
  }
341
340
  async build(options) {
342
- const { FederationImpl: FederationImpl$1 } = await import("./middleware-Be1JStOx.js");
341
+ const { FederationImpl: FederationImpl$1 } = await import("./middleware-CjHl2NHA.js");
343
342
  const f = new FederationImpl$1(options);
344
343
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
345
344
  f.router = this.router.clone();
@@ -792,11 +791,11 @@ var FederationBuilderImpl = class {
792
791
  };
793
792
  return setters;
794
793
  }
795
- setCollectionDispatcher(name, ...args) {
796
- return this.#setCustomCollectionDispatcher(name, "collection", ...args);
794
+ setCollectionDispatcher(name, itemType, path, dispatcher) {
795
+ return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
797
796
  }
798
- setOrderedCollectionDispatcher(name, ...args) {
799
- return this.#setCustomCollectionDispatcher(name, "orderedCollection", ...args);
797
+ setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
798
+ return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
800
799
  }
801
800
  #setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
802
801
  const strName = String(name);
@@ -1550,7 +1549,7 @@ async function handleInboxInternal(request, parameters, span) {
1550
1549
  /**
1551
1550
  * Handles a custom collection request.
1552
1551
  * @template TItem The type of items in the collection.
1553
- * @template TParams The parameter names of the requested URL.
1552
+ * @template TParam The parameter names of the requested URL.
1554
1553
  * @template TContext The type of the context, extending {@link RequestContext}.
1555
1554
  * @template TContextData The context data to pass to the `TContext`.
1556
1555
  * @param request The HTTP request.
@@ -1568,7 +1567,7 @@ async function _handleCustomCollection(request, { name, values, context: context
1568
1567
  /**
1569
1568
  * Handles an ordered collection request.
1570
1569
  * @template TItem The type of items in the collection.
1571
- * @template TParams The parameter names of the requested URL.
1570
+ * @template TParam The parameter names of the requested URL.
1572
1571
  * @template TContext The type of the context, extending {@link RequestContext}.
1573
1572
  * @template TContextData The context data to pass to the `TContext`.
1574
1573
  * @param request The HTTP request.
@@ -1588,7 +1587,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
1588
1587
  * The main flow is on `getCollection`, `dispatch`.
1589
1588
  *
1590
1589
  * @template TItem The type of items in the collection.
1591
- * @template TParams The parameter names of the requested URL.
1590
+ * @template TParam The parameter names of the requested URL.
1592
1591
  * @template TContext The type of the context. {@link Context} or {@link RequestContext}.
1593
1592
  * @template TContextData The context data to pass to the `TContext`.
1594
1593
  * @template TCollection The type of the collection, extending {@link Collection}.
@@ -1622,14 +1621,14 @@ var CustomCollectionHandler = class {
1622
1621
  #collection = null;
1623
1622
  /**
1624
1623
  * Creates a new CustomCollection instance.
1625
- * @param {string} name The name of the collection.
1626
- * @param {TParams} values The parameter values for the collection.
1627
- * @param {TContext} context The request context.
1628
- * @param {CustomCollectionCallbacks} callbacks The collection callbacks.
1629
- * @param {TracerProvider} tracerProvider The tracer provider for telemetry.
1630
- * @param {ConstructorWithTypeId<TCollection>} Collection The Collection constructor.
1631
- * @param {ConstructorWithTypeId<TCollectionPage>} CollectionPage The CollectionPage constructor.
1632
- * @param {(item: TItem) => boolean} filterPredicate Optional filter predicate for items.
1624
+ * @param name The name of the collection.
1625
+ * @param values The parameter values for the collection.
1626
+ * @param context The request context.
1627
+ * @param callbacks The collection callbacks.
1628
+ * @param tracerProvider The tracer provider for telemetry.
1629
+ * @param Collection The Collection constructor.
1630
+ * @param CollectionPage The CollectionPage constructor.
1631
+ * @param filterPredicate Optional filter predicate for items.
1633
1632
  */
1634
1633
  constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
1635
1634
  this.name = name;
@@ -1754,7 +1753,7 @@ var CustomCollectionHandler = class {
1754
1753
  /**
1755
1754
  * Creates a function to wrap the dispatcher so tracing can be applied.
1756
1755
  * @param params Parameters including cursor and total items.
1757
- * @returns {(span: Span) => Promise<PageItems<TItem>>} A function that handles the span operation.
1756
+ * @returns A function that handles the span operation.
1758
1757
  */
1759
1758
  spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
1760
1759
  try {
@@ -1775,23 +1774,23 @@ var CustomCollectionHandler = class {
1775
1774
  };
1776
1775
  /**
1777
1776
  * Dispatches the collection request to get items.
1778
- * @param {string | null} cursor The cursor for pagination, or null for the first page.
1779
- * @returns {Promise<PageItems<TItem>>} A promise that resolves to the page items.
1777
+ * @param cursor The cursor for pagination, or null for the first page.
1778
+ * @returns A promise that resolves to the page items.
1780
1779
  */
1781
1780
  async dispatch(cursor = null) {
1782
1781
  return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
1783
1782
  }
1784
1783
  /**
1785
1784
  * Filters the items in the collection.
1786
- * @param {TItem[]} items The items to filter.
1787
- * @returns {(Object | Link | URL)[]} The filtered items.
1785
+ * @param items The items to filter.
1786
+ * @returns The filtered items.
1788
1787
  */
1789
1788
  filterItems(items) {
1790
1789
  return filterCollectionItems(items, this.name, this.filterPredicate);
1791
1790
  }
1792
1791
  /**
1793
1792
  * Appends a cursor to the URL if it exists.
1794
- * @param {string | null | undefined} cursor The cursor to append, or null/undefined.
1793
+ * @param cursor The cursor to append, or null/undefined.
1795
1794
  * @returns The URL with cursor appended, or null if cursor is null/undefined.
1796
1795
  */
1797
1796
  appendToUrl(cursor) {
@@ -1799,8 +1798,7 @@ var CustomCollectionHandler = class {
1799
1798
  }
1800
1799
  /**
1801
1800
  * Gets the stored collection or collection page.
1802
- * @returns {Promise<TCollection | TCollectionPage>} A promise that resolves to
1803
- the collection or collection page.
1801
+ * @returns A promise that resolves to the collection or collection page.
1804
1802
  */
1805
1803
  get collection() {
1806
1804
  if (this.#collection === null) this.#collection = this.getCollection();
@@ -1808,8 +1806,8 @@ var CustomCollectionHandler = class {
1808
1806
  }
1809
1807
  /**
1810
1808
  * Gets the total number of items in the collection.
1811
- * @returns {Promise<number | null>} A promise that
1812
- resolves to the total items count, or null if not available.
1809
+ * @returns A promise that resolves to the total items count,
1810
+ * or null if not available.
1813
1811
  */
1814
1812
  get totalItems() {
1815
1813
  if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
@@ -1825,8 +1823,8 @@ var CustomCollectionHandler = class {
1825
1823
  }
1826
1824
  /**
1827
1825
  * Gets the first cursor for pagination.
1828
- * @returns {Promise<string | null>} A promise that resolves to the first cursor,
1829
- or null if not available.
1826
+ * @returns A promise that resolves to the first cursor,
1827
+ * or null if not available.
1830
1828
  */
1831
1829
  get firstCursor() {
1832
1830
  const cursor = this.callbacks.firstCursor?.(this.context, this.values);
@@ -2350,7 +2348,6 @@ var FederationImpl = class extends FederationBuilderImpl {
2350
2348
  firstKnock;
2351
2349
  constructor(options) {
2352
2350
  super();
2353
- const logger$1 = getLogger(["fedify", "federation"]);
2354
2351
  this.kv = options.kv;
2355
2352
  this.kvPrefixes = {
2356
2353
  activityIdempotence: ["_fedify", "activityIdempotence"],
@@ -2398,8 +2395,9 @@ var FederationImpl = class extends FederationBuilderImpl {
2398
2395
  this.router.trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
2399
2396
  this._initializeRouter();
2400
2397
  if (options.allowPrivateAddress || options.userAgent != null) {
2401
- if (options.contextLoader != null) throw new TypeError("Cannot set contextLoader with allowPrivateAddress or userAgent options.");
2402
- else if (options.authenticatedDocumentLoaderFactory != null) throw new TypeError("Cannot set authenticatedDocumentLoaderFactory with allowPrivateAddress or userAgent options.");
2398
+ if (options.documentLoaderFactory != null) throw new TypeError("Cannot set documentLoaderFactory with allowPrivateAddress or userAgent options.");
2399
+ if (options.contextLoaderFactory != null) throw new TypeError("Cannot set contextLoaderFactory with allowPrivateAddress or userAgent options.");
2400
+ if (options.authenticatedDocumentLoaderFactory != null) throw new TypeError("Cannot set authenticatedDocumentLoaderFactory with allowPrivateAddress or userAgent options.");
2403
2401
  }
2404
2402
  const { allowPrivateAddress, userAgent } = options;
2405
2403
  this.allowPrivateAddress = allowPrivateAddress ?? false;
@@ -2413,11 +2411,7 @@ var FederationImpl = class extends FederationBuilderImpl {
2413
2411
  prefix: this.kvPrefixes.remoteDocument
2414
2412
  });
2415
2413
  });
2416
- if (options.contextLoader != null) {
2417
- if (options.contextLoaderFactory != null) throw new TypeError("Cannot set both contextLoader and contextLoaderFactory options at a time; use contextLoaderFactory only.");
2418
- this.contextLoaderFactory = () => options.contextLoader;
2419
- logger$1.warn("The contextLoader option is deprecated; use contextLoaderFactory option instead.");
2420
- } else this.contextLoaderFactory = options.contextLoaderFactory ?? this.documentLoaderFactory;
2414
+ this.contextLoaderFactory = options.contextLoaderFactory ?? this.documentLoaderFactory;
2421
2415
  this.authenticatedDocumentLoaderFactory = options.authenticatedDocumentLoaderFactory ?? ((identity) => getAuthenticatedDocumentLoader(identity, {
2422
2416
  allowPrivateAddress,
2423
2417
  userAgent,
@@ -0,0 +1,107 @@
1
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-M8k5mKc0.cjs";
2
+ import { KvKey, KvStore } from "./kv-Bxr0Q87_.cjs";
3
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
4
+ import { TracerProvider } from "@opentelemetry/api";
5
+
6
+ //#region src/utils/docloader.d.ts
7
+ /**
8
+ * Options for {@link getAuthenticatedDocumentLoader}.
9
+ * @see {@link getAuthenticatedDocumentLoader}
10
+ * @since 1.3.0
11
+ */
12
+ interface GetAuthenticatedDocumentLoaderOptions extends DocumentLoaderFactoryOptions {
13
+ /**
14
+ * An optional spec determiner for HTTP Message Signatures.
15
+ * It determines the spec to use for signing requests.
16
+ * It is used for double-knocking
17
+ * (see <https://swicg.github.io/activitypub-http-signature/#how-to-upgrade-supported-versions>).
18
+ * @since 1.6.0
19
+ */
20
+ specDeterminer?: HttpMessageSignaturesSpecDeterminer;
21
+ /**
22
+ * The OpenTelemetry tracer provider. If omitted, the global tracer provider
23
+ * is used.
24
+ * @since 1.6.0
25
+ */
26
+ tracerProvider?: TracerProvider;
27
+ }
28
+ /**
29
+ * Gets an authenticated {@link DocumentLoader} for the given identity.
30
+ * Note that an authenticated document loader intentionally does not cache
31
+ * the fetched documents.
32
+ * @param identity The identity to get the document loader for.
33
+ * The actor's key pair.
34
+ * @param options The options for the document loader.
35
+ * @returns The authenticated document loader.
36
+ * @throws {TypeError} If the key is invalid or unsupported.
37
+ * @since 0.4.0
38
+ */
39
+ declare function getAuthenticatedDocumentLoader(identity: {
40
+ keyId: URL;
41
+ privateKey: CryptoKey;
42
+ }, {
43
+ allowPrivateAddress,
44
+ userAgent,
45
+ specDeterminer,
46
+ tracerProvider
47
+ }?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
48
+ /**
49
+ * A JSON-LD document loader that utilizes the browser's `fetch` API.
50
+ *
51
+ * This loader preloads the below frequently used contexts:
52
+ *
53
+ * - <https://www.w3.org/ns/activitystreams>
54
+ * - <https://w3id.org/security/v1>
55
+ * - <https://w3id.org/security/data-integrity/v1>
56
+ * - <https://www.w3.org/ns/did/v1>
57
+ * - <https://w3id.org/security/multikey/v1>
58
+ * - <https://purl.archive.org/socialweb/webfinger>
59
+ * - <http://schema.org/>
60
+ * @param url The URL of the document to load.
61
+ * @param allowPrivateAddress Whether to allow fetching private network
62
+ * addresses. Turned off by default.
63
+ * @returns The remote document.
64
+ * @deprecated Use {@link getDocumentLoader} instead.
65
+ */
66
+ //#endregion
67
+ //#region src/utils/kv-cache.d.ts
68
+ /**
69
+ * The parameters for {@link kvCache} function.
70
+ */
71
+ interface KvCacheParameters {
72
+ /**
73
+ * The document loader to decorate with a cache.
74
+ */
75
+ loader: DocumentLoader;
76
+ /**
77
+ * The key–value store to use for backing the cache.
78
+ */
79
+ kv: KvStore;
80
+ /**
81
+ * The key prefix to use for namespacing the cache.
82
+ * `["_fedify", "remoteDocument"]` by default.
83
+ */
84
+ prefix?: KvKey;
85
+ /**
86
+ * The per-URL cache rules in the array of `[urlPattern, duration]` pairs
87
+ * where `urlPattern` is either a string, a {@link URL}, or
88
+ * a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
89
+ * The `duration` is allowed to be at most 30 days.
90
+ *
91
+ * By default, 5 minutes for all URLs.
92
+ */
93
+ rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
94
+ }
95
+ /**
96
+ * Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
97
+ * @param parameters The parameters for the cache.
98
+ * @returns The decorated document loader which is cache-enabled.
99
+ */
100
+ declare function kvCache({
101
+ loader,
102
+ kv,
103
+ prefix,
104
+ rules
105
+ }: KvCacheParameters): DocumentLoader;
106
+ //#endregion
107
+ export { getAuthenticatedDocumentLoader, kvCache };
@@ -1,9 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
4
- import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-BI0Ak5lL.js";
5
- import { KeyCache } from "./http-D6Uj2x2y.js";
3
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-BCWe1Ih5.js";
4
+ import { KeyCache } from "./http-BbO0ejuk.js";
6
5
  import { TracerProvider } from "@opentelemetry/api";
6
+ import { DocumentLoader } from "@fedify/vocab-runtime";
7
7
 
8
8
  //#region src/sig/ld.d.ts
9
9
  /**
@@ -0,0 +1,109 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-BbO0ejuk.js";
4
+ import { KvKey, KvStore } from "./kv-BKNZ-Tb-.js";
5
+ import { TracerProvider } from "@opentelemetry/api";
6
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
7
+
8
+ //#region src/utils/docloader.d.ts
9
+ /**
10
+ * Options for {@link getAuthenticatedDocumentLoader}.
11
+ * @see {@link getAuthenticatedDocumentLoader}
12
+ * @since 1.3.0
13
+ */
14
+ interface GetAuthenticatedDocumentLoaderOptions extends DocumentLoaderFactoryOptions {
15
+ /**
16
+ * An optional spec determiner for HTTP Message Signatures.
17
+ * It determines the spec to use for signing requests.
18
+ * It is used for double-knocking
19
+ * (see <https://swicg.github.io/activitypub-http-signature/#how-to-upgrade-supported-versions>).
20
+ * @since 1.6.0
21
+ */
22
+ specDeterminer?: HttpMessageSignaturesSpecDeterminer;
23
+ /**
24
+ * The OpenTelemetry tracer provider. If omitted, the global tracer provider
25
+ * is used.
26
+ * @since 1.6.0
27
+ */
28
+ tracerProvider?: TracerProvider;
29
+ }
30
+ /**
31
+ * Gets an authenticated {@link DocumentLoader} for the given identity.
32
+ * Note that an authenticated document loader intentionally does not cache
33
+ * the fetched documents.
34
+ * @param identity The identity to get the document loader for.
35
+ * The actor's key pair.
36
+ * @param options The options for the document loader.
37
+ * @returns The authenticated document loader.
38
+ * @throws {TypeError} If the key is invalid or unsupported.
39
+ * @since 0.4.0
40
+ */
41
+ declare function getAuthenticatedDocumentLoader(identity: {
42
+ keyId: URL;
43
+ privateKey: CryptoKey;
44
+ }, {
45
+ allowPrivateAddress,
46
+ userAgent,
47
+ specDeterminer,
48
+ tracerProvider
49
+ }?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
50
+ /**
51
+ * A JSON-LD document loader that utilizes the browser's `fetch` API.
52
+ *
53
+ * This loader preloads the below frequently used contexts:
54
+ *
55
+ * - <https://www.w3.org/ns/activitystreams>
56
+ * - <https://w3id.org/security/v1>
57
+ * - <https://w3id.org/security/data-integrity/v1>
58
+ * - <https://www.w3.org/ns/did/v1>
59
+ * - <https://w3id.org/security/multikey/v1>
60
+ * - <https://purl.archive.org/socialweb/webfinger>
61
+ * - <http://schema.org/>
62
+ * @param url The URL of the document to load.
63
+ * @param allowPrivateAddress Whether to allow fetching private network
64
+ * addresses. Turned off by default.
65
+ * @returns The remote document.
66
+ * @deprecated Use {@link getDocumentLoader} instead.
67
+ */
68
+ //#endregion
69
+ //#region src/utils/kv-cache.d.ts
70
+ /**
71
+ * The parameters for {@link kvCache} function.
72
+ */
73
+ interface KvCacheParameters {
74
+ /**
75
+ * The document loader to decorate with a cache.
76
+ */
77
+ loader: DocumentLoader;
78
+ /**
79
+ * The key–value store to use for backing the cache.
80
+ */
81
+ kv: KvStore;
82
+ /**
83
+ * The key prefix to use for namespacing the cache.
84
+ * `["_fedify", "remoteDocument"]` by default.
85
+ */
86
+ prefix?: KvKey;
87
+ /**
88
+ * The per-URL cache rules in the array of `[urlPattern, duration]` pairs
89
+ * where `urlPattern` is either a string, a {@link URL}, or
90
+ * a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
91
+ * The `duration` is allowed to be at most 30 days.
92
+ *
93
+ * By default, 5 minutes for all URLs.
94
+ */
95
+ rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
96
+ }
97
+ /**
98
+ * Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
99
+ * @param parameters The parameters for the cache.
100
+ * @returns The decorated document loader which is cache-enabled.
101
+ */
102
+ declare function kvCache({
103
+ loader,
104
+ kv,
105
+ prefix,
106
+ rules
107
+ }: KvCacheParameters): DocumentLoader;
108
+ //#endregion
109
+ export { getAuthenticatedDocumentLoader, kvCache };
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
4
- import { Collection, Link, Object as Object$1 } from "./vocab-BI0Ak5lL.js";
3
+ import { Collection, Link, Object as Object$1 } from "./vocab-BCWe1Ih5.js";
5
4
  import { TracerProvider } from "@opentelemetry/api";
5
+ import { DocumentLoader, GetUserAgentOptions } from "@fedify/vocab-runtime";
6
6
 
7
7
  //#region src/vocab/lookup.d.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-BI0Ak5lL.js";
4
- import { ActivityTransformer, Context } from "./context-ByZprN0S.js";
3
+ import { Activity } from "./vocab-BCWe1Ih5.js";
4
+ import { ActivityTransformer, Context } from "./context-DG0huGW-.js";
5
5
 
6
6
  //#region src/compat/transformers.d.ts
7
7
 
@@ -1,5 +1,5 @@
1
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
2
- import { Collection, Link, Object as Object$1 } from "./vocab-Dw1-yVGg.cjs";
1
+ import { Collection, Link, Object as Object$1 } from "./vocab-CeDBzu-f.cjs";
2
+ import { DocumentLoader, GetUserAgentOptions } from "@fedify/vocab-runtime";
3
3
  import { TracerProvider } from "@opentelemetry/api";
4
4
 
5
5
  //#region src/vocab/lookup.d.ts
@@ -1,4 +1,4 @@
1
- import { GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
1
+ import { GetUserAgentOptions } from "@fedify/vocab-runtime";
2
2
  import { TracerProvider } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/webfinger/jrd.d.ts
@@ -1,5 +1,5 @@
1
- import { Activity } from "./vocab-Dw1-yVGg.cjs";
2
- import { ActivityTransformer, Context } from "./context-C5BsZkDr.cjs";
1
+ import { Activity } from "./vocab-CeDBzu-f.cjs";
2
+ import { ActivityTransformer, Context } from "./context-DJ8aSy2Q.cjs";
3
3
 
4
4
  //#region src/compat/transformers.d.ts
5
5
 
@@ -1,6 +1,6 @@
1
- import { DocumentLoader } from "./docloader-D-MrRyHl.cjs";
2
- import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Dw1-yVGg.cjs";
3
- import { KeyCache } from "./http-D-e6AFwR.cjs";
1
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-CeDBzu-f.cjs";
2
+ import { KeyCache } from "./http-M8k5mKc0.cjs";
3
+ import { DocumentLoader } from "@fedify/vocab-runtime";
4
4
  import { TracerProvider } from "@opentelemetry/api";
5
5
 
6
6
  //#region src/sig/ld.d.ts
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
4
3
  import { TracerProvider } from "@opentelemetry/api";
4
+ import { GetUserAgentOptions } from "@fedify/vocab-runtime";
5
5
 
6
6
  //#region src/webfinger/jrd.d.ts
7
7
  /**
package/dist/mod.cjs CHANGED
@@ -4,21 +4,19 @@
4
4
 
5
5
  const require_transformers = require('./transformers-CoBS-oFG.cjs');
6
6
  require('./compat-DmDDELst.cjs');
7
- const require_docloader = require('./docloader-7Ey7wNHx.cjs');
8
- const require_actor = require('./actor-CrTGiTZd.cjs');
9
- const require_middleware = require('./middleware-TfuVoceY.cjs');
10
- const require_lookup = require('./lookup-DiV4LFBg.cjs');
11
- const require_key = require('./key-CZR7QraT.cjs');
12
- const require_http = require('./http-BiBofurJ.cjs');
13
- const require_proof = require('./proof-CRJWXFfT.cjs');
14
- const require_federation = require('./federation-H2_En3j5.cjs');
15
- const require_types = require('./types-CmmUQisS.cjs');
16
- const require_authdocloader = require('./authdocloader-CQMPmpaO.cjs');
17
- const require_vocab = require('./vocab-C5Y-0fGj.cjs');
18
- require('./nodeinfo-Co9lJrWl.cjs');
19
- require('./runtime-C58AJWSv.cjs');
20
- require('./sig-ByHXzqUi.cjs');
21
- require('./webfinger-BjOEdFPs.cjs');
7
+ const require_lookup = require('./lookup-CfFkONZD.cjs');
8
+ const require_actor = require('./actor-Ba9Z1eNJ.cjs');
9
+ const require_middleware = require('./middleware-D74TgW2E.cjs');
10
+ const require_http = require('./http-Dofes42e.cjs');
11
+ const require_proof = require('./proof-D0uThUvD.cjs');
12
+ const require_federation = require('./federation-CRpdnOMS.cjs');
13
+ const require_types = require('./types-CWgzGaqk.cjs');
14
+ const require_kv_cache = require('./kv-cache-Dkvbn6rg.cjs');
15
+ const require_vocab = require('./vocab-DFaWWYDn.cjs');
16
+ require('./nodeinfo-CdN0rEnZ.cjs');
17
+ require('./sig-YYj5tCnr.cjs');
18
+ require('./utils-DyRU1gdZ.cjs');
19
+ require('./webfinger-vAtLmxOF.cjs');
22
20
 
23
21
  exports.Accept = require_actor.Accept;
24
22
  exports.Activity = require_actor.Activity;
@@ -44,7 +42,6 @@ exports.EmojiReact = require_actor.EmojiReact;
44
42
  exports.Endpoints = require_actor.Endpoints;
45
43
  exports.Event = require_actor.Event;
46
44
  exports.Export = require_actor.Export;
47
- exports.FetchError = require_docloader.FetchError;
48
45
  exports.Flag = require_actor.Flag;
49
46
  exports.Follow = require_actor.Follow;
50
47
  exports.Group = require_actor.Group;
@@ -55,7 +52,6 @@ exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
55
52
  exports.IntransitiveActivity = require_actor.IntransitiveActivity;
56
53
  exports.Invite = require_actor.Invite;
57
54
  exports.Join = require_actor.Join;
58
- exports.LanguageString = require_actor.LanguageString;
59
55
  exports.Leave = require_actor.Leave;
60
56
  exports.Like = require_actor.Like;
61
57
  exports.Link = require_actor.Link;
@@ -106,30 +102,21 @@ exports.createSignature = require_proof.createSignature;
106
102
  exports.detachSignature = require_proof.detachSignature;
107
103
  exports.digest = require_middleware.digest;
108
104
  exports.doesActorOwnKey = require_proof.doesActorOwnKey;
109
- exports.exportJwk = require_key.exportJwk;
110
- exports.exportMultibaseKey = require_actor.exportMultibaseKey;
111
- exports.exportSpki = require_actor.exportSpki;
112
- exports.fetchDocumentLoader = require_docloader.fetchDocumentLoader;
113
- exports.fetchKey = require_key.fetchKey;
114
- exports.generateCryptoKeyPair = require_key.generateCryptoKeyPair;
105
+ exports.exportJwk = require_http.exportJwk;
106
+ exports.fetchKey = require_http.fetchKey;
107
+ exports.generateCryptoKeyPair = require_http.generateCryptoKeyPair;
115
108
  exports.getActorClassByTypeName = require_actor.getActorClassByTypeName;
116
109
  exports.getActorHandle = require_actor.getActorHandle;
117
110
  exports.getActorTypeName = require_actor.getActorTypeName;
118
- exports.getAuthenticatedDocumentLoader = require_authdocloader.getAuthenticatedDocumentLoader;
111
+ exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
119
112
  exports.getDefaultActivityTransformers = require_transformers.getDefaultActivityTransformers;
120
- exports.getDocumentLoader = require_docloader.getDocumentLoader;
121
113
  exports.getKeyOwner = require_proof.getKeyOwner;
122
114
  exports.getNodeInfo = require_types.getNodeInfo;
123
115
  exports.getTypeId = require_actor.getTypeId;
124
- exports.getUserAgent = require_docloader.getUserAgent;
125
- exports.importJwk = require_key.importJwk;
126
- exports.importMultibaseKey = require_actor.importMultibaseKey;
127
- exports.importPem = require_actor.importPem;
128
- exports.importPkcs1 = require_actor.importPkcs1;
129
- exports.importSpki = require_actor.importSpki;
116
+ exports.importJwk = require_http.importJwk;
130
117
  exports.isActor = require_actor.isActor;
131
118
  exports.isFediverseHandle = require_vocab.isFediverseHandle;
132
- exports.kvCache = require_docloader.kvCache;
119
+ exports.kvCache = require_kv_cache.kvCache;
133
120
  exports.lookupObject = require_vocab.lookupObject;
134
121
  exports.lookupWebFinger = require_lookup.lookupWebFinger;
135
122
  exports.nodeInfoToJson = require_types.nodeInfoToJson;