@fedify/fedify 1.8.14-pr.470.1832 → 1.8.14-pr.470.1850
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-9s3WvbFp.js → actor-BChi61C8.js} +1 -1
- package/dist/{actor-CQun2LMl.js → actor-BUhj-6Zf.js} +179 -179
- package/dist/{actor-WPWqtDNJ.d.ts → actor-Uh1YDuVl.d.ts} +1 -1
- package/dist/{authdocloader-Bqmp0UcQ.js → authdocloader-DR2WMbdR.js} +3 -3
- package/dist/{authdocloader-BgYRnN3Q.js → authdocloader-dRBjecG-.js} +3 -3
- package/dist/{builder-KRZXPPWM.js → builder-D9nXfVXw.js} +4 -4
- package/dist/{client-DhSHvGlU.js → client-PWAKyqTB.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-CdarHEgV.js} +1 -1
- package/dist/{esm-D4Y3V3TX.js → esm-B5vWMZy6.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-Clle8OhQ.js → http-B5ECNrCg.js} +3 -3
- package/dist/{http-BqfZ3DiV.js → http-C0Pn-BKA.js} +2 -2
- package/dist/{http-e1180cSn.d.ts → http-DtG44GdM.d.ts} +1 -1
- package/dist/{inbox-pY_0KiG-.js → inbox-MEsMrHw2.js} +1 -1
- package/dist/{key-DPDQaDw5.js → key-BRLhukh9.js} +3 -3
- package/dist/{key-toTNLBm1.js → key-COu90p1z.js} +2 -2
- package/dist/{key-2kt7ohj3.js → key-Cm_744Jn.js} +4 -4
- package/dist/{key-Zp-T0bhP.js → key-jz96WxmA.js} +2 -2
- package/dist/{keycache-B9bzg6VQ.js → keycache-A0w-Myj8.js} +1 -1
- package/dist/{keys-4zM5Up9R.js → keys-Q9MUhKI9.js} +1 -1
- package/dist/{ld-CPeQLxZy.js → ld-SeLtWpcv.js} +2 -2
- package/dist/{lookup-gy112MkU.js → lookup-BeIJGl67.js} +1 -1
- package/dist/{lookup-Akl5ucko.js → lookup-CQcyI4Sn.js} +1 -1
- package/dist/middleware-C94F6Abe.js +17 -0
- package/dist/{middleware-CKOUGNAC.js → middleware-CZUAFRtc.js} +13 -13
- package/dist/middleware-DJlwjrNO.js +26 -0
- package/dist/{middleware-CSft86O_.js → middleware-VcV5Z-SQ.js} +10 -10
- 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-DNEJ8SNy.js} +2 -2
- package/dist/{proof-seBFgbXH.js → proof-BbA0AjOd.js} +2 -2
- package/dist/{proof-DQsTTtYV.js → proof-DvTgXmZf.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-CiJvt1E1.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-CHVDxQWx.js} +2 -2
- package/dist/{type-wUeR1KOP.js → type-fesuHbxE.js} +178 -178
- package/dist/{types-DsANHy_R.js → types-B7WK-t9b.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-Bb73woRF.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
|
4
|
-
import { Application, Group, Organization, Person, Service } from "./vocab-
|
|
4
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-Ukxjz3TM.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region src/vocab/actor.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 { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-CdarHEgV.js";
|
|
6
|
+
import { validateCryptoKey } from "./key-COu90p1z.js";
|
|
7
|
+
import { doubleKnock } from "./http-B5ECNrCg.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
|
10
10
|
//#region src/runtime/authdocloader.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-
|
|
7
|
-
import { validateCryptoKey } from "./key-
|
|
8
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-fesuHbxE.js";
|
|
7
|
+
import { validateCryptoKey } from "./key-jz96WxmA.js";
|
|
8
|
+
import { doubleKnock } from "./http-C0Pn-BKA.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
|
|
11
11
|
//#region src/runtime/authdocloader.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getTypeId } from "./type-
|
|
7
|
-
import { Router, RouterError } from "./lookup-
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
6
|
+
import { deno_default, getTypeId } from "./type-fesuHbxE.js";
|
|
7
|
+
import { Router, RouterError } from "./lookup-BeIJGl67.js";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-MEsMrHw2.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
11
|
|
|
@@ -41,7 +41,7 @@ var FederationBuilderImpl = class {
|
|
|
41
41
|
this.collectionTypeIds = {};
|
|
42
42
|
}
|
|
43
43
|
async build(options) {
|
|
44
|
-
const { FederationImpl } = await import("./middleware-
|
|
44
|
+
const { FederationImpl } = await import("./middleware-DJlwjrNO.js");
|
|
45
45
|
const f = new FederationImpl(options);
|
|
46
46
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
47
47
|
f.router = this.router.clone();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { getUserAgent } from "./type-
|
|
6
|
+
import { getUserAgent } from "./type-fesuHbxE.js";
|
|
7
7
|
import { parseSemVer } from "./semver-dArNLkR9.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import "../kv-C7sopW2E.js";
|
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
|
5
|
-
import "../
|
|
6
|
-
import
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../mod-
|
|
5
|
+
import "../client-DF8anIB5.js";
|
|
6
|
+
import "../vocab-Ukxjz3TM.js";
|
|
7
|
+
import "../actor-Uh1YDuVl.js";
|
|
8
|
+
import "../http-DtG44GdM.js";
|
|
9
|
+
import "../owner-C12klfeG.js";
|
|
10
|
+
import "../mod-cz-tNIqP.js";
|
|
11
11
|
import "../lookup-3czM5mmU.js";
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
12
|
+
import { ActivityTransformer } from "../context-CnveeHUR.js";
|
|
13
|
+
import "../mq-CRGm1e_F.js";
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DPpunL8j.js";
|
|
15
15
|
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 "../type-
|
|
6
|
+
import { Follow, Person } from "../type-fesuHbxE.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-CZUAFRtc.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-PWAKyqTB.js";
|
|
14
|
+
import "../lookup-BeIJGl67.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BChi61C8.js";
|
|
17
|
+
import "../key-jz96WxmA.js";
|
|
18
|
+
import "../http-C0Pn-BKA.js";
|
|
19
|
+
import "../authdocloader-dRBjecG-.js";
|
|
20
|
+
import "../ld-SeLtWpcv.js";
|
|
21
|
+
import "../owner-DNEJ8SNy.js";
|
|
22
|
+
import "../proof-BbA0AjOd.js";
|
|
23
|
+
import "../inbox-MEsMrHw2.js";
|
|
24
|
+
import "../builder-D9nXfVXw.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-A0w-Myj8.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-CiJvt1E1.js";
|
|
29
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
30
30
|
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
@@ -2,14 +2,14 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { KvKey, KvStore } from "./kv-C7sopW2E.js";
|
|
4
4
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Actor, Recipient } from "./actor-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-DF8anIB5.js";
|
|
6
|
+
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-Ukxjz3TM.js";
|
|
7
|
+
import { Actor, Recipient } from "./actor-Uh1YDuVl.js";
|
|
8
|
+
import { HttpMessageSignaturesSpec } from "./http-DtG44GdM.js";
|
|
9
|
+
import { GetKeyOwnerOptions } from "./owner-C12klfeG.js";
|
|
10
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-cz-tNIqP.js";
|
|
10
11
|
import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-3czM5mmU.js";
|
|
11
|
-
import { MessageQueue } from "./mq-
|
|
12
|
-
import { GetKeyOwnerOptions } from "./owner-CB8DneNI.js";
|
|
12
|
+
import { MessageQueue } from "./mq-CRGm1e_F.js";
|
|
13
13
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
14
14
|
|
|
15
15
|
//#region src/compat/types.d.ts
|
|
@@ -631,11 +631,9 @@ interface FederationOrigin {
|
|
|
631
631
|
* @returns A new {@link Federation} instance.
|
|
632
632
|
* @since 0.10.0
|
|
633
633
|
*/
|
|
634
|
-
declare function createFederation<TContextData>(options: CreateFederationOptions<TContextData>): Federation
|
|
634
|
+
declare function createFederation<TContextData>(options: CreateFederationOptions<TContextData>): Federation<TContextData>;
|
|
635
635
|
//#endregion
|
|
636
636
|
//#region src/federation/federation.d.ts
|
|
637
|
-
type Context$1<TContextData> = Context<TContextData>;
|
|
638
|
-
type RequestContext$1<TContextData> = RequestContext<TContextData>;
|
|
639
637
|
/**
|
|
640
638
|
* Options for {@link Federation.startQueue} method.
|
|
641
639
|
* @since 1.0.0
|
|
@@ -801,7 +799,7 @@ interface Federatable<TContextData> {
|
|
|
801
799
|
* @param dispatcher An inbox dispatcher callback to register.
|
|
802
800
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
803
801
|
*/
|
|
804
|
-
setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext
|
|
802
|
+
setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
805
803
|
/**
|
|
806
804
|
* Registers an outbox dispatcher.
|
|
807
805
|
*
|
|
@@ -825,7 +823,7 @@ interface Federatable<TContextData> {
|
|
|
825
823
|
* @param dispatcher An outbox dispatcher callback to register.
|
|
826
824
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
827
825
|
*/
|
|
828
|
-
setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext
|
|
826
|
+
setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
829
827
|
/**
|
|
830
828
|
* Registers a following collection dispatcher.
|
|
831
829
|
* @param path The URI path pattern for the following collection. The syntax
|
|
@@ -837,7 +835,7 @@ interface Federatable<TContextData> {
|
|
|
837
835
|
* callbacks.
|
|
838
836
|
* @throws {RouterError} Thrown if the path pattern is invalid.
|
|
839
837
|
*/
|
|
840
|
-
setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext
|
|
838
|
+
setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
841
839
|
/**
|
|
842
840
|
* Registers a followers collection dispatcher.
|
|
843
841
|
* @param path The URI path pattern for the followers collection. The syntax
|
|
@@ -849,7 +847,7 @@ interface Federatable<TContextData> {
|
|
|
849
847
|
* callbacks.
|
|
850
848
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
851
849
|
*/
|
|
852
|
-
setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context
|
|
850
|
+
setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
|
|
853
851
|
/**
|
|
854
852
|
* Registers a liked collection dispatcher.
|
|
855
853
|
* @param path The URI path pattern for the liked collection. The syntax
|
|
@@ -861,7 +859,7 @@ interface Federatable<TContextData> {
|
|
|
861
859
|
* callbacks.
|
|
862
860
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
863
861
|
*/
|
|
864
|
-
setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext
|
|
862
|
+
setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
865
863
|
/**
|
|
866
864
|
* Registers a featured collection dispatcher.
|
|
867
865
|
* @param path The URI path pattern for the featured collection. The syntax
|
|
@@ -873,7 +871,7 @@ interface Federatable<TContextData> {
|
|
|
873
871
|
* callbacks.
|
|
874
872
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
875
873
|
*/
|
|
876
|
-
setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext
|
|
874
|
+
setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
877
875
|
/**
|
|
878
876
|
* Registers a featured tags collection dispatcher.
|
|
879
877
|
* @param path The URI path pattern for the featured tags collection.
|
|
@@ -885,7 +883,7 @@ interface Federatable<TContextData> {
|
|
|
885
883
|
* callbacks.
|
|
886
884
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
|
887
885
|
*/
|
|
888
|
-
setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext
|
|
886
|
+
setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
|
889
887
|
/**
|
|
890
888
|
* Assigns the URL path for the inbox and starts setting inbox listeners.
|
|
891
889
|
*
|
|
@@ -930,7 +928,7 @@ interface Federatable<TContextData> {
|
|
|
930
928
|
* The path must have one or more variables.
|
|
931
929
|
* @param dispatcher A collection dispatcher callback to register.
|
|
932
930
|
*/
|
|
933
|
-
setCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId
|
|
931
|
+
setCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
|
|
934
932
|
/**
|
|
935
933
|
* Registers an ordered collection of objects dispatcher.
|
|
936
934
|
*
|
|
@@ -945,7 +943,7 @@ interface Federatable<TContextData> {
|
|
|
945
943
|
* The path must have one or more variables.
|
|
946
944
|
* @param dispatcher A collection dispatcher callback to register.
|
|
947
945
|
*/
|
|
948
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId
|
|
946
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
|
|
949
947
|
}
|
|
950
948
|
/**
|
|
951
949
|
* An object that registers federation-related business logic and dispatches
|
|
@@ -956,7 +954,7 @@ interface Federatable<TContextData> {
|
|
|
956
954
|
* @template TContextData The context data to pass to the {@link Context}.
|
|
957
955
|
* @since 0.13.0
|
|
958
956
|
*/
|
|
959
|
-
interface Federation
|
|
957
|
+
interface Federation<TContextData> extends Federatable<TContextData> {
|
|
960
958
|
/**
|
|
961
959
|
* Manually start the task queue.
|
|
962
960
|
*
|
|
@@ -986,14 +984,14 @@ interface Federation$1<TContextData> extends Federatable<TContextData> {
|
|
|
986
984
|
* @param contextData The context data to pass to the context.
|
|
987
985
|
* @returns The new context.
|
|
988
986
|
*/
|
|
989
|
-
createContext(baseUrl: URL, contextData: TContextData): Context
|
|
987
|
+
createContext(baseUrl: URL, contextData: TContextData): Context<TContextData>;
|
|
990
988
|
/**
|
|
991
989
|
* Create a new context for a request.
|
|
992
990
|
* @param request The request object.
|
|
993
991
|
* @param contextData The context data to pass to the context.
|
|
994
992
|
* @returns The new request context.
|
|
995
993
|
*/
|
|
996
|
-
createContext(request: Request, contextData: TContextData): RequestContext
|
|
994
|
+
createContext(request: Request, contextData: TContextData): RequestContext<TContextData>;
|
|
997
995
|
/**
|
|
998
996
|
* Handles a request related to federation. If a request is not related to
|
|
999
997
|
* federation, the `onNotFound` or `onNotAcceptable` callback is called.
|
|
@@ -1020,7 +1018,7 @@ interface FederationBuilder<TContextData> extends Federatable<TContextData> {
|
|
|
1020
1018
|
* Builds the federation object.
|
|
1021
1019
|
* @returns The federation object.
|
|
1022
1020
|
*/
|
|
1023
|
-
build(options: FederationOptions<TContextData>): Promise<Federation
|
|
1021
|
+
build(options: FederationOptions<TContextData>): Promise<Federation<TContextData>>;
|
|
1024
1022
|
}
|
|
1025
1023
|
/**
|
|
1026
1024
|
* Options for creating a {@link Federation} object.
|
|
@@ -1274,7 +1272,7 @@ interface ObjectCallbackSetters<TContextData, TObject extends Object$1, TParam e
|
|
|
1274
1272
|
* @template TContextData The context data to pass to the {@link Context}.
|
|
1275
1273
|
* @template TFilter The type of filter for the collection.
|
|
1276
1274
|
*/
|
|
1277
|
-
interface CollectionCallbackSetters<TContext extends Context
|
|
1275
|
+
interface CollectionCallbackSetters<TContext extends Context<TContextData>, TContextData, TFilter> {
|
|
1278
1276
|
/**
|
|
1279
1277
|
* Sets the counter for the collection.
|
|
1280
1278
|
* @param counter A callback that returns the number of items in the collection.
|
|
@@ -1375,7 +1373,7 @@ interface FederationFetchOptions<TContextData> {
|
|
|
1375
1373
|
* @template TContextData The context data to pass to the {@link Context}.
|
|
1376
1374
|
* @template TFilter The type of filter for the collection.
|
|
1377
1375
|
*/
|
|
1378
|
-
interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context
|
|
1376
|
+
interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> {
|
|
1379
1377
|
/**
|
|
1380
1378
|
* Sets the counter for the custom collection.
|
|
1381
1379
|
* @param counter A callback that returns the number of items in the custom collection.
|
|
@@ -1408,7 +1406,7 @@ interface CustomCollectionCallbackSetters<TParams extends Record<string, string>
|
|
|
1408
1406
|
*
|
|
1409
1407
|
* @template TObject The type of the object.
|
|
1410
1408
|
*/
|
|
1411
|
-
type ConstructorWithTypeId
|
|
1409
|
+
type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) => TObject) & {
|
|
1412
1410
|
typeId: URL;
|
|
1413
1411
|
};
|
|
1414
1412
|
/**
|
|
@@ -1481,8 +1479,6 @@ type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
|
|
|
1481
1479
|
type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
1482
1480
|
//#endregion
|
|
1483
1481
|
//#region src/federation/context.d.ts
|
|
1484
|
-
type Federation<TContextData> = Federation$1<TContextData>;
|
|
1485
|
-
type ConstructorWithTypeId<T extends Object$1> = ConstructorWithTypeId$1<T>;
|
|
1486
1482
|
/**
|
|
1487
1483
|
* A context.
|
|
1488
1484
|
*/
|
|
@@ -2251,4 +2247,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
|
2251
2247
|
multikey: Multikey;
|
|
2252
2248
|
}
|
|
2253
2249
|
//#endregion
|
|
2254
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId
|
|
2250
|
+
export { ActivityTransformer, 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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __commonJS, __toESM } from "./type-
|
|
6
|
+
import { __commonJS, __toESM } from "./type-fesuHbxE.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,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Note, Person } from "../type-
|
|
6
|
+
import { Activity, Note, Person } from "../type-fesuHbxE.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
11
|
import { parseSemVer } from "../semver-dArNLkR9.js";
|
|
12
|
-
import "../lookup-
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
15
|
-
import { test } from "../testing-
|
|
12
|
+
import "../lookup-BeIJGl67.js";
|
|
13
|
+
import "../inbox-MEsMrHw2.js";
|
|
14
|
+
import { createFederationBuilder } from "../builder-D9nXfVXw.js";
|
|
15
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
16
16
|
import { assertExists } from "../std__assert-X-_kMxKM.js";
|
|
17
17
|
import "../assert_rejects-DiIiJbZn.js";
|
|
18
18
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-fesuHbxE.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 "../lookup-
|
|
10
|
+
import "../lookup-BeIJGl67.js";
|
|
11
11
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-CSzG2j1P.js";
|
|
12
|
-
import { test } from "../testing-
|
|
12
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
|
6
|
+
import { Create, Note, Person } from "../type-fesuHbxE.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 { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CZUAFRtc.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-PWAKyqTB.js";
|
|
14
|
+
import "../lookup-BeIJGl67.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest } from "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BChi61C8.js";
|
|
17
|
+
import "../key-jz96WxmA.js";
|
|
18
|
+
import { signRequest } from "../http-C0Pn-BKA.js";
|
|
19
|
+
import "../authdocloader-dRBjecG-.js";
|
|
20
|
+
import "../ld-SeLtWpcv.js";
|
|
21
|
+
import "../owner-DNEJ8SNy.js";
|
|
22
|
+
import "../proof-BbA0AjOd.js";
|
|
23
|
+
import { InboxListenerSet } from "../inbox-MEsMrHw2.js";
|
|
24
|
+
import "../builder-D9nXfVXw.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-A0w-Myj8.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CiJvt1E1.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-CHVDxQWx.js";
|
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
|
31
31
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
|
33
33
|
import "../assert_not_equals-f3m3epl3.js";
|
|
34
34
|
import "../assert_throws-BOO88avQ.js";
|
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
35
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Q9MUhKI9.js";
|
|
36
36
|
|
|
37
37
|
//#region src/federation/handler.test.ts
|
|
38
38
|
test("acceptsJsonLd()", () => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../type-
|
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../type-fesuHbxE.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../lookup-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
10
|
-
import { test } from "../testing-
|
|
8
|
+
import "../lookup-BeIJGl67.js";
|
|
9
|
+
import { InboxListenerSet } from "../inbox-MEsMrHw2.js";
|
|
10
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
11
11
|
import "../assert_is_error-BPGph1Jx.js";
|
|
12
12
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
13
13
|
|
|
@@ -3,14 +3,14 @@
|
|
|
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-fesuHbxE.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 "../lookup-
|
|
12
|
-
import { KvKeyCache } from "../keycache-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-BeIJGl67.js";
|
|
12
|
+
import { KvKeyCache } from "../keycache-A0w-Myj8.js";
|
|
13
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
14
14
|
|
|
15
15
|
//#region src/federation/keycache.test.ts
|
|
16
16
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-fesuHbxE.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 "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-BeIJGl67.js";
|
|
12
|
+
import { test } from "../testing-CHVDxQWx.js";
|
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-fesuHbxE.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-CZUAFRtc.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
|
13
|
+
import "../client-PWAKyqTB.js";
|
|
14
|
+
import { RouterError, lookupObject } from "../lookup-BeIJGl67.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BChi61C8.js";
|
|
17
|
+
import "../key-jz96WxmA.js";
|
|
18
|
+
import { signRequest, verifyRequest } from "../http-C0Pn-BKA.js";
|
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-dRBjecG-.js";
|
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-SeLtWpcv.js";
|
|
21
|
+
import { doesActorOwnKey } from "../owner-DNEJ8SNy.js";
|
|
22
|
+
import { signObject, verifyObject } from "../proof-BbA0AjOd.js";
|
|
23
|
+
import "../inbox-MEsMrHw2.js";
|
|
24
|
+
import "../builder-D9nXfVXw.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-A0w-Myj8.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CiJvt1E1.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-CHVDxQWx.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
34
34
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
36
|
-
import { esm_default } from "../esm-
|
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Q9MUhKI9.js";
|
|
36
|
+
import { esm_default } from "../esm-B5vWMZy6.js";
|
|
37
37
|
|
|
38
38
|
//#region src/testing/fixtures/example.com/person.json
|
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-C7sopW2E.js";
|
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
|
5
|
-
import "../
|
|
6
|
-
import
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../mod-
|
|
5
|
+
import "../client-DF8anIB5.js";
|
|
6
|
+
import "../vocab-Ukxjz3TM.js";
|
|
7
|
+
import "../actor-Uh1YDuVl.js";
|
|
8
|
+
import "../http-DtG44GdM.js";
|
|
9
|
+
import "../owner-C12klfeG.js";
|
|
10
|
+
import "../mod-cz-tNIqP.js";
|
|
11
11
|
import "../lookup-3czM5mmU.js";
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
12
|
+
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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-CnveeHUR.js";
|
|
13
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-CRGm1e_F.js";
|
|
14
14
|
import "../mod-g0xFzAP9.js";
|
|
15
15
|
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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|