@fedify/fedify 2.4.0-dev.1668 → 2.4.0-dev.1740

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 (151) hide show
  1. package/README.md +1 -1
  2. package/dist/{assert-CJ1KXcvv.mjs → assert-CebeUf0C.mjs} +1 -1
  3. package/dist/assert_exists-DtzkXC47.mjs +28 -0
  4. package/dist/assert_false-3pLLLsO4.mjs +23 -0
  5. package/dist/assert_greater_or_equal-BApOTh1h.mjs +30 -0
  6. package/dist/{assert_instance_of-Q9KTBnrf.mjs → assert_instance_of-g3WcyYNR.mjs} +1 -1
  7. package/dist/{assert_not_equals-EPJPoxuf.mjs → assert_not_equals-BN7yDMWe.mjs} +1 -1
  8. package/dist/assert_rejects-wFbSPn1O.mjs +39 -0
  9. package/dist/{assert_strict_equals-Ec20AUwa.mjs → assert_strict_equals-Bpjl4Psw.mjs} +1 -1
  10. package/dist/{assert_throws-NiFfqbnH.mjs → assert_throws-BJ5wuvR2.mjs} +1 -1
  11. package/dist/{builder-iXZ5jNVg.mjs → builder-Bw6LVKGw.mjs} +5 -3
  12. package/dist/{circuit-breaker-CBGyz5F7.mjs → circuit-breaker-BT7CiPbz.mjs} +191 -9
  13. package/dist/circuit-breaker-test-utils-BYIHoliq.mjs +14 -0
  14. package/dist/{client-CjF5IYQS.mjs → client-CtxvmazV.mjs} +63 -5
  15. package/dist/{collection-BIhlldqK.mjs → collection-CnnP1UAv.mjs} +1 -1
  16. package/dist/compat/mod.cjs +1 -1
  17. package/dist/compat/mod.d.cts +1 -1
  18. package/dist/compat/mod.d.ts +1 -1
  19. package/dist/compat/mod.js +1 -1
  20. package/dist/compat/outgoing-jsonld.test.mjs +3 -3
  21. package/dist/compat/public-audience.test.mjs +3 -3
  22. package/dist/compat/transformers.test.mjs +5 -5
  23. package/dist/{context-C05Rgxmu.d.cts → context-B-dsBjZ9.d.cts} +281 -7
  24. package/dist/{context-Cjnr0ig1.d.ts → context-DrLXudbA.d.ts} +281 -7
  25. package/dist/{deno-DtHcfB0f.mjs → deno-tRdp8MCl.mjs} +1 -1
  26. package/dist/{docloader-0vAfF6XW.mjs → docloader-Dg_7gMC7.mjs} +2 -2
  27. package/dist/{esm-yYQfPhIY.mjs → esm-BHXXx4Wx.mjs} +13 -6
  28. package/dist/federation/builder.test.mjs +18 -5
  29. package/dist/federation/circuit-breaker.test.mjs +626 -7
  30. package/dist/federation/collection.test.mjs +3 -3
  31. package/dist/federation/handler.test.mjs +14 -13
  32. package/dist/federation/idempotency.test.mjs +6 -6
  33. package/dist/federation/inbox.test.mjs +3 -3
  34. package/dist/federation/keycache.test.mjs +5 -5
  35. package/dist/federation/kv.test.mjs +3 -3
  36. package/dist/federation/metrics.test.mjs +4 -4
  37. package/dist/federation/middleware.test.mjs +37 -28
  38. package/dist/federation/mod.cjs +18 -540
  39. package/dist/federation/mod.d.cts +3 -4
  40. package/dist/federation/mod.d.ts +3 -4
  41. package/dist/federation/mod.js +1 -1
  42. package/dist/federation/mq.test.mjs +32 -5
  43. package/dist/federation/negotiation.test.mjs +4 -4
  44. package/dist/federation/retry.test.mjs +3 -3
  45. package/dist/federation/router.test.mjs +7 -7
  46. package/dist/federation/send.test.mjs +28 -26
  47. package/dist/federation/tasks/codec.test.mjs +4 -4
  48. package/dist/federation/tasks/enqueue.test.mjs +4 -4
  49. package/dist/federation/tasks/tasks.test.mjs +6 -6
  50. package/dist/federation/temporal.test.mjs +4 -4
  51. package/dist/federation/webfinger.test.mjs +74 -12
  52. package/dist/{middleware-DzIUFRO2.cjs → federation-BJBpt_Am.cjs} +855 -114
  53. package/dist/{http-BbnOMQoy.js → http-BIxGa6AG.js} +3 -3
  54. package/dist/{http-DUmWq5Pw.mjs → http-Day1kcpT.mjs} +5 -5
  55. package/dist/{temporal-polyfill-BCdTHexd.cjs → http-DggG1scN.cjs} +2801 -104
  56. package/dist/{key-CM7wDnZG.mjs → key-igh0AMsL.mjs} +2 -2
  57. package/dist/{kv-cache-ZQ22hm44.js → kv-cache-BIAB0HKx.js} +1 -1
  58. package/dist/{kv-cache-DEXKemJ9.mjs → kv-cache-Bz6aQOOX.mjs} +1 -1
  59. package/dist/{kv-cache-zmgG1HUp.cjs → kv-cache-C4U_uBqD.cjs} +2 -4
  60. package/dist/{ld-BttH_-8K.mjs → ld-DnT9sCWa.mjs} +5 -5
  61. package/dist/metrics-DVKYY6K1.d.cts +36 -0
  62. package/dist/{metrics-DT-CnD1g.mjs → metrics-DbdNnWIt.mjs} +2 -2
  63. package/dist/metrics-DoRtI0qU.d.ts +36 -0
  64. package/dist/{middleware-ChlYS0Af.mjs → middleware-B6GweVcg.mjs} +1 -1
  65. package/dist/{middleware-D3IAVMcT.js → middleware-CnsPXG0O.js} +241 -40
  66. package/dist/{middleware-DrroX3aD.mjs → middleware-DPIS4fsB.mjs} +60 -43
  67. package/dist/{mod-BrpVsSfY.d.cts → mod-CLHkCwLm.d.cts} +3 -3
  68. package/dist/{mod-B0hW12_O.d.cts → mod-CnGLNoVw.d.cts} +86 -4
  69. package/dist/{mod-DdONo-ep.d.cts → mod-D-abvu2C.d.cts} +1 -1
  70. package/dist/{mod-BsCE5Ihq.d.ts → mod-D6O8C7eN.d.ts} +1 -1
  71. package/dist/{mod-CNef4in0.d.ts → mod-DypxPS9H.d.ts} +3 -3
  72. package/dist/{mod-COIAjwRS.d.ts → mod-DzRXACM5.d.ts} +86 -4
  73. package/dist/mod.cjs +25 -25
  74. package/dist/mod.d.cts +10 -11
  75. package/dist/mod.d.ts +10 -11
  76. package/dist/mod.js +8 -8
  77. package/dist/nodeinfo/client.test.mjs +64 -4
  78. package/dist/nodeinfo/handler.test.mjs +5 -5
  79. package/dist/nodeinfo/mod.cjs +1 -1
  80. package/dist/nodeinfo/mod.d.cts +1 -1
  81. package/dist/nodeinfo/mod.d.ts +1 -1
  82. package/dist/nodeinfo/mod.js +1 -1
  83. package/dist/nodeinfo/types.test.mjs +4 -4
  84. package/dist/otel/exporter.test.mjs +3 -3
  85. package/dist/otel/mod.cjs +0 -1
  86. package/dist/otel/mod.d.cts +1 -1
  87. package/dist/otel/mod.d.ts +1 -1
  88. package/dist/{outgoing-jsonld-URuqsICz.mjs → outgoing-jsonld-BQSHRLhg.mjs} +2 -2
  89. package/dist/{owner-DZALmhdl.mjs → owner-B3ef8GfJ.mjs} +2 -2
  90. package/dist/{proof-CqA-2nfW.js → proof-BBLQXRWw.js} +608 -36
  91. package/dist/{proof-a60oVJ_4.cjs → proof-Cqk2TcLX.cjs} +616 -39
  92. package/dist/proof-DVoDZ8d7.mjs +890 -0
  93. package/dist/{public-audience-Cr5MsnMq.mjs → public-audience--9hx7IGx.mjs} +1 -1
  94. package/dist/runtime/mod.cjs +1 -1
  95. package/dist/runtime/mod.js +1 -1
  96. package/dist/{send-DcwZnQWG.mjs → send-PbBSZ7Qk.mjs} +3 -3
  97. package/dist/sig/accept.test.mjs +1 -1
  98. package/dist/sig/http.test.mjs +37 -11
  99. package/dist/sig/key.test.mjs +6 -6
  100. package/dist/sig/ld.test.mjs +9 -7
  101. package/dist/sig/mod.cjs +3 -2
  102. package/dist/sig/mod.d.cts +4 -4
  103. package/dist/sig/mod.d.ts +4 -4
  104. package/dist/sig/mod.js +3 -3
  105. package/dist/sig/owner.test.mjs +6 -6
  106. package/dist/sig/proof.test.mjs +965 -15
  107. package/dist/std__assert-CxFT0MNt.mjs +8 -0
  108. package/dist/{temporal-Bpxpsl2k.mjs → temporal-DLQIjuTn.mjs} +3 -3
  109. package/dist/testing/mod.d.mts +10 -0
  110. package/dist/testing/mod.mjs +2 -2
  111. package/dist/{testing-CO7ftO8A.mjs → testing-BX0Nicyq.mjs} +2 -2
  112. package/dist/{transformers-DGwl-hD1.cjs → transformers-BalCrSsr.cjs} +0 -1
  113. package/dist/{types-DC1pNgJA.js → types-Dtyf8lVj.js} +63 -5
  114. package/dist/{types-CPym83zc.cjs → types-RXm5YxpC.cjs} +62 -5
  115. package/dist/utils/docloader.test.mjs +7 -7
  116. package/dist/utils/kv-cache.test.mjs +1 -1
  117. package/dist/utils/mod.cjs +1 -1
  118. package/dist/utils/mod.d.cts +1 -1
  119. package/dist/utils/mod.d.ts +1 -1
  120. package/dist/utils/mod.js +1 -1
  121. package/package.json +7 -7
  122. package/skills/fedify/SKILL.md +462 -0
  123. package/dist/assert_rejects-EgstcQy5.mjs +0 -82
  124. package/dist/http-BpT5cE6r.cjs +0 -2694
  125. package/dist/metrics-DN13mCAw.d.cts +0 -294
  126. package/dist/metrics-v_e0n5GQ.d.ts +0 -294
  127. package/dist/proof-DiQ0uBal.mjs +0 -316
  128. package/dist/std__assert-B2NnY9bq.mjs +0 -79
  129. /package/dist/{accept-8PiolDP7.mjs → accept-CPVqki78.mjs} +0 -0
  130. /package/dist/{activity-listener-BtTSxZWA.mjs → activity-listener-C-BSbKI7.mjs} +0 -0
  131. /package/dist/{assert_equals-BV7oLMxm.mjs → assert_equals-CBlRfA-_.mjs} +0 -0
  132. /package/dist/{client-CAM_bQXx.d.cts → client-D-XP_Ccb.d.cts} +0 -0
  133. /package/dist/{client-CSddvgWN.d.ts → client-D-XP_Ccb.d.ts} +0 -0
  134. /package/dist/{codec-BBga-FWI.mjs → codec-peqOdBaE.mjs} +0 -0
  135. /package/dist/{context-BJXxPElm.mjs → context-Dt36KFEJ.mjs} +0 -0
  136. /package/dist/{http-VyDTd4G3.d.cts → http-6TI0tI03.d.cts} +0 -0
  137. /package/dist/{http-lf8Hsd91.d.ts → http-CdrSn2ip.d.ts} +0 -0
  138. /package/dist/{keycache-_DHqz5z_.mjs → keycache-0Jk78XmB.mjs} +0 -0
  139. /package/dist/{keys-Dbyd7bhl.mjs → keys-DIJNHW-Y.mjs} +0 -0
  140. /package/dist/{kv-D6hNiMTK.d.ts → kv-BhNbN8Ed.d.cts} +0 -0
  141. /package/dist/{kv-gJ8LYbxX.d.cts → kv-BhNbN8Ed.d.ts} +0 -0
  142. /package/dist/{kv-CXBAok3k.mjs → kv-DCHkaJ9-.mjs} +0 -0
  143. /package/dist/{mq-Bo7Etgh6.mjs → mq-Dm1Wmtm-.mjs} +0 -0
  144. /package/dist/{negotiation-RuwrPFqi.mjs → negotiation-CCocWT_N.mjs} +0 -0
  145. /package/dist/{owner-CnngXDNJ.d.ts → owner-DGSfntI-.d.ts} +0 -0
  146. /package/dist/{owner-DEvZuyOE.d.cts → owner-r_waTiQj.d.cts} +0 -0
  147. /package/dist/{retry-DgFqeS5k.mjs → retry-zX5xw5e0.mjs} +0 -0
  148. /package/dist/{chunk-D5IdezsZ.js → rolldown-runtime-BC-Eo5Mj.js} +0 -0
  149. /package/dist/{chunk-Czpeue4M.cjs → rolldown-runtime-Dmm3t92W.cjs} +0 -0
  150. /package/dist/{transformers-DXze6FUB.js → transformers-DAtXl_Kc.js} +0 -0
  151. /package/dist/{types-CrtdVuDP.mjs → types-DE_LV1JB.mjs} +0 -0
@@ -1,28 +1,28 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DtHcfB0f.mjs";
5
- import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-DT-CnD1g.mjs";
6
- import { t as formatAcceptSignature } from "./accept-8PiolDP7.mjs";
7
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-CM7wDnZG.mjs";
8
- import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-DUmWq5Pw.mjs";
9
- import { t as getAuthenticatedDocumentLoader } from "./docloader-0vAfF6XW.mjs";
10
- import { n as kvCache } from "./kv-cache-DEXKemJ9.mjs";
11
- import { _ as wrapContextLoaderForJsonLd, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, l as hasSignature, m as verifyCompactJsonLd, p as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike } from "./ld-BttH_-8K.mjs";
12
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-DZALmhdl.mjs";
13
- import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-URuqsICz.mjs";
14
- import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-DiQ0uBal.mjs";
15
- import { t as getNodeInfo } from "./client-CjF5IYQS.mjs";
16
- import { t as nodeInfoToJson } from "./types-CrtdVuDP.mjs";
17
- import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-DcwZnQWG.mjs";
18
- import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-iXZ5jNVg.mjs";
19
- import { t as CircuitBreaker } from "./circuit-breaker-CBGyz5F7.mjs";
20
- import { t as buildCollectionSynchronizationHeader } from "./collection-BIhlldqK.mjs";
21
- import { t as KvKeyCache } from "./keycache-_DHqz5z_.mjs";
22
- import { t as acceptsJsonLd } from "./negotiation-RuwrPFqi.mjs";
23
- import { t as hasMalformedKnownTemporalLiteral } from "./temporal-Bpxpsl2k.mjs";
24
- import { t as createExponentialBackoffPolicy } from "./retry-DgFqeS5k.mjs";
25
- import { t as TaskCodec } from "./codec-BBga-FWI.mjs";
4
+ import { n as version, t as name } from "./deno-tRdp8MCl.mjs";
5
+ import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-DbdNnWIt.mjs";
6
+ import { t as formatAcceptSignature } from "./accept-CPVqki78.mjs";
7
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-igh0AMsL.mjs";
8
+ import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-Day1kcpT.mjs";
9
+ import { t as getAuthenticatedDocumentLoader } from "./docloader-Dg_7gMC7.mjs";
10
+ import { n as kvCache } from "./kv-cache-Bz6aQOOX.mjs";
11
+ import { _ as wrapContextLoaderForJsonLd, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, l as hasSignature, m as verifyCompactJsonLd, p as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike } from "./ld-DnT9sCWa.mjs";
12
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-B3ef8GfJ.mjs";
13
+ import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-BQSHRLhg.mjs";
14
+ import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-DVoDZ8d7.mjs";
15
+ import { t as getNodeInfo } from "./client-CtxvmazV.mjs";
16
+ import { t as nodeInfoToJson } from "./types-DE_LV1JB.mjs";
17
+ import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-PbBSZ7Qk.mjs";
18
+ import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-Bw6LVKGw.mjs";
19
+ import { t as CircuitBreaker } from "./circuit-breaker-BT7CiPbz.mjs";
20
+ import { t as buildCollectionSynchronizationHeader } from "./collection-CnnP1UAv.mjs";
21
+ import { t as KvKeyCache } from "./keycache-0Jk78XmB.mjs";
22
+ import { t as acceptsJsonLd } from "./negotiation-CCocWT_N.mjs";
23
+ import { t as hasMalformedKnownTemporalLiteral } from "./temporal-DLQIjuTn.mjs";
24
+ import { t as createExponentialBackoffPolicy } from "./retry-zX5xw5e0.mjs";
25
+ import { t as TaskCodec } from "./codec-peqOdBaE.mjs";
26
26
  import { getLogger, withContext } from "@logtape/logtape";
27
27
  import { RouterError } from "@fedify/uri-template";
28
28
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
@@ -600,7 +600,7 @@ async function handleObject(request, { values, context, objectDispatcher, author
600
600
  Vary: "Accept"
601
601
  } });
602
602
  }
603
- const BUILT_IN_COLLECTION_METRIC_KINDS = new Set([
603
+ const BUILT_IN_COLLECTION_METRIC_KINDS = /* @__PURE__ */ new Set([
604
604
  "inbox",
605
605
  "outbox",
606
606
  "following",
@@ -2211,7 +2211,7 @@ async function respondWithObjectIfAcceptable(object, request, options) {
2211
2211
  return response;
2212
2212
  }
2213
2213
  function generateNonce() {
2214
- const bytes = new Uint8Array(16);
2214
+ const bytes = /* @__PURE__ */ new Uint8Array(16);
2215
2215
  crypto.getRandomValues(bytes);
2216
2216
  return btoa(String.fromCharCode(...bytes)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2217
2217
  }
@@ -2480,6 +2480,24 @@ const logger = getLogger([
2480
2480
  "webfinger",
2481
2481
  "server"
2482
2482
  ]);
2483
+ function getWebFingerSubjectAndAliases({ resourceUrl, actorUri, preferredUsername, acctUsername, host, contextHost }) {
2484
+ const aliases = [];
2485
+ let subject = resourceUrl.href;
2486
+ if (resourceUrl.protocol != "acct:" && preferredUsername != null) {
2487
+ aliases.push(`acct:${preferredUsername}@${host ?? contextHost}`);
2488
+ if (host != null && host !== contextHost) aliases.push(`acct:${preferredUsername}@${contextHost}`);
2489
+ }
2490
+ if (resourceUrl.href !== actorUri.href) aliases.push(actorUri.href);
2491
+ if (resourceUrl.protocol === "acct:" && host != null && host !== contextHost && !resourceUrl.href.endsWith(`@${host}`)) {
2492
+ subject = `acct:${preferredUsername ?? acctUsername}@${host}`;
2493
+ aliases.push(resourceUrl.href);
2494
+ if (preferredUsername != null && preferredUsername !== "" && preferredUsername !== acctUsername) aliases.push(`acct:${preferredUsername}@${contextHost}`);
2495
+ }
2496
+ return {
2497
+ subject,
2498
+ aliases
2499
+ };
2500
+ }
2483
2501
  /**
2484
2502
  * Handles a WebFinger request. You would not typically call this function
2485
2503
  * directly, but instead use {@link Federation.fetch} method.
@@ -2528,7 +2546,7 @@ async function handleWebFinger(request, options) {
2528
2546
  });
2529
2547
  }
2530
2548
  }
2531
- const WEBFINGER_HANDLE_SCHEME_WHITELIST = new Set([
2549
+ const WEBFINGER_HANDLE_SCHEME_WHITELIST = /* @__PURE__ */ new Set([
2532
2550
  "acct",
2533
2551
  "http",
2534
2552
  "https",
@@ -2584,6 +2602,7 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
2584
2602
  return identifier;
2585
2603
  }
2586
2604
  let identifier = null;
2605
+ let acctUsername = null;
2587
2606
  const uriParsed = context.parseUri(resourceUrl);
2588
2607
  if (uriParsed?.type != "actor") {
2589
2608
  const match = /^acct:([^@]+)@([^@]+)$/.exec(resource);
@@ -2597,8 +2616,9 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
2597
2616
  const normalizedHost = portMatch == null ? domainToASCII(match[2].toLowerCase()) : domainToASCII(match[2].substring(0, portMatch.index).toLowerCase()) + portMatch[0];
2598
2617
  if (normalizedHost != context.url.host && normalizedHost != host) return await onNotFound(request);
2599
2618
  else {
2600
- identifier = await mapUsernameToIdentifier(match[1]);
2601
- resourceUrl = new URL(`acct:${match[1]}@${normalizedHost}`);
2619
+ acctUsername = match[1];
2620
+ identifier = await mapUsernameToIdentifier(acctUsername);
2621
+ resourceUrl = new URL(`acct:${acctUsername}@${normalizedHost}`);
2602
2622
  }
2603
2623
  }
2604
2624
  } else identifier = uriParsed.identifier;
@@ -2612,9 +2632,10 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
2612
2632
  status: 410,
2613
2633
  headers: { "Access-Control-Allow-Origin": "*" }
2614
2634
  });
2635
+ const actorUri = context.getActorUri(identifier);
2615
2636
  const links = [{
2616
2637
  rel: "self",
2617
- href: context.getActorUri(identifier).href,
2638
+ href: actorUri.href,
2618
2639
  type: "application/activity+json"
2619
2640
  }];
2620
2641
  for (const url of actor.urls) if (url instanceof Link && url.href != null) links.push({
@@ -2638,23 +2659,19 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
2638
2659
  const customLinks = await webFingerLinksDispatcher(context, resourceUrl);
2639
2660
  if (customLinks != null) for (const link of customLinks) links.push(link);
2640
2661
  }
2641
- const aliases = [];
2642
- const preferredUsername = actor.preferredUsername;
2643
- if (resourceUrl.protocol != "acct:" && preferredUsername != null) {
2644
- aliases.push(`acct:${preferredUsername}@${host ?? context.url.host}`);
2645
- if (host != null && host !== context.url.host) aliases.push(`acct:${preferredUsername}@${context.url.host}`);
2646
- }
2647
- if (resourceUrl.href !== context.getActorUri(identifier).href) aliases.push(context.getActorUri(identifier).href);
2648
- if (resourceUrl.protocol === "acct:" && host != null && host !== context.url.host && !resourceUrl.href.endsWith(`@${host}`)) {
2649
- const username = resourceUrl.href.replace(/^acct:/, "").replace(/@.*$/, "");
2650
- aliases.push(`acct:${username}@${host}`);
2651
- }
2652
- const jrd = {
2653
- subject: resourceUrl.href,
2662
+ const { subject, aliases } = getWebFingerSubjectAndAliases({
2663
+ resourceUrl,
2664
+ actorUri,
2665
+ preferredUsername: actor.preferredUsername,
2666
+ acctUsername,
2667
+ host,
2668
+ contextHost: context.url.host
2669
+ });
2670
+ return new Response(JSON.stringify({
2671
+ subject,
2654
2672
  aliases,
2655
2673
  links
2656
- };
2657
- return new Response(JSON.stringify(jrd), { headers: {
2674
+ }), { headers: {
2658
2675
  "Content-Type": "application/jrd+json",
2659
2676
  "Access-Control-Allow-Origin": "*"
2660
2677
  } });
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as HttpMessageSignaturesSpecDeterminer } from "./http-VyDTd4G3.cjs";
3
- import { n as KvStore, t as KvKey } from "./kv-gJ8LYbxX.cjs";
4
- import { t as DocumentFetchKind } from "./metrics-DN13mCAw.cjs";
2
+ import { n as HttpMessageSignaturesSpecDeterminer } from "./http-6TI0tI03.cjs";
3
+ import { n as KvStore, t as KvKey } from "./kv-BhNbN8Ed.cjs";
4
+ import { t as DocumentFetchKind } from "./metrics-DVKYY6K1.cjs";
5
5
  import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
6
6
  import { MeterProvider, TracerProvider } from "@opentelemetry/api";
7
7
 
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { S as KeyCache } from "./http-VyDTd4G3.cjs";
2
+ import { S as KeyCache } from "./http-6TI0tI03.cjs";
3
3
  import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
4
4
  import { DocumentLoader } from "@fedify/vocab-runtime";
5
5
  import { MeterProvider, TracerProvider } from "@opentelemetry/api";
@@ -244,6 +244,18 @@ declare function signObject<T extends Object$1>(object: T, privateKey: CryptoKey
244
244
  * @since 0.10.0
245
245
  */
246
246
  interface VerifyProofOptions {
247
+ /**
248
+ * The security domain expected by the verifier. When specified, it must
249
+ * contain the same strings as the proof's `domain` option.
250
+ * @since 2.4.0
251
+ */
252
+ domain?: string | readonly string[];
253
+ /**
254
+ * The challenge expected by the verifier. When specified, it must exactly
255
+ * match the proof's `challenge` option.
256
+ * @since 2.4.0
257
+ */
258
+ challenge?: string;
247
259
  /**
248
260
  * The context loader for loading remote JSON-LD contexts.
249
261
  */
@@ -271,17 +283,87 @@ interface VerifyProofOptions {
271
283
  meterProvider?: MeterProvider;
272
284
  }
273
285
  /**
286
+ * Options for {@link verifyPortableObjectProof}.
287
+ * @since 2.4.0
288
+ */
289
+ interface VerifyPortableObjectProofOptions extends VerifyProofOptions {}
290
+ /**
291
+ * The reason why {@link verifyPortableObjectProof} could not verify a portable
292
+ * object proof.
293
+ * @since 2.4.0
294
+ */
295
+ type VerifyPortableObjectProofFailureReason = {
296
+ /** The document does not have a portable `ap:` or `ap+ef61:` ID. */readonly type: "notPortableObject";
297
+ } | {
298
+ /**
299
+ * The document is a portable collection without an Object Integrity
300
+ * Proof. Its trust policy is outside this verifier.
301
+ */
302
+ readonly type: "unsecuredCollection";
303
+ } | {
304
+ /** The portable document is a core type outside FEP-ef61 proof policy. */readonly type: "unsupportedObjectType"; /** The FEP-2277 core type of the document. */
305
+ readonly objectType: "verificationMethod" | "publicKey" | "link";
306
+ } | {
307
+ /** A portable actor, activity, or object has no proof. */readonly type: "missingProof";
308
+ } | {
309
+ /** The proof is malformed, unsupported, or cryptographically invalid. */readonly type: "invalidProof"; /** The zero-based index of the invalid proof. */
310
+ readonly proofIndex: number;
311
+ } | {
312
+ /** The proof's verification method is not a valid DID URL. */readonly type: "unsupportedVerificationMethod"; /** The zero-based index of the proof. */
313
+ readonly proofIndex: number; /** The unsupported verification method. */
314
+ readonly verificationMethod: URL;
315
+ } | {
316
+ /** The verification method DID does not match the portable ID authority. */readonly type: "verificationMethodMismatch"; /** The zero-based index of the proof. */
317
+ readonly proofIndex: number; /** The portable object ID. */
318
+ readonly objectId: URL; /** The mismatching verification method. */
319
+ readonly verificationMethod: URL;
320
+ };
321
+ /**
322
+ * The detailed result of {@link verifyPortableObjectProof}.
323
+ * @since 2.4.0
324
+ */
325
+ type VerifyPortableObjectProofResult = {
326
+ /** Whether every Object Integrity Proof was verified. */readonly verified: true; /** The public keys used by the verified proofs, in proof order. */
327
+ readonly keys: readonly Multikey[];
328
+ } | {
329
+ /** Whether every Object Integrity Proof was verified. */readonly verified: false; /** Why portable proof verification did not succeed. */
330
+ readonly reason: VerifyPortableObjectProofFailureReason;
331
+ };
332
+ /**
274
333
  * Verifies the given proof for the object.
275
- * @param jsonLd The JSON-LD object to verify the proof for. If it contains
276
- * any proofs, they will be ignored.
334
+ * @param jsonLd The JSON-LD object to verify the proof for. Its proof
335
+ * properties are excluded from the message, but matching proof
336
+ * occurrences are used to authenticate the received proof
337
+ * configuration.
277
338
  * @param proof The proof to verify.
278
339
  * @param options Additional options. See also {@link VerifyProofOptions}.
279
340
  * @returns The public key that was used to sign the proof, or `null` if the
280
341
  * proof is invalid.
281
342
  * @since 0.10.0
343
+ * @since 2.4.0 Matching proof configurations are authenticated.
282
344
  */
283
345
  declare function verifyProof(jsonLd: unknown, proof: DataIntegrityProof, options?: VerifyProofOptions): Promise<Multikey | null>;
284
346
  /**
347
+ * Verifies the FEP-ef61 Object Integrity Proof policy for a portable object.
348
+ *
349
+ * This applies the FEP-2277 core-type classification to the top-level JSON-LD
350
+ * node. Portable actors, activities, and objects require proofs. A portable
351
+ * collection without a proof is reported separately so a caller can apply a
352
+ * gateway trust policy. Embedded portable objects are not traversed.
353
+ *
354
+ * Every proof must use a DID URL whose DID matches the portable object's
355
+ * authority, and every proof must pass {@link verifyProof}.
356
+ *
357
+ * @param jsonLd The JSON-LD document to verify.
358
+ * @param options Additional options. See also
359
+ * {@link VerifyPortableObjectProofOptions}.
360
+ * @returns The detailed portable proof-policy result.
361
+ * @throws {TypeError} If the input is not a single JSON-LD object or has a
362
+ * malformed portable ID.
363
+ * @since 2.4.0
364
+ */
365
+ declare function verifyPortableObjectProof(jsonLd: unknown, options?: VerifyPortableObjectProofOptions): Promise<VerifyPortableObjectProofResult>;
366
+ /**
285
367
  * Options for {@link verifyObject}.
286
368
  * @since 0.10.0
287
369
  */
@@ -304,4 +386,4 @@ declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) =>
304
386
  fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
305
387
  }, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
306
388
  //#endregion
307
- export { hasSignatureLike as _, createProof as a, verifySignature as b, verifyObject as c, SignJsonLdOptions as d, VerifyJsonLdOptions as f, detachSignature as g, createSignature as h, VerifyProofOptions as i, verifyProof as l, attachSignature as m, SignObjectOptions as n, hasProofLike as o, VerifySignatureOptions as p, VerifyObjectOptions as r, signObject as s, CreateProofOptions as t, CreateSignatureOptions as u, signJsonLd as v, verifyJsonLd as y };
389
+ export { verifyJsonLd as C, signJsonLd as S, VerifySignatureOptions as _, VerifyPortableObjectProofOptions as a, detachSignature as b, createProof as c, verifyObject as d, verifyPortableObjectProof as f, VerifyJsonLdOptions as g, SignJsonLdOptions as h, VerifyPortableObjectProofFailureReason as i, hasProofLike as l, CreateSignatureOptions as m, SignObjectOptions as n, VerifyPortableObjectProofResult as o, verifyProof as p, VerifyObjectOptions as r, VerifyProofOptions as s, CreateProofOptions as t, signObject as u, attachSignature as v, verifySignature as w, hasSignatureLike as x, createSignature as y };
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Mt as WebFingerLinksDispatcher, ct as ActorAliasMapper, l as RequestContext, lt as ActorDispatcher, ut as ActorHandleMapper } from "./context-C05Rgxmu.cjs";
2
+ import { _t as ActorHandleMapper, gt as ActorDispatcher, ht as ActorAliasMapper, l as RequestContext, zt as WebFingerLinksDispatcher } from "./context-B-dsBjZ9.cjs";
3
3
  import { MeterProvider, Span, Tracer } from "@opentelemetry/api";
4
4
  import { RouterError, RouterOptions, RouterRouteResult } from "@fedify/uri-template";
5
5
 
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Mt as WebFingerLinksDispatcher, ct as ActorAliasMapper, l as RequestContext, lt as ActorDispatcher, ut as ActorHandleMapper } from "./context-Cjnr0ig1.js";
2
+ import { _t as ActorHandleMapper, gt as ActorDispatcher, ht as ActorAliasMapper, l as RequestContext, zt as WebFingerLinksDispatcher } from "./context-DrLXudbA.js";
3
3
  import { RouterError, RouterOptions, RouterRouteResult } from "@fedify/uri-template";
4
4
  import { MeterProvider, Span, Tracer } from "@opentelemetry/api";
5
5
 
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as HttpMessageSignaturesSpecDeterminer } from "./http-lf8Hsd91.js";
3
- import { n as KvStore, t as KvKey } from "./kv-D6hNiMTK.js";
4
- import { t as DocumentFetchKind } from "./metrics-v_e0n5GQ.js";
2
+ import { n as HttpMessageSignaturesSpecDeterminer } from "./http-CdrSn2ip.js";
3
+ import { n as KvStore, t as KvKey } from "./kv-BhNbN8Ed.js";
4
+ import { t as DocumentFetchKind } from "./metrics-DoRtI0qU.js";
5
5
  import { MeterProvider, TracerProvider } from "@opentelemetry/api";
6
6
  import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
7
7
 
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { S as KeyCache } from "./http-lf8Hsd91.js";
2
+ import { S as KeyCache } from "./http-CdrSn2ip.js";
3
3
  import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
4
4
  import { MeterProvider, TracerProvider } from "@opentelemetry/api";
5
5
  import { DocumentLoader } from "@fedify/vocab-runtime";
@@ -244,6 +244,18 @@ declare function signObject<T extends Object$1>(object: T, privateKey: CryptoKey
244
244
  * @since 0.10.0
245
245
  */
246
246
  interface VerifyProofOptions {
247
+ /**
248
+ * The security domain expected by the verifier. When specified, it must
249
+ * contain the same strings as the proof's `domain` option.
250
+ * @since 2.4.0
251
+ */
252
+ domain?: string | readonly string[];
253
+ /**
254
+ * The challenge expected by the verifier. When specified, it must exactly
255
+ * match the proof's `challenge` option.
256
+ * @since 2.4.0
257
+ */
258
+ challenge?: string;
247
259
  /**
248
260
  * The context loader for loading remote JSON-LD contexts.
249
261
  */
@@ -271,17 +283,87 @@ interface VerifyProofOptions {
271
283
  meterProvider?: MeterProvider;
272
284
  }
273
285
  /**
286
+ * Options for {@link verifyPortableObjectProof}.
287
+ * @since 2.4.0
288
+ */
289
+ interface VerifyPortableObjectProofOptions extends VerifyProofOptions {}
290
+ /**
291
+ * The reason why {@link verifyPortableObjectProof} could not verify a portable
292
+ * object proof.
293
+ * @since 2.4.0
294
+ */
295
+ type VerifyPortableObjectProofFailureReason = {
296
+ /** The document does not have a portable `ap:` or `ap+ef61:` ID. */readonly type: "notPortableObject";
297
+ } | {
298
+ /**
299
+ * The document is a portable collection without an Object Integrity
300
+ * Proof. Its trust policy is outside this verifier.
301
+ */
302
+ readonly type: "unsecuredCollection";
303
+ } | {
304
+ /** The portable document is a core type outside FEP-ef61 proof policy. */readonly type: "unsupportedObjectType"; /** The FEP-2277 core type of the document. */
305
+ readonly objectType: "verificationMethod" | "publicKey" | "link";
306
+ } | {
307
+ /** A portable actor, activity, or object has no proof. */readonly type: "missingProof";
308
+ } | {
309
+ /** The proof is malformed, unsupported, or cryptographically invalid. */readonly type: "invalidProof"; /** The zero-based index of the invalid proof. */
310
+ readonly proofIndex: number;
311
+ } | {
312
+ /** The proof's verification method is not a valid DID URL. */readonly type: "unsupportedVerificationMethod"; /** The zero-based index of the proof. */
313
+ readonly proofIndex: number; /** The unsupported verification method. */
314
+ readonly verificationMethod: URL;
315
+ } | {
316
+ /** The verification method DID does not match the portable ID authority. */readonly type: "verificationMethodMismatch"; /** The zero-based index of the proof. */
317
+ readonly proofIndex: number; /** The portable object ID. */
318
+ readonly objectId: URL; /** The mismatching verification method. */
319
+ readonly verificationMethod: URL;
320
+ };
321
+ /**
322
+ * The detailed result of {@link verifyPortableObjectProof}.
323
+ * @since 2.4.0
324
+ */
325
+ type VerifyPortableObjectProofResult = {
326
+ /** Whether every Object Integrity Proof was verified. */readonly verified: true; /** The public keys used by the verified proofs, in proof order. */
327
+ readonly keys: readonly Multikey[];
328
+ } | {
329
+ /** Whether every Object Integrity Proof was verified. */readonly verified: false; /** Why portable proof verification did not succeed. */
330
+ readonly reason: VerifyPortableObjectProofFailureReason;
331
+ };
332
+ /**
274
333
  * Verifies the given proof for the object.
275
- * @param jsonLd The JSON-LD object to verify the proof for. If it contains
276
- * any proofs, they will be ignored.
334
+ * @param jsonLd The JSON-LD object to verify the proof for. Its proof
335
+ * properties are excluded from the message, but matching proof
336
+ * occurrences are used to authenticate the received proof
337
+ * configuration.
277
338
  * @param proof The proof to verify.
278
339
  * @param options Additional options. See also {@link VerifyProofOptions}.
279
340
  * @returns The public key that was used to sign the proof, or `null` if the
280
341
  * proof is invalid.
281
342
  * @since 0.10.0
343
+ * @since 2.4.0 Matching proof configurations are authenticated.
282
344
  */
283
345
  declare function verifyProof(jsonLd: unknown, proof: DataIntegrityProof, options?: VerifyProofOptions): Promise<Multikey | null>;
284
346
  /**
347
+ * Verifies the FEP-ef61 Object Integrity Proof policy for a portable object.
348
+ *
349
+ * This applies the FEP-2277 core-type classification to the top-level JSON-LD
350
+ * node. Portable actors, activities, and objects require proofs. A portable
351
+ * collection without a proof is reported separately so a caller can apply a
352
+ * gateway trust policy. Embedded portable objects are not traversed.
353
+ *
354
+ * Every proof must use a DID URL whose DID matches the portable object's
355
+ * authority, and every proof must pass {@link verifyProof}.
356
+ *
357
+ * @param jsonLd The JSON-LD document to verify.
358
+ * @param options Additional options. See also
359
+ * {@link VerifyPortableObjectProofOptions}.
360
+ * @returns The detailed portable proof-policy result.
361
+ * @throws {TypeError} If the input is not a single JSON-LD object or has a
362
+ * malformed portable ID.
363
+ * @since 2.4.0
364
+ */
365
+ declare function verifyPortableObjectProof(jsonLd: unknown, options?: VerifyPortableObjectProofOptions): Promise<VerifyPortableObjectProofResult>;
366
+ /**
285
367
  * Options for {@link verifyObject}.
286
368
  * @since 0.10.0
287
369
  */
@@ -304,4 +386,4 @@ declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) =>
304
386
  fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
305
387
  }, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
306
388
  //#endregion
307
- export { hasSignatureLike as _, createProof as a, verifySignature as b, verifyObject as c, SignJsonLdOptions as d, VerifyJsonLdOptions as f, detachSignature as g, createSignature as h, VerifyProofOptions as i, verifyProof as l, attachSignature as m, SignObjectOptions as n, hasProofLike as o, VerifySignatureOptions as p, VerifyObjectOptions as r, signObject as s, CreateProofOptions as t, CreateSignatureOptions as u, signJsonLd as v, verifyJsonLd as y };
389
+ export { verifyJsonLd as C, signJsonLd as S, VerifySignatureOptions as _, VerifyPortableObjectProofOptions as a, detachSignature as b, createProof as c, verifyObject as d, verifyPortableObjectProof as f, VerifyJsonLdOptions as g, SignJsonLdOptions as h, VerifyPortableObjectProofFailureReason as i, hasProofLike as l, CreateSignatureOptions as m, SignObjectOptions as n, VerifyPortableObjectProofResult as o, verifyProof as p, VerifyObjectOptions as r, VerifyProofOptions as s, CreateProofOptions as t, signObject as u, attachSignature as v, verifySignature as w, hasSignatureLike as x, createSignature as y };
package/dist/mod.cjs CHANGED
@@ -1,37 +1,36 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("./chunk-Czpeue4M.cjs");
4
- const require_transformers = require("./transformers-DGwl-hD1.cjs");
3
+ require("./rolldown-runtime-Dmm3t92W.cjs");
4
+ const require_transformers = require("./transformers-BalCrSsr.cjs");
5
5
  require("./compat/mod.cjs");
6
- const require_http = require("./http-BpT5cE6r.cjs");
7
- const require_middleware = require("./middleware-DzIUFRO2.cjs");
8
- const require_proof = require("./proof-a60oVJ_4.cjs");
9
- const require_types = require("./types-CPym83zc.cjs");
10
- const require_kv_cache = require("./kv-cache-zmgG1HUp.cjs");
11
- const require_federation_mod = require("./federation/mod.cjs");
6
+ const require_http = require("./http-DggG1scN.cjs");
7
+ const require_federation = require("./federation-BJBpt_Am.cjs");
8
+ const require_proof = require("./proof-Cqk2TcLX.cjs");
9
+ const require_types = require("./types-RXm5YxpC.cjs");
10
+ const require_kv_cache = require("./kv-cache-C4U_uBqD.cjs");
12
11
  require("./nodeinfo/mod.cjs");
13
12
  require("./runtime/mod.cjs");
14
13
  require("./sig/mod.cjs");
15
14
  require("./utils/mod.cjs");
16
15
  //#endregion
17
- exports.CircuitBreaker = require_middleware.CircuitBreaker;
18
- exports.InProcessMessageQueue = require_federation_mod.InProcessMessageQueue;
19
- exports.MemoryKvStore = require_federation_mod.MemoryKvStore;
20
- exports.ParallelMessageQueue = require_federation_mod.ParallelMessageQueue;
21
- exports.Router = require_federation_mod.Router;
22
- exports.RouterError = require_federation_mod.RouterError;
23
- exports.SendActivityError = require_middleware.SendActivityError;
16
+ exports.CircuitBreaker = require_federation.CircuitBreaker;
17
+ exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
18
+ exports.MemoryKvStore = require_federation.MemoryKvStore;
19
+ exports.ParallelMessageQueue = require_federation.ParallelMessageQueue;
20
+ exports.Router = require_federation.Router;
21
+ exports.RouterError = require_federation.RouterError;
22
+ exports.SendActivityError = require_federation.SendActivityError;
24
23
  exports.actorDehydrator = require_transformers.actorDehydrator;
25
24
  exports.attachSignature = require_proof.attachSignature;
26
25
  exports.autoIdAssigner = require_transformers.autoIdAssigner;
27
- exports.buildCollectionSynchronizationHeader = require_middleware.buildCollectionSynchronizationHeader;
28
- exports.createExponentialBackoffPolicy = require_middleware.createExponentialBackoffPolicy;
29
- exports.createFederation = require_middleware.createFederation;
30
- exports.createFederationBuilder = require_middleware.createFederationBuilder;
26
+ exports.buildCollectionSynchronizationHeader = require_federation.buildCollectionSynchronizationHeader;
27
+ exports.createExponentialBackoffPolicy = require_federation.createExponentialBackoffPolicy;
28
+ exports.createFederation = require_federation.createFederation;
29
+ exports.createFederationBuilder = require_federation.createFederationBuilder;
31
30
  exports.createProof = require_proof.createProof;
32
31
  exports.createSignature = require_proof.createSignature;
33
32
  exports.detachSignature = require_proof.detachSignature;
34
- exports.digest = require_middleware.digest;
33
+ exports.digest = require_federation.digest;
35
34
  exports.doesActorOwnKey = require_proof.doesActorOwnKey;
36
35
  exports.exportJwk = require_http.exportJwk;
37
36
  exports.fetchKey = require_http.fetchKey;
@@ -43,24 +42,25 @@ exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocume
43
42
  exports.getDefaultActivityTransformers = require_transformers.getDefaultActivityTransformers;
44
43
  exports.getKeyOwner = require_proof.getKeyOwner;
45
44
  exports.getNodeInfo = require_types.getNodeInfo;
46
- exports.handleWebFinger = require_middleware.handleWebFinger;
45
+ exports.handleWebFinger = require_federation.handleWebFinger;
47
46
  exports.hasProofLike = require_proof.hasProofLike;
48
47
  exports.hasSignatureLike = require_proof.hasSignatureLike;
49
48
  exports.importJwk = require_http.importJwk;
50
49
  exports.kvCache = require_kv_cache.kvCache;
51
50
  exports.nodeInfoToJson = require_types.nodeInfoToJson;
52
- exports.normalizeCircuitBreakerOptions = require_middleware.normalizeCircuitBreakerOptions;
51
+ exports.normalizeCircuitBreakerOptions = require_federation.normalizeCircuitBreakerOptions;
53
52
  exports.parseAcceptSignature = require_http.parseAcceptSignature;
54
- exports.parseCircuitBreakerKvState = require_middleware.parseCircuitBreakerKvState;
53
+ exports.parseCircuitBreakerKvState = require_federation.parseCircuitBreakerKvState;
55
54
  exports.parseNodeInfo = require_types.parseNodeInfo;
56
- exports.respondWithObject = require_middleware.respondWithObject;
57
- exports.respondWithObjectIfAcceptable = require_middleware.respondWithObjectIfAcceptable;
55
+ exports.respondWithObject = require_federation.respondWithObject;
56
+ exports.respondWithObjectIfAcceptable = require_federation.respondWithObjectIfAcceptable;
58
57
  exports.signJsonLd = require_proof.signJsonLd;
59
58
  exports.signObject = require_proof.signObject;
60
59
  exports.signRequest = require_http.signRequest;
61
60
  exports.validateAcceptSignature = require_http.validateAcceptSignature;
62
61
  exports.verifyJsonLd = require_proof.verifyJsonLd;
63
62
  exports.verifyObject = require_proof.verifyObject;
63
+ exports.verifyPortableObjectProof = require_proof.verifyPortableObjectProof;
64
64
  exports.verifyProof = require_proof.verifyProof;
65
65
  exports.verifyRequest = require_http.verifyRequest;
66
66
  exports.verifyRequestDetailed = require_http.verifyRequestDetailed;
package/dist/mod.d.cts CHANGED
@@ -1,19 +1,18 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-CAM_bQXx.cjs";
3
- import { C as exportJwk, D as importJwk, E as generateCryptoKeyPair, S as KeyCache, T as fetchKeyDetailed, _ as validateAcceptSignature, a as VerifyRequestDetailedResult, b as FetchKeyOptions, c as signRequest, d as AcceptSignatureMember, f as AcceptSignatureParameters, g as parseAcceptSignature, h as fulfillAcceptSignature, i as SignRequestOptions, l as verifyRequest, m as formatAcceptSignature, n as HttpMessageSignaturesSpecDeterminer, o as VerifyRequestFailureReason, p as FulfillAcceptSignatureResult, r as Rfc9421SignRequestOptions, s as VerifyRequestOptions, t as HttpMessageSignaturesSpec, u as verifyRequestDetailed, v as FetchKeyDetailedResult, w as fetchKey, x as FetchKeyResult, y as FetchKeyErrorResult } from "./http-VyDTd4G3.cjs";
4
- import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-DEvZuyOE.cjs";
5
- import { $ as CircuitBreakerCreateOptions, A as OutboxListenerSetters, At as UnverifiedActivityHandler, B as TaskEnqueueOptions, C as FederationStartQueueOptions, Ct as ObjectAuthorizePredicate, D as InboxListenerSetters, Dt as OutboxListenerErrorHandler, E as InboxChallengePolicy, Et as OutboxListener, F as createFederation, Ft as PageItems, G as RetryPolicy, H as TaskRegistry, I as Message, It as buildCollectionSynchronizationHeader, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as digest, M as FederationKvPrefixes, Mt as WebFingerLinksDispatcher, N as FederationOrigin, Nt as SendActivityError, O as MediaUploaderSetters, Ot as OutboxPermanentFailureHandler, P as FederationQueueOptions, Pt as SenderKeyPair, Q as CircuitBreakerBeforeSendDecision, R as TaskDefinition, Rt as ActivityTransformer, S as FederationOptions, St as NodeInfoDispatcher, T as IdempotencyStrategy, Tt as OutboxErrorHandler, U as CreateExponentialBackoffPolicyOptions, V as TaskHandler, W as RetryContext, X as CircuitBreaker, Y as respondWithObjectIfAcceptable, Z as CircuitBreakerActivityDrop, _ as Federatable, _t as CustomCollectionCursor, a as GetSignedKeyOptions, at as NormalizedCircuitBreakerOptions, b as FederationBuilder, bt as InboxListener, c as ParseUriResult, ct as ActorAliasMapper, d as SendActivityOptions, dt as ActorKeyPairsDispatcher, et as CircuitBreakerFailurePolicy, f as SendActivityOptionsForCollection, ft as AuthorizePredicate, g as CustomCollectionCallbackSetters, gt as CustomCollectionCounter, h as ConstructorWithTypeId, ht as CollectionDispatcher, i as GetActorOptions, it as CircuitBreakerStateChange, j as Rfc6570Expression, jt as UnverifiedActivityReason, k as ObjectCallbackSetters, kt as SharedInboxKeyDispatcher, l as RequestContext, lt as ActorDispatcher, m as CollectionCallbackSetters, mt as CollectionCursor, n as Context, nt as CircuitBreakerOptions, o as InboxContext, ot as normalizeCircuitBreakerOptions, p as ActorCallbackSetters, pt as CollectionCounter, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreakerState, s as OutboxContext, st as parseCircuitBreakerKvState, t as ActorKeyPair, tt as CircuitBreakerKvState, u as RouteActivityOptions, ut as ActorHandleMapper, v as Federation, vt as CustomCollectionDispatcher, w as IdempotencyKeyCallback, wt as ObjectDispatcher, x as FederationFetchOptions, xt as MediaUploaderCallback, y as FederationBenchmarkOptions, yt as InboxErrorHandler, z as TaskDefinitionOptions } from "./context-C05Rgxmu.cjs";
6
- import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-gJ8LYbxX.cjs";
7
- import { a as MessageQueueDepth, c as ParallelMessageQueue, i as MessageQueue, n as InProcessMessageQueue, o as MessageQueueEnqueueOptions, r as InProcessMessageQueueOptions, s as MessageQueueListenOptions } from "./metrics-DN13mCAw.cjs";
2
+ import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-D-XP_Ccb.cjs";
3
+ import { C as exportJwk, D as importJwk, E as generateCryptoKeyPair, S as KeyCache, T as fetchKeyDetailed, _ as validateAcceptSignature, a as VerifyRequestDetailedResult, b as FetchKeyOptions, c as signRequest, d as AcceptSignatureMember, f as AcceptSignatureParameters, g as parseAcceptSignature, h as fulfillAcceptSignature, i as SignRequestOptions, l as verifyRequest, m as formatAcceptSignature, n as HttpMessageSignaturesSpecDeterminer, o as VerifyRequestFailureReason, p as FulfillAcceptSignatureResult, r as Rfc9421SignRequestOptions, s as VerifyRequestOptions, t as HttpMessageSignaturesSpec, u as verifyRequestDetailed, v as FetchKeyDetailedResult, w as fetchKey, x as FetchKeyResult, y as FetchKeyErrorResult } from "./http-6TI0tI03.cjs";
4
+ import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-r_waTiQj.cjs";
5
+ import { $ as MessageQueueDepth, A as OutboxListenerSetters, At as ObjectAuthorizePredicate, B as TaskEnqueueOptions, Bt as SendActivityError, C as FederationStartQueueOptions, Ct as CustomCollectionCounter, D as InboxListenerSetters, Dt as InboxListener, E as InboxChallengePolicy, Et as InboxErrorHandler, F as createFederation, Ft as OutboxPermanentFailureHandler, G as RetryPolicy, Gt as ActivityTransformer, H as TaskRegistry, Ht as PageItems, I as Message, It as SharedInboxKeyDispatcher, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as UnverifiedActivityHandler, M as FederationKvPrefixes, Mt as OutboxErrorHandler, N as FederationOrigin, Nt as OutboxListener, O as MediaUploaderSetters, Ot as MediaUploaderCallback, P as FederationQueueOptions, Pt as OutboxListenerErrorHandler, Q as MessageQueue, R as TaskDefinition, Rt as UnverifiedActivityReason, S as FederationOptions, St as CollectionDispatcher, T as IdempotencyStrategy, Tt as CustomCollectionDispatcher, U as CreateExponentialBackoffPolicyOptions, Ut as buildCollectionSynchronizationHeader, V as TaskHandler, Vt as SenderKeyPair, W as RetryContext, Wt as digest, X as InProcessMessageQueue, Y as respondWithObjectIfAcceptable, Z as InProcessMessageQueueOptions, _ as Federatable, _t as ActorHandleMapper, a as GetSignedKeyOptions, at as CircuitBreakerBeforeSendDecision, b as FederationBuilder, bt as CollectionCounter, c as ParseUriResult, ct as CircuitBreakerKvState, d as SendActivityOptions, dt as CircuitBreakerStateChange, et as MessageQueueEnqueueOptions, f as SendActivityOptionsForCollection, ft as NormalizedCircuitBreakerOptions, g as CustomCollectionCallbackSetters, gt as ActorDispatcher, h as ConstructorWithTypeId, ht as ActorAliasMapper, i as GetActorOptions, it as CircuitBreakerActivityDrop, j as Rfc6570Expression, jt as ObjectDispatcher, k as ObjectCallbackSetters, kt as NodeInfoDispatcher, l as RequestContext, lt as CircuitBreakerOptions, m as CollectionCallbackSetters, mt as parseCircuitBreakerKvState, n as Context, nt as ParallelMessageQueue, o as InboxContext, ot as CircuitBreakerCreateOptions, p as ActorCallbackSetters, pt as normalizeCircuitBreakerOptions, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreaker, s as OutboxContext, st as CircuitBreakerFailurePolicy, t as ActorKeyPair, tt as MessageQueueListenOptions, u as RouteActivityOptions, ut as CircuitBreakerState, v as Federation, vt as ActorKeyPairsDispatcher, w as IdempotencyKeyCallback, wt as CustomCollectionCursor, x as FederationFetchOptions, xt as CollectionCursor, y as FederationBenchmarkOptions, yt as AuthorizePredicate, z as TaskDefinitionOptions, zt as WebFingerLinksDispatcher } from "./context-B-dsBjZ9.cjs";
6
+ import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-BhNbN8Ed.cjs";
8
7
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.cjs";
9
- import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-DdONo-ep.cjs";
10
- import { _ as hasSignatureLike, a as createProof, b as verifySignature, c as verifyObject, d as SignJsonLdOptions, f as VerifyJsonLdOptions, g as detachSignature, h as createSignature, i as VerifyProofOptions, l as verifyProof, m as attachSignature, n as SignObjectOptions, o as hasProofLike, p as VerifySignatureOptions, r as VerifyObjectOptions, s as signObject, t as CreateProofOptions, u as CreateSignatureOptions, v as signJsonLd, y as verifyJsonLd } from "./mod-B0hW12_O.cjs";
11
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-BrpVsSfY.cjs";
8
+ import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-D-abvu2C.cjs";
9
+ import { C as verifyJsonLd, S as signJsonLd, _ as VerifySignatureOptions, a as VerifyPortableObjectProofOptions, b as detachSignature, c as createProof, d as verifyObject, f as verifyPortableObjectProof, g as VerifyJsonLdOptions, h as SignJsonLdOptions, i as VerifyPortableObjectProofFailureReason, l as hasProofLike, m as CreateSignatureOptions, n as SignObjectOptions, o as VerifyPortableObjectProofResult, p as verifyProof, r as VerifyObjectOptions, s as VerifyProofOptions, t as CreateProofOptions, u as signObject, v as attachSignature, w as verifySignature, x as hasSignatureLike, y as createSignature } from "./mod-CnGLNoVw.cjs";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-CLHkCwLm.cjs";
12
11
  export * from "@fedify/vocab-runtime";
13
12
 
14
13
  //#region src/mod.d.ts
15
14
  declare namespace mod_d_exports {
16
- export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetActorOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, hasProofLike, hasSignatureLike, importJwk, kvCache, nodeInfoToJson, normalizeCircuitBreakerOptions, parseAcceptSignature, parseCircuitBreakerKvState, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
15
+ export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetActorOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyPortableObjectProofFailureReason, VerifyPortableObjectProofOptions, VerifyPortableObjectProofResult, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, hasProofLike, hasSignatureLike, importJwk, kvCache, nodeInfoToJson, normalizeCircuitBreakerOptions, parseAcceptSignature, parseCircuitBreakerKvState, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyPortableObjectProof, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
17
16
  }
18
17
  //#endregion
19
- export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetActorOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, hasProofLike, hasSignatureLike, importJwk, kvCache, nodeInfoToJson, normalizeCircuitBreakerOptions, parseAcceptSignature, parseCircuitBreakerKvState, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
18
+ export { AcceptSignatureMember, AcceptSignatureParameters, ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyDetailedResult, FetchKeyErrorResult, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, FulfillAcceptSignatureResult, GetActorOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, Rfc9421SignRequestOptions, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyPortableObjectProofFailureReason, VerifyPortableObjectProofOptions, VerifyPortableObjectProofResult, VerifyProofOptions, VerifyRequestDetailedResult, VerifyRequestFailureReason, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, hasProofLike, hasSignatureLike, importJwk, kvCache, nodeInfoToJson, normalizeCircuitBreakerOptions, parseAcceptSignature, parseCircuitBreakerKvState, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyPortableObjectProof, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };