@fedify/fedify 2.2.0 → 2.2.2

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 (87) hide show
  1. package/dist/{builder-DPgHJ5o_.mjs → builder-Bw2K7xaq.mjs} +2 -2
  2. package/dist/{chunk-nlSIicah.js → chunk-CRNNMoPX.js} +2 -2
  3. package/dist/{client-z-8dc-e1.d.cts → client-CAM_bQXx.d.cts} +1 -0
  4. package/dist/{client-AtlibPOU.d.ts → client-CSddvgWN.d.ts} +1 -2
  5. package/dist/compat/mod.d.cts +2 -1
  6. package/dist/compat/mod.d.ts +2 -3
  7. package/dist/compat/mod.js +3 -3
  8. package/dist/compat/transformers.test.mjs +1 -1
  9. package/dist/{context-DJGagtNd.d.cts → context-BPMgyX7m.d.ts} +6 -5
  10. package/dist/{context-BzH2-ajs.d.ts → context-DwkhwUX9.d.cts} +6 -7
  11. package/dist/{deno-_w-iVcdO.mjs → deno-DCXSCeB3.mjs} +1 -1
  12. package/dist/{docloader-6U94xZpT.mjs → docloader-BqX3RfO-.mjs} +2 -2
  13. package/dist/federation/builder.test.mjs +1 -1
  14. package/dist/federation/handler.test.mjs +2 -2
  15. package/dist/federation/idempotency.test.mjs +2 -2
  16. package/dist/federation/middleware.test.mjs +6 -6
  17. package/dist/federation/mod.cjs +1 -1
  18. package/dist/federation/mod.d.cts +4 -3
  19. package/dist/federation/mod.d.ts +4 -5
  20. package/dist/federation/mod.js +2 -2
  21. package/dist/federation/send.test.mjs +3 -3
  22. package/dist/federation/webfinger.test.mjs +1 -1
  23. package/dist/{http-CrGuipxe.d.cts → http-BDZeS5om.d.ts} +2 -1
  24. package/dist/{http-DfbPyJdT.mjs → http-Bslazr8_.mjs} +58 -10
  25. package/dist/{http-aQzN9Ayi.d.ts → http-C87EWkO0.d.cts} +2 -3
  26. package/dist/{http-BJEiRovv.cjs → http-DhcDuRya.cjs} +57 -9
  27. package/dist/{http-DL2gLW-Q.js → http-FZD1s7yO.js} +58 -10
  28. package/dist/{key-oqniN9pm.mjs → key-Dk8-s0bs.mjs} +1 -1
  29. package/dist/{kv-CbLNp3zQ.d.cts → kv-D6hNiMTK.d.ts} +1 -0
  30. package/dist/{kv-cache-DBPfVPsx.js → kv-cache-BYBaA6NP.js} +2 -2
  31. package/dist/{kv-cache-CsLyBv6_.cjs → kv-cache-Csre9hbs.cjs} +2 -2
  32. package/dist/{kv-cache-U__xU4qR.mjs → kv-cache-DYsF2MhP.mjs} +1 -1
  33. package/dist/{kv-GFYnFoOl.d.ts → kv-gJ8LYbxX.d.cts} +1 -3
  34. package/dist/{ld-DXwhdVuu.mjs → ld-BPA4jaBc.mjs} +2 -2
  35. package/dist/{middleware-BOV-iBXF.mjs → middleware-AO-0hf_I.mjs} +10 -10
  36. package/dist/{middleware-CcyI5ZB-.js → middleware-BEw9z4kK.js} +7 -7
  37. package/dist/{middleware-GnTsk2j7.mjs → middleware-CDwTn0jH.mjs} +1 -1
  38. package/dist/{middleware-bZpyiB8S.cjs → middleware-D5H3hLTL.cjs} +1 -1
  39. package/dist/{middleware-D5TtCEtU.cjs → middleware-DBU9HFil.cjs} +4 -4
  40. package/dist/{mod-CLgIXe9w.d.ts → mod-B0rWmfW5.d.cts} +4 -5
  41. package/dist/{mod-CMEbIaNh.d.cts → mod-BhU_H1I_.d.ts} +4 -3
  42. package/dist/{mod-2d12ffz3.d.ts → mod-Bi6WOdti.d.cts} +2 -3
  43. package/dist/{mod-D35TRn09.d.cts → mod-CNAHY39V.d.ts} +2 -1
  44. package/dist/{mod-Cr3f-ACa.d.cts → mod-DHO9lk3D.d.ts} +3 -2
  45. package/dist/{mod-CR8soWa9.d.ts → mod-DXY9JF28.d.cts} +3 -4
  46. package/dist/mod.cjs +4 -4
  47. package/dist/mod.d.cts +9 -8
  48. package/dist/mod.d.ts +9 -10
  49. package/dist/mod.js +9 -9
  50. package/dist/nodeinfo/handler.test.mjs +1 -1
  51. package/dist/nodeinfo/mod.d.cts +2 -1
  52. package/dist/nodeinfo/mod.d.ts +2 -3
  53. package/dist/nodeinfo/mod.js +3 -3
  54. package/dist/otel/mod.d.cts +2 -1
  55. package/dist/otel/mod.d.ts +2 -3
  56. package/dist/otel/mod.js +2 -2
  57. package/dist/{owner-CptqhsOy.d.cts → owner-CnngXDNJ.d.ts} +2 -1
  58. package/dist/{owner-74ARJ5TL.d.ts → owner-DEvZuyOE.d.cts} +2 -3
  59. package/dist/{owner-C-l7eGo5.mjs → owner-SWOTNh3d.mjs} +2 -2
  60. package/dist/{proof-vcC_p7Cg.mjs → proof-BMoWLd-F.mjs} +2 -2
  61. package/dist/{proof-CLd2ZZin.js → proof-BT_TJd2j.js} +2 -2
  62. package/dist/{proof-CrovtVDA.cjs → proof-e42uuEG9.cjs} +1 -1
  63. package/dist/runtime/mod.d.cts +1 -0
  64. package/dist/runtime/mod.d.ts +1 -2
  65. package/dist/runtime/mod.js +3 -3
  66. package/dist/{send-CqjPhWLS.mjs → send-ir10TETC.mjs} +2 -2
  67. package/dist/sig/http.test.mjs +120 -2
  68. package/dist/sig/key.test.mjs +1 -1
  69. package/dist/sig/ld.test.mjs +2 -2
  70. package/dist/sig/mod.cjs +2 -2
  71. package/dist/sig/mod.d.cts +4 -3
  72. package/dist/sig/mod.d.ts +4 -5
  73. package/dist/sig/mod.js +4 -4
  74. package/dist/sig/owner.test.mjs +1 -1
  75. package/dist/sig/proof.test.mjs +1 -1
  76. package/dist/{transformers-ve6e2xcg.js → transformers-BGMIq1cs.js} +2 -2
  77. package/dist/{types-hvL8ElAs.js → types-CAY3OdLq.js} +2 -2
  78. package/dist/utils/docloader.test.mjs +2 -2
  79. package/dist/utils/kv-cache.test.mjs +1 -1
  80. package/dist/utils/mod.cjs +1 -1
  81. package/dist/utils/mod.d.cts +2 -1
  82. package/dist/utils/mod.d.ts +2 -3
  83. package/dist/utils/mod.js +3 -3
  84. package/dist/vocab/mod.d.cts +1 -0
  85. package/dist/vocab/mod.d.ts +1 -2
  86. package/dist/vocab/mod.js +2 -2
  87. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
5
5
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -10,7 +10,7 @@ import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } fro
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "2.2.0";
13
+ var version = "2.2.2";
14
14
  //#endregion
15
15
  //#region src/sig/accept.ts
16
16
  /**
@@ -496,6 +496,7 @@ async function fetchKeyInternal(keyId, cls, options = {}) {
496
496
  //#endregion
497
497
  //#region src/sig/http.ts
498
498
  const DEFAULT_MAX_REDIRECTION = 20;
499
+ const DOUBLE_KNOCK_TRANSPORT_RETRY_DELAY_MS = 100;
499
500
  /**
500
501
  * Signs a request using the given private key.
501
502
  * @param request The request to sign.
@@ -1324,6 +1325,59 @@ function createRedirectRequest(request, location, body) {
1324
1325
  cache: request.cache
1325
1326
  });
1326
1327
  }
1328
+ async function fetchDoubleKnockRequest(request, signedRequest, signal) {
1329
+ const maxAttempts = request.method === "GET" || request.method === "HEAD" ? 2 : 1;
1330
+ for (let attempt = 1;; attempt++) try {
1331
+ return await fetch(signedRequest, {
1332
+ redirect: "manual",
1333
+ signal
1334
+ });
1335
+ } catch (error) {
1336
+ const abortedSignal = getAbortedSignal(signal, request.signal, signedRequest.signal);
1337
+ if (abortedSignal != null) throw getAbortReason(abortedSignal);
1338
+ if (isAbortError(error)) throw error;
1339
+ if (attempt >= maxAttempts) throw createFetchError(request.url, error);
1340
+ await sleep(DOUBLE_KNOCK_TRANSPORT_RETRY_DELAY_MS, signal, request.signal, signedRequest.signal);
1341
+ }
1342
+ }
1343
+ function createFetchError(url, cause) {
1344
+ const error = new FetchError(url, cause instanceof Error ? cause.message : String(cause));
1345
+ error.cause = cause;
1346
+ return error;
1347
+ }
1348
+ function isAbortError(error) {
1349
+ return error instanceof Error && error.name === "AbortError";
1350
+ }
1351
+ async function sleep(ms, ...signals) {
1352
+ const abortSignals = signals.filter((signal) => signal != null);
1353
+ const abortedSignal = getAbortedSignal(...abortSignals);
1354
+ if (abortedSignal != null) throw getAbortReason(abortedSignal);
1355
+ if (abortSignals.length < 1) {
1356
+ await new Promise((resolve) => setTimeout(resolve, ms));
1357
+ return;
1358
+ }
1359
+ await new Promise((resolve, reject) => {
1360
+ const removeAbortListeners = () => {
1361
+ for (const signal of abortSignals) signal.removeEventListener("abort", handleAbort);
1362
+ };
1363
+ const timeout = setTimeout(() => {
1364
+ removeAbortListeners();
1365
+ resolve();
1366
+ }, ms);
1367
+ function handleAbort(event) {
1368
+ clearTimeout(timeout);
1369
+ removeAbortListeners();
1370
+ reject(getAbortReason(event.currentTarget));
1371
+ }
1372
+ for (const signal of abortSignals) signal.addEventListener("abort", handleAbort, { once: true });
1373
+ });
1374
+ }
1375
+ function getAbortedSignal(...signals) {
1376
+ return signals.find((signal) => signal?.aborted);
1377
+ }
1378
+ function getAbortReason(signal) {
1379
+ return signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
1380
+ }
1327
1381
  /**
1328
1382
  * Performs a double-knock request to the given URL. For the details of
1329
1383
  * double-knocking, see
@@ -1350,10 +1404,7 @@ async function doubleKnockInternal(request, identity, options, redirected = 0, v
1350
1404
  body
1351
1405
  });
1352
1406
  log?.(signedRequest);
1353
- let response = await fetch(signedRequest, {
1354
- redirect: "manual",
1355
- signal
1356
- });
1407
+ let response = await fetchDoubleKnockRequest(request, signedRequest, signal);
1357
1408
  if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
1358
1409
  if (redirected >= maximumRedirection) throw new FetchError(request.url, `Too many redirections (${redirected + 1})`);
1359
1410
  const redirectRequest = createRedirectRequest(request, response.headers.get("Location"), body);
@@ -1428,10 +1479,7 @@ async function doubleKnockInternal(request, identity, options, redirected = 0, v
1428
1479
  body
1429
1480
  });
1430
1481
  log?.(signedRequest);
1431
- response = await fetch(signedRequest, {
1432
- redirect: "manual",
1433
- signal
1434
- });
1482
+ response = await fetchDoubleKnockRequest(request, signedRequest, signal);
1435
1483
  if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
1436
1484
  if (redirected >= maximumRedirection) throw new FetchError(request.url, `Too many redirections (${redirected + 1})`);
1437
1485
  const redirectRequest = createRedirectRequest(request, response.headers.get("Location"), body);
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-_w-iVcdO.mjs";
4
+ import { n as version, t as name } from "./deno-DCXSCeB3.mjs";
5
5
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  //#region src/federation/kv.d.ts
2
3
  /**
3
4
  * A key for a key–value store. An array of one or more strings.
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { d as validateCryptoKey, t as doubleKnock } from "./http-DL2gLW-Q.js";
3
+ import { d as validateCryptoKey, t as doubleKnock } from "./http-FZD1s7yO.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { curry } from "es-toolkit";
6
6
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -97,7 +97,7 @@ function kvCache({ loader, kv, prefix, rules }) {
97
97
  }
98
98
  function matchRule(url, rules) {
99
99
  for (const [pattern, d] of rules) {
100
- const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
100
+ const duration = Temporal.Duration.from(d);
101
101
  if (typeof pattern === "string") {
102
102
  if (url === pattern) return duration;
103
103
  continue;
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-BJEiRovv.cjs");
4
+ const require_http = require("./http-DhcDuRya.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
@@ -98,7 +98,7 @@ function kvCache({ loader, kv, prefix, rules }) {
98
98
  }
99
99
  function matchRule(url, rules) {
100
100
  for (const [pattern, d] of rules) {
101
- const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
101
+ const duration = Temporal.Duration.from(d);
102
102
  if (typeof pattern === "string") {
103
103
  if (url === pattern) return duration;
104
104
  continue;
@@ -86,7 +86,7 @@ function kvCache({ loader, kv, prefix, rules }) {
86
86
  }
87
87
  function matchRule(url, rules) {
88
88
  for (const [pattern, d] of rules) {
89
- const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
89
+ const duration = Temporal.Duration.from(d);
90
90
  if (typeof pattern === "string") {
91
91
  if (url === pattern) return duration;
92
92
  continue;
@@ -1,6 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
-
1
+ /// <reference lib="esnext.temporal" />
4
2
  //#region src/federation/kv.d.ts
5
3
  /**
6
4
  * A key for a key–value store. An array of one or more strings.
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-_w-iVcdO.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-oqniN9pm.mjs";
4
+ import { n as version, t as name } from "./deno-DCXSCeB3.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-Dk8-s0bs.mjs";
6
6
  import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -2,24 +2,24 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-_w-iVcdO.mjs";
5
+ import { n as version, t as name } from "./deno-DCXSCeB3.mjs";
6
6
  import { t as formatAcceptSignature } from "./accept-CPkZzmGN.mjs";
7
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-oqniN9pm.mjs";
8
- import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-DfbPyJdT.mjs";
9
- import { t as getAuthenticatedDocumentLoader } from "./docloader-6U94xZpT.mjs";
10
- import { n as kvCache } from "./kv-cache-U__xU4qR.mjs";
11
- import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-DXwhdVuu.mjs";
12
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-C-l7eGo5.mjs";
7
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-Dk8-s0bs.mjs";
8
+ import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-Bslazr8_.mjs";
9
+ import { t as getAuthenticatedDocumentLoader } from "./docloader-BqX3RfO-.mjs";
10
+ import { n as kvCache } from "./kv-cache-DYsF2MhP.mjs";
11
+ import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-BPA4jaBc.mjs";
12
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-SWOTNh3d.mjs";
13
13
  import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-CNmZLixq.mjs";
14
- import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-vcC_p7Cg.mjs";
14
+ import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-BMoWLd-F.mjs";
15
15
  import { t as getNodeInfo } from "./client-D_1QpnWt.mjs";
16
16
  import { t as nodeInfoToJson } from "./types-J53Kw7so.mjs";
17
- import { t as FederationBuilderImpl } from "./builder-DPgHJ5o_.mjs";
17
+ import { t as FederationBuilderImpl } from "./builder-Bw2K7xaq.mjs";
18
18
  import { t as buildCollectionSynchronizationHeader } from "./collection-D-HqUuA2.mjs";
19
19
  import { t as KvKeyCache } from "./keycache-EGATflN-.mjs";
20
20
  import { t as acceptsJsonLd } from "./negotiation-SQvQgUqe.mjs";
21
21
  import { t as createExponentialBackoffPolicy } from "./retry-bMXBL97A.mjs";
22
- import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-CqjPhWLS.mjs";
22
+ import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-ir10TETC.mjs";
23
23
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
24
24
  import { lookupWebFinger } from "@fedify/webfinger";
25
25
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -1,11 +1,11 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import { t as __exportAll } from "./chunk-nlSIicah.js";
4
- import { r as getDefaultActivityTransformers } from "./transformers-ve6e2xcg.js";
5
- import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-DL2gLW-Q.js";
6
- import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizeOutgoingActivityJsonLd, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-CLd2ZZin.js";
7
- import { n as getNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-DBPfVPsx.js";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { t as __exportAll } from "./chunk-CRNNMoPX.js";
4
+ import { r as getDefaultActivityTransformers } from "./transformers-BGMIq1cs.js";
5
+ import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-FZD1s7yO.js";
6
+ import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizeOutgoingActivityJsonLd, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-BT_TJd2j.js";
7
+ import { n as getNodeInfo, t as nodeInfoToJson } from "./types-CAY3OdLq.js";
8
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-BYBaA6NP.js";
9
9
  import { getLogger, withContext } from "@logtape/logtape";
10
10
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
11
11
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as FederationImpl } from "./middleware-BOV-iBXF.mjs";
4
+ import { n as FederationImpl } from "./middleware-AO-0hf_I.mjs";
5
5
  export { FederationImpl };
@@ -1,4 +1,4 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_middleware = require("./middleware-D5TtCEtU.cjs");
3
+ const require_middleware = require("./middleware-DBU9HFil.cjs");
4
4
  exports.FederationImpl = require_middleware.FederationImpl;
@@ -2,10 +2,10 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
4
  const require_transformers = require("./transformers-NeAONrAq.cjs");
5
- const require_http = require("./http-BJEiRovv.cjs");
6
- const require_proof = require("./proof-CrovtVDA.cjs");
5
+ const require_http = require("./http-DhcDuRya.cjs");
6
+ const require_proof = require("./proof-e42uuEG9.cjs");
7
7
  const require_types = require("./types-KC4QAoxe.cjs");
8
- const require_kv_cache = require("./kv-cache-CsLyBv6_.cjs");
8
+ const require_kv_cache = require("./kv-cache-Csre9hbs.cjs");
9
9
  let _logtape_logtape = require("@logtape/logtape");
10
10
  let _fedify_vocab = require("@fedify/vocab");
11
11
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -210,7 +210,7 @@ var FederationBuilderImpl = class {
210
210
  this.collectionTypeIds = {};
211
211
  }
212
212
  async build(options) {
213
- const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-bZpyiB8S.cjs"));
213
+ const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-D5H3hLTL.cjs"));
214
214
  const f = new FederationImpl(options);
215
215
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
216
216
  f.router = this.router.clone();
@@ -1,9 +1,8 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { n as HttpMessageSignaturesSpecDeterminer } from "./http-aQzN9Ayi.js";
4
- import { n as KvStore, t as KvKey } from "./kv-GFYnFoOl.js";
5
- import { TracerProvider } from "@opentelemetry/api";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as HttpMessageSignaturesSpecDeterminer } from "./http-C87EWkO0.cjs";
3
+ import { n as KvStore, t as KvKey } from "./kv-gJ8LYbxX.cjs";
6
4
  import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
5
+ import { TracerProvider } from "@opentelemetry/api";
7
6
 
8
7
  //#region src/utils/docloader.d.ts
9
8
  /**
@@ -1,7 +1,8 @@
1
- import { n as HttpMessageSignaturesSpecDeterminer } from "./http-CrGuipxe.cjs";
2
- import { n as KvStore, t as KvKey } from "./kv-CbLNp3zQ.cjs";
3
- import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as HttpMessageSignaturesSpecDeterminer } from "./http-BDZeS5om.js";
3
+ import { n as KvStore, t as KvKey } from "./kv-D6hNiMTK.js";
4
4
  import { TracerProvider } from "@opentelemetry/api";
5
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
5
6
 
6
7
  //#region src/utils/docloader.d.ts
7
8
  /**
@@ -1,6 +1,5 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { $ as ActorAliasMapper, St as WebFingerLinksDispatcher, et as ActorDispatcher, l as RequestContext, tt as ActorHandleMapper } from "./context-BzH2-ajs.js";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { $ as ActorAliasMapper, St as WebFingerLinksDispatcher, et as ActorDispatcher, l as RequestContext, tt as ActorHandleMapper } from "./context-DwkhwUX9.cjs";
4
3
  import { Span, Tracer } from "@opentelemetry/api";
5
4
 
6
5
  //#region src/federation/webfinger.d.ts
@@ -1,4 +1,5 @@
1
- import { $ as ActorAliasMapper, St as WebFingerLinksDispatcher, et as ActorDispatcher, l as RequestContext, tt as ActorHandleMapper } from "./context-DJGagtNd.cjs";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { $ as ActorAliasMapper, St as WebFingerLinksDispatcher, et as ActorDispatcher, l as RequestContext, tt as ActorHandleMapper } from "./context-BPMgyX7m.js";
2
3
  import { Span, Tracer } from "@opentelemetry/api";
3
4
 
4
5
  //#region src/federation/webfinger.d.ts
@@ -1,7 +1,8 @@
1
- import { S as KeyCache } from "./http-CrGuipxe.cjs";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { S as KeyCache } from "./http-BDZeS5om.js";
2
3
  import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
3
- import { DocumentLoader } from "@fedify/vocab-runtime";
4
4
  import { TracerProvider } from "@opentelemetry/api";
5
+ import { DocumentLoader } from "@fedify/vocab-runtime";
5
6
 
6
7
  //#region src/sig/ld.d.ts
7
8
  /**
@@ -1,9 +1,8 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { S as KeyCache } from "./http-aQzN9Ayi.js";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { S as KeyCache } from "./http-C87EWkO0.cjs";
4
3
  import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "@fedify/vocab";
5
- import { TracerProvider } from "@opentelemetry/api";
6
4
  import { DocumentLoader } from "@fedify/vocab-runtime";
5
+ import { TracerProvider } from "@opentelemetry/api";
7
6
 
8
7
  //#region src/sig/ld.d.ts
9
8
  /**
package/dist/mod.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("./chunk-DDcVe30Y.cjs");
5
5
  const require_transformers = require("./transformers-NeAONrAq.cjs");
6
6
  require("./compat/mod.cjs");
7
- const require_http = require("./http-BJEiRovv.cjs");
8
- const require_middleware = require("./middleware-D5TtCEtU.cjs");
9
- const require_proof = require("./proof-CrovtVDA.cjs");
7
+ const require_http = require("./http-DhcDuRya.cjs");
8
+ const require_middleware = require("./middleware-DBU9HFil.cjs");
9
+ const require_proof = require("./proof-e42uuEG9.cjs");
10
10
  const require_types = require("./types-KC4QAoxe.cjs");
11
- const require_kv_cache = require("./kv-cache-CsLyBv6_.cjs");
11
+ const require_kv_cache = require("./kv-cache-Csre9hbs.cjs");
12
12
  const require_federation_mod = require("./federation/mod.cjs");
13
13
  require("./nodeinfo/mod.cjs");
14
14
  require("./runtime/mod.cjs");
package/dist/mod.d.cts CHANGED
@@ -1,12 +1,13 @@
1
- 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-z-8dc-e1.cjs";
2
- 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-CrGuipxe.cjs";
3
- import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-CptqhsOy.cjs";
4
- import { $ as ActorAliasMapper, A as FederationKvPrefixes, B as Router, C as IdempotencyKeyCallback, Ct as SendActivityError, D as ObjectCallbackSetters, Dt as digest, E as InboxListenerSetters, Et as buildCollectionSynchronizationHeader, F as RetryContext, G as respondWithObject, H as RouterOptions, I as RetryPolicy, J as InProcessMessageQueueOptions, K as respondWithObjectIfAcceptable, L as createExponentialBackoffPolicy, M as FederationQueueOptions, N as createFederation, O as OutboxListenerSetters, Ot as ActivityTransformer, P as CreateExponentialBackoffPolicyOptions, Q as ParallelMessageQueue, R as Message, S as FederationStartQueueOptions, St as WebFingerLinksDispatcher, T as InboxChallengePolicy, Tt as PageItems, U as RouterRouteResult, V as RouterError, W as RespondWithObjectOptions, X as MessageQueueEnqueueOptions, Y as MessageQueue, Z as MessageQueueListenOptions, _ as Federatable, _t as OutboxListenerErrorHandler, a as GetSignedKeyOptions, at as CollectionCursor, b as FederationFetchOptions, bt as UnverifiedActivityHandler, c as ParseUriResult, ct as CustomCollectionCursor, d as SendActivityOptions, dt as InboxListener, et as ActorDispatcher, f as SendActivityOptionsForCollection, ft as NodeInfoDispatcher, g as CustomCollectionCallbackSetters, gt as OutboxListener, h as ConstructorWithTypeId, ht as OutboxErrorHandler, i as GetActorOptions, it as CollectionCounter, j as FederationOrigin, k as Rfc6570Expression, l as RequestContext, lt as CustomCollectionDispatcher, m as CollectionCallbackSetters, mt as ObjectDispatcher, n as Context, nt as ActorKeyPairsDispatcher, o as InboxContext, ot as CollectionDispatcher, p as ActorCallbackSetters, pt as ObjectAuthorizePredicate, q as InProcessMessageQueue, r as ForwardActivityOptions, rt as AuthorizePredicate, s as OutboxContext, st as CustomCollectionCounter, t as ActorKeyPair, tt as ActorHandleMapper, u as RouteActivityOptions, ut as InboxErrorHandler, v as Federation, vt as OutboxPermanentFailureHandler, w as IdempotencyStrategy, wt as SenderKeyPair, x as FederationOptions, xt as UnverifiedActivityReason, y as FederationBuilder, yt as SharedInboxKeyDispatcher, z as createFederationBuilder } from "./context-DJGagtNd.cjs";
5
- import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-CbLNp3zQ.cjs";
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-C87EWkO0.cjs";
4
+ import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-DEvZuyOE.cjs";
5
+ import { $ as ActorAliasMapper, A as FederationKvPrefixes, B as Router, C as IdempotencyKeyCallback, Ct as SendActivityError, D as ObjectCallbackSetters, Dt as digest, E as InboxListenerSetters, Et as buildCollectionSynchronizationHeader, F as RetryContext, G as respondWithObject, H as RouterOptions, I as RetryPolicy, J as InProcessMessageQueueOptions, K as respondWithObjectIfAcceptable, L as createExponentialBackoffPolicy, M as FederationQueueOptions, N as createFederation, O as OutboxListenerSetters, Ot as ActivityTransformer, P as CreateExponentialBackoffPolicyOptions, Q as ParallelMessageQueue, R as Message, S as FederationStartQueueOptions, St as WebFingerLinksDispatcher, T as InboxChallengePolicy, Tt as PageItems, U as RouterRouteResult, V as RouterError, W as RespondWithObjectOptions, X as MessageQueueEnqueueOptions, Y as MessageQueue, Z as MessageQueueListenOptions, _ as Federatable, _t as OutboxListenerErrorHandler, a as GetSignedKeyOptions, at as CollectionCursor, b as FederationFetchOptions, bt as UnverifiedActivityHandler, c as ParseUriResult, ct as CustomCollectionCursor, d as SendActivityOptions, dt as InboxListener, et as ActorDispatcher, f as SendActivityOptionsForCollection, ft as NodeInfoDispatcher, g as CustomCollectionCallbackSetters, gt as OutboxListener, h as ConstructorWithTypeId, ht as OutboxErrorHandler, i as GetActorOptions, it as CollectionCounter, j as FederationOrigin, k as Rfc6570Expression, l as RequestContext, lt as CustomCollectionDispatcher, m as CollectionCallbackSetters, mt as ObjectDispatcher, n as Context, nt as ActorKeyPairsDispatcher, o as InboxContext, ot as CollectionDispatcher, p as ActorCallbackSetters, pt as ObjectAuthorizePredicate, q as InProcessMessageQueue, r as ForwardActivityOptions, rt as AuthorizePredicate, s as OutboxContext, st as CustomCollectionCounter, t as ActorKeyPair, tt as ActorHandleMapper, u as RouteActivityOptions, ut as InboxErrorHandler, v as Federation, vt as OutboxPermanentFailureHandler, w as IdempotencyStrategy, wt as SenderKeyPair, x as FederationOptions, xt as UnverifiedActivityReason, y as FederationBuilder, yt as SharedInboxKeyDispatcher, z as createFederationBuilder } from "./context-DwkhwUX9.cjs";
6
+ import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-gJ8LYbxX.cjs";
6
7
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.cjs";
7
- import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-D35TRn09.cjs";
8
- 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-Cr3f-ACa.cjs";
9
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-CMEbIaNh.cjs";
8
+ import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-Bi6WOdti.cjs";
9
+ 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-DXY9JF28.cjs";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-B0rWmfW5.cjs";
10
11
  export * from "@fedify/vocab-runtime";
11
12
 
12
13
  //#region src/mod.d.ts
package/dist/mod.d.ts CHANGED
@@ -1,14 +1,13 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- 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-AtlibPOU.js";
4
- 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-aQzN9Ayi.js";
5
- import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-74ARJ5TL.js";
6
- import { $ as ActorAliasMapper, A as FederationKvPrefixes, B as Router, C as IdempotencyKeyCallback, Ct as SendActivityError, D as ObjectCallbackSetters, Dt as digest, E as InboxListenerSetters, Et as buildCollectionSynchronizationHeader, F as RetryContext, G as respondWithObject, H as RouterOptions, I as RetryPolicy, J as InProcessMessageQueueOptions, K as respondWithObjectIfAcceptable, L as createExponentialBackoffPolicy, M as FederationQueueOptions, N as createFederation, O as OutboxListenerSetters, Ot as ActivityTransformer, P as CreateExponentialBackoffPolicyOptions, Q as ParallelMessageQueue, R as Message, S as FederationStartQueueOptions, St as WebFingerLinksDispatcher, T as InboxChallengePolicy, Tt as PageItems, U as RouterRouteResult, V as RouterError, W as RespondWithObjectOptions, X as MessageQueueEnqueueOptions, Y as MessageQueue, Z as MessageQueueListenOptions, _ as Federatable, _t as OutboxListenerErrorHandler, a as GetSignedKeyOptions, at as CollectionCursor, b as FederationFetchOptions, bt as UnverifiedActivityHandler, c as ParseUriResult, ct as CustomCollectionCursor, d as SendActivityOptions, dt as InboxListener, et as ActorDispatcher, f as SendActivityOptionsForCollection, ft as NodeInfoDispatcher, g as CustomCollectionCallbackSetters, gt as OutboxListener, h as ConstructorWithTypeId, ht as OutboxErrorHandler, i as GetActorOptions, it as CollectionCounter, j as FederationOrigin, k as Rfc6570Expression, l as RequestContext, lt as CustomCollectionDispatcher, m as CollectionCallbackSetters, mt as ObjectDispatcher, n as Context, nt as ActorKeyPairsDispatcher, o as InboxContext, ot as CollectionDispatcher, p as ActorCallbackSetters, pt as ObjectAuthorizePredicate, q as InProcessMessageQueue, r as ForwardActivityOptions, rt as AuthorizePredicate, s as OutboxContext, st as CustomCollectionCounter, t as ActorKeyPair, tt as ActorHandleMapper, u as RouteActivityOptions, ut as InboxErrorHandler, v as Federation, vt as OutboxPermanentFailureHandler, w as IdempotencyStrategy, wt as SenderKeyPair, x as FederationOptions, xt as UnverifiedActivityReason, y as FederationBuilder, yt as SharedInboxKeyDispatcher, z as createFederationBuilder } from "./context-BzH2-ajs.js";
7
- import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-GFYnFoOl.js";
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-CSddvgWN.js";
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-BDZeS5om.js";
4
+ import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "./owner-CnngXDNJ.js";
5
+ import { $ as ActorAliasMapper, A as FederationKvPrefixes, B as Router, C as IdempotencyKeyCallback, Ct as SendActivityError, D as ObjectCallbackSetters, Dt as digest, E as InboxListenerSetters, Et as buildCollectionSynchronizationHeader, F as RetryContext, G as respondWithObject, H as RouterOptions, I as RetryPolicy, J as InProcessMessageQueueOptions, K as respondWithObjectIfAcceptable, L as createExponentialBackoffPolicy, M as FederationQueueOptions, N as createFederation, O as OutboxListenerSetters, Ot as ActivityTransformer, P as CreateExponentialBackoffPolicyOptions, Q as ParallelMessageQueue, R as Message, S as FederationStartQueueOptions, St as WebFingerLinksDispatcher, T as InboxChallengePolicy, Tt as PageItems, U as RouterRouteResult, V as RouterError, W as RespondWithObjectOptions, X as MessageQueueEnqueueOptions, Y as MessageQueue, Z as MessageQueueListenOptions, _ as Federatable, _t as OutboxListenerErrorHandler, a as GetSignedKeyOptions, at as CollectionCursor, b as FederationFetchOptions, bt as UnverifiedActivityHandler, c as ParseUriResult, ct as CustomCollectionCursor, d as SendActivityOptions, dt as InboxListener, et as ActorDispatcher, f as SendActivityOptionsForCollection, ft as NodeInfoDispatcher, g as CustomCollectionCallbackSetters, gt as OutboxListener, h as ConstructorWithTypeId, ht as OutboxErrorHandler, i as GetActorOptions, it as CollectionCounter, j as FederationOrigin, k as Rfc6570Expression, l as RequestContext, lt as CustomCollectionDispatcher, m as CollectionCallbackSetters, mt as ObjectDispatcher, n as Context, nt as ActorKeyPairsDispatcher, o as InboxContext, ot as CollectionDispatcher, p as ActorCallbackSetters, pt as ObjectAuthorizePredicate, q as InProcessMessageQueue, r as ForwardActivityOptions, rt as AuthorizePredicate, s as OutboxContext, st as CustomCollectionCounter, t as ActorKeyPair, tt as ActorHandleMapper, u as RouteActivityOptions, ut as InboxErrorHandler, v as Federation, vt as OutboxPermanentFailureHandler, w as IdempotencyStrategy, wt as SenderKeyPair, x as FederationOptions, xt as UnverifiedActivityReason, y as FederationBuilder, yt as SharedInboxKeyDispatcher, z as createFederationBuilder } from "./context-BPMgyX7m.js";
6
+ import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-D6hNiMTK.js";
8
7
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.js";
9
- import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-2d12ffz3.js";
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-CR8soWa9.js";
11
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-CLgIXe9w.js";
8
+ import { n as handleWebFinger, t as WebFingerHandlerParameters } from "./mod-CNAHY39V.js";
9
+ 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-DHO9lk3D.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-BhU_H1I_.js";
12
11
  export * from "@fedify/vocab-runtime";
13
12
 
14
13
  //#region src/mod.d.ts
package/dist/mod.js CHANGED
@@ -1,13 +1,13 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import "./chunk-nlSIicah.js";
4
- import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-ve6e2xcg.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import "./chunk-CRNNMoPX.js";
4
+ import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-BGMIq1cs.js";
5
5
  import "./compat/mod.js";
6
- import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-DL2gLW-Q.js";
7
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-CcyI5ZB-.js";
8
- import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-CLd2ZZin.js";
9
- import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-DBPfVPsx.js";
6
+ import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-FZD1s7yO.js";
7
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-BEw9z4kK.js";
8
+ import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-BT_TJd2j.js";
9
+ import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-CAY3OdLq.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-BYBaA6NP.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -5,7 +5,7 @@ import { r as createRequestContext } from "../context-Dk_tacqz.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-CRDpx_HF.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-rV3vodCc.mjs";
8
- import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-BOV-iBXF.mjs";
8
+ import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-AO-0hf_I.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  //#region src/nodeinfo/handler.test.ts
11
11
  test("handleNodeInfo()", async () => {
@@ -1,2 +1,3 @@
1
- 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-z-8dc-e1.cjs";
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";
2
3
  export { type GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, type ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -1,4 +1,3 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- 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-AtlibPOU.js";
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-CSddvgWN.js";
4
3
  export { type GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, type ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-hvL8ElAs.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-CAY3OdLq.js";
4
4
  export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -1,4 +1,5 @@
1
- import { n as KvStore, t as KvKey } from "../kv-CbLNp3zQ.cjs";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as KvStore, t as KvKey } from "../kv-gJ8LYbxX.cjs";
2
3
  import { ReadableSpan, SpanExporter } from "@opentelemetry/sdk-trace-base";
3
4
  import { ExportResultCode } from "@opentelemetry/core";
4
5
 
@@ -1,6 +1,5 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { n as KvStore, t as KvKey } from "../kv-GFYnFoOl.js";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as KvStore, t as KvKey } from "../kv-D6hNiMTK.js";
4
3
  import { ExportResultCode } from "@opentelemetry/core";
5
4
  import { ReadableSpan, SpanExporter } from "@opentelemetry/sdk-trace-base";
6
5
 
package/dist/otel/mod.js CHANGED
@@ -1,5 +1,5 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import { ExportResultCode } from "@opentelemetry/core";
5
5
  //#region src/otel/exporter.ts
@@ -1,6 +1,7 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
2
- import { DocumentLoader } from "@fedify/vocab-runtime";
3
3
  import { TracerProvider } from "@opentelemetry/api";
4
+ import { DocumentLoader } from "@fedify/vocab-runtime";
4
5
 
5
6
  //#region src/sig/owner.d.ts
6
7
  /**
@@ -1,8 +1,7 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
1
+ /// <reference lib="esnext.temporal" />
3
2
  import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
4
- import { TracerProvider } from "@opentelemetry/api";
5
3
  import { DocumentLoader } from "@fedify/vocab-runtime";
4
+ import { TracerProvider } from "@opentelemetry/api";
6
5
 
7
6
  //#region src/sig/owner.d.ts
8
7
  /**
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-_w-iVcdO.mjs";
5
- import "./key-oqniN9pm.mjs";
4
+ import { n as version, t as name } from "./deno-DCXSCeB3.mjs";
5
+ import "./key-Dk8-s0bs.mjs";
6
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-_w-iVcdO.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-oqniN9pm.mjs";
4
+ import { n as version, t as name } from "./deno-DCXSCeB3.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-Dk8-s0bs.mjs";
6
6
  import { n as preloadedOnlyDocumentLoader } from "./public-audience-DYFHzm_c.mjs";
7
7
  import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-CNmZLixq.mjs";
8
8
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";