@fedify/fedify 2.0.0-dev.1961 → 2.0.0-dev.85
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/README.md +3 -0
- package/dist/{actor-DhgrrgXz.cjs → actor-Bpgsv6Ii.cjs} +185 -185
- package/dist/{actor-DiKHxw_H.js → actor-D3v8T9kQ.js} +185 -185
- package/dist/{actor-Kqyoic-M.js → actor-DrvDW-tK.js} +1 -1
- package/dist/{builder-BrqBKkVi.js → builder-D2trc6p7.js} +3 -3
- package/dist/compat/mod.d.cts +3 -3
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-PxGADCsD.d.cts → context-DBQ7nMCw.d.cts} +1 -1
- package/dist/{context-V-XS2_6O.d.ts → context-mM0Nu5yo.d.ts} +1 -1
- package/dist/{docloader-HB61Uc88.js → docloader-DlSrn4Io.js} +2 -2
- package/dist/{esm-DaZiDvFW.js → esm-DQKBkSAc.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +104 -17
- package/dist/federation/idempotency.test.js +17 -17
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +57 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +8 -8
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +8 -8
- 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 +52 -9
- package/dist/{federation-CRpdnOMS.cjs → federation-CoW-KDKv.cjs} +22 -0
- package/dist/{federation-jcR8-ZxP.js → federation-D0hkM4T7.js} +22 -0
- package/dist/{http-B2bao4EB.js → http-BNxhNjYm.js} +2 -2
- package/dist/{http-CUsGQiwU.js → http-Bz4YpW-D.js} +2 -2
- package/dist/{http-BxgYWxTY.cjs → http-Dr7V4DY7.cjs} +2 -2
- package/dist/{inbox-CAojlSWc.js → inbox-CXOoDyEH.js} +1 -1
- package/dist/{key-Dz-KWCap.js → key-C_b1t1Na.js} +2 -2
- package/dist/{keycache-Czcf33al.js → keycache-zfG6F1PW.js} +1 -1
- package/dist/{keys-BN4nelft.js → keys-C01rMN22.js} +1 -1
- package/dist/{kv-BKNZ-Tb-.d.ts → kv-BpJND1Hr.d.ts} +30 -1
- package/dist/{kv-CRZrzyXm.js → kv-QzKcOQgP.js} +22 -0
- package/dist/{kv-Bxr0Q87_.d.cts → kv-cD_d4hg-.d.cts} +30 -1
- package/dist/{kv-cache-Bq6kUUoG.js → kv-cache-4I_O-pli.js} +1 -1
- package/dist/{kv-cache-5j5Pb-V6.cjs → kv-cache-CpjdzlKh.cjs} +1 -1
- package/dist/{kv-cache-DN9pfMBe.js → kv-cache-D7LFlByV.js} +13 -0
- package/dist/{ld-CEJHYq8u.js → ld-Ba0jIf7k.js} +2 -2
- package/dist/{lookup-gMu_9ZKY.js → lookup-BUqdDUac.js} +6 -5
- package/dist/{lookup-_Hap2IXS.cjs → lookup-UA4SKewV.cjs} +6 -5
- package/dist/{lookup-D8hvtZHY.js → lookup-kl47RWf3.js} +195 -189
- package/dist/middleware-B64_UxVQ.js +26 -0
- package/dist/middleware-BK7fptEJ.cjs +15 -0
- package/dist/{middleware-DW3rJHWy.cjs → middleware-BYqpBCFp.cjs} +21 -9
- package/dist/{middleware-DgrceAHB.js → middleware-CwpDL0KB.js} +19 -12
- package/dist/{middleware-Df9OWALM.js → middleware-Cx0KwuzQ.js} +21 -9
- package/dist/middleware-_DVIaAFk.js +15 -0
- package/dist/{mod-aAE2wOWV.d.ts → mod-CAdoBu0x.d.ts} +1 -1
- package/dist/{mod-BoRKfJPE.d.cts → mod-Dy2fJtmN.d.cts} +1 -1
- package/dist/{mod-Cdo6SYlJ.d.ts → mod-GetHzY6F.d.ts} +1 -1
- package/dist/{mod-DMpuiKXi.d.cts → mod-fxr25Gv7.d.cts} +1 -1
- package/dist/mod.cjs +8 -8
- package/dist/mod.d.cts +5 -5
- package/dist/mod.d.ts +5 -5
- package/dist/mod.js +8 -8
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/otel/exporter.test.d.ts +3 -0
- package/dist/otel/exporter.test.js +900 -0
- package/dist/otel/mod.cjs +262 -0
- package/dist/otel/mod.d.cts +230 -0
- package/dist/otel/mod.d.ts +232 -0
- package/dist/otel/mod.js +261 -0
- package/dist/otel-Bfe_BgOV.js +63 -0
- package/dist/{owner-JwI-WzF-.js → owner-CgznkTZ6.js} +44 -8
- package/dist/{proof-CObJuclI.cjs → proof-AEFUz3SS.cjs} +44 -8
- package/dist/{proof-xH0V1mdD.js → proof-BrsOl9bB.js} +45 -9
- package/dist/{proof-Dhqndmfg.js → proof-rFeNfcVE.js} +2 -2
- package/dist/{send-1o7D-GGL.js → send-w_IyjZ0S.js} +9 -4
- 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 +30 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-DpRy1YTU.js → testing-fIO3Z258.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +6 -3
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.d.cts +2 -2
- package/dist/utils/mod.d.ts +2 -2
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +26 -4
- 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-CAwj263k.js → vocab-BtqMcZvq.js} +7 -2
- package/dist/{vocab-DgHGCFcw.cjs → vocab-COVHviQ5.cjs} +7 -2
- package/dist/webfinger/handler.test.js +16 -16
- 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 +19 -9
- package/dist/middleware-19QFZj7b.js +0 -26
- package/dist/middleware-BbbcXY4w.cjs +0 -15
- package/dist/middleware-CSTK543z.js +0 -15
|
@@ -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-kl47RWf3.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-kl47RWf3.js";
|
|
7
|
+
import { InboxListenerSet } from "./inbox-CXOoDyEH.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-B64_UxVQ.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-
|
|
9
|
-
import "../kv-
|
|
10
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
8
|
+
import { ActivityTransformer } from "../context-DBQ7nMCw.cjs";
|
|
9
|
+
import "../kv-cD_d4hg-.cjs";
|
|
10
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-Dy2fJtmN.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-
|
|
11
|
-
import "../kv-
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
10
|
+
import { ActivityTransformer } from "../context-mM0Nu5yo.js";
|
|
11
|
+
import "../kv-BpJND1Hr.js";
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-GetHzY6F.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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-CwpDL0KB.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-
|
|
21
|
-
import "../kv-cache-
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
14
|
+
import "../actor-DrvDW-tK.js";
|
|
15
|
+
import "../key-C_b1t1Na.js";
|
|
16
|
+
import "../http-BNxhNjYm.js";
|
|
17
|
+
import "../ld-Ba0jIf7k.js";
|
|
18
|
+
import "../owner-CgznkTZ6.js";
|
|
19
|
+
import "../proof-rFeNfcVE.js";
|
|
20
|
+
import "../docloader-DlSrn4Io.js";
|
|
21
|
+
import "../kv-cache-D7LFlByV.js";
|
|
22
|
+
import "../inbox-CXOoDyEH.js";
|
|
23
|
+
import "../builder-D2trc6p7.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-zfG6F1PW.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-w_IyjZ0S.js";
|
|
29
|
+
import { test } from "../testing-fIO3Z258.js";
|
|
30
30
|
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
@@ -5,7 +5,7 @@ import { HttpMessageSignaturesSpec } from "./http-M8k5mKc0.cjs";
|
|
|
5
5
|
import { GetKeyOwnerOptions } from "./owner-B4HbyP8s.cjs";
|
|
6
6
|
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-BxRCHTz-.cjs";
|
|
7
7
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "./mod-C58MZ7Wx.cjs";
|
|
8
|
-
import { KvKey, KvStore } from "./kv-
|
|
8
|
+
import { KvKey, KvStore } from "./kv-cD_d4hg-.cjs";
|
|
9
9
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
10
10
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
11
11
|
|
|
@@ -7,7 +7,7 @@ import { HttpMessageSignaturesSpec } from "./http-BbO0ejuk.js";
|
|
|
7
7
|
import { GetKeyOwnerOptions } from "./owner-kQRGVXG1.js";
|
|
8
8
|
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-BlVovdcy.js";
|
|
9
9
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "./mod-Ds0mpFZU.js";
|
|
10
|
-
import { KvKey, KvStore } from "./kv-
|
|
10
|
+
import { KvKey, KvStore } from "./kv-BpJND1Hr.js";
|
|
11
11
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
12
12
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
13
13
|
|
|
@@ -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-C_b1t1Na.js";
|
|
7
|
+
import { doubleKnock } from "./http-BNxhNjYm.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-kl47RWf3.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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import "../inbox-
|
|
12
|
-
import { createFederationBuilder } from "../builder-
|
|
13
|
-
import { test } from "../testing-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import "../inbox-CXOoDyEH.js";
|
|
12
|
+
import { createFederationBuilder } from "../builder-D2trc6p7.js";
|
|
13
|
+
import { test } from "../testing-fIO3Z258.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-kl47RWf3.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-fIO3Z258.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,36 @@
|
|
|
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-kl47RWf3.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 { MemoryKvStore } from "../kv-
|
|
11
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CwpDL0KB.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-
|
|
21
|
-
import "../kv-cache-
|
|
22
|
-
import { InboxListenerSet } from "../inbox-
|
|
23
|
-
import "../builder-
|
|
14
|
+
import "../actor-DrvDW-tK.js";
|
|
15
|
+
import "../key-C_b1t1Na.js";
|
|
16
|
+
import { signRequest } from "../http-BNxhNjYm.js";
|
|
17
|
+
import "../ld-Ba0jIf7k.js";
|
|
18
|
+
import "../owner-CgznkTZ6.js";
|
|
19
|
+
import "../proof-rFeNfcVE.js";
|
|
20
|
+
import "../docloader-DlSrn4Io.js";
|
|
21
|
+
import "../kv-cache-D7LFlByV.js";
|
|
22
|
+
import { InboxListenerSet } from "../inbox-CXOoDyEH.js";
|
|
23
|
+
import "../builder-D2trc6p7.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-zfG6F1PW.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-w_IyjZ0S.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-fIO3Z258.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-C01rMN22.js";
|
|
35
|
+
import { createTestTracerProvider } from "../otel-Bfe_BgOV.js";
|
|
35
36
|
|
|
36
37
|
//#region src/federation/handler.test.ts
|
|
37
38
|
test("handleActor()", async () => {
|
|
@@ -1481,5 +1482,91 @@ test("handleCustomCollection()", async () => {
|
|
|
1481
1482
|
assertEquals(onNotFoundCalled, null);
|
|
1482
1483
|
assertEquals(onUnauthorizedCalled, null);
|
|
1483
1484
|
});
|
|
1485
|
+
test("handleInbox() records OpenTelemetry span events", async () => {
|
|
1486
|
+
const [tracerProvider, exporter] = createTestTracerProvider();
|
|
1487
|
+
const kv = new MemoryKvStore();
|
|
1488
|
+
const federation = createFederation({
|
|
1489
|
+
kv,
|
|
1490
|
+
tracerProvider
|
|
1491
|
+
});
|
|
1492
|
+
const activity = new Create({
|
|
1493
|
+
id: new URL("https://example.com/activity"),
|
|
1494
|
+
actor: new URL("https://example.com/users/someone"),
|
|
1495
|
+
object: new Note({
|
|
1496
|
+
id: new URL("https://example.com/note"),
|
|
1497
|
+
content: "Hello, world!"
|
|
1498
|
+
})
|
|
1499
|
+
});
|
|
1500
|
+
const request = new Request("https://example.com/users/someone/inbox", {
|
|
1501
|
+
method: "POST",
|
|
1502
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
1503
|
+
body: JSON.stringify(await activity.toJsonLd())
|
|
1504
|
+
});
|
|
1505
|
+
const signed = await signRequest(request, rsaPrivateKey3, new URL("https://example.com/users/someone#main-key"));
|
|
1506
|
+
const context = createRequestContext({
|
|
1507
|
+
federation,
|
|
1508
|
+
request: signed,
|
|
1509
|
+
url: new URL(signed.url),
|
|
1510
|
+
data: void 0,
|
|
1511
|
+
documentLoader: mockDocumentLoader,
|
|
1512
|
+
contextLoader: mockDocumentLoader,
|
|
1513
|
+
getActorUri(identifier) {
|
|
1514
|
+
return new URL(`https://example.com/users/${identifier}`);
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
const actorDispatcher = (ctx, handle) => {
|
|
1518
|
+
if (handle !== "someone") return null;
|
|
1519
|
+
return new Person({
|
|
1520
|
+
id: ctx.getActorUri(handle),
|
|
1521
|
+
name: "Someone",
|
|
1522
|
+
inbox: new URL("https://example.com/users/someone/inbox"),
|
|
1523
|
+
publicKey: rsaPublicKey2
|
|
1524
|
+
});
|
|
1525
|
+
};
|
|
1526
|
+
const listeners = new InboxListenerSet();
|
|
1527
|
+
let receivedActivity = null;
|
|
1528
|
+
listeners.add(Create, (_ctx, activity$1) => {
|
|
1529
|
+
receivedActivity = activity$1;
|
|
1530
|
+
});
|
|
1531
|
+
const response = await handleInbox(signed, {
|
|
1532
|
+
recipient: "someone",
|
|
1533
|
+
context,
|
|
1534
|
+
inboxContextFactory(_activity) {
|
|
1535
|
+
return createInboxContext({
|
|
1536
|
+
...context,
|
|
1537
|
+
clone: void 0
|
|
1538
|
+
});
|
|
1539
|
+
},
|
|
1540
|
+
kv,
|
|
1541
|
+
kvPrefixes: {
|
|
1542
|
+
activityIdempotence: ["activityIdempotence"],
|
|
1543
|
+
publicKey: ["publicKey"]
|
|
1544
|
+
},
|
|
1545
|
+
actorDispatcher,
|
|
1546
|
+
inboxListeners: listeners,
|
|
1547
|
+
inboxErrorHandler: void 0,
|
|
1548
|
+
onNotFound: (_request) => new Response("Not found", { status: 404 }),
|
|
1549
|
+
signatureTimeWindow: false,
|
|
1550
|
+
skipSignatureVerification: true,
|
|
1551
|
+
tracerProvider
|
|
1552
|
+
});
|
|
1553
|
+
assertEquals(response.status, 202);
|
|
1554
|
+
assert(receivedActivity != null);
|
|
1555
|
+
const spans = exporter.getSpans("activitypub.inbox");
|
|
1556
|
+
assertEquals(spans.length, 1);
|
|
1557
|
+
const span = spans[0];
|
|
1558
|
+
assertEquals(span.attributes["fedify.inbox.recipient"], "someone");
|
|
1559
|
+
assertEquals(span.attributes["activitypub.activity.id"], "https://example.com/activity");
|
|
1560
|
+
const events = exporter.getEvents("activitypub.inbox", "activitypub.activity.received");
|
|
1561
|
+
assertEquals(events.length, 1);
|
|
1562
|
+
const event = events[0];
|
|
1563
|
+
assert(event.attributes != null);
|
|
1564
|
+
assertEquals(event.attributes["activitypub.activity.verified"], true);
|
|
1565
|
+
assertEquals(event.attributes["http_signatures.verified"], false);
|
|
1566
|
+
assert(typeof event.attributes["activitypub.activity.json"] === "string");
|
|
1567
|
+
const recordedActivity = JSON.parse(event.attributes["activitypub.activity.json"]);
|
|
1568
|
+
assertEquals(recordedActivity.id, "https://example.com/activity");
|
|
1569
|
+
assertEquals(recordedActivity.type, "Create");
|
|
1570
|
+
});
|
|
1484
1571
|
|
|
1485
1572
|
//#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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { createFederation } from "../middleware-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { createFederation } from "../middleware-CwpDL0KB.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-
|
|
21
|
-
import "../kv-cache-
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
14
|
+
import "../actor-DrvDW-tK.js";
|
|
15
|
+
import "../key-C_b1t1Na.js";
|
|
16
|
+
import "../http-BNxhNjYm.js";
|
|
17
|
+
import "../ld-Ba0jIf7k.js";
|
|
18
|
+
import "../owner-CgznkTZ6.js";
|
|
19
|
+
import { signObject } from "../proof-rFeNfcVE.js";
|
|
20
|
+
import "../docloader-DlSrn4Io.js";
|
|
21
|
+
import "../kv-cache-D7LFlByV.js";
|
|
22
|
+
import "../inbox-CXOoDyEH.js";
|
|
23
|
+
import "../builder-D2trc6p7.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-zfG6F1PW.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-w_IyjZ0S.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-fIO3Z258.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-C01rMN22.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-kl47RWf3.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-CXOoDyEH.js";
|
|
9
|
+
import { test } from "../testing-fIO3Z258.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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { KvKeyCache } from "../keycache-
|
|
12
|
-
import { test } from "../testing-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { KvKeyCache } from "../keycache-zfG6F1PW.js";
|
|
12
|
+
import { test } from "../testing-fIO3Z258.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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { test } from "../testing-fIO3Z258.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -41,6 +41,60 @@ test("MemoryKvStore", async (t) => {
|
|
|
41
41
|
assertEquals(await store.cas(["foo", "bar"], void 0, "baz"), true);
|
|
42
42
|
assertEquals(await store.get(["foo", "bar"]), "baz");
|
|
43
43
|
});
|
|
44
|
+
await t.step("list()", async () => {
|
|
45
|
+
await store.set(["prefix", "a"], "value-a");
|
|
46
|
+
await store.set(["prefix", "b"], "value-b");
|
|
47
|
+
await store.set([
|
|
48
|
+
"prefix",
|
|
49
|
+
"nested",
|
|
50
|
+
"c"
|
|
51
|
+
], "value-c");
|
|
52
|
+
await store.set(["other", "x"], "value-x");
|
|
53
|
+
await store.set(["prefix"], "exact-match");
|
|
54
|
+
const entries = await Array.fromAsync(store.list(["prefix"]));
|
|
55
|
+
assertEquals(entries.length, 4);
|
|
56
|
+
const entryA = entries.find((e) => e.key.length === 2 && e.key[1] === "a");
|
|
57
|
+
assertEquals(entryA?.value, "value-a");
|
|
58
|
+
const noMatch = await Array.fromAsync(store.list(["nonexistent"]));
|
|
59
|
+
assertEquals(noMatch.length, 0);
|
|
60
|
+
await store.delete(["prefix", "a"]);
|
|
61
|
+
await store.delete(["prefix", "b"]);
|
|
62
|
+
await store.delete([
|
|
63
|
+
"prefix",
|
|
64
|
+
"nested",
|
|
65
|
+
"c"
|
|
66
|
+
]);
|
|
67
|
+
await store.delete(["other", "x"]);
|
|
68
|
+
await store.delete(["prefix"]);
|
|
69
|
+
});
|
|
70
|
+
await t.step("list() filters expired entries", async () => {
|
|
71
|
+
await store.set(["expired", "old"], "old-value", { ttl: Temporal.Duration.from({ milliseconds: 1 }) });
|
|
72
|
+
await store.set(["expired", "valid"], "valid-value");
|
|
73
|
+
await new Promise((r) => setTimeout(r, 10));
|
|
74
|
+
const entries = await Array.fromAsync(store.list(["expired"]));
|
|
75
|
+
assertEquals(entries.length, 1);
|
|
76
|
+
assertEquals(entries[0].value, "valid-value");
|
|
77
|
+
await store.delete(["expired", "valid"]);
|
|
78
|
+
});
|
|
79
|
+
await t.step("list() with empty prefix", async () => {
|
|
80
|
+
await store.delete(["foo", "bar"]);
|
|
81
|
+
await store.set(["a"], "value-a");
|
|
82
|
+
await store.set(["b", "c"], "value-bc");
|
|
83
|
+
await store.set([
|
|
84
|
+
"d",
|
|
85
|
+
"e",
|
|
86
|
+
"f"
|
|
87
|
+
], "value-def");
|
|
88
|
+
const entries = await Array.fromAsync(store.list());
|
|
89
|
+
assertEquals(entries.length, 3);
|
|
90
|
+
await store.delete(["a"]);
|
|
91
|
+
await store.delete(["b", "c"]);
|
|
92
|
+
await store.delete([
|
|
93
|
+
"d",
|
|
94
|
+
"e",
|
|
95
|
+
"f"
|
|
96
|
+
]);
|
|
97
|
+
});
|
|
44
98
|
});
|
|
45
99
|
|
|
46
100
|
//#endregion
|
|
@@ -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-kl47RWf3.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-CwpDL0KB.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-
|
|
21
|
-
import "../kv-cache-
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
14
|
+
import "../actor-DrvDW-tK.js";
|
|
15
|
+
import "../key-C_b1t1Na.js";
|
|
16
|
+
import { signRequest, verifyRequest } from "../http-BNxhNjYm.js";
|
|
17
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-Ba0jIf7k.js";
|
|
18
|
+
import { doesActorOwnKey } from "../owner-CgznkTZ6.js";
|
|
19
|
+
import { signObject, verifyObject } from "../proof-rFeNfcVE.js";
|
|
20
|
+
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-DlSrn4Io.js";
|
|
21
|
+
import "../kv-cache-D7LFlByV.js";
|
|
22
|
+
import "../inbox-CXOoDyEH.js";
|
|
23
|
+
import "../builder-D2trc6p7.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-zfG6F1PW.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-w_IyjZ0S.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-fIO3Z258.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-C01rMN22.js";
|
|
35
|
+
import { esm_default } from "../esm-DQKBkSAc.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-
|
|
11
|
-
const require_federation = require('../federation-
|
|
6
|
+
require('../lookup-UA4SKewV.cjs');
|
|
7
|
+
require('../actor-Bpgsv6Ii.cjs');
|
|
8
|
+
const require_middleware = require('../middleware-BYqpBCFp.cjs');
|
|
9
|
+
require('../http-Dr7V4DY7.cjs');
|
|
10
|
+
require('../proof-AEFUz3SS.cjs');
|
|
11
|
+
const require_federation = require('../federation-CoW-KDKv.cjs');
|
|
12
12
|
require('../types-CWgzGaqk.cjs');
|
|
13
|
-
require('../kv-cache-
|
|
14
|
-
require('../vocab-
|
|
13
|
+
require('../kv-cache-CpjdzlKh.cjs');
|
|
14
|
+
require('../vocab-COVHviQ5.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-
|
|
9
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
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-DBQ7nMCw.cjs";
|
|
9
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-cD_d4hg-.cjs";
|
|
10
10
|
import "../mod-CcDPcLJW.cjs";
|
|
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 };
|
|
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, KvStoreListEntry, 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-
|
|
11
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
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-mM0Nu5yo.js";
|
|
11
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-BpJND1Hr.js";
|
|
12
12
|
import "../mod-bjzj5QIb.js";
|
|
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 };
|
|
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, KvStoreListEntry, 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 };
|