@fedify/fedify 2.0.0-pr.467.1877 → 2.0.0-pr.474.1879
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-DMbX2bPf.js → actor-BYv3E3MI.js} +185 -185
- package/dist/{actor-BrMdE_1G.cjs → actor-CjcnBLTk.cjs} +185 -185
- package/dist/{actor-DslgGxD8.js → actor-DM_mczcz.js} +1 -1
- package/dist/{builder-DvuChHyB.js → builder-CpW45hts.js} +3 -3
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{context-V-XS2_6O.d.ts → context-DXV-2IZN.d.ts} +6 -0
- package/dist/{context-PxGADCsD.d.cts → context-Nt2rAqjj.d.cts} +6 -0
- package/dist/{docloader-CQCA5QKZ.js → docloader-DPQnUMPZ.js} +2 -2
- package/dist/{esm-DVill8zU.js → esm-CHBTY23R.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +15 -15
- package/dist/federation/handler_requirehttpsig.test.d.ts +3 -0
- package/dist/federation/handler_requirehttpsig.test.js +138 -0
- package/dist/federation/idempotency.test.js +15 -15
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +16 -16
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.d.cts +1 -1
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-GjJOLe0t.cjs → http-B1cyhAOR.cjs} +2 -2
- package/dist/{http-pBJCYh50.js → http-CNbh6Bgj.js} +2 -2
- package/dist/{http-W1mkXyFw.js → http-Di-WAayg.js} +2 -2
- package/dist/{inbox-Bk4PjO2V.js → inbox-CKpjNIIw.js} +1 -1
- package/dist/{key-BlPc80ei.js → key-Bm6xoWJ9.js} +2 -2
- package/dist/{keycache-qku87Evf.js → keycache-BoIUmk-X.js} +1 -1
- package/dist/{keys-CXQWhBgw.js → keys-BJSEmAMh.js} +1 -1
- package/dist/{kv-cache-BGGmyOF-.js → kv-cache-BCfbzWvV.js} +1 -1
- package/dist/{kv-cache-BGfFfQma.cjs → kv-cache-ugHk-g8V.cjs} +1 -1
- package/dist/{ld-CQj76XXM.js → ld-CFrblqOy.js} +2 -2
- package/dist/{lookup-BahLrzT6.cjs → lookup-BKHMnItE.cjs} +1 -1
- package/dist/{lookup-CUj1Ayf2.js → lookup-CjRKAy5i.js} +185 -185
- package/dist/{lookup-ZLHmgBj5.js → lookup-CovW5HO7.js} +1 -1
- package/dist/{middleware-4BJL-9x8.js → middleware-BCCuNXoU.js} +17 -15
- package/dist/middleware-CaQFohcx.js +26 -0
- package/dist/middleware-CqJTYvui.cjs +15 -0
- package/dist/{middleware-DXsuKk_U.js → middleware-DFP98BrZ.js} +13 -11
- package/dist/middleware-cA6uI21b.js +15 -0
- package/dist/{middleware-CCBsGJcn.cjs → middleware-fxZRXc2R.cjs} +13 -11
- package/dist/{mod-BoRKfJPE.d.cts → mod-CKRSFzK_.d.cts} +1 -1
- package/dist/{mod-Cdo6SYlJ.d.ts → mod-C_6Uxusd.d.ts} +1 -1
- package/dist/mod.cjs +7 -7
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +14 -14
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-Buqg_Myf.js → owner-8cgMngcR.js} +2 -2
- package/dist/{proof-AxiARBr_.js → proof-BbhNICOW.js} +2 -2
- package/dist/{proof-DizHNX8y.cjs → proof-C3woq5fl.cjs} +3 -3
- package/dist/{proof-DJjdTnEN.js → proof-OnfETSbB.js} +3 -3
- package/dist/{send-B9ByF5wN.js → send-zlaQ6fqY.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +4 -4
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.js +6 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.d.ts +6 -0
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-vN3EpiIw.js → testing-DHsP4t6k.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +2 -2
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-CdguqeJf.js → vocab-DMGCHMXF.js} +2 -2
- package/dist/{vocab-DEaLWwSP.cjs → vocab-YXPM77QO.cjs} +2 -2
- package/dist/webfinger/handler.test.js +14 -14
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/package.json +3 -3
- package/dist/middleware-BLZsPbCt.js +0 -15
- package/dist/middleware-D8qnhAFG.cjs +0 -15
- package/dist/middleware-Dw-pChHQ.js +0 -26
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./lookup-
|
|
6
|
+
import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./lookup-CjRKAy5i.js";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Router, RouterError, deno_default, getTypeId } from "./lookup-
|
|
7
|
-
import { InboxListenerSet } from "./inbox-
|
|
6
|
+
import { Router, RouterError, deno_default, getTypeId } from "./lookup-CjRKAy5i.js";
|
|
7
|
+
import { InboxListenerSet } from "./inbox-CKpjNIIw.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -42,7 +42,7 @@ var FederationBuilderImpl = class {
|
|
|
42
42
|
this.collectionTypeIds = {};
|
|
43
43
|
}
|
|
44
44
|
async build(options) {
|
|
45
|
-
const { FederationImpl } = await import("./middleware-
|
|
45
|
+
const { FederationImpl } = await import("./middleware-CaQFohcx.js");
|
|
46
46
|
const f = new FederationImpl(options);
|
|
47
47
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
48
48
|
f.router = this.router.clone();
|
package/dist/compat/mod.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import "../http-M8k5mKc0.cjs";
|
|
|
5
5
|
import "../owner-B4HbyP8s.cjs";
|
|
6
6
|
import "../mod-BxRCHTz-.cjs";
|
|
7
7
|
import "../mod-C58MZ7Wx.cjs";
|
|
8
|
-
import { ActivityTransformer } from "../context-
|
|
8
|
+
import { ActivityTransformer } from "../context-Nt2rAqjj.cjs";
|
|
9
9
|
import "../kv-Bxr0Q87_.cjs";
|
|
10
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
10
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-CKRSFzK_.cjs";
|
|
11
11
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import "../http-BbO0ejuk.js";
|
|
|
7
7
|
import "../owner-kQRGVXG1.js";
|
|
8
8
|
import "../mod-BlVovdcy.js";
|
|
9
9
|
import "../mod-Ds0mpFZU.js";
|
|
10
|
-
import { ActivityTransformer } from "../context-
|
|
10
|
+
import { ActivityTransformer } from "../context-DXV-2IZN.js";
|
|
11
11
|
import "../kv-BKNZ-Tb-.js";
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-C_6Uxusd.js";
|
|
13
13
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Follow, Person } from "../lookup-
|
|
6
|
+
import { Follow, Person } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-BCCuNXoU.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-DM_mczcz.js";
|
|
15
|
+
import "../key-Bm6xoWJ9.js";
|
|
16
|
+
import "../http-CNbh6Bgj.js";
|
|
17
|
+
import "../ld-CFrblqOy.js";
|
|
18
|
+
import "../owner-8cgMngcR.js";
|
|
19
|
+
import "../proof-BbhNICOW.js";
|
|
20
|
+
import "../docloader-DPQnUMPZ.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CKpjNIIw.js";
|
|
23
|
+
import "../builder-CpW45hts.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BoIUmk-X.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-zlaQ6fqY.js";
|
|
29
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
30
30
|
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
@@ -1609,6 +1609,12 @@ interface FederationFetchOptions<TContextData> {
|
|
|
1609
1609
|
* @since 0.7.0
|
|
1610
1610
|
*/
|
|
1611
1611
|
onUnauthorized?: (request: Request) => Response | Promise<Response>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Whether to require HTTP Signatures for all incoming activities.
|
|
1614
|
+
* By default, this is `false`
|
|
1615
|
+
* @since 2.0.0
|
|
1616
|
+
*/
|
|
1617
|
+
requireHttpSignature?: boolean;
|
|
1612
1618
|
}
|
|
1613
1619
|
/**
|
|
1614
1620
|
* Additional settings for a custom collection dispatcher.
|
|
@@ -1607,6 +1607,12 @@ interface FederationFetchOptions<TContextData> {
|
|
|
1607
1607
|
* @since 0.7.0
|
|
1608
1608
|
*/
|
|
1609
1609
|
onUnauthorized?: (request: Request) => Response | Promise<Response>;
|
|
1610
|
+
/**
|
|
1611
|
+
* Whether to require HTTP Signatures for all incoming activities.
|
|
1612
|
+
* By default, this is `false`
|
|
1613
|
+
* @since 2.0.0
|
|
1614
|
+
*/
|
|
1615
|
+
requireHttpSignature?: boolean;
|
|
1610
1616
|
}
|
|
1611
1617
|
/**
|
|
1612
1618
|
* Additional settings for a custom collection dispatcher.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { validateCryptoKey } from "./key-Bm6xoWJ9.js";
|
|
7
|
+
import { doubleKnock } from "./http-CNbh6Bgj.js";
|
|
8
8
|
import { curry } from "es-toolkit";
|
|
9
9
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __commonJS, __toESM } from "./lookup-
|
|
6
|
+
import { __commonJS, __toESM } from "./lookup-CjRKAy5i.js";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
9
9
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Note, Person } from "../lookup-
|
|
6
|
+
import { Activity, Note, Person } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import "../inbox-
|
|
12
|
-
import { createFederationBuilder } from "../builder-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import "../inbox-CKpjNIIw.js";
|
|
12
|
+
import { createFederationBuilder } from "../builder-CpW45hts.js";
|
|
13
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
14
14
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
|
15
15
|
import "../assert_rejects-Ce45JcFg.js";
|
|
16
16
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-BzWsN9pB.js";
|
|
11
|
-
import { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Note, Person } from "../lookup-
|
|
6
|
+
import { Create, Note, Person } from "../lookup-CjRKAy5i.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
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BCCuNXoU.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import { signRequest } from "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-DM_mczcz.js";
|
|
15
|
+
import "../key-Bm6xoWJ9.js";
|
|
16
|
+
import { signRequest } from "../http-CNbh6Bgj.js";
|
|
17
|
+
import "../ld-CFrblqOy.js";
|
|
18
|
+
import "../owner-8cgMngcR.js";
|
|
19
|
+
import "../proof-BbhNICOW.js";
|
|
20
|
+
import "../docloader-DPQnUMPZ.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import { InboxListenerSet } from "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import { InboxListenerSet } from "../inbox-CKpjNIIw.js";
|
|
23
|
+
import "../builder-CpW45hts.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BoIUmk-X.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-zlaQ6fqY.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-DHsP4t6k.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
34
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BJSEmAMh.js";
|
|
35
35
|
|
|
36
36
|
//#region src/federation/handler.test.ts
|
|
37
37
|
test("handleActor()", async () => {
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import { Create, Note, Person } from "../lookup-CjRKAy5i.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
+
import { createFederation, handleInbox } from "../middleware-BCCuNXoU.js";
|
|
12
|
+
import "../client-pY7-3icS.js";
|
|
13
|
+
import "../types-C2XVl6gj.js";
|
|
14
|
+
import "../actor-DM_mczcz.js";
|
|
15
|
+
import "../key-Bm6xoWJ9.js";
|
|
16
|
+
import { signRequest } from "../http-CNbh6Bgj.js";
|
|
17
|
+
import "../ld-CFrblqOy.js";
|
|
18
|
+
import "../owner-8cgMngcR.js";
|
|
19
|
+
import "../proof-BbhNICOW.js";
|
|
20
|
+
import "../docloader-DPQnUMPZ.js";
|
|
21
|
+
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
+
import "../inbox-CKpjNIIw.js";
|
|
23
|
+
import "../builder-CpW45hts.js";
|
|
24
|
+
import "../collection-BzWsN9pB.js";
|
|
25
|
+
import "../keycache-BoIUmk-X.js";
|
|
26
|
+
import "../negotiation-C4nFufNk.js";
|
|
27
|
+
import "../retry-CfF8Gn4d.js";
|
|
28
|
+
import "../send-zlaQ6fqY.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-DHsP4t6k.js";
|
|
30
|
+
import "../std__assert-DWivtrGR.js";
|
|
31
|
+
import "../assert_rejects-Ce45JcFg.js";
|
|
32
|
+
import "../assert_throws-BNXdRGWP.js";
|
|
33
|
+
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
+
import { rsaPrivateKey3, rsaPublicKey3 } from "../keys-BJSEmAMh.js";
|
|
35
|
+
|
|
36
|
+
//#region src/federation/handler_requirehttpsig.test.ts
|
|
37
|
+
test("handleInbox() with requireHttpSignature option", async () => {
|
|
38
|
+
const activity = new Create({
|
|
39
|
+
id: new URL("https://example.com/activities/1"),
|
|
40
|
+
actor: new URL("https://example.com/person2"),
|
|
41
|
+
object: new Note({
|
|
42
|
+
id: new URL("https://example.com/notes/1"),
|
|
43
|
+
attribution: new URL("https://example.com/person2"),
|
|
44
|
+
content: "Hello, world!"
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
const unsignedRequest = new Request("https://example.com/inbox", {
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
50
|
+
body: JSON.stringify(await activity.toJsonLd())
|
|
51
|
+
});
|
|
52
|
+
const federation = createFederation({ kv: new MemoryKvStore() });
|
|
53
|
+
const unsignedContext = createRequestContext({
|
|
54
|
+
federation,
|
|
55
|
+
request: unsignedRequest,
|
|
56
|
+
url: new URL(unsignedRequest.url),
|
|
57
|
+
data: void 0
|
|
58
|
+
});
|
|
59
|
+
const actorDispatcher = (_ctx, identifier) => {
|
|
60
|
+
if (identifier !== "testuser") return null;
|
|
61
|
+
return new Person({ name: "Test User" });
|
|
62
|
+
};
|
|
63
|
+
const onNotFound = () => new Response("Not found", { status: 404 });
|
|
64
|
+
const baseInboxOptions = {
|
|
65
|
+
kv: new MemoryKvStore(),
|
|
66
|
+
kvPrefixes: {
|
|
67
|
+
activityIdempotence: ["_fedify", "activityIdempotence"],
|
|
68
|
+
publicKey: ["_fedify", "publicKey"]
|
|
69
|
+
},
|
|
70
|
+
actorDispatcher,
|
|
71
|
+
onNotFound,
|
|
72
|
+
signatureTimeWindow: { minutes: 5 },
|
|
73
|
+
skipSignatureVerification: false
|
|
74
|
+
};
|
|
75
|
+
let response = await handleInbox(unsignedRequest, {
|
|
76
|
+
recipient: null,
|
|
77
|
+
context: unsignedContext,
|
|
78
|
+
inboxContextFactory(_activity) {
|
|
79
|
+
return createInboxContext({
|
|
80
|
+
...unsignedContext,
|
|
81
|
+
clone: void 0
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
...baseInboxOptions,
|
|
85
|
+
requireHttpSignature: false
|
|
86
|
+
});
|
|
87
|
+
assertEquals(response.status, 401, "Without HTTP Sig and no LD Sig/OIP, should return 401");
|
|
88
|
+
response = await handleInbox(unsignedRequest.clone(), {
|
|
89
|
+
recipient: null,
|
|
90
|
+
context: unsignedContext,
|
|
91
|
+
inboxContextFactory(_activity) {
|
|
92
|
+
return createInboxContext({
|
|
93
|
+
...unsignedContext,
|
|
94
|
+
clone: void 0
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
...baseInboxOptions,
|
|
98
|
+
requireHttpSignature: true
|
|
99
|
+
});
|
|
100
|
+
assertEquals(response.status, 401, "With requireHttpSignature: true and no HTTP Sig, should return 401");
|
|
101
|
+
const signedRequest = await signRequest(unsignedRequest.clone(), rsaPrivateKey3, rsaPublicKey3.id);
|
|
102
|
+
const signedContext = createRequestContext({
|
|
103
|
+
federation,
|
|
104
|
+
request: signedRequest,
|
|
105
|
+
url: new URL(signedRequest.url),
|
|
106
|
+
data: void 0,
|
|
107
|
+
documentLoader: mockDocumentLoader
|
|
108
|
+
});
|
|
109
|
+
response = await handleInbox(signedRequest, {
|
|
110
|
+
recipient: null,
|
|
111
|
+
context: signedContext,
|
|
112
|
+
inboxContextFactory(_activity) {
|
|
113
|
+
return createInboxContext({
|
|
114
|
+
...signedContext,
|
|
115
|
+
clone: void 0
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
...baseInboxOptions,
|
|
119
|
+
requireHttpSignature: true
|
|
120
|
+
});
|
|
121
|
+
assertEquals(response.status, 202, "With requireHttpSignature: true and valid HTTP Sig, should succeed");
|
|
122
|
+
response = await handleInbox(unsignedRequest.clone(), {
|
|
123
|
+
recipient: null,
|
|
124
|
+
context: unsignedContext,
|
|
125
|
+
inboxContextFactory(_activity) {
|
|
126
|
+
return createInboxContext({
|
|
127
|
+
...unsignedContext,
|
|
128
|
+
clone: void 0
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
...baseInboxOptions,
|
|
132
|
+
skipSignatureVerification: true,
|
|
133
|
+
requireHttpSignature: true
|
|
134
|
+
});
|
|
135
|
+
assertEquals(response.status, 202, "With skipSignatureVerification: true, should succeed even if requireHttpSignature: true");
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
//#endregion
|
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Follow, Person } from "../lookup-
|
|
6
|
+
import { Create, Follow, Person } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { createFederation } from "../middleware-
|
|
11
|
+
import { createFederation } from "../middleware-BCCuNXoU.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import { signObject } from "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-DM_mczcz.js";
|
|
15
|
+
import "../key-Bm6xoWJ9.js";
|
|
16
|
+
import "../http-CNbh6Bgj.js";
|
|
17
|
+
import "../ld-CFrblqOy.js";
|
|
18
|
+
import "../owner-8cgMngcR.js";
|
|
19
|
+
import { signObject } from "../proof-BbhNICOW.js";
|
|
20
|
+
import "../docloader-DPQnUMPZ.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CKpjNIIw.js";
|
|
23
|
+
import "../builder-CpW45hts.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BoIUmk-X.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-zlaQ6fqY.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-DHsP4t6k.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-
|
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-BJSEmAMh.js";
|
|
35
35
|
|
|
36
36
|
//#region src/federation/idempotency.test.ts
|
|
37
37
|
const kv = new MemoryKvStore();
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../lookup-
|
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import { InboxListenerSet } from "../inbox-
|
|
9
|
-
import { test } from "../testing-
|
|
8
|
+
import { InboxListenerSet } from "../inbox-CKpjNIIw.js";
|
|
9
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
10
10
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
11
11
|
|
|
12
12
|
//#region src/federation/inbox.test.ts
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../lookup-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { KvKeyCache } from "../keycache-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import { KvKeyCache } from "../keycache-BoIUmk-X.js";
|
|
12
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
13
13
|
|
|
14
14
|
//#region src/federation/keycache.test.ts
|
|
15
15
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-DHsP4t6k.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-
|
|
6
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-CjRKAy5i.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-BCCuNXoU.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import { signRequest, verifyRequest } from "../http-
|
|
17
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
18
|
-
import { doesActorOwnKey } from "../owner-
|
|
19
|
-
import { signObject, verifyObject } from "../proof-
|
|
20
|
-
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-
|
|
14
|
+
import "../actor-DM_mczcz.js";
|
|
15
|
+
import "../key-Bm6xoWJ9.js";
|
|
16
|
+
import { signRequest, verifyRequest } from "../http-CNbh6Bgj.js";
|
|
17
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-CFrblqOy.js";
|
|
18
|
+
import { doesActorOwnKey } from "../owner-8cgMngcR.js";
|
|
19
|
+
import { signObject, verifyObject } from "../proof-BbhNICOW.js";
|
|
20
|
+
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-DPQnUMPZ.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CKpjNIIw.js";
|
|
23
|
+
import "../builder-CpW45hts.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BoIUmk-X.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-zlaQ6fqY.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-DHsP4t6k.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
35
|
-
import { esm_default } from "../esm-
|
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BJSEmAMh.js";
|
|
35
|
+
import { esm_default } from "../esm-CHBTY23R.js";
|
|
36
36
|
|
|
37
37
|
//#region src/testing/fixtures/example.com/create.json
|
|
38
38
|
var __context$2 = "https://www.w3.org/ns/activitystreams";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('../lookup-
|
|
7
|
-
require('../actor-
|
|
8
|
-
const require_middleware = require('../middleware-
|
|
9
|
-
require('../http-
|
|
10
|
-
require('../proof-
|
|
6
|
+
require('../lookup-BKHMnItE.cjs');
|
|
7
|
+
require('../actor-CjcnBLTk.cjs');
|
|
8
|
+
const require_middleware = require('../middleware-fxZRXc2R.cjs');
|
|
9
|
+
require('../http-B1cyhAOR.cjs');
|
|
10
|
+
require('../proof-C3woq5fl.cjs');
|
|
11
11
|
const require_federation = require('../federation-CRpdnOMS.cjs');
|
|
12
12
|
require('../types-CWgzGaqk.cjs');
|
|
13
|
-
require('../kv-cache-
|
|
14
|
-
require('../vocab-
|
|
13
|
+
require('../kv-cache-ugHk-g8V.cjs');
|
|
14
|
+
require('../vocab-YXPM77QO.cjs');
|
|
15
15
|
|
|
16
16
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
17
17
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -5,7 +5,7 @@ import "../http-M8k5mKc0.cjs";
|
|
|
5
5
|
import "../owner-B4HbyP8s.cjs";
|
|
6
6
|
import "../mod-BxRCHTz-.cjs";
|
|
7
7
|
import "../mod-C58MZ7Wx.cjs";
|
|
8
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
8
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Nt2rAqjj.cjs";
|
|
9
9
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-Bxr0Q87_.cjs";
|
|
10
10
|
import "../mod-CcDPcLJW.cjs";
|
|
11
11
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import "../http-BbO0ejuk.js";
|
|
|
7
7
|
import "../owner-kQRGVXG1.js";
|
|
8
8
|
import "../mod-BlVovdcy.js";
|
|
9
9
|
import "../mod-Ds0mpFZU.js";
|
|
10
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
10
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-DXV-2IZN.js";
|
|
11
11
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-BKNZ-Tb-.js";
|
|
12
12
|
import "../mod-bjzj5QIb.js";
|
|
13
13
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-BFT6d7J5.js";
|
|
6
|
-
import "../lookup-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../http-
|
|
10
|
-
import "../proof-
|
|
6
|
+
import "../lookup-CovW5HO7.js";
|
|
7
|
+
import "../actor-BYv3E3MI.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DFP98BrZ.js";
|
|
9
|
+
import "../http-Di-WAayg.js";
|
|
10
|
+
import "../proof-OnfETSbB.js";
|
|
11
11
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-jcR8-ZxP.js";
|
|
12
12
|
import "../types-BtUjyi5y.js";
|
|
13
|
-
import "../kv-cache-
|
|
14
|
-
import "../vocab-
|
|
13
|
+
import "../kv-cache-BCfbzWvV.js";
|
|
14
|
+
import "../vocab-DMGCHMXF.js";
|
|
15
15
|
|
|
16
16
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|