@fedify/fedify 2.2.2 → 2.2.3

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 (60) hide show
  1. package/dist/{builder-Bw2K7xaq.mjs → builder-CaVN56-q.mjs} +2 -2
  2. package/dist/compat/mod.d.cts +1 -1
  3. package/dist/compat/mod.d.ts +1 -1
  4. package/dist/compat/transformers.test.mjs +1 -1
  5. package/dist/{context-BPMgyX7m.d.ts → context-BU-1O90h.d.ts} +48 -6
  6. package/dist/{context-DwkhwUX9.d.cts → context-DVA8wHZ0.d.cts} +48 -6
  7. package/dist/{deno-DCXSCeB3.mjs → deno-DMg4SgCb.mjs} +1 -1
  8. package/dist/{docloader-BqX3RfO-.mjs → docloader-Da15YRxG.mjs} +2 -2
  9. package/dist/federation/builder.test.mjs +1 -1
  10. package/dist/federation/handler.test.mjs +1363 -43
  11. package/dist/federation/idempotency.test.mjs +2 -2
  12. package/dist/federation/middleware.test.mjs +1584 -80
  13. package/dist/federation/mod.cjs +1 -1
  14. package/dist/federation/mod.d.cts +2 -2
  15. package/dist/federation/mod.d.ts +2 -2
  16. package/dist/federation/mod.js +1 -1
  17. package/dist/federation/retry.test.mjs +1 -1
  18. package/dist/federation/send.test.mjs +3 -3
  19. package/dist/federation/temporal.test.d.mts +2 -0
  20. package/dist/federation/temporal.test.mjs +71 -0
  21. package/dist/federation/webfinger.test.mjs +1 -1
  22. package/dist/{http-FZD1s7yO.js → http-BPPaA2uz.js} +1 -1
  23. package/dist/{http-Bslazr8_.mjs → http-C_edJspG.mjs} +2 -2
  24. package/dist/{http-DhcDuRya.cjs → http-Cl0Q2bUO.cjs} +1 -1
  25. package/dist/{key-Dk8-s0bs.mjs → key-BAQuZEU1.mjs} +1 -1
  26. package/dist/{kv-cache-BYBaA6NP.js → kv-cache-C4DGZ_t4.js} +1 -1
  27. package/dist/{kv-cache-Csre9hbs.cjs → kv-cache-DmGi6uC-.cjs} +1 -1
  28. package/dist/ld-tusP_XxG.mjs +573 -0
  29. package/dist/{middleware-DBU9HFil.cjs → middleware-0V-9qj7m.cjs} +399 -73
  30. package/dist/{middleware-BEw9z4kK.js → middleware-Ar1QOOPG.js} +396 -71
  31. package/dist/{middleware-AO-0hf_I.mjs → middleware-D9k0Knum.mjs} +314 -78
  32. package/dist/{middleware-D5H3hLTL.cjs → middleware-OQPBzyvx.cjs} +1 -1
  33. package/dist/{middleware-CDwTn0jH.mjs → middleware-madKLp2f.mjs} +1 -1
  34. package/dist/{mod-CNAHY39V.d.ts → mod-BVt6iTmH.d.ts} +1 -1
  35. package/dist/{mod-Bi6WOdti.d.cts → mod-q-NFLW6B.d.cts} +1 -1
  36. package/dist/mod.cjs +4 -4
  37. package/dist/mod.d.cts +2 -2
  38. package/dist/mod.d.ts +2 -2
  39. package/dist/mod.js +4 -4
  40. package/dist/nodeinfo/handler.test.mjs +1 -1
  41. package/dist/{owner-SWOTNh3d.mjs → owner-DRHNR5YO.mjs} +2 -2
  42. package/dist/{proof-BMoWLd-F.mjs → proof-DLhLRv3m.mjs} +2 -2
  43. package/dist/{proof-e42uuEG9.cjs → proof-DfrItHmh.cjs} +351 -3
  44. package/dist/{proof-BT_TJd2j.js → proof-SQ4cQs3A.js} +298 -4
  45. package/dist/{send-ir10TETC.mjs → send-C7tim5U9.mjs} +2 -2
  46. package/dist/sig/http.test.mjs +2 -2
  47. package/dist/sig/key.test.mjs +1 -1
  48. package/dist/sig/ld.test.mjs +558 -2
  49. package/dist/sig/mod.cjs +2 -2
  50. package/dist/sig/mod.js +2 -2
  51. package/dist/sig/owner.test.mjs +1 -1
  52. package/dist/sig/proof.test.mjs +1 -1
  53. package/dist/temporal-LL61Ddf2.mjs +95 -0
  54. package/dist/testing/mod.d.mts +48 -6
  55. package/dist/utils/docloader.test.mjs +2 -2
  56. package/dist/utils/mod.cjs +1 -1
  57. package/dist/utils/mod.js +1 -1
  58. package/package.json +6 -6
  59. package/dist/ld-BPA4jaBc.mjs +0 -279
  60. /package/dist/{retry-bMXBL97A.mjs → retry-v_sGLH1d.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-FZD1s7yO.js";
3
+ import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-BPPaA2uz.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, PUBLIC_COLLECTION, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -15,6 +15,288 @@ const logger$3 = getLogger([
15
15
  "sig",
16
16
  "ld"
17
17
  ]);
18
+ const localContext = [
19
+ "https://w3id.org/identity/v1",
20
+ "https://www.w3.org/ns/activitystreams",
21
+ "https://w3id.org/security/v1",
22
+ "https://w3id.org/security/data-integrity/v1"
23
+ ];
24
+ const localContextUrls = new Set(localContext);
25
+ const builtInContextLoader = getDocumentLoader();
26
+ const disallowedJsonLdKeywords = new Set([
27
+ "@graph",
28
+ "@included",
29
+ "@reverse"
30
+ ]);
31
+ /** @internal */
32
+ var UnsafeJsonLdError = class extends TypeError {
33
+ constructor(keyword) {
34
+ super(`Unsupported JSON-LD keyword: ${keyword}.`);
35
+ this.keyword = keyword;
36
+ this.name = "UnsafeJsonLdError";
37
+ }
38
+ };
39
+ /** @internal */
40
+ var InvalidContextReferenceError = class extends TypeError {
41
+ constructor(reference) {
42
+ super(`Invalid JSON-LD context reference: ${reference}.`);
43
+ this.reference = reference;
44
+ this.name = "InvalidContextReferenceError";
45
+ }
46
+ };
47
+ function createLoadingRemoteContextFailedError(reference, cause) {
48
+ const message = cause instanceof Error ? cause.message : String(cause);
49
+ const error = /* @__PURE__ */ new Error(`Dereferencing a URL did not result in a valid JSON-LD context: ${reference}. ${message}`);
50
+ error.name = "jsonld.InvalidUrl";
51
+ error.details = {
52
+ code: "loading remote context failed",
53
+ url: reference
54
+ };
55
+ error.cause = cause;
56
+ return error;
57
+ }
58
+ /** @internal */
59
+ function isClearlyMalformedContextReference(reference) {
60
+ for (const char of reference) {
61
+ const code = char.charCodeAt(0);
62
+ if (code <= 32 || code === 127) return true;
63
+ }
64
+ if (/^[A-Za-z][A-Za-z0-9+.-]*:/.test(reference) && !URL.canParse(reference)) return true;
65
+ for (let i = 0; i < reference.length; i++) {
66
+ if (reference[i] !== "%") continue;
67
+ if (i + 2 >= reference.length || !/[0-9A-Fa-f]/.test(reference[i + 1]) || !/[0-9A-Fa-f]/.test(reference[i + 2])) return true;
68
+ i += 2;
69
+ }
70
+ if (reference.startsWith("./") || reference.startsWith("../") || reference.startsWith("/") || reference.startsWith("//")) {
71
+ for (const char of reference) if ("[]<>\"\\^`{|}".includes(char)) return true;
72
+ }
73
+ return false;
74
+ }
75
+ function cloneRemoteDocument(remoteDocument) {
76
+ return structuredClone(remoteDocument);
77
+ }
78
+ function createMemoizedDocumentLoader(documentLoader) {
79
+ const cache = /* @__PURE__ */ new Map();
80
+ return async (url, options) => {
81
+ const cacheKey = URL.canParse(url) ? new URL(url).href : url;
82
+ let remoteDocument = cache.get(cacheKey);
83
+ if (remoteDocument == null) {
84
+ remoteDocument = Promise.resolve(documentLoader(url, options)).then(cloneRemoteDocument);
85
+ remoteDocument.catch(() => {
86
+ if (cache.get(cacheKey) === remoteDocument) cache.delete(cacheKey);
87
+ });
88
+ cache.set(cacheKey, remoteDocument);
89
+ }
90
+ return cloneRemoteDocument(await remoteDocument);
91
+ };
92
+ }
93
+ /** @internal */
94
+ function wrapContextLoaderForJsonLd(contextLoader) {
95
+ const loader = contextLoader ?? builtInContextLoader;
96
+ return async (url, options) => {
97
+ try {
98
+ return await loader(url, options);
99
+ } catch (error) {
100
+ if (!isInvalidUrlTypeError(error)) throw error;
101
+ if (isClearlyMalformedContextReference(url)) throw new InvalidContextReferenceError(url);
102
+ throw createLoadingRemoteContextFailedError(url, error);
103
+ }
104
+ };
105
+ }
106
+ /** @internal */
107
+ function getNormalizationContextLoader(contextLoader) {
108
+ const loader = wrapContextLoaderForJsonLd(contextLoader);
109
+ return createMemoizedDocumentLoader(async (url, options) => {
110
+ if (URL.canParse(url)) {
111
+ const normalizedUrl = new URL(url).href;
112
+ if (localContextUrls.has(normalizedUrl)) return await builtInContextLoader(normalizedUrl, options);
113
+ }
114
+ return await loader(url, options);
115
+ });
116
+ }
117
+ /** @internal */
118
+ async function compactJsonLd(jsonLd, contextLoader) {
119
+ const hasLds = typeof jsonLd === "object" && jsonLd != null && "signature" in jsonLd;
120
+ const signature = hasLds ? jsonLd.signature : void 0;
121
+ const normalizationContextLoader = getNormalizationContextLoader(contextLoader);
122
+ const document = hasLds ? detachSignature(jsonLd) : jsonLd;
123
+ await assertNoGraphBeforeCompaction(document, normalizationContextLoader);
124
+ const compacted = await jsonld.compact(document, localContext, { documentLoader: normalizationContextLoader });
125
+ if (hasLds && typeof compacted === "object" && compacted != null) compacted.signature = signature;
126
+ assertSafeJsonLd(compacted);
127
+ return compacted;
128
+ }
129
+ function createInvalidRemoteContextError(reference) {
130
+ const error = /* @__PURE__ */ new Error(`Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object. URL: "${reference}".`);
131
+ error.name = "jsonld.InvalidUrl";
132
+ error.details = {
133
+ code: "invalid remote context",
134
+ url: reference
135
+ };
136
+ return error;
137
+ }
138
+ function getRemoteContext(remoteDocument, reference) {
139
+ const { contextUrl, documentUrl } = remoteDocument;
140
+ let { document } = remoteDocument;
141
+ if (typeof document === "string") document = JSON.parse(document);
142
+ if (typeof document !== "object" || document == null || Array.isArray(document)) throw createInvalidRemoteContextError(reference);
143
+ let context = "@context" in document ? document["@context"] : {};
144
+ if (contextUrl != null) context = Array.isArray(context) ? [...context, contextUrl] : [context, contextUrl];
145
+ return {
146
+ context,
147
+ baseUrl: documentUrl ?? reference
148
+ };
149
+ }
150
+ function createGraphAliasContextState() {
151
+ return {
152
+ graphTerms: /* @__PURE__ */ new Set(),
153
+ jsonTerms: /* @__PURE__ */ new Set(),
154
+ propertyContexts: /* @__PURE__ */ new Map(),
155
+ termTargets: /* @__PURE__ */ new Map()
156
+ };
157
+ }
158
+ function cloneGraphAliasContextState(state) {
159
+ return {
160
+ graphTerms: new Set(state.graphTerms),
161
+ jsonTerms: new Set(state.jsonTerms),
162
+ propertyContexts: new Map(state.propertyContexts),
163
+ termTargets: new Map(state.termTargets)
164
+ };
165
+ }
166
+ function resolveContextTarget(target, state) {
167
+ if (target === "@graph") return target;
168
+ const mapped = state.termTargets.get(target);
169
+ if (mapped == null) return target;
170
+ return mapped;
171
+ }
172
+ function getDirectContextTarget(definition) {
173
+ if (definition === null) return null;
174
+ if (typeof definition === "string") return definition;
175
+ if (typeof definition === "object" && definition != null && "@id" in definition) {
176
+ const id = definition["@id"];
177
+ if (id === null) return null;
178
+ if (typeof id === "string") return id;
179
+ }
180
+ }
181
+ function isJsonTypedDefinition(definition) {
182
+ return typeof definition === "object" && definition != null && "@type" in definition && definition["@type"] === "@json";
183
+ }
184
+ function resolveLocalContextTarget(target, state, localTargets, seen = /* @__PURE__ */ new Set()) {
185
+ if (target === "@graph") return target;
186
+ if (seen.has(target)) return target;
187
+ seen.add(target);
188
+ if (localTargets.has(target)) {
189
+ const localTarget = localTargets.get(target);
190
+ return localTarget == null ? target : resolveLocalContextTarget(localTarget, state, localTargets, seen);
191
+ }
192
+ return resolveContextTarget(target, state);
193
+ }
194
+ function refreshGraphAliases(state) {
195
+ state.graphTerms.clear();
196
+ for (const [term, target] of state.termTargets) if (target === "@graph") state.graphTerms.add(term);
197
+ }
198
+ function normalizeContextReference(reference, baseUrl) {
199
+ if (baseUrl != null) return new URL(reference, baseUrl).href;
200
+ return URL.canParse(reference) ? new URL(reference).href : reference;
201
+ }
202
+ /** @internal */
203
+ function isInvalidUrlTypeError(error) {
204
+ const code = error.code;
205
+ return error instanceof TypeError && (code === "ERR_INVALID_URL" || /^Invalid URL(?::|$)/.test(error.message) || / cannot be parsed as a URL\.?$/.test(error.message));
206
+ }
207
+ async function applyGraphAliasContext(state, context, documentLoader, remoteContextCache, baseUrl = null, processingContexts = /* @__PURE__ */ new Set()) {
208
+ if (context === null) return createGraphAliasContextState();
209
+ let nextState = cloneGraphAliasContextState(state);
210
+ if (Array.isArray(context)) {
211
+ for (const item of context) nextState = await applyGraphAliasContext(nextState, item, documentLoader, remoteContextCache, baseUrl, processingContexts);
212
+ return nextState;
213
+ }
214
+ if (typeof context === "string") {
215
+ const reference = normalizeContextReference(context, baseUrl);
216
+ const cacheKey = `${baseUrl ?? ""}\n${reference}`;
217
+ if (processingContexts.has(cacheKey)) return nextState;
218
+ processingContexts.add(cacheKey);
219
+ try {
220
+ let remoteContext = remoteContextCache.get(cacheKey);
221
+ if (remoteContext == null) {
222
+ remoteContext = (async () => {
223
+ try {
224
+ return getRemoteContext(await documentLoader(reference), reference);
225
+ } catch (error) {
226
+ if (reference === context && isInvalidUrlTypeError(error) && isClearlyMalformedContextReference(context)) throw new InvalidContextReferenceError(context);
227
+ throw error;
228
+ }
229
+ })();
230
+ remoteContextCache.set(cacheKey, remoteContext);
231
+ }
232
+ const loadedRemoteContext = await remoteContext;
233
+ return await applyGraphAliasContext(nextState, loadedRemoteContext.context, documentLoader, remoteContextCache, loadedRemoteContext.baseUrl, processingContexts);
234
+ } finally {
235
+ processingContexts.delete(cacheKey);
236
+ }
237
+ }
238
+ if (typeof context === "object" && context != null) {
239
+ if ("@import" in context && typeof context["@import"] === "string") nextState = await applyGraphAliasContext(nextState, context["@import"], documentLoader, remoteContextCache, baseUrl, processingContexts);
240
+ const localTargets = /* @__PURE__ */ new Map();
241
+ for (const [term, definition] of globalThis.Object.entries(context)) {
242
+ if (term.startsWith("@")) continue;
243
+ const target = getDirectContextTarget(definition);
244
+ if (target == null) localTargets.set(term, null);
245
+ else if (typeof target === "string") localTargets.set(term, target);
246
+ else localTargets.delete(term);
247
+ }
248
+ for (const [term, definition] of globalThis.Object.entries(context)) {
249
+ if (term.startsWith("@")) continue;
250
+ if (localTargets.has(term)) {
251
+ const directTarget = localTargets.get(term);
252
+ if (directTarget == null) nextState.termTargets.set(term, null);
253
+ else nextState.termTargets.set(term, resolveLocalContextTarget(directTarget, nextState, localTargets));
254
+ } else nextState.termTargets.delete(term);
255
+ if (typeof definition === "object" && definition != null && "@context" in definition) nextState.propertyContexts.set(term, {
256
+ context: definition["@context"],
257
+ baseUrl
258
+ });
259
+ else nextState.propertyContexts.delete(term);
260
+ if (isJsonTypedDefinition(definition)) nextState.jsonTerms.add(term);
261
+ else nextState.jsonTerms.delete(term);
262
+ }
263
+ refreshGraphAliases(nextState);
264
+ }
265
+ return nextState;
266
+ }
267
+ async function assertNoGraphBeforeCompaction(jsonLd, documentLoader, inheritedState = createGraphAliasContextState(), propertyContext, remoteContextCache = /* @__PURE__ */ new Map()) {
268
+ if (Array.isArray(jsonLd)) {
269
+ for (const item of jsonLd) await assertNoGraphBeforeCompaction(item, documentLoader, inheritedState, propertyContext, remoteContextCache);
270
+ return;
271
+ }
272
+ if (typeof jsonLd !== "object" || jsonLd == null) return;
273
+ const jsonLiteralWrapper = isJsonLiteralWrapper(jsonLd);
274
+ let state = inheritedState;
275
+ if (propertyContext !== void 0) state = await applyGraphAliasContext(state, propertyContext.context, documentLoader, remoteContextCache, propertyContext.baseUrl);
276
+ if ("@context" in jsonLd) state = await applyGraphAliasContext(state, jsonLd["@context"], documentLoader, remoteContextCache);
277
+ for (const [key, value] of globalThis.Object.entries(jsonLd)) {
278
+ if (key === "@context") continue;
279
+ if (jsonLiteralWrapper && key === "@value") continue;
280
+ if (key === "@graph" || state.graphTerms.has(key)) throw new UnsafeJsonLdError("@graph");
281
+ if (state.jsonTerms.has(key)) continue;
282
+ await assertNoGraphBeforeCompaction(value, documentLoader, state, state.propertyContexts.get(key), remoteContextCache);
283
+ }
284
+ }
285
+ function isJsonLiteralWrapper(value) {
286
+ return "@value" in value && (value["@type"] === "@json" || value.type === "@json");
287
+ }
288
+ /** @internal */
289
+ function assertSafeJsonLd(jsonLd) {
290
+ if (Array.isArray(jsonLd)) for (const item of jsonLd) assertSafeJsonLd(item);
291
+ else if (typeof jsonLd === "object" && jsonLd != null) {
292
+ const jsonLiteralWrapper = isJsonLiteralWrapper(jsonLd);
293
+ for (const [key, value] of globalThis.Object.entries(jsonLd)) {
294
+ if (disallowedJsonLdKeywords.has(key)) throw new UnsafeJsonLdError(key);
295
+ if (jsonLiteralWrapper && key === "@value") continue;
296
+ assertSafeJsonLd(value);
297
+ }
298
+ }
299
+ }
18
300
  /**
19
301
  * Attaches a LD signature to the given JSON-LD document.
20
302
  * @param jsonLd The JSON-LD document to attach the signature to. It is not
@@ -231,9 +513,21 @@ async function verifySignature(jsonLd, options = {}) {
231
513
  * @returns `true` if the document is authentic; `false` otherwise.
232
514
  */
233
515
  async function verifyJsonLd(jsonLd, options = {}) {
516
+ return await verifyJsonLdInternal(jsonLd, options, true);
517
+ }
518
+ /** @internal */
519
+ async function verifyCompactJsonLd(jsonLd, options = {}) {
520
+ return await verifyJsonLdInternal(jsonLd, options, false);
521
+ }
522
+ async function verifyJsonLdInternal(jsonLd, options, compact) {
234
523
  return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer(name, version).startActiveSpan("ld_signatures.verify", async (span) => {
235
524
  try {
236
- const object = await Object$1.fromJsonLd(jsonLd, options);
525
+ const verificationOptions = hasSignature(jsonLd) ? {
526
+ ...options,
527
+ contextLoader: getNormalizationContextLoader(options.contextLoader)
528
+ } : options;
529
+ const compacted = compact ? hasSignature(jsonLd) ? await compactJsonLd(jsonLd, options.contextLoader) : jsonLd : jsonLd;
530
+ const object = await Object$1.fromJsonLd(compacted, verificationOptions);
237
531
  if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
238
532
  span.setAttribute("activitypub.object.type", getTypeId(object).href);
239
533
  if (typeof jsonLd === "object" && jsonLd != null && "signature" in jsonLd && typeof jsonLd.signature === "object" && jsonLd.signature != null) {
@@ -243,7 +537,7 @@ async function verifyJsonLd(jsonLd, options = {}) {
243
537
  }
244
538
  const attributions = new Set(object.attributionIds.map((uri) => uri.href));
245
539
  if (object instanceof Activity) for (const uri of object.actorIds) attributions.add(uri.href);
246
- const key = await verifySignature(jsonLd, options);
540
+ const key = await verifySignature(compacted, verificationOptions);
247
541
  if (key == null) return false;
248
542
  if (key.ownerId == null) {
249
543
  logger$3.debug("Key {keyId} has no owner.", { keyId: key.id?.href });
@@ -1038,4 +1332,4 @@ async function verifyObject(cls, jsonLd, options = {}) {
1038
1332
  return object;
1039
1333
  }
1040
1334
  //#endregion
1041
- export { verifyProof as a, getKeyOwner as c, detachSignature as d, hasSignatureLike as f, verifySignature as h, verifyObject as i, attachSignature as l, verifyJsonLd as m, hasProofLike as n, normalizeOutgoingActivityJsonLd as o, signJsonLd as p, signObject as r, doesActorOwnKey as s, createProof as t, createSignature as u };
1335
+ export { verifySignature as C, verifyJsonLd as S, hasSignatureLike as _, verifyProof as a, signJsonLd as b, getKeyOwner as c, attachSignature as d, compactJsonLd as f, hasSignature as g, getNormalizationContextLoader as h, verifyObject as i, InvalidContextReferenceError as l, detachSignature as m, hasProofLike as n, normalizeOutgoingActivityJsonLd as o, createSignature as p, signObject as r, doesActorOwnKey as s, createProof as t, assertSafeJsonLd as u, isClearlyMalformedContextReference as v, wrapContextLoaderForJsonLd as w, verifyCompactJsonLd as x, isInvalidUrlTypeError as y };
@@ -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-DCXSCeB3.mjs";
5
- import { n as doubleKnock } from "./http-Bslazr8_.mjs";
4
+ import { n as version, t as name } from "./deno-DMg4SgCb.mjs";
5
+ import { n as doubleKnock } from "./http-C_edJspG.mjs";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  //#region src/federation/send.ts
@@ -7,8 +7,8 @@ import { i as assertExists, t as assertStringIncludes } from "../std__assert-CRD
7
7
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
8
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
9
9
  import { t as assert } from "../assert-DikXweDx.mjs";
10
- import { t as exportJwk } from "../key-Dk8-s0bs.mjs";
11
- import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-Bslazr8_.mjs";
10
+ import { t as exportJwk } from "../key-BAQuZEU1.mjs";
11
+ import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-C_edJspG.mjs";
12
12
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-DGu1NFwu.mjs";
13
13
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
14
14
  import { FetchError, exportSpki } from "@fedify/vocab-runtime";
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-CRDpx_HF.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
8
- import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-Dk8-s0bs.mjs";
8
+ import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-BAQuZEU1.mjs";
9
9
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DGu1NFwu.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { CryptographicKey, Multikey } from "@fedify/vocab";