@fedify/fedify 2.4.0-dev.2073 → 2.4.0-dev.2084

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 (68) hide show
  1. package/dist/{builder-CVHpPAjK.mjs → builder-BGlpUocK.mjs} +2 -2
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{compound-proof-B5Skp-vE.mjs → compound-proof-B6Aj2kGY.mjs} +1 -1
  4. package/dist/{deno-LYTbBhYV.mjs → deno-Dn-py9Zy.mjs} +1 -1
  5. package/dist/{docloader-C0SWQylk.mjs → docloader-BUq5bYJr.mjs} +2 -2
  6. package/dist/federation/builder.test.mjs +1 -1
  7. package/dist/federation/compound-fanout.test.mjs +3 -3
  8. package/dist/federation/handler-compound-proof.test.mjs +137 -10
  9. package/dist/federation/handler.test.mjs +5 -5
  10. package/dist/federation/hashlink-media.test.mjs +2 -2
  11. package/dist/federation/idempotency.test.mjs +2 -2
  12. package/dist/federation/metrics.test.mjs +1 -1
  13. package/dist/federation/middleware.test.mjs +7 -7
  14. package/dist/federation/mod.cjs +1 -1
  15. package/dist/federation/mod.js +1 -1
  16. package/dist/federation/outgoing-proof.test.mjs +5 -5
  17. package/dist/federation/portable-gateway-keys.test.mjs +3 -3
  18. package/dist/federation/portable-inbox.test.mjs +401 -6
  19. package/dist/federation/portable.test.mjs +3 -3
  20. package/dist/federation/send.test.mjs +3 -3
  21. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  22. package/dist/federation/tasks/tasks.test.mjs +2 -2
  23. package/dist/federation/temporal.test.mjs +1 -1
  24. package/dist/federation/webfinger.test.mjs +1 -1
  25. package/dist/{federation-B1aeTKKN.cjs → federation-BLGx8JUH.cjs} +126 -22
  26. package/dist/{http-vfTpzGEq.js → http-4PCCvhsU.js} +1 -1
  27. package/dist/{http-C7qHlv-b.mjs → http-B0VRNipE.mjs} +4 -4
  28. package/dist/{http-DGk8XI38.cjs → http-B5q1CHtL.cjs} +1 -1
  29. package/dist/{key-BYXnTGro.mjs → key-BJrp524f.mjs} +2 -2
  30. package/dist/{kv-cache-DCJuwdnB.js → kv-cache-1KUmAPH7.js} +1 -1
  31. package/dist/{kv-cache-DEH5jyND.mjs → kv-cache-C4C3LyYW.mjs} +1 -1
  32. package/dist/{kv-cache-DvqkKNIj.cjs → kv-cache-Dhhhrryv.cjs} +1 -1
  33. package/dist/{ld-DT3e2hOv.mjs → ld-BmFz5NLA.mjs} +3 -3
  34. package/dist/{metrics-DvlvYpq_.mjs → metrics-Beod6tzO.mjs} +1 -1
  35. package/dist/{middleware-BJcez_E3.mjs → middleware-B7CNsyqt.mjs} +1 -1
  36. package/dist/{middleware-CpyCNOW_.mjs → middleware-BKeQYPm0.mjs} +136 -32
  37. package/dist/{middleware-CCbyUF4c.js → middleware-D_9pNYe9.js} +126 -22
  38. package/dist/mod.cjs +5 -5
  39. package/dist/mod.js +5 -5
  40. package/dist/nodeinfo/handler.test.mjs +1 -1
  41. package/dist/{owner-DCIH7Iq0.cjs → owner-BQFZtFV4.cjs} +1 -1
  42. package/dist/{owner-CDsVeZI7.mjs → owner-CsKVgMzk.mjs} +3 -3
  43. package/dist/{owner-DfGz0cXm.js → owner-_pbbgLJK.js} +1 -1
  44. package/dist/{portable-key-DCyKGCQd.mjs → portable-key-B4R-CiIV.mjs} +2 -2
  45. package/dist/{proof-CxsVG6vM.mjs → proof-ozG4HfcQ.mjs} +4 -4
  46. package/dist/{send-BZJ7NsVV.mjs → send-ClPt8nYu.mjs} +3 -3
  47. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  48. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  49. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  50. package/dist/sig/compound-proof.test.mjs +2 -2
  51. package/dist/sig/http.test.mjs +2 -2
  52. package/dist/sig/key.test.mjs +1 -1
  53. package/dist/sig/ld.test.mjs +2 -2
  54. package/dist/sig/mod.cjs +3 -3
  55. package/dist/sig/mod.js +3 -3
  56. package/dist/sig/owner.test.mjs +1 -1
  57. package/dist/sig/portable-collection.test.mjs +2 -2
  58. package/dist/sig/portable-key.test.mjs +3 -3
  59. package/dist/sig/proof.test.mjs +3 -3
  60. package/dist/{sig-Cs9_ecdh.js → sig-DhdomAN0.js} +2 -2
  61. package/dist/{sig-C6TnADze.cjs → sig-k3C8sF7g.cjs} +2 -2
  62. package/dist/{temporal-CLzSfIOV.mjs → temporal-Ba0EAZAI.mjs} +1 -1
  63. package/dist/testing/kv.test.mjs +1 -1
  64. package/dist/utils/docloader.test.mjs +2 -2
  65. package/dist/utils/kv-cache.test.mjs +1 -1
  66. package/dist/utils/mod.cjs +1 -1
  67. package/dist/utils/mod.js +1 -1
  68. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-LYTbBhYV.mjs";
4
+ import { n as version, t as name } from "./deno-Dn-py9Zy.mjs";
5
5
  import { t as ActivityListenerSet } from "./activity-listener-C-BSbKI7.mjs";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { Router, RouterError, assertPath } from "@fedify/uri-template";
@@ -86,7 +86,7 @@ var FederationBuilderImpl = class {
86
86
  * specified.
87
87
  */
88
88
  async build(options) {
89
- const { FederationImpl } = await import("./middleware-BJcez_E3.mjs");
89
+ const { FederationImpl } = await import("./middleware-B7CNsyqt.mjs");
90
90
  const f = new FederationImpl(options);
91
91
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
92
92
  f.router = this.router.clone();
@@ -5,7 +5,7 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
6
6
  import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
7
7
  import { t as assert } from "../assert-D1Eafmd_.mjs";
8
- import { C as actorDehydrator, n as FederationImpl, w as autoIdAssigner } from "../middleware-CpyCNOW_.mjs";
8
+ import { C as actorDehydrator, n as FederationImpl, w as autoIdAssigner } from "../middleware-BKeQYPm0.mjs";
9
9
  import { Follow, Person } from "@fedify/vocab";
10
10
  import { test } from "@fedify/fixture";
11
11
  //#region src/compat/transformers.test.ts
@@ -1,7 +1,7 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { i as verifyMapLocalProof, s as verifyPortableObjectProofPolicy } from "./proof-CxsVG6vM.mjs";
4
+ import { i as verifyMapLocalProof, s as verifyPortableObjectProofPolicy } from "./proof-ozG4HfcQ.mjs";
5
5
  //#region src/sig/compound-proof.ts
6
6
  const textEncoder = new TextEncoder();
7
7
  const PORTABLE_OBJECT_ID_PATTERN = /^ap(?:\+ef61)?:\/\//i;
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.4.0-dev.2073+2152dfc6";
6
+ var version = "2.4.0-dev.2084+4b8bd325";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,8 +1,8 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { s as validateCryptoKey } from "./key-BYXnTGro.mjs";
5
- import { n as doubleKnock } from "./http-C7qHlv-b.mjs";
4
+ import { s as validateCryptoKey } from "./key-BJrp524f.mjs";
5
+ import { n as doubleKnock } from "./http-B0VRNipE.mjs";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { curry } from "es-toolkit";
8
8
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -6,7 +6,7 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
6
6
  import { t as assertExists } from "../assert_exists-cffSpJ7X.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
8
8
  import "../std__assert-DvMDRPes.mjs";
9
- import { r as createFederationBuilder } from "../builder-CVHpPAjK.mjs";
9
+ import { r as createFederationBuilder } from "../builder-BGlpUocK.mjs";
10
10
  import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
11
11
  import { Activity, Note, Person } from "@fedify/vocab";
12
12
  import { test } from "@fedify/fixture";
@@ -6,11 +6,11 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
6
6
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
7
7
  import "../std__assert-DvMDRPes.mjs";
8
8
  import { t as assert } from "../assert-D1Eafmd_.mjs";
9
- import { t as exportJwk } from "../key-BYXnTGro.mjs";
9
+ import { t as exportJwk } from "../key-BJrp524f.mjs";
10
10
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
11
- import { l as verifyProof, r as signObject } from "../proof-CxsVG6vM.mjs";
11
+ import { l as verifyProof, r as signObject } from "../proof-ozG4HfcQ.mjs";
12
12
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
13
- import { n as FederationImpl } from "../middleware-CpyCNOW_.mjs";
13
+ import { n as FederationImpl } from "../middleware-BKeQYPm0.mjs";
14
14
  import { Create, DataIntegrityProof, Note } from "@fedify/vocab";
15
15
  import { mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
@@ -5,10 +5,10 @@ import { r as createRequestContext, t as createInboxContext } from "../context-D
5
5
  import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
6
6
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
7
7
  import "../std__assert-DvMDRPes.mjs";
8
- import { p as signJsonLd } from "../ld-DT3e2hOv.mjs";
9
- import { s as signRequest } from "../http-C7qHlv-b.mjs";
10
- import { a as rsaPrivateKey3, c as rsaPublicKey3 } from "../keys-DIJNHW-Y.mjs";
11
- import { o as createFederation, p as handleInbox } from "../middleware-CpyCNOW_.mjs";
8
+ import { a as compactJsonLd, m as verifyCompactJsonLd, p as signJsonLd } from "../ld-BmFz5NLA.mjs";
9
+ import { s as signRequest } from "../http-B0VRNipE.mjs";
10
+ import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
11
+ import { o as createFederation, p as handleInbox } from "../middleware-BKeQYPm0.mjs";
12
12
  import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
13
13
  import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
14
14
  import { Create } from "@fedify/vocab";
@@ -100,12 +100,7 @@ test("handleInbox() enforces portable compound proofs atomically", async () => {
100
100
  tamperedInner.object.content = "Tampered";
101
101
  assertEquals((await handle(await secureDocument(tamperedInner, map_local_create_note_default.keys.outer.testPrivateKeyJwk, map_local_create_note_default.keys.outer.verificationMethod))).status, 401);
102
102
  const changedAfterSigning = structuredClone(valid);
103
- changedAfterSigning.signature = {
104
- type: "RsaSignature2017",
105
- creator: "https://example.com/keys/1",
106
- created: "2023-02-24T23:36:38Z",
107
- signatureValue: "not-a-signature"
108
- };
103
+ changedAfterSigning.summary = "Added after signing";
109
104
  assertEquals((await handle(changedAfterSigning)).status, 401);
110
105
  });
111
106
  test("handleInbox() enforces compounds after alternate outer auth", async () => {
@@ -148,5 +143,137 @@ test("handleInbox() preserves ordinary top-level proof behavior", async () => {
148
143
  }
149
144
  }, map_local_create_note_default.keys.outer.testPrivateKeyJwk, map_local_create_note_default.keys.outer.verificationMethod))).status, 202);
150
145
  });
146
+ async function signLd(document) {
147
+ return await signJsonLd(document, rsaPrivateKey3, rsaPublicKey3.id, { contextLoader: mockDocumentLoader });
148
+ }
149
+ async function isLdSignatureVerified(document) {
150
+ return await verifyCompactJsonLd(await compactJsonLd(document, mockDocumentLoader), {
151
+ contextLoader: mockDocumentLoader,
152
+ documentLoader: mockDocumentLoader
153
+ });
154
+ }
155
+ async function handleDispatched(body) {
156
+ const dispatched = { count: 0 };
157
+ const response = await handle(body, dispatched);
158
+ return [
159
+ response.status,
160
+ await response.text(),
161
+ dispatched.count
162
+ ];
163
+ }
164
+ const COMPOUND_FAILURE = "Failed to verify compound portable Object Integrity Proofs.";
165
+ test("handleInbox() ignores a portable activity's Linked Data Signature", async () => {
166
+ const signed = await signLd(structuredClone(map_local_create_note_default.documents.finalSecuredCompound));
167
+ assertEquals(await isLdSignatureVerified(signed), false);
168
+ assertEquals(await handleDispatched(signed), [
169
+ 202,
170
+ "",
171
+ 1
172
+ ]);
173
+ const bogus = structuredClone(map_local_create_note_default.documents.finalSecuredCompound);
174
+ bogus.signature = {
175
+ type: "RsaSignature2017",
176
+ creator: "https://example.com/keys/1",
177
+ created: "2023-02-24T23:36:38Z",
178
+ signatureValue: "not-a-signature"
179
+ };
180
+ assertEquals(await handleDispatched(bogus), [
181
+ 202,
182
+ "",
183
+ 1
184
+ ]);
185
+ const tampered = structuredClone(map_local_create_note_default.documents.finalSecuredCompound);
186
+ tampered.object = {
187
+ ...tampered.object,
188
+ content: "Tampered"
189
+ };
190
+ assertEquals((await handleDispatched(await signLd(tampered)))[0], 401);
191
+ const invalidInner = structuredClone(map_local_create_note_default.documents.outerUnsecuredDocument);
192
+ invalidInner.object.content = "Tampered";
193
+ assertEquals(await handleDispatched(await signLd(await secureDocument(invalidInner, map_local_create_note_default.keys.outer.testPrivateKeyJwk, map_local_create_note_default.keys.outer.verificationMethod))), [
194
+ 401,
195
+ COMPOUND_FAILURE,
196
+ 0
197
+ ]);
198
+ });
199
+ test("handleInbox() verifies compounds with verified Linked Data Signatures", async () => {
200
+ const createBody = (object) => ({
201
+ "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"],
202
+ id: "https://example.com/activities/compound-ld",
203
+ type: "Create",
204
+ actor: rsaPublicKey3.ownerId.href,
205
+ object
206
+ });
207
+ const privateJwk = await crypto.subtle.exportKey("jwk", ed25519PrivateKey);
208
+ const sign = async (object) => await signLd(await secureDocument(createBody(object), privateJwk, ed25519PublicKey.id.href));
209
+ const valid = await sign(structuredClone(map_local_create_note_default.documents.securedInner));
210
+ assertEquals(await isLdSignatureVerified(valid), true);
211
+ assertEquals(await handleDispatched(valid), [
212
+ 202,
213
+ "",
214
+ 1
215
+ ]);
216
+ const invalidInner = structuredClone(map_local_create_note_default.documents.securedInner);
217
+ invalidInner.content = "Tampered";
218
+ const invalid = await sign(invalidInner);
219
+ assertEquals(await isLdSignatureVerified(invalid), true);
220
+ assertEquals(await handleDispatched(invalid), [
221
+ 401,
222
+ COMPOUND_FAILURE,
223
+ 0
224
+ ]);
225
+ });
226
+ test("handleInbox() keeps embedded signature properties in proof inputs", async () => {
227
+ const innerWithSignature = await secureDocument({
228
+ ...map_local_create_note_default.documents.innerUnsecuredDocument,
229
+ "@context": ["https://w3id.org/security/v1", ...map_local_create_note_default.documents.innerUnsecuredDocument["@context"]],
230
+ signature: {
231
+ type: "https://example.com/ns#ExampleSignature",
232
+ signatureValue: "covered by the inner proof"
233
+ }
234
+ }, map_local_create_note_default.keys.inner.testPrivateKeyJwk, map_local_create_note_default.keys.inner.verificationMethod);
235
+ const sign = async (object) => await signLd(await secureDocument({
236
+ ...map_local_create_note_default.documents.outerUnsecuredDocument,
237
+ object
238
+ }, map_local_create_note_default.keys.outer.testPrivateKeyJwk, map_local_create_note_default.keys.outer.verificationMethod));
239
+ assertEquals(await handleDispatched(await sign(structuredClone(innerWithSignature))), [
240
+ 202,
241
+ "",
242
+ 1
243
+ ]);
244
+ const innerWithoutSignature = structuredClone(innerWithSignature);
245
+ delete innerWithoutSignature.signature;
246
+ assertEquals(await handleDispatched(await sign(innerWithoutSignature)), [
247
+ 401,
248
+ COMPOUND_FAILURE,
249
+ 0
250
+ ]);
251
+ });
252
+ test("handleInbox() inspects compounds without the Linked Data Signature", async () => {
253
+ const activity = await secureDocument({
254
+ "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"],
255
+ id: "https://example.com/activities/ordinary-ld",
256
+ type: "Create",
257
+ actor: map_local_create_note_default.keys.outer.controller,
258
+ object: {
259
+ id: "https://example.com/notes/ordinary-ld",
260
+ type: "Note",
261
+ attributedTo: map_local_create_note_default.keys.outer.controller,
262
+ content: "An ordinary note"
263
+ }
264
+ }, map_local_create_note_default.keys.outer.testPrivateKeyJwk, map_local_create_note_default.keys.outer.verificationMethod);
265
+ activity.signature = {
266
+ id: map_local_create_note_default.documents.innerUnsecuredDocument.id,
267
+ type: "RsaSignature2017",
268
+ creator: "https://example.com/keys/1",
269
+ created: "2023-02-24T23:36:38Z",
270
+ signatureValue: "not-a-signature"
271
+ };
272
+ assertEquals(await handleDispatched(activity), [
273
+ 202,
274
+ "",
275
+ 1
276
+ ]);
277
+ });
151
278
  //#endregion
152
279
  export {};
@@ -10,12 +10,12 @@ import "../std__assert-DvMDRPes.mjs";
10
10
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
11
11
  import { t as assert } from "../assert-D1Eafmd_.mjs";
12
12
  import { r as parseAcceptSignature } from "../accept-CPVqki78.mjs";
13
- import { a as generateCryptoKeyPair } from "../key-BYXnTGro.mjs";
14
- import { a as compactJsonLd, p as signJsonLd } from "../ld-DT3e2hOv.mjs";
15
- import { r as signObject } from "../proof-CxsVG6vM.mjs";
16
- import { s as signRequest } from "../http-C7qHlv-b.mjs";
13
+ import { a as generateCryptoKeyPair } from "../key-BJrp524f.mjs";
14
+ import { a as compactJsonLd, p as signJsonLd } from "../ld-BmFz5NLA.mjs";
15
+ import { r as signObject } from "../proof-ozG4HfcQ.mjs";
16
+ import { s as signRequest } from "../http-B0VRNipE.mjs";
17
17
  import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
18
- import { _ as respondWithObjectIfAcceptable, d as handleCollection, f as handleCustomCollection, g as respondWithObject, h as handleOutbox, m as handleObject, o as createFederation, p as handleInbox, u as handleActor } from "../middleware-CpyCNOW_.mjs";
18
+ import { _ as respondWithObjectIfAcceptable, d as handleCollection, f as handleCustomCollection, g as respondWithObject, h as handleOutbox, m as handleObject, o as createFederation, p as handleInbox, u as handleActor } from "../middleware-BKeQYPm0.mjs";
19
19
  import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
20
20
  import { Activity, Create, CryptographicKey, Multikey, Note, Person, Tombstone } from "@fedify/vocab";
21
21
  import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -10,8 +10,8 @@ import "../std__assert-DvMDRPes.mjs";
10
10
  import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
11
11
  import { t as assert } from "../assert-D1Eafmd_.mjs";
12
12
  import { r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
13
- import { o as createFederation, y as parseHashlinkGatewayRequest } from "../middleware-CpyCNOW_.mjs";
14
- import { r as createFederationBuilder } from "../builder-CVHpPAjK.mjs";
13
+ import { o as createFederation, y as parseHashlinkGatewayRequest } from "../middleware-BKeQYPm0.mjs";
14
+ import { r as createFederationBuilder } from "../builder-BGlpUocK.mjs";
15
15
  import { n as RouterError } from "../router-u5O5KCQr.mjs";
16
16
  import { Note } from "@fedify/vocab";
17
17
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
4
4
  import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
6
6
  import "../std__assert-DvMDRPes.mjs";
7
- import { r as signObject } from "../proof-CxsVG6vM.mjs";
7
+ import { r as signObject } from "../proof-ozG4HfcQ.mjs";
8
8
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
9
- import { o as createFederation } from "../middleware-CpyCNOW_.mjs";
9
+ import { o as createFederation } from "../middleware-BKeQYPm0.mjs";
10
10
  import { Create, Follow, Person } from "@fedify/vocab";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  //#region src/federation/idempotency.test.ts
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
5
5
  import "../std__assert-DvMDRPes.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
7
- import { _ as recordKeyLookup, 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, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-DvlvYpq_.mjs";
7
+ import { _ as recordKeyLookup, 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, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-Beod6tzO.mjs";
8
8
  import { createTestMeterProvider, test } from "@fedify/fixture";
9
9
  import { FetchError } from "@fedify/vocab-runtime";
10
10
  import { DataPointType, MeterProvider, MetricReader } from "@opentelemetry/sdk-metrics";
@@ -16,14 +16,14 @@ import "../std__assert-DvMDRPes.mjs";
16
16
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
17
17
  import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
18
18
  import { t as assert } from "../assert-D1Eafmd_.mjs";
19
- import { g as recordInboxActivity } from "../metrics-DvlvYpq_.mjs";
20
- import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-DT3e2hOv.mjs";
21
- import { a as verifyObject, r as signObject } from "../proof-CxsVG6vM.mjs";
22
- import { l as verifyRequest, s as signRequest } from "../http-C7qHlv-b.mjs";
19
+ import { g as recordInboxActivity } from "../metrics-Beod6tzO.mjs";
20
+ import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-BmFz5NLA.mjs";
21
+ import { a as verifyObject, r as signObject } from "../proof-ozG4HfcQ.mjs";
22
+ import { l as verifyRequest, s as signRequest } from "../http-B0VRNipE.mjs";
23
23
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
24
- import { t as getAuthenticatedDocumentLoader } from "../docloader-C0SWQylk.mjs";
25
- import { b as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-CpyCNOW_.mjs";
26
- import { t as doesActorOwnKey } from "../owner-CDsVeZI7.mjs";
24
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-BUq5bYJr.mjs";
25
+ import { b as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-BKeQYPm0.mjs";
26
+ import { t as doesActorOwnKey } from "../owner-CsKVgMzk.mjs";
27
27
  import { t as CircuitBreaker } from "../circuit-breaker-C5NqoLBJ.mjs";
28
28
  import { t as TaskCodec } from "../codec-C6rTrpIp.mjs";
29
29
  import { t as markCircuitBreakerLegacySweepDone } from "../circuit-breaker-test-utils-DW6YC_Pe.mjs";
@@ -1,6 +1,6 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_federation = require("../federation-B1aeTKKN.cjs");
3
+ const require_federation = require("../federation-BLGx8JUH.cjs");
4
4
  exports.CircuitBreaker = require_federation.CircuitBreaker;
5
5
  exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
6
6
  exports.MemoryKvStore = require_federation.MemoryKvStore;
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { a as respondWithObject, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as SendActivityError, l as CircuitBreaker, n as handleWebFinger, o as respondWithObjectIfAcceptable, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-CCbyUF4c.js";
3
+ import { a as respondWithObject, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as SendActivityError, l as CircuitBreaker, n as handleWebFinger, o as respondWithObjectIfAcceptable, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-D_9pNYe9.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Router as Router$1, RouterError as RouterError$1, assertPath, isPath } from "@fedify/uri-template";
6
6
  import { isEqual } from "es-toolkit";
@@ -7,12 +7,12 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
7
7
  import "../std__assert-DvMDRPes.mjs";
8
8
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
9
9
  import { t as assert } from "../assert-D1Eafmd_.mjs";
10
- import { t as exportJwk } from "../key-BYXnTGro.mjs";
11
- import { s as detachSignature } from "../ld-DT3e2hOv.mjs";
12
- import { r as signObject } from "../proof-CxsVG6vM.mjs";
10
+ import { t as exportJwk } from "../key-BJrp524f.mjs";
11
+ import { s as detachSignature } from "../ld-BmFz5NLA.mjs";
12
+ import { r as signObject } from "../proof-ozG4HfcQ.mjs";
13
13
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
14
- import { n as FederationImpl, o as createFederation } from "../middleware-CpyCNOW_.mjs";
15
- import { a as verifyCompoundPortableObjectProofs } from "../compound-proof-B5Skp-vE.mjs";
14
+ import { n as FederationImpl, o as createFederation } from "../middleware-BKeQYPm0.mjs";
15
+ import { a as verifyCompoundPortableObjectProofs } from "../compound-proof-B6Aj2kGY.mjs";
16
16
  import { Create, Note, Person } from "@fedify/vocab";
17
17
  import { mockDocumentLoader, test } from "@fedify/fixture";
18
18
  import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
@@ -7,10 +7,10 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
7
7
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
8
8
  import "../std__assert-DvMDRPes.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
10
- import { p as signJsonLd } from "../ld-DT3e2hOv.mjs";
11
- import { s as signRequest } from "../http-C7qHlv-b.mjs";
10
+ import { p as signJsonLd } from "../ld-BmFz5NLA.mjs";
11
+ import { s as signRequest } from "../http-B0VRNipE.mjs";
12
12
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
13
- import { n as FederationImpl, o as createFederation, p as handleInbox } from "../middleware-CpyCNOW_.mjs";
13
+ import { n as FederationImpl, o as createFederation, p as handleInbox } from "../middleware-BKeQYPm0.mjs";
14
14
  import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
15
15
  import { t as KvKeyCache } from "../keycache-BUDHB5rY.mjs";
16
16
  import { Create, CryptographicKey, Person } from "@fedify/vocab";