@fedify/fedify 2.4.2-dev.2362 → 2.4.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.
- package/dist/{builder-BJZRkSA0.mjs → builder-CztvQYX0.mjs} +2 -2
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-DO7ihi0I.mjs → compound-proof-rcvB6i5j.mjs} +2 -2
- package/dist/{deno-B_xugrFs.mjs → deno-BEgaR4dC.mjs} +1 -1
- package/dist/{docloader-BX3_MM3H.mjs → docloader-Wf9RroxL.mjs} +4 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +5 -5
- package/dist/federation/handler.test.mjs +258 -6
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-report.test.mjs +5 -5
- package/dist/federation/inbox.test.mjs +43 -0
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +172 -10
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/outgoing-proof.test.mjs +4 -5
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +4 -4
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +1 -1
- package/dist/federation/tasks/tasks.test.mjs +2 -2
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{federation-BlPXdMEb.cjs → federation-O8HwbuUv.cjs} +121 -20
- package/dist/{http-D7Ppe8wk.js → http-B5pRXkmQ.js} +110 -12
- package/dist/{http-DCu7taFA.cjs → http-BFC8b7mH.cjs} +109 -11
- package/dist/{http-CyBekRok.mjs → http-CQcqhcga.mjs} +4 -4
- package/dist/inbox-CsErRN6L.mjs +188 -0
- package/dist/{kv-cache-DO6xJhDx.mjs → kv-cache-4oZXC3pf.mjs} +1 -1
- package/dist/{kv-cache-C359WofH.js → kv-cache-Bih-8AoZ.js} +3 -1
- package/dist/{kv-cache-D-yaUQia.cjs → kv-cache-JOKAStz2.cjs} +3 -1
- package/dist/{key-Day6TpI3.mjs → ld-Qk4WqslS.mjs} +760 -16
- package/dist/{metrics-CulPbfp_.mjs → metrics-DAhJVtgg.mjs} +1 -1
- package/dist/{middleware-Cy25vZ9k.mjs → middleware-B582s7UO.mjs} +103 -180
- package/dist/{middleware-D69pEjVH.mjs → middleware-C76AHpbO.mjs} +1 -1
- package/dist/{middleware-BM-cjLqQ.js → middleware-KeANQWIR.js} +121 -20
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-B4HTXRVN.mjs → owner-CcyHGdSK.mjs} +3 -3
- package/dist/{portable-collection-yAUltLHw.mjs → portable-collection-0RzCsflU.mjs} +2 -2
- package/dist/{portable-collection-6fBD7lq_.cjs → portable-collection-BHZq0F_c.cjs} +1 -1
- package/dist/{portable-collection-W1VJx8ZT.js → portable-collection-Chb6A43p.js} +1 -1
- package/dist/{portable-key-DhZDzmTZ.mjs → portable-key-BY6G_X28.mjs} +1 -1
- package/dist/{proof-BAh1znka.mjs → proof-nIOXkRme.mjs} +3 -4
- package/dist/{send-LwdLJ1Pk.mjs → send-C2r9whkz.mjs} +3 -3
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +208 -3
- package/dist/sig/ld.test.mjs +1 -2
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +5 -6
- package/dist/sig/proof.test.mjs +3 -3
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-B16oe94V.mjs → temporal-D5tHfTGO.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/utils/docloader.test.mjs +112 -37
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +7 -7
- package/dist/ld-D7AdYXVK.mjs +0 -658
|
@@ -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-
|
|
20
|
-
import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-
|
|
21
|
-
import { a as signObject, s as verifyObject } from "../proof-
|
|
22
|
-
import { f as verifyRequest, l as signRequest } from "../http-
|
|
19
|
+
import { g as recordInboxActivity } from "../metrics-DAhJVtgg.mjs";
|
|
20
|
+
import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-Qk4WqslS.mjs";
|
|
21
|
+
import { a as signObject, s as verifyObject } from "../proof-nIOXkRme.mjs";
|
|
22
|
+
import { f as verifyRequest, l as signRequest } from "../http-CQcqhcga.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-
|
|
25
|
-
import { T as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-
|
|
26
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
24
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-Wf9RroxL.mjs";
|
|
25
|
+
import { T as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-B582s7UO.mjs";
|
|
26
|
+
import { t as doesActorOwnKey } from "../owner-CcyHGdSK.mjs";
|
|
27
27
|
import { t as CircuitBreaker } from "../circuit-breaker-XJ53md4S.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";
|
|
@@ -3432,7 +3432,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3432
3432
|
activity: {
|
|
3433
3433
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3434
3434
|
type: "Create",
|
|
3435
|
-
id: "https://example
|
|
3435
|
+
id: "https://remote.example/activities/queued-processed",
|
|
3436
3436
|
actor: "https://remote.example/users/alice",
|
|
3437
3437
|
object: {
|
|
3438
3438
|
type: "Note",
|
|
@@ -3450,6 +3450,50 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3450
3450
|
assertEquals(inboxLifecycle[0].attributes["activitypub.processing.result"], "processed");
|
|
3451
3451
|
assertEquals(inboxLifecycle[0].attributes["activitypub.activity.type"], "https://www.w3.org/ns/activitystreams#Create");
|
|
3452
3452
|
});
|
|
3453
|
+
await t.step("records activitypub.inbox.activity rejected for a queued activity whose ID has another origin than its actor", async () => {
|
|
3454
|
+
const kv = new MemoryKvStore();
|
|
3455
|
+
const [meterProvider, recorder] = createTestMeterProvider();
|
|
3456
|
+
const federation = new FederationImpl({
|
|
3457
|
+
kv,
|
|
3458
|
+
meterProvider,
|
|
3459
|
+
queue: {
|
|
3460
|
+
enqueue(_message, _options) {
|
|
3461
|
+
return Promise.resolve();
|
|
3462
|
+
},
|
|
3463
|
+
listen(_handler, _options) {
|
|
3464
|
+
return Promise.resolve();
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
});
|
|
3468
|
+
let dispatched = false;
|
|
3469
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(vocab.Create, () => {
|
|
3470
|
+
dispatched = true;
|
|
3471
|
+
});
|
|
3472
|
+
await federation.processQueuedTask(void 0, {
|
|
3473
|
+
type: "inbox",
|
|
3474
|
+
id: crypto.randomUUID(),
|
|
3475
|
+
baseUrl: "https://example.com",
|
|
3476
|
+
activity: {
|
|
3477
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3478
|
+
type: "Create",
|
|
3479
|
+
id: "https://victim.example/activities/queued-forged",
|
|
3480
|
+
actor: "https://remote.example/users/alice",
|
|
3481
|
+
object: {
|
|
3482
|
+
type: "Note",
|
|
3483
|
+
content: "Hello world"
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3487
|
+
attempt: 0,
|
|
3488
|
+
identifier: null,
|
|
3489
|
+
traceContext: {}
|
|
3490
|
+
});
|
|
3491
|
+
assertFalse(dispatched);
|
|
3492
|
+
const inboxLifecycle = recorder.getMeasurements("activitypub.inbox.activity");
|
|
3493
|
+
assertEquals(inboxLifecycle.length, 1);
|
|
3494
|
+
assertEquals(inboxLifecycle[0].attributes["activitypub.processing.result"], "rejected");
|
|
3495
|
+
assertEquals(inboxLifecycle[0].attributes["activitypub.activity.type"], "https://www.w3.org/ns/activitystreams#Create");
|
|
3496
|
+
});
|
|
3453
3497
|
await t.step("records activitypub.inbox.activity retried on transient listener failure", async () => {
|
|
3454
3498
|
const kv = new MemoryKvStore();
|
|
3455
3499
|
const [meterProvider, recorder] = createTestMeterProvider();
|
|
@@ -3475,7 +3519,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3475
3519
|
activity: {
|
|
3476
3520
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3477
3521
|
type: "Create",
|
|
3478
|
-
id: "https://example
|
|
3522
|
+
id: "https://remote.example/activities/queued-retried",
|
|
3479
3523
|
actor: "https://remote.example/users/alice",
|
|
3480
3524
|
object: {
|
|
3481
3525
|
type: "Note",
|
|
@@ -3518,7 +3562,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3518
3562
|
activity: {
|
|
3519
3563
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3520
3564
|
type: "Create",
|
|
3521
|
-
id: "https://example
|
|
3565
|
+
id: "https://remote.example/activities/queued-abandoned",
|
|
3522
3566
|
actor: "https://remote.example/users/alice",
|
|
3523
3567
|
object: {
|
|
3524
3568
|
type: "Note",
|
|
@@ -7500,6 +7544,124 @@ test("ContextImpl.routeActivity() marks queued signed activities as non-LDS", as
|
|
|
7500
7544
|
assertEquals(inboxMessage.ldSignatureVerified, false);
|
|
7501
7545
|
assertEquals(inboxMessage.normalizedActivity, void 0);
|
|
7502
7546
|
});
|
|
7547
|
+
for (const queued of [false, true]) test(`ContextImpl.routeActivity() rejects a proof-signed cross-origin ID (queued: ${queued})`, async () => {
|
|
7548
|
+
const messages = [];
|
|
7549
|
+
const queue = {
|
|
7550
|
+
enqueue(message) {
|
|
7551
|
+
messages.push(message);
|
|
7552
|
+
return Promise.resolve();
|
|
7553
|
+
},
|
|
7554
|
+
async listen() {}
|
|
7555
|
+
};
|
|
7556
|
+
const federation = createFederation({
|
|
7557
|
+
kv: new MemoryKvStore(),
|
|
7558
|
+
documentLoaderFactory: () => mockDocumentLoader,
|
|
7559
|
+
contextLoaderFactory: () => mockDocumentLoader,
|
|
7560
|
+
queue: queued ? {
|
|
7561
|
+
inbox: queue,
|
|
7562
|
+
outbox: queue
|
|
7563
|
+
} : void 0,
|
|
7564
|
+
manuallyStartQueue: true
|
|
7565
|
+
});
|
|
7566
|
+
let listenerCalls = 0;
|
|
7567
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7568
|
+
listenerCalls++;
|
|
7569
|
+
});
|
|
7570
|
+
const signed = await signObject(new Create({
|
|
7571
|
+
id: new URL("https://victim.example/activities/1"),
|
|
7572
|
+
actor: ed25519Multikey.controllerId
|
|
7573
|
+
}), ed25519PrivateKey, ed25519Multikey.id, {
|
|
7574
|
+
contextLoader: mockDocumentLoader,
|
|
7575
|
+
documentLoader: mockDocumentLoader
|
|
7576
|
+
});
|
|
7577
|
+
assertFalse(await federation.createContext(new URL("https://local.example/")).routeActivity(null, signed));
|
|
7578
|
+
assertEquals(listenerCalls, 0);
|
|
7579
|
+
assertEquals(messages, []);
|
|
7580
|
+
});
|
|
7581
|
+
test("ContextImpl.routeActivity() rejects a missing actor before routing", async () => {
|
|
7582
|
+
const federation = createFederation({
|
|
7583
|
+
kv: new MemoryKvStore(),
|
|
7584
|
+
documentLoaderFactory: () => mockDocumentLoader,
|
|
7585
|
+
contextLoaderFactory: () => mockDocumentLoader
|
|
7586
|
+
});
|
|
7587
|
+
let listenerCalls = 0;
|
|
7588
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7589
|
+
listenerCalls++;
|
|
7590
|
+
});
|
|
7591
|
+
assertFalse(await federation.createContext(new URL("https://local.example/")).routeActivity(null, new Create({ id: new URL("https://remote.example/activities/1") })));
|
|
7592
|
+
assertEquals(listenerCalls, 0);
|
|
7593
|
+
});
|
|
7594
|
+
test("FederationImpl.processQueuedTask() rejects untrusted activity origins before KV access", async () => {
|
|
7595
|
+
class TrackingKvStore extends MemoryKvStore {
|
|
7596
|
+
reads = 0;
|
|
7597
|
+
writes = 0;
|
|
7598
|
+
get(key) {
|
|
7599
|
+
this.reads++;
|
|
7600
|
+
return super.get(key);
|
|
7601
|
+
}
|
|
7602
|
+
set(key, value, options) {
|
|
7603
|
+
this.writes++;
|
|
7604
|
+
return super.set(key, value, options);
|
|
7605
|
+
}
|
|
7606
|
+
}
|
|
7607
|
+
for (const activity of [{
|
|
7608
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7609
|
+
id: "https://victim.example/activities/1",
|
|
7610
|
+
type: "Create",
|
|
7611
|
+
actor: "https://attacker.example/actor"
|
|
7612
|
+
}, {
|
|
7613
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7614
|
+
id: "https://victim.example/activities/2",
|
|
7615
|
+
type: "Create"
|
|
7616
|
+
}]) {
|
|
7617
|
+
const kv = new TrackingKvStore();
|
|
7618
|
+
const federation = new FederationImpl({ kv });
|
|
7619
|
+
let listenerCalls = 0;
|
|
7620
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7621
|
+
listenerCalls++;
|
|
7622
|
+
});
|
|
7623
|
+
await federation.processQueuedTask(void 0, {
|
|
7624
|
+
type: "inbox",
|
|
7625
|
+
id: crypto.randomUUID(),
|
|
7626
|
+
baseUrl: "https://local.example",
|
|
7627
|
+
activity,
|
|
7628
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7629
|
+
attempt: 0,
|
|
7630
|
+
identifier: null,
|
|
7631
|
+
traceContext: {}
|
|
7632
|
+
});
|
|
7633
|
+
assertEquals(listenerCalls, 0);
|
|
7634
|
+
assertEquals(kv.reads, 0);
|
|
7635
|
+
assertEquals(kv.writes, 0);
|
|
7636
|
+
}
|
|
7637
|
+
const kv = new TrackingKvStore();
|
|
7638
|
+
const federation = new FederationImpl({
|
|
7639
|
+
kv,
|
|
7640
|
+
skipSignatureVerification: true
|
|
7641
|
+
});
|
|
7642
|
+
let listenerCalls = 0;
|
|
7643
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7644
|
+
listenerCalls++;
|
|
7645
|
+
});
|
|
7646
|
+
await federation.processQueuedTask(void 0, {
|
|
7647
|
+
type: "inbox",
|
|
7648
|
+
id: crypto.randomUUID(),
|
|
7649
|
+
baseUrl: "https://local.example",
|
|
7650
|
+
activity: {
|
|
7651
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7652
|
+
id: "https://victim.example/activities/opt-out",
|
|
7653
|
+
type: "Create",
|
|
7654
|
+
actor: "https://attacker.example/actor"
|
|
7655
|
+
},
|
|
7656
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7657
|
+
attempt: 0,
|
|
7658
|
+
identifier: null,
|
|
7659
|
+
traceContext: {}
|
|
7660
|
+
});
|
|
7661
|
+
assertEquals(listenerCalls, 1);
|
|
7662
|
+
assertEquals(kv.reads, 1);
|
|
7663
|
+
assertEquals(kv.writes, 1);
|
|
7664
|
+
});
|
|
7503
7665
|
test("ContextImpl.getCollectionUri()", () => {
|
|
7504
7666
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
7505
7667
|
const base = "https://example.com";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -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-
|
|
3
|
+
const require_federation = require("../federation-O8HwbuUv.cjs");
|
|
4
4
|
exports.CircuitBreaker = require_federation.CircuitBreaker;
|
|
5
5
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
6
6
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
package/dist/federation/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-
|
|
3
|
+
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-KeANQWIR.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,11 @@ 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 {
|
|
11
|
-
import {
|
|
12
|
-
import { a as signObject } from "../proof-BAh1znka.mjs";
|
|
10
|
+
import { s as detachSignature, y as exportJwk } from "../ld-Qk4WqslS.mjs";
|
|
11
|
+
import { a as signObject } from "../proof-nIOXkRme.mjs";
|
|
13
12
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { C as getEmbeddedFirstGateway, S as getCompactRootId, c as assertPortableActorActivity, n as FederationImpl, o as createFederation, w as warnCompatibleIdsInJson } from "../middleware-
|
|
15
|
-
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-
|
|
13
|
+
import { C as getEmbeddedFirstGateway, S as getCompactRootId, c as assertPortableActorActivity, n as FederationImpl, o as createFederation, w as warnCompatibleIdsInJson } from "../middleware-B582s7UO.mjs";
|
|
14
|
+
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-rcvB6i5j.mjs";
|
|
16
15
|
import { configure, reset } from "@logtape/logtape";
|
|
17
16
|
import { Accept, Announce, Create, Follow, Note, Person } from "@fedify/vocab";
|
|
18
17
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
@@ -8,10 +8,10 @@ import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
9
9
|
import "../std__assert-DvMDRPes.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { a as signObject, c as verifyPortableObjectProof } from "../proof-
|
|
12
|
-
import { f as verifyRequest, l as signRequest } from "../http-
|
|
11
|
+
import { a as signObject, c as verifyPortableObjectProof } from "../proof-nIOXkRme.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest } from "../http-CQcqhcga.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
14
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { configure, reset } from "@logtape/logtape";
|
|
17
17
|
import { Note, Person, Tombstone, lookupObject } from "@fedify/vocab";
|
|
@@ -7,10 +7,10 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { c as verifyPortableObjectProof, s as verifyObject } from "../proof-
|
|
10
|
+
import { y as exportJwk } from "../ld-Qk4WqslS.mjs";
|
|
11
|
+
import { c as verifyPortableObjectProof, s as verifyObject } from "../proof-nIOXkRme.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-
|
|
13
|
+
import { n as FederationImpl } from "../middleware-B582s7UO.mjs";
|
|
14
14
|
import { Create, DataIntegrityProof, Note, OrderedCollection, Person, traverseCollection } from "@fedify/vocab";
|
|
15
15
|
import { FetchError, encodeMultibase, exportDidKey } from "@fedify/vocab-runtime";
|
|
16
16
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -7,11 +7,11 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import { a as signObject, c as verifyPortableObjectProof } from "../proof-
|
|
10
|
+
import { a as signObject, c as verifyPortableObjectProof } from "../proof-nIOXkRme.mjs";
|
|
11
11
|
import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
12
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
13
|
-
import { t as verifyPortableObject } from "../portable-collection-
|
|
14
|
-
import { c as verifyServedPortableObjects } from "../compound-proof-
|
|
12
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
13
|
+
import { t as verifyPortableObject } from "../portable-collection-0RzCsflU.mjs";
|
|
14
|
+
import { c as verifyServedPortableObjects } from "../compound-proof-rcvB6i5j.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { configure, reset } from "@logtape/logtape";
|
|
17
17
|
import { Create, Note, Object as Object$1, OrderedCollection, PUBLIC_COLLECTION, Person, Tombstone, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as esm_default } from "../esm-BHXXx4Wx.mjs";
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { i as rsaPrivateKey2, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
7
|
-
import { n as FederationImpl, r as InboxContextImpl } from "../middleware-
|
|
8
|
-
import { n as extractInboxes, t as SendActivityError } from "../send-
|
|
7
|
+
import { n as FederationImpl, r as InboxContextImpl } from "../middleware-B582s7UO.mjs";
|
|
8
|
+
import { n as extractInboxes, t as SendActivityError } from "../send-C2r9whkz.mjs";
|
|
9
9
|
import { Create, Endpoints, Note, Person } from "@fedify/vocab";
|
|
10
10
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -8,11 +8,11 @@ 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
10
|
import { r as getVerifiedKeyOwnerEvidence } from "../key-owner-evidence-APB6NpSk.mjs";
|
|
11
|
-
import { p as signJsonLd } from "../ld-
|
|
12
|
-
import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-
|
|
11
|
+
import { p as signJsonLd } from "../ld-Qk4WqslS.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-CQcqhcga.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-
|
|
15
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
14
|
+
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
15
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CcyHGdSK.mjs";
|
|
16
16
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
17
17
|
import { t as KvKeyCache } from "../keycache-D-MNltOk.mjs";
|
|
18
18
|
import { Create, CryptographicKey, Person } from "@fedify/vocab";
|
|
@@ -8,11 +8,11 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
9
9
|
import "../std__assert-DvMDRPes.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { p as signJsonLd } from "../ld-
|
|
12
|
-
import { a as signObject } from "../proof-
|
|
13
|
-
import { l as signRequest, p as verifyRequestDetailed } from "../http-
|
|
11
|
+
import { p as signJsonLd } from "../ld-Qk4WqslS.mjs";
|
|
12
|
+
import { a as signObject } from "../proof-nIOXkRme.mjs";
|
|
13
|
+
import { l as signRequest, p as verifyRequestDetailed } from "../http-CQcqhcga.mjs";
|
|
14
14
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
15
|
-
import { _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-
|
|
15
|
+
import { _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-B582s7UO.mjs";
|
|
16
16
|
import { Create, CryptographicKey, Follow, Note, Person, Tombstone } from "@fedify/vocab";
|
|
17
17
|
import { exportDidKey, formatIri, parseIri } from "@fedify/vocab-runtime";
|
|
18
18
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -7,7 +7,7 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
9
|
import { r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
10
|
-
import { o as createFederation } from "../middleware-
|
|
10
|
+
import { o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
11
11
|
import { Note, Object as Object$1, Person } from "@fedify/vocab";
|
|
12
12
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
13
13
|
import { test } from "@fedify/fixture";
|
|
@@ -6,9 +6,9 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
6
6
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { a as signObject } from "../proof-
|
|
9
|
+
import { a as signObject } from "../proof-nIOXkRme.mjs";
|
|
10
10
|
import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
11
|
-
import { o as createFederation } from "../middleware-
|
|
11
|
+
import { o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
12
12
|
import { Create, Note } from "@fedify/vocab";
|
|
13
13
|
import { exportDidKey, formatIri, parseIri, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|
|
14
14
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -8,10 +8,10 @@ import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { a as signObject, c as verifyPortableObjectProof } from "../proof-
|
|
12
|
-
import { l as signRequest } from "../http-
|
|
11
|
+
import { a as signObject, c as verifyPortableObjectProof } from "../proof-nIOXkRme.mjs";
|
|
12
|
+
import { l as signRequest } from "../http-CQcqhcga.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
14
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-B582s7UO.mjs";
|
|
15
15
|
import { configure, reset } from "@logtape/logtape";
|
|
16
16
|
import { Collection, Create, Note, Object as Object$1, PUBLIC_COLLECTION, Person, Tombstone, lookupObject } from "@fedify/vocab";
|
|
17
17
|
import { exportDidKey, formatIri, parseIri, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|
|
@@ -10,10 +10,10 @@ import { t as assertNotEquals } from "../assert_not_equals-CpPK2t89.mjs";
|
|
|
10
10
|
import "../std__assert-DvMDRPes.mjs";
|
|
11
11
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
12
12
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
13
|
-
import { f as verifyRequest } from "../http-
|
|
13
|
+
import { f as verifyRequest } from "../http-CQcqhcga.mjs";
|
|
14
14
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
15
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
16
|
-
import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-
|
|
15
|
+
import { t as doesActorOwnKey } from "../owner-CcyHGdSK.mjs";
|
|
16
|
+
import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-C2r9whkz.mjs";
|
|
17
17
|
import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
|
|
18
18
|
import { FetchError, UrlError } from "@fedify/vocab-runtime";
|
|
19
19
|
import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-IG3pHfvZ.mjs";
|
|
6
6
|
import "../../testing-t8xDeJZ5.mjs";
|
|
7
|
-
import { o as createFederation } from "../../middleware-
|
|
7
|
+
import { o as createFederation } from "../../middleware-B582s7UO.mjs";
|
|
8
8
|
import { n as ParallelMessageQueue } from "../../mq-Dm1Wmtm-.mjs";
|
|
9
9
|
import { configure, reset } from "@logtape/logtape";
|
|
10
10
|
import { delay } from "es-toolkit";
|
|
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-IG3pHfvZ.mjs";
|
|
6
6
|
import "../../testing-t8xDeJZ5.mjs";
|
|
7
|
-
import { o as createFederation } from "../../middleware-
|
|
8
|
-
import { r as createFederationBuilder } from "../../builder-
|
|
7
|
+
import { o as createFederation } from "../../middleware-B582s7UO.mjs";
|
|
8
|
+
import { r as createFederationBuilder } from "../../builder-CztvQYX0.mjs";
|
|
9
9
|
import { t as TaskCodec } from "../../codec-C6rTrpIp.mjs";
|
|
10
10
|
import { t as InProcessMessageQueue } from "../../mq-Dm1Wmtm-.mjs";
|
|
11
11
|
import { W3CTraceContextPropagator } from "@opentelemetry/core";
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
6
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
7
|
-
import { t as hasMalformedKnownTemporalLiteral } from "../temporal-
|
|
7
|
+
import { t as hasMalformedKnownTemporalLiteral } from "../temporal-D5tHfTGO.mjs";
|
|
8
8
|
import { test } from "@fedify/fixture";
|
|
9
9
|
//#region src/federation/temporal.test.ts
|
|
10
10
|
test("hasMalformedKnownTemporalLiteral() detects expanded proof timestamps", async () => {
|
|
@@ -6,7 +6,7 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import { t as assertNotEquals } from "../assert_not_equals-CpPK2t89.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
|
-
import { o as createFederation, s as handleWebFinger } from "../middleware-
|
|
9
|
+
import { o as createFederation, s as handleWebFinger } from "../middleware-B582s7UO.mjs";
|
|
10
10
|
import { Image, Link, Person, Tombstone } from "@fedify/vocab";
|
|
11
11
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
12
12
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|