@fedify/fedify 1.8.14-pr.470.1832 → 1.8.14-pr.470.1835
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/{actor-CQun2LMl.js → actor-7YV266f1.js} +179 -179
- package/dist/{actor-WPWqtDNJ.d.ts → actor-Uh1YDuVl.d.ts} +1 -1
- package/dist/{actor-9s3WvbFp.js → actor-kNsYanj6.js} +1 -1
- package/dist/{authdocloader-Bqmp0UcQ.js → authdocloader-BNL0PCsp.js} +3 -3
- package/dist/{authdocloader-BgYRnN3Q.js → authdocloader-Dw6isGiN.js} +3 -3
- package/dist/{builder-KRZXPPWM.js → builder-13BL2y25.js} +4 -4
- package/dist/{client-DhSHvGlU.js → client-Q-sLUxCh.js} +1 -1
- package/dist/compat/mod.d.ts +9 -9
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-BVXh6U8x.d.ts → context-CnveeHUR.d.ts} +25 -29
- package/dist/{docloader-B3-PAoGx.js → docloader-DcTzXQ35.js} +1 -1
- package/dist/{esm-D4Y3V3TX.js → esm-CkS75k2_.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.d.ts +8 -8
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-BqfZ3DiV.js → http-BdNu0ORR.js} +2 -2
- package/dist/{http-e1180cSn.d.ts → http-DtG44GdM.d.ts} +1 -1
- package/dist/{http-Clle8OhQ.js → http-W5kSmT8n.js} +3 -3
- package/dist/{inbox-pY_0KiG-.js → inbox-C4wSr224.js} +1 -1
- package/dist/{key-DPDQaDw5.js → key-BXSJt4So.js} +3 -3
- package/dist/{key-Zp-T0bhP.js → key-BjSxApvl.js} +2 -2
- package/dist/{key-toTNLBm1.js → key-lj-EeFGh.js} +2 -2
- package/dist/{key-2kt7ohj3.js → key-peWlmKje.js} +4 -4
- package/dist/{keycache-B9bzg6VQ.js → keycache-Bz6XnJHB.js} +1 -1
- package/dist/{keys-4zM5Up9R.js → keys-7k1jnaW7.js} +1 -1
- package/dist/{ld-CPeQLxZy.js → ld-7F3GAVgl.js} +2 -2
- package/dist/{lookup-gy112MkU.js → lookup-B5J-YtGW.js} +1 -1
- package/dist/{lookup-Akl5ucko.js → lookup-DEx2HD7Z.js} +1 -1
- package/dist/{middleware-CKOUGNAC.js → middleware-B9paI-O7.js} +13 -13
- package/dist/middleware-BiYBkcnD.js +17 -0
- package/dist/{middleware-CSft86O_.js → middleware-DZcMt7tI.js} +10 -10
- package/dist/middleware-VaUw2tA0.js +26 -0
- package/dist/{mod-BCP9zDgV.d.ts → mod-DPpunL8j.d.ts} +2 -2
- package/dist/{mod-BZ1k6aCD.d.ts → mod-cz-tNIqP.d.ts} +86 -86
- package/dist/{mod-DEZNLUj-.d.ts → mod-mSMqo9JU.d.ts} +1 -1
- package/dist/{mod-ltCoOz0H.d.ts → mod-tQVUxQ_D.d.ts} +2 -2
- package/dist/mod.d.ts +11 -11
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.d.ts +1 -1
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-CB8DneNI.d.ts → owner-C12klfeG.d.ts} +2 -2
- package/dist/{owner-D0hzHvfW.js → owner-D0gMOw5k.js} +2 -2
- package/dist/{proof-seBFgbXH.js → proof-2jcii9qJ.js} +2 -2
- package/dist/{proof-DQsTTtYV.js → proof-CepXPgtj.js} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-D59NCngn.js → send-CR0gkB-m.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +345 -349
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-kXBTYzVX.js → testing-CtJY-KPr.js} +2 -2
- package/dist/{type-wUeR1KOP.js → type-geidmXZc.js} +178 -178
- package/dist/{types-DsANHy_R.js → types-HMuM33tm.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-MJte5oO1.js → vocab-z0q3f-S2.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +8 -8
- package/dist/x/sveltekit.d.ts +8 -8
- package/package.json +1 -1
- package/dist/middleware-BBSyhnc7.js +0 -17
- package/dist/middleware-D0tzF2Wo.js +0 -26
- /package/dist/{client-BsnHpE32.d.ts → client-DF8anIB5.d.ts} +0 -0
- /package/dist/{mq-D5smmAMS.d.ts → mq-CRGm1e_F.d.ts} +0 -0
- /package/dist/{vocab-BzWpjxBs.d.ts → vocab-Ukxjz3TM.d.ts} +0 -0
package/dist/federation/mod.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-Dna8Fg7k.js";
|
|
6
|
-
import "../docloader-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../key-
|
|
11
|
-
import "../http-
|
|
12
|
-
import "../proof-
|
|
6
|
+
import "../docloader-DcTzXQ35.js";
|
|
7
|
+
import "../actor-7YV266f1.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DZcMt7tI.js";
|
|
9
|
+
import "../lookup-DEx2HD7Z.js";
|
|
10
|
+
import "../key-lj-EeFGh.js";
|
|
11
|
+
import "../http-W5kSmT8n.js";
|
|
12
|
+
import "../proof-CepXPgtj.js";
|
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-CMX7WzeL.js";
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
14
|
+
import "../types-HMuM33tm.js";
|
|
15
|
+
import "../authdocloader-BNL0PCsp.js";
|
|
16
|
+
import "../vocab-z0q3f-S2.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-geidmXZc.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import "../lookup-B5J-YtGW.js";
|
|
11
|
+
import { test } from "../testing-CtJY-KPr.js";
|
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-geidmXZc.js";
|
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../lookup-
|
|
8
|
+
import "../lookup-B5J-YtGW.js";
|
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-CtJY-KPr.js";
|
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
12
12
|
|
|
13
13
|
//#region src/federation/retry.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-geidmXZc.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { Router, RouterError } from "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { Router, RouterError } from "../lookup-B5J-YtGW.js";
|
|
11
|
+
import { test } from "../testing-CtJY-KPr.js";
|
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-geidmXZc.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-B5J-YtGW.js";
|
|
11
|
+
import "../actor-kNsYanj6.js";
|
|
12
|
+
import "../key-BjSxApvl.js";
|
|
13
|
+
import { verifyRequest } from "../http-BdNu0ORR.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-D0gMOw5k.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-CR0gkB-m.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-CtJY-KPr.js";
|
|
17
17
|
import "../std__assert-X-_kMxKM.js";
|
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
19
19
|
import "../assert_is_error-BPGph1Jx.js";
|
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
21
21
|
import "../assert_throws-BOO88avQ.js";
|
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
23
|
-
import { esm_default } from "../esm-
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-7k1jnaW7.js";
|
|
23
|
+
import { esm_default } from "../esm-CkS75k2_.js";
|
|
24
24
|
|
|
25
25
|
//#region src/federation/send.test.ts
|
|
26
26
|
test("extractInboxes()", () => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, deno_default } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-geidmXZc.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BjSxApvl.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
|
|
4
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
|
4
|
+
import { CryptographicKey, Multikey } from "./vocab-Ukxjz3TM.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region src/sig/key.d.ts
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default } from "./docloader-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-DcTzXQ35.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-7YV266f1.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-lj-EeFGh.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, deno_default, getTypeId } from "./type-
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-geidmXZc.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "./type-
|
|
7
|
-
import "./actor-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
6
|
+
import "./type-geidmXZc.js";
|
|
7
|
+
import "./actor-kNsYanj6.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BjSxApvl.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-geidmXZc.js";
|
|
7
|
+
import { isActor } from "./actor-kNsYanj6.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-DcTzXQ35.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-7YV266f1.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "./docloader-
|
|
6
|
-
import "./actor-
|
|
7
|
-
import "./lookup-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
5
|
+
import "./docloader-DcTzXQ35.js";
|
|
6
|
+
import "./actor-7YV266f1.js";
|
|
7
|
+
import "./lookup-DEx2HD7Z.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-lj-EeFGh.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "./type-
|
|
6
|
+
import { CryptographicKey, Multikey } from "./type-geidmXZc.js";
|
|
7
7
|
|
|
8
8
|
//#region src/federation/keycache.ts
|
|
9
9
|
var KvKeyCache = class {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./type-
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-geidmXZc.js";
|
|
7
7
|
|
|
8
8
|
//#region src/testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-geidmXZc.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BjSxApvl.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-
|
|
6
|
+
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-geidmXZc.js";
|
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-DcTzXQ35.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
8
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-geidmXZc.js";
|
|
7
|
+
import { getNodeInfo } from "./client-Q-sLUxCh.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-B5J-YtGW.js";
|
|
9
9
|
import { nodeInfoToJson } from "./types-BIgY6c-l.js";
|
|
10
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
11
|
-
import { verifyRequest } from "./http-
|
|
12
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
13
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
14
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
15
|
-
import { signObject, verifyObject } from "./proof-
|
|
16
|
-
import { routeActivity } from "./inbox-
|
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-BjSxApvl.js";
|
|
11
|
+
import { verifyRequest } from "./http-BdNu0ORR.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-Dw6isGiN.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-7F3GAVgl.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-D0gMOw5k.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-2jcii9qJ.js";
|
|
16
|
+
import { routeActivity } from "./inbox-C4wSr224.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-13BL2y25.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-Bz6XnJHB.js";
|
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-CR0gkB-m.js";
|
|
22
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
23
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
24
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-Dna8Fg7k.js";
|
|
6
|
+
import "./docloader-DcTzXQ35.js";
|
|
7
|
+
import "./actor-7YV266f1.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-DZcMt7tI.js";
|
|
9
|
+
import "./lookup-DEx2HD7Z.js";
|
|
10
|
+
import "./key-lj-EeFGh.js";
|
|
11
|
+
import "./http-W5kSmT8n.js";
|
|
12
|
+
import "./proof-CepXPgtj.js";
|
|
13
|
+
import "./types-HMuM33tm.js";
|
|
14
|
+
import "./authdocloader-BNL0PCsp.js";
|
|
15
|
+
import "./vocab-z0q3f-S2.js";
|
|
16
|
+
|
|
17
|
+
export { FederationImpl };
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-DcTzXQ35.js";
|
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-7YV266f1.js";
|
|
8
|
+
import { lookupWebFinger } from "./lookup-DEx2HD7Z.js";
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-lj-EeFGh.js";
|
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-W5kSmT8n.js";
|
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CepXPgtj.js";
|
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-HMuM33tm.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-BNL0PCsp.js";
|
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-z0q3f-S2.js";
|
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -320,7 +320,7 @@ var FederationBuilderImpl = class {
|
|
|
320
320
|
this.collectionTypeIds = {};
|
|
321
321
|
}
|
|
322
322
|
async build(options) {
|
|
323
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
323
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-BiYBkcnD.js");
|
|
324
324
|
const f = new FederationImpl$1(options);
|
|
325
325
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
326
326
|
f.router = this.router.clone();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./type-geidmXZc.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B9paI-O7.js";
|
|
8
|
+
import "./semver-dArNLkR9.js";
|
|
9
|
+
import "./client-Q-sLUxCh.js";
|
|
10
|
+
import "./lookup-B5J-YtGW.js";
|
|
11
|
+
import "./types-BIgY6c-l.js";
|
|
12
|
+
import "./actor-kNsYanj6.js";
|
|
13
|
+
import "./key-BjSxApvl.js";
|
|
14
|
+
import "./http-BdNu0ORR.js";
|
|
15
|
+
import "./authdocloader-Dw6isGiN.js";
|
|
16
|
+
import "./ld-7F3GAVgl.js";
|
|
17
|
+
import "./owner-D0gMOw5k.js";
|
|
18
|
+
import "./proof-2jcii9qJ.js";
|
|
19
|
+
import "./inbox-C4wSr224.js";
|
|
20
|
+
import "./builder-13BL2y25.js";
|
|
21
|
+
import "./collection-CSzG2j1P.js";
|
|
22
|
+
import "./keycache-Bz6XnJHB.js";
|
|
23
|
+
import "./retry-D4GJ670a.js";
|
|
24
|
+
import "./send-CR0gkB-m.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { Activity } from "./vocab-
|
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
|
3
|
+
import { Activity } from "./vocab-Ukxjz3TM.js";
|
|
4
|
+
import { ActivityTransformer, Context } from "./context-CnveeHUR.js";
|
|
5
5
|
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
|
7
7
|
|
|
@@ -1,94 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { DocumentLoader, GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
|
4
|
-
import { Collection, Link, Object as Object$1 } from "./vocab-
|
|
4
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-Ukxjz3TM.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
|
-
//#region src/vocab/constants.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* The special public collection for [public addressing]. *Do not mutate this
|
|
10
|
-
* object.*
|
|
11
|
-
*
|
|
12
|
-
* [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
|
|
13
|
-
*
|
|
14
|
-
* @since 0.7.0
|
|
15
|
-
*/
|
|
16
|
-
declare const PUBLIC_COLLECTION: URL;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/vocab/handle.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Represents a fediverse handle, which consists of a username and a host.
|
|
21
|
-
* The username can be alphanumeric and may include special characters,
|
|
22
|
-
* while the host is typically a domain name.
|
|
23
|
-
* @since 1.8.0
|
|
24
|
-
*/
|
|
25
|
-
interface FediverseHandle {
|
|
26
|
-
/**
|
|
27
|
-
* The username part of the fediverse handle.
|
|
28
|
-
* It can include alphanumeric characters and some special characters.
|
|
29
|
-
*/
|
|
30
|
-
readonly username: string;
|
|
31
|
-
/**
|
|
32
|
-
* The host part of the fediverse handle, typically a domain name.
|
|
33
|
-
* It is the part after the `@` symbol in the handle.
|
|
34
|
-
*/
|
|
35
|
-
readonly host: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Parses a fediverse handle in the format `@user@server` or `user@server`.
|
|
39
|
-
* The `user` part can contain alphanumeric characters and some special
|
|
40
|
-
* characters except `@`. The `server` part is all characters after the `@`
|
|
41
|
-
* symbol in the middle.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```typescript
|
|
45
|
-
* const handle = parseFediverseHandle("@username@example.com");
|
|
46
|
-
* console.log(handle?.username); // "username"
|
|
47
|
-
* console.log(handle?.host); // "example.com"
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @param handle - The fediverse handle string to parse.
|
|
51
|
-
* @returns A {@link FediverseHandle} object with `username` and `host`
|
|
52
|
-
* if the input is valid; otherwise `null`.
|
|
53
|
-
* @since 1.8.0
|
|
54
|
-
*/
|
|
55
|
-
declare function parseFediverseHandle(handle: string): FediverseHandle | null;
|
|
56
|
-
/**
|
|
57
|
-
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
|
58
|
-
* or `user@server`. The `user` part can contain alphanumeric characters and
|
|
59
|
-
* some special characters except `@`. The `server` part is all characters
|
|
60
|
-
* after the `@` symbol in the middle.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* console.log(isFediverseHandle("@username@example.com")); // true
|
|
65
|
-
* console.log(isFediverseHandle("username@example.com")); // true
|
|
66
|
-
* console.log(isFediverseHandle("@username@")); // false
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @param handle - The string to test as a fediverse handle.
|
|
70
|
-
* @returns `true` if the string matches the fediverse handle pattern;
|
|
71
|
-
* otherwise `false`.
|
|
72
|
-
* @since 1.8.0
|
|
73
|
-
*/
|
|
74
|
-
declare function isFediverseHandle(handle: string): handle is `${string}@${string}`;
|
|
75
|
-
/**
|
|
76
|
-
* Converts a fediverse handle in the format `@user@server` or `user@server`
|
|
77
|
-
* to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* const identifier = toAcctUrl("@username@example.com");
|
|
82
|
-
* console.log(identifier?.href); // "acct:username@example.com"
|
|
83
|
-
* ```
|
|
84
|
-
*
|
|
85
|
-
* @param handle - The fediverse handle string to convert.
|
|
86
|
-
* @returns A `URL` object representing the `acct:` URI if conversion succeeds;
|
|
87
|
-
* otherwise `null`.
|
|
88
|
-
* @since 1.8.0
|
|
89
|
-
*/
|
|
90
|
-
declare function toAcctUrl(handle: string): URL | null;
|
|
91
|
-
//#endregion
|
|
92
7
|
//#region src/vocab/lookup.d.ts
|
|
93
8
|
/**
|
|
94
9
|
* Options for the {@link lookupObject} function.
|
|
@@ -206,6 +121,91 @@ interface TraverseCollectionOptions {
|
|
|
206
121
|
*/
|
|
207
122
|
declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
|
|
208
123
|
//#endregion
|
|
124
|
+
//#region src/vocab/constants.d.ts
|
|
125
|
+
/**
|
|
126
|
+
* The special public collection for [public addressing]. *Do not mutate this
|
|
127
|
+
* object.*
|
|
128
|
+
*
|
|
129
|
+
* [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
|
|
130
|
+
*
|
|
131
|
+
* @since 0.7.0
|
|
132
|
+
*/
|
|
133
|
+
declare const PUBLIC_COLLECTION: URL;
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/vocab/handle.d.ts
|
|
136
|
+
/**
|
|
137
|
+
* Represents a fediverse handle, which consists of a username and a host.
|
|
138
|
+
* The username can be alphanumeric and may include special characters,
|
|
139
|
+
* while the host is typically a domain name.
|
|
140
|
+
* @since 1.8.0
|
|
141
|
+
*/
|
|
142
|
+
interface FediverseHandle {
|
|
143
|
+
/**
|
|
144
|
+
* The username part of the fediverse handle.
|
|
145
|
+
* It can include alphanumeric characters and some special characters.
|
|
146
|
+
*/
|
|
147
|
+
readonly username: string;
|
|
148
|
+
/**
|
|
149
|
+
* The host part of the fediverse handle, typically a domain name.
|
|
150
|
+
* It is the part after the `@` symbol in the handle.
|
|
151
|
+
*/
|
|
152
|
+
readonly host: string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Parses a fediverse handle in the format `@user@server` or `user@server`.
|
|
156
|
+
* The `user` part can contain alphanumeric characters and some special
|
|
157
|
+
* characters except `@`. The `server` part is all characters after the `@`
|
|
158
|
+
* symbol in the middle.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* const handle = parseFediverseHandle("@username@example.com");
|
|
163
|
+
* console.log(handle?.username); // "username"
|
|
164
|
+
* console.log(handle?.host); // "example.com"
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* @param handle - The fediverse handle string to parse.
|
|
168
|
+
* @returns A {@link FediverseHandle} object with `username` and `host`
|
|
169
|
+
* if the input is valid; otherwise `null`.
|
|
170
|
+
* @since 1.8.0
|
|
171
|
+
*/
|
|
172
|
+
declare function parseFediverseHandle(handle: string): FediverseHandle | null;
|
|
173
|
+
/**
|
|
174
|
+
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
|
175
|
+
* or `user@server`. The `user` part can contain alphanumeric characters and
|
|
176
|
+
* some special characters except `@`. The `server` part is all characters
|
|
177
|
+
* after the `@` symbol in the middle.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```typescript
|
|
181
|
+
* console.log(isFediverseHandle("@username@example.com")); // true
|
|
182
|
+
* console.log(isFediverseHandle("username@example.com")); // true
|
|
183
|
+
* console.log(isFediverseHandle("@username@")); // false
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* @param handle - The string to test as a fediverse handle.
|
|
187
|
+
* @returns `true` if the string matches the fediverse handle pattern;
|
|
188
|
+
* otherwise `false`.
|
|
189
|
+
* @since 1.8.0
|
|
190
|
+
*/
|
|
191
|
+
declare function isFediverseHandle(handle: string): handle is `${string}@${string}`;
|
|
192
|
+
/**
|
|
193
|
+
* Converts a fediverse handle in the format `@user@server` or `user@server`
|
|
194
|
+
* to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```typescript
|
|
198
|
+
* const identifier = toAcctUrl("@username@example.com");
|
|
199
|
+
* console.log(identifier?.href); // "acct:username@example.com"
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @param handle - The fediverse handle string to convert.
|
|
203
|
+
* @returns A `URL` object representing the `acct:` URI if conversion succeeds;
|
|
204
|
+
* otherwise `null`.
|
|
205
|
+
* @since 1.8.0
|
|
206
|
+
*/
|
|
207
|
+
declare function toAcctUrl(handle: string): URL | null;
|
|
208
|
+
//#endregion
|
|
209
209
|
//#region src/vocab/type.d.ts
|
|
210
210
|
/**
|
|
211
211
|
* Returns the type URI of the given object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-CxWcuWqQ.js";
|
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-DtG44GdM.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region src/runtime/authdocloader.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
|
|
4
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
|
5
|
-
import { KeyCache } from "./http-
|
|
4
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Ukxjz3TM.js";
|
|
5
|
+
import { KeyCache } from "./http-DtG44GdM.js";
|
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
|
7
7
|
|
|
8
8
|
//#region src/sig/ld.d.ts
|