@fedify/fedify 2.0.0-dev.1641 → 2.0.0-dev.1726
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-CP03csrm.cjs → actor-Bn2RCpws.cjs} +7263 -2440
- package/dist/{actor-DMgu-ZjT.d.cts → actor-D6K058Tb.d.cts} +1 -1
- package/dist/{actor-C22bXuuC.d.ts → actor-T6RyhRgk.d.ts} +1 -1
- package/dist/{actor-DVpsNXhn.js → actor-dO7jHa6A.js} +1 -1
- package/dist/{actor-DU511yTk.js → actor-menZmmiI.js} +7263 -2440
- package/dist/{assert_rejects-7UF4R_Qs.js → assert_rejects-DiIiJbZn.js} +1 -1
- package/dist/{assert_throws-53_pKeP3.js → assert_throws-BOO88avQ.js} +1 -1
- package/dist/{authdocloader-BnsFSERg.cjs → authdocloader-CEqdZdT7.cjs} +3 -3
- package/dist/{authdocloader-DCgMyo82.js → authdocloader-CZsCIRLV.js} +3 -3
- package/dist/{authdocloader-BkIZCKQv.js → authdocloader-DevmXsTo.js} +3 -3
- package/dist/{builder-E2Icrl_a.js → builder-CGF1vv7G.js} +14 -8
- package/dist/{client-BW4V0OJx.js → client-BfzV3u96.js} +1 -1
- package/dist/compat/mod.d.cts +7 -7
- package/dist/compat/mod.d.ts +7 -7
- package/dist/compat/transformers.test.js +18 -17
- package/dist/{context-CDSZdQHD.d.ts → context-B1X8-X33.d.ts} +185 -98
- package/dist/{context-Dq8aCtMH.d.cts → context-DYCJXr7J.d.cts} +185 -98
- package/dist/{docloader-kae6M-GI.cjs → docloader-Buh0Ah9G.cjs} +2 -2
- package/dist/{docloader-BtqIh1OE.js → docloader-DOmINJ1U.js} +2 -2
- package/dist/{esm-mtx3XJAD.js → esm-BODOj_Oi.js} +1 -1
- package/dist/federation/builder.test.js +10 -10
- package/dist/federation/collection.test.js +8 -8
- package/dist/federation/handler.test.js +26 -145
- package/dist/federation/idempotency.test.d.ts +3 -0
- package/dist/federation/idempotency.test.js +202 -0
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +238 -44
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +7 -7
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +10 -10
- package/dist/federation/negotiation.test.d.ts +3 -0
- package/dist/federation/negotiation.test.js +28 -0
- package/dist/federation/retry.test.js +5 -5
- package/dist/federation/router.test.js +8 -8
- package/dist/federation/send.test.js +15 -15
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-ZhcoaYEa.cjs → http-BmbMWfmh.cjs} +3 -3
- package/dist/{http-BS6766zs.d.cts → http-D-e6AFwR.d.cts} +1 -1
- package/dist/{http-DqSNLFNY.d.ts → http-D6Uj2x2y.d.ts} +1 -1
- package/dist/{http-Cox5GsED.js → http-Danw_xTY.js} +2 -2
- package/dist/{http-C7uYFcBo.js → http-gHyCrTrX.js} +3 -3
- package/dist/{inbox-BDdRbWNI.js → inbox-Blp5F74G.js} +24 -7
- package/dist/{key-CgwCzDC4.js → key-B2cp5-JF.js} +3 -3
- package/dist/{key-HqzOCwDc.cjs → key-BR1W25rw.cjs} +2 -2
- package/dist/{key-Cc0JlcKe.js → key-BnjofJ4e.js} +2 -2
- package/dist/{key-CfiBDu3o.js → key-CIIkeide.js} +2 -2
- package/dist/key-DhflzsBJ.cjs +10 -0
- package/dist/{key-B9Z5ZuX9.js → key-WES6wszI.js} +4 -4
- package/dist/{keycache-CVBjz3xi.js → keycache-Covv8lvK.js} +1 -1
- package/dist/{keys-CBKbYaJA.js → keys-DZ1bqhJz.js} +1 -1
- package/dist/{ld-CxgmnSO3.js → ld-C7KL1MK2.js} +2 -2
- package/dist/{lookup-QHjmy4Og.cjs → lookup-CDOxr8vw.cjs} +1 -1
- package/dist/{lookup-NuT9cCSl.js → lookup-D8tCnUj2.js} +1 -1
- package/dist/{lookup-CiU3QxQz.js → lookup-VSVPBU3J.js} +21 -12
- package/dist/middleware-9KSLASn7.js +17 -0
- package/dist/{middleware-LyCG_YVM.cjs → middleware-C60xXvWx.cjs} +99 -108
- package/dist/middleware-CH0PNtaj.cjs +17 -0
- package/dist/middleware-CrzCnpdt.js +26 -0
- package/dist/{middleware-DXidHY4N.js → middleware-DXOZ6_ST.js} +99 -108
- package/dist/{middleware-ByPnvMMS.js → middleware-HKKY6sAX.js} +69 -165
- package/dist/{mod-Drmz72EK.d.ts → mod-BhUKmBJD.d.ts} +2 -2
- package/dist/{mod-TFoH2Ql8.d.ts → mod-CerN_Sza.d.ts} +1 -1
- package/dist/{mod-Dc_-mf8s.d.cts → mod-Cj1tHXBR.d.cts} +1 -1
- package/dist/{mod-evzlRVZq.d.cts → mod-CxkWO3Mg.d.cts} +19 -1
- package/dist/{mod-RI3-KvUI.d.ts → mod-DcKxhFQ8.d.ts} +2 -2
- package/dist/{mod-BClfg3ej.d.cts → mod-Djzcw2ry.d.cts} +2 -2
- package/dist/{mod-Cxt4Kpf6.d.ts → mod-DlU8ISoa.d.ts} +19 -1
- package/dist/{mod-BhMnAkFX.d.cts → mod-twdvV2hR.d.cts} +2 -2
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +10 -10
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/negotiation-5NPJL6zp.js +71 -0
- package/dist/nodeinfo/client.test.js +10 -10
- package/dist/nodeinfo/handler.test.js +23 -22
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-B-7Ptt_m.d.cts → owner-BN_tO3cY.d.cts} +2 -2
- package/dist/{owner-Cxob5_PK.js → owner-COcyel6J.js} +2 -2
- package/dist/{owner-CQPnQVtf.d.ts → owner-hd9lvQcP.d.ts} +2 -2
- package/dist/{proof-2Gcor0_N.cjs → proof-CMJcrQoM.cjs} +3 -3
- package/dist/{proof-BiSQNUmQ.js → proof-Cpk853lc.js} +2 -2
- package/dist/{proof-DkxwMaWE.js → proof-D6pbnNx2.js} +3 -3
- package/dist/runtime/authdocloader.test.js +14 -14
- package/dist/runtime/docloader.test.js +9 -9
- package/dist/runtime/key.test.js +10 -10
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.d.cts +3 -3
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +5 -5
- package/dist/{send-DSEhWIYD.js → send-C7A7_big.js} +2 -2
- package/dist/sig/http.test.js +13 -13
- package/dist/sig/key.test.js +11 -11
- package/dist/sig/ld.test.js +10 -10
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.d.cts +5 -5
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +12 -12
- package/dist/sig/proof.test.js +12 -12
- package/dist/testing/docloader.test.js +8 -8
- package/dist/testing/mod.d.ts +391 -86
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-ByQmUvf-.js → testing-e8Kpb1uV.js} +2 -2
- package/dist/{type-B4NJkfVg.js → type-D_8QzkEn.js} +6944 -2121
- package/dist/{types-l2uh_ZhP.js → types-Db4ukgX8.js} +1 -1
- package/dist/{types-Bqt2EgP0.cjs → types-LjTL4QMx.cjs} +1 -1
- package/dist/vocab/actor.test.js +10 -10
- package/dist/vocab/lookup.test.js +259 -9
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.d.cts +3 -3
- 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 +402 -13
- package/dist/{vocab-SOE1ifCr.d.ts → vocab-BI0Ak5lL.d.ts} +290 -0
- package/dist/{vocab-lBFcVxVF.js → vocab-CJHF7Q71.js} +23 -14
- package/dist/{vocab-B0-5a8pw.cjs → vocab-DLHpZwOW.cjs} +23 -14
- package/dist/{vocab-DJTYMqyU.d.cts → vocab-Dw1-yVGg.d.cts} +290 -0
- package/dist/webfinger/handler.test.js +23 -22
- package/dist/webfinger/lookup.test.js +9 -9
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -8
- package/dist/x/hono.d.cts +6 -6
- package/dist/x/hono.d.ts +6 -6
- package/dist/x/sveltekit.d.cts +6 -6
- package/dist/x/sveltekit.d.ts +6 -6
- package/package.json +1 -1
- package/dist/key-D-7DPHNl.cjs +0 -10
- package/dist/middleware-BHboQ4BE.js +0 -25
- package/dist/middleware-Bp3I9z8r.js +0 -17
- package/dist/middleware-oYqSU5ky.cjs +0 -17
- /package/dist/{assert_is_error-B035L3om.js → assert_is_error-BPGph1Jx.js} +0 -0
- /package/dist/{assert_not_equals-C80BG-_5.js → assert_not_equals-f3m3epl3.js} +0 -0
- /package/dist/{denokv-jZ0Z2h0M.js → denokv-Bv33Xxea.js} +0 -0
- /package/dist/{retry-CfF8Gn4d.js → retry-D4GJ670a.js} +0 -0
- /package/dist/{std__assert-DWivtrGR.js → std__assert-X-_kMxKM.js} +0 -0
@@ -3,11 +3,11 @@ 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
5
|
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-bgSdkFa2.js";
|
6
|
-
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-
|
7
|
-
import { Actor, Recipient } from "./actor-
|
8
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
9
|
-
import { GetKeyOwnerOptions } from "./owner-
|
10
|
-
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-
|
6
|
+
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-BI0Ak5lL.js";
|
7
|
+
import { Actor, Recipient } from "./actor-T6RyhRgk.js";
|
8
|
+
import { HttpMessageSignaturesSpec } from "./http-D6Uj2x2y.js";
|
9
|
+
import { GetKeyOwnerOptions } from "./owner-hd9lvQcP.js";
|
10
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-DlU8ISoa.js";
|
11
11
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "./mod-DBzN0aCM.js";
|
12
12
|
import { MessageQueue } from "./mq-CRGm1e_F.js";
|
13
13
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
@@ -283,7 +283,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
|
|
283
283
|
* the entire collection without pagination.
|
284
284
|
* @since 1.8.0
|
285
285
|
*/
|
286
|
-
type CustomCollectionDispatcher<TItem,
|
286
|
+
type CustomCollectionDispatcher<TItem, TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>, cursor: string | null) => PageItems<TItem> | null | Promise<PageItems<TItem> | null>;
|
287
287
|
/**
|
288
288
|
* A callback that counts the number of items in a custom collection.
|
289
289
|
*
|
@@ -293,7 +293,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
|
|
293
293
|
* @param values The parameters of the requested URL.
|
294
294
|
* @since 1.8.0
|
295
295
|
*/
|
296
|
-
type CustomCollectionCounter<
|
296
|
+
type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
|
297
297
|
/**
|
298
298
|
* A callback that returns a cursor for a custom collection.
|
299
299
|
*
|
@@ -306,7 +306,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
|
|
306
306
|
* @param values The parameters of the requested URL.
|
307
307
|
* @since 1.8.0
|
308
308
|
*/
|
309
|
-
type CustomCollectionCursor<
|
309
|
+
type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
|
310
310
|
//#endregion
|
311
311
|
//#region src/federation/handler.d.ts
|
312
312
|
|
@@ -704,7 +704,7 @@ interface Federatable<TContextData> {
|
|
704
704
|
* @returns An object with methods to set other actor dispatcher callbacks.
|
705
705
|
* @throws {RouterError} Thrown if the path pattern is invalid.
|
706
706
|
*/
|
707
|
-
setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
|
707
|
+
setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
|
708
708
|
/**
|
709
709
|
* Registers an object dispatcher.
|
710
710
|
*
|
@@ -768,7 +768,7 @@ interface Federatable<TContextData> {
|
|
768
768
|
*/
|
769
769
|
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
|
770
770
|
typeId: URL;
|
771
|
-
}, path: `${string}
|
771
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
772
772
|
/**
|
773
773
|
* Registers an object dispatcher.
|
774
774
|
*
|
@@ -784,7 +784,7 @@ interface Federatable<TContextData> {
|
|
784
784
|
*/
|
785
785
|
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
|
786
786
|
typeId: URL;
|
787
|
-
}, path: `${string}
|
787
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
788
788
|
/**
|
789
789
|
* Registers an object dispatcher.
|
790
790
|
*
|
@@ -800,7 +800,7 @@ interface Federatable<TContextData> {
|
|
800
800
|
*/
|
801
801
|
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
|
802
802
|
typeId: URL;
|
803
|
-
}, path: `${string}
|
803
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
804
804
|
/**
|
805
805
|
* Registers an inbox dispatcher.
|
806
806
|
*
|
@@ -812,7 +812,7 @@ interface Federatable<TContextData> {
|
|
812
812
|
* @param dispatcher An inbox dispatcher callback to register.
|
813
813
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
814
814
|
*/
|
815
|
-
setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
815
|
+
setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
816
816
|
/**
|
817
817
|
* Registers an outbox dispatcher.
|
818
818
|
*
|
@@ -836,7 +836,7 @@ interface Federatable<TContextData> {
|
|
836
836
|
* @param dispatcher An outbox dispatcher callback to register.
|
837
837
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
838
838
|
*/
|
839
|
-
setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
839
|
+
setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
840
840
|
/**
|
841
841
|
* Registers a following collection dispatcher.
|
842
842
|
* @param path The URI path pattern for the following collection. The syntax
|
@@ -848,7 +848,7 @@ interface Federatable<TContextData> {
|
|
848
848
|
* callbacks.
|
849
849
|
* @throws {RouterError} Thrown if the path pattern is invalid.
|
850
850
|
*/
|
851
|
-
setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
851
|
+
setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
852
852
|
/**
|
853
853
|
* Registers a followers collection dispatcher.
|
854
854
|
* @param path The URI path pattern for the followers collection. The syntax
|
@@ -860,7 +860,7 @@ interface Federatable<TContextData> {
|
|
860
860
|
* callbacks.
|
861
861
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
862
862
|
*/
|
863
|
-
setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
|
863
|
+
setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
|
864
864
|
/**
|
865
865
|
* Registers a liked collection dispatcher.
|
866
866
|
* @param path The URI path pattern for the liked collection. The syntax
|
@@ -872,7 +872,7 @@ interface Federatable<TContextData> {
|
|
872
872
|
* callbacks.
|
873
873
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
874
874
|
*/
|
875
|
-
setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
875
|
+
setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
876
876
|
/**
|
877
877
|
* Registers a featured collection dispatcher.
|
878
878
|
* @param path The URI path pattern for the featured collection. The syntax
|
@@ -884,7 +884,7 @@ interface Federatable<TContextData> {
|
|
884
884
|
* callbacks.
|
885
885
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
886
886
|
*/
|
887
|
-
setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
887
|
+
setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
888
888
|
/**
|
889
889
|
* Registers a featured tags collection dispatcher.
|
890
890
|
* @param path The URI path pattern for the featured tags collection.
|
@@ -896,7 +896,7 @@ interface Federatable<TContextData> {
|
|
896
896
|
* callbacks.
|
897
897
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
898
898
|
*/
|
899
|
-
setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
899
|
+
setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
|
900
900
|
/**
|
901
901
|
* Assigns the URL path for the inbox and starts setting inbox listeners.
|
902
902
|
*
|
@@ -926,7 +926,7 @@ interface Federatable<TContextData> {
|
|
926
926
|
* @returns An object to register inbox listeners.
|
927
927
|
* @throws {RouteError} Thrown if the path pattern is invalid.
|
928
928
|
*/
|
929
|
-
setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
|
929
|
+
setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
|
930
930
|
/**
|
931
931
|
* Registers a collection of objects dispatcher.
|
932
932
|
*
|
@@ -941,7 +941,77 @@ interface Federatable<TContextData> {
|
|
941
941
|
* The path must have one or more variables.
|
942
942
|
* @param dispatcher A collection dispatcher callback to register.
|
943
943
|
*/
|
944
|
-
setCollectionDispatcher<TObject extends Object$1,
|
944
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
945
|
+
typeId: URL;
|
946
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
947
|
+
/**
|
948
|
+
* Registers a collection of objects dispatcher.
|
949
|
+
*
|
950
|
+
* @template TContextData The context data to pass to the {@link Context}.
|
951
|
+
* @template TObject The type of objects to dispatch.
|
952
|
+
* @template TParam The parameter names of the requested URL.
|
953
|
+
* @param name A unique name for the collection dispatcher.
|
954
|
+
* @param itemType The Activity Vocabulary class of the object to dispatch.
|
955
|
+
* @param path The URI path pattern for the collection dispatcher.
|
956
|
+
* The syntax is based on URI Template
|
957
|
+
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
958
|
+
* The path must have one or more variables.
|
959
|
+
* @param dispatcher A collection dispatcher callback to register.
|
960
|
+
*/
|
961
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
962
|
+
typeId: URL;
|
963
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
964
|
+
/**
|
965
|
+
* Registers a collection of objects dispatcher.
|
966
|
+
*
|
967
|
+
* @template TContextData The context data to pass to the {@link Context}.
|
968
|
+
* @template TObject The type of objects to dispatch.
|
969
|
+
* @template TParam The parameter names of the requested URL.
|
970
|
+
* @param name A unique name for the collection dispatcher.
|
971
|
+
* @param itemType The Activity Vocabulary class of the object to dispatch.
|
972
|
+
* @param path The URI path pattern for the collection dispatcher.
|
973
|
+
* The syntax is based on URI Template
|
974
|
+
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
975
|
+
* The path must have one or more variables.
|
976
|
+
* @param dispatcher A collection dispatcher callback to register.
|
977
|
+
*/
|
978
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
979
|
+
typeId: URL;
|
980
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
981
|
+
/**
|
982
|
+
* Registers an ordered collection of objects dispatcher.
|
983
|
+
*
|
984
|
+
* @template TContextData The context data to pass to the {@link Context}.
|
985
|
+
* @template TObject The type of objects to dispatch.
|
986
|
+
* @template TParam The parameter names of the requested URL.
|
987
|
+
* @param name A unique name for the collection dispatcher.
|
988
|
+
* @param itemType The Activity Vocabulary class of the object to dispatch.
|
989
|
+
* @param path The URI path pattern for the collection dispatcher.
|
990
|
+
* The syntax is based on URI Template
|
991
|
+
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
992
|
+
* The path must have one or more variables.
|
993
|
+
* @param dispatcher A collection dispatcher callback to register.
|
994
|
+
*/
|
995
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
996
|
+
typeId: URL;
|
997
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
998
|
+
/**
|
999
|
+
* Registers an ordered collection of objects dispatcher.
|
1000
|
+
*
|
1001
|
+
* @template TContextData The context data to pass to the {@link Context}.
|
1002
|
+
* @template TObject The type of objects to dispatch.
|
1003
|
+
* @template TParam The parameter names of the requested URL.
|
1004
|
+
* @param name A unique name for the collection dispatcher.
|
1005
|
+
* @param itemType The Activity Vocabulary class of the object to dispatch.
|
1006
|
+
* @param path The URI path pattern for the collection dispatcher.
|
1007
|
+
* The syntax is based on URI Template
|
1008
|
+
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
1009
|
+
* The path must have one or more variables.
|
1010
|
+
* @param dispatcher A collection dispatcher callback to register.
|
1011
|
+
*/
|
1012
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
1013
|
+
typeId: URL;
|
1014
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
945
1015
|
/**
|
946
1016
|
* Registers an ordered collection of objects dispatcher.
|
947
1017
|
*
|
@@ -956,7 +1026,9 @@ interface Federatable<TContextData> {
|
|
956
1026
|
* The path must have one or more variables.
|
957
1027
|
* @param dispatcher A collection dispatcher callback to register.
|
958
1028
|
*/
|
959
|
-
setOrderedCollectionDispatcher<TObject extends Object$1,
|
1029
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: (new (...args: any[]) => TObject) & {
|
1030
|
+
typeId: URL;
|
1031
|
+
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
960
1032
|
}
|
961
1033
|
/**
|
962
1034
|
* An object that registers federation-related business logic and dispatches
|
@@ -1092,12 +1164,6 @@ interface FederationOptions<TContextData> {
|
|
1092
1164
|
* @since 1.4.0
|
1093
1165
|
*/
|
1094
1166
|
contextLoaderFactory?: DocumentLoaderFactory;
|
1095
|
-
/**
|
1096
|
-
* A custom JSON-LD context loader. By default, this uses the same loader
|
1097
|
-
* as the document loader.
|
1098
|
-
* @deprecated Use {@link contextLoaderFactory} instead.
|
1099
|
-
*/
|
1100
|
-
contextLoader?: DocumentLoader;
|
1101
1167
|
/**
|
1102
1168
|
* A factory function that creates an authenticated document loader for a
|
1103
1169
|
* given identity. This is used for fetching documents that require
|
@@ -1306,6 +1372,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
1306
1372
|
*/
|
1307
1373
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
1308
1374
|
}
|
1375
|
+
/**
|
1376
|
+
* The strategy for handling activity idempotency in inbox processing.
|
1377
|
+
*
|
1378
|
+
* - `"global"`: Activities are deduplicated globally across all inboxes and
|
1379
|
+
* origins. The same activity ID will be processed only once, regardless
|
1380
|
+
* of which inbox receives it or which server sent it.
|
1381
|
+
*
|
1382
|
+
* - `"per-origin"`: Activities are deduplicated per receiving server's origin.
|
1383
|
+
* The same activity ID will be processed only once on each receiving server,
|
1384
|
+
* but can be processed separately on different receiving servers. This had
|
1385
|
+
* been the default behavior in Fedify 1.x versions.
|
1386
|
+
*
|
1387
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
|
1388
|
+
* ID can be processed once per inbox, allowing the same activity to be
|
1389
|
+
* delivered to multiple inboxes independently. This follows standard
|
1390
|
+
* ActivityPub behavior and is the default strategy since Fedify 2.0.0.
|
1391
|
+
*
|
1392
|
+
* @since 1.9.0
|
1393
|
+
*/
|
1394
|
+
type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
|
1395
|
+
/**
|
1396
|
+
* A callback to generate a custom idempotency key for an activity.
|
1397
|
+
* Returns the cache key to use, or null to skip idempotency checking.
|
1398
|
+
* @template TContextData The context data to pass to the {@link InboxContext}.
|
1399
|
+
* @param ctx The inbox context.
|
1400
|
+
* @param activity The activity being processed.
|
1401
|
+
* @returns The idempotency key to use for caching, or null to skip caching.
|
1402
|
+
* @since 1.9.0
|
1403
|
+
*/
|
1404
|
+
type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
|
1309
1405
|
/**
|
1310
1406
|
* Registry for inbox listeners for different activity types.
|
1311
1407
|
*/
|
@@ -1336,6 +1432,36 @@ interface InboxListenerSetters<TContextData> {
|
|
1336
1432
|
* @since 0.11.0
|
1337
1433
|
*/
|
1338
1434
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
1435
|
+
/**
|
1436
|
+
* Configures the strategy for handling activity idempotency in inbox processing.
|
1437
|
+
*
|
1438
|
+
* @example
|
1439
|
+
* Use per-inbox strategy (standard ActivityPub behavior):
|
1440
|
+
* ```
|
1441
|
+
* federation
|
1442
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1443
|
+
* .withIdempotency("per-inbox");
|
1444
|
+
* ```
|
1445
|
+
*
|
1446
|
+
* Use custom strategy:
|
1447
|
+
* ```
|
1448
|
+
* federation
|
1449
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1450
|
+
* .withIdempotency((ctx, activity) => {
|
1451
|
+
* // Return null to skip idempotency
|
1452
|
+
* return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
|
1453
|
+
* });
|
1454
|
+
* ```
|
1455
|
+
*
|
1456
|
+
* @param strategy The idempotency strategy to use. Can be:
|
1457
|
+
* - `"global"`: Activities are deduplicated across all inboxes and origins
|
1458
|
+
* - `"per-origin"`: Activities are deduplicated per inbox origin
|
1459
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox
|
1460
|
+
* - A custom callback function that returns the cache key to use
|
1461
|
+
* @returns The setters object so that settings can be chained.
|
1462
|
+
* @since 1.9.0
|
1463
|
+
*/
|
1464
|
+
withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
|
1339
1465
|
}
|
1340
1466
|
/**
|
1341
1467
|
* Parameters of {@link Federation.fetch} method.
|
@@ -1374,38 +1500,38 @@ interface FederationFetchOptions<TContextData> {
|
|
1374
1500
|
/**
|
1375
1501
|
* Additional settings for a custom collection dispatcher.
|
1376
1502
|
*
|
1377
|
-
* @template
|
1503
|
+
* @template TParam The type of the parameters in the URL path.
|
1378
1504
|
* @template TContext The type of the context. {@link Context} or
|
1379
1505
|
* {@link RequestContext}.
|
1380
1506
|
* @template TContextData The context data to pass to the {@link Context}.
|
1381
1507
|
* @template TFilter The type of filter for the collection.
|
1382
1508
|
*/
|
1383
|
-
interface CustomCollectionCallbackSetters<
|
1509
|
+
interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
|
1384
1510
|
/**
|
1385
1511
|
* Sets the counter for the custom collection.
|
1386
1512
|
* @param counter A callback that returns the number of items in the custom collection.
|
1387
1513
|
* @returns The setters object so that settings can be chained.
|
1388
1514
|
*/
|
1389
|
-
setCounter(counter: CustomCollectionCounter<
|
1515
|
+
setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
1390
1516
|
/**
|
1391
1517
|
* Sets the first cursor for the custom collection.
|
1392
1518
|
* @param cursor The cursor for the first item in the custom collection.
|
1393
1519
|
* @returns The setters object so that settings can be chained.
|
1394
1520
|
*/
|
1395
|
-
setFirstCursor(cursor: CustomCollectionCursor<
|
1521
|
+
setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
1396
1522
|
/**
|
1397
1523
|
* Sets the last cursor for the custom collection.
|
1398
1524
|
* @param cursor The cursor for the last item in the custom collection.
|
1399
1525
|
* @returns The setters object so that settings can be chained.
|
1400
1526
|
*/
|
1401
|
-
setLastCursor(cursor: CustomCollectionCursor<
|
1527
|
+
setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
1402
1528
|
/**
|
1403
1529
|
* Specifies the conditions under which requests are authorized.
|
1404
1530
|
* @param predicate A callback that returns whether a request is authorized.
|
1405
1531
|
* @returns The setters object so that settings can be chained.
|
1406
1532
|
* @since 0.7.0
|
1407
1533
|
*/
|
1408
|
-
authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<
|
1534
|
+
authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
1409
1535
|
}
|
1410
1536
|
/**
|
1411
1537
|
* Represents an object with a type ID, which is either a constructor or an
|
@@ -1417,73 +1543,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
|
|
1417
1543
|
typeId: URL;
|
1418
1544
|
};
|
1419
1545
|
/**
|
1420
|
-
*
|
1421
|
-
*
|
1422
|
-
*
|
1423
|
-
*
|
1424
|
-
*
|
1425
|
-
*
|
1426
|
-
* type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
|
1427
|
-
* let userPostPath: UserPostPath;
|
1428
|
-
* // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
|
1429
|
-
* // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
|
1430
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // valid
|
1431
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // valid
|
1432
|
-
* ```
|
1433
|
-
*/
|
1434
|
-
type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
|
1435
|
-
/**
|
1436
|
-
* Represents a path with multiple parameters.
|
1437
|
-
* All permutations of the parameters are included in the union type.
|
1438
|
-
* The path must have all parameters in the form of `{paramName}`.
|
1439
|
-
* @param Params - A union of parameter names.
|
1440
|
-
* @returns A string representing the path with all parameters.
|
1441
|
-
* @example
|
1442
|
-
* ```ts
|
1443
|
-
* type UserPostPath = ParamsPath<"userId" | "postId">;
|
1444
|
-
* // = `${string}{userId}${string}` & `${string}{postId}${string}`
|
1445
|
-
* // =
|
1446
|
-
* // | `${string}{userId}${string}{postId}${string}`
|
1447
|
-
* // | `${string}{postId}${string}{userId}${string}`
|
1448
|
-
* let userPostPath: UserPostPath;
|
1449
|
-
* userPostPath = "/users/posts"; // ❌ invalid
|
1450
|
-
* userPostPath = "/users/{userId}"; // ❌ invalid
|
1451
|
-
* userPostPath = "/posts/{postId}"; // ❌ invalid
|
1452
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
|
1453
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
|
1454
|
-
*/
|
1455
|
-
type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
|
1456
|
-
/**
|
1457
|
-
* Represents a path with a single parameter.
|
1458
|
-
* The path must have at least one of the parameters in the form of `{paramName}`.
|
1459
|
-
* @param Param - The name of the parameter.
|
1460
|
-
* @returns A string representing the path with the parameter.
|
1461
|
-
* @example
|
1462
|
-
* ```ts
|
1463
|
-
* type UserPostPath = ParamPath<"userId" | "postId">;
|
1464
|
-
* // = `${string}{userId}${string}` | `${string}{postId}${string}`
|
1465
|
-
* let userPostPath: UserPostPath;
|
1466
|
-
* userPostPath = "/users/posts"; // ❌ invalid
|
1467
|
-
* userPostPath = "/users/{userId}"; // ✅ valid
|
1468
|
-
* userPostPath = "/posts/{postId}"; // ✅ valid
|
1469
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
|
1470
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
|
1471
|
-
*/
|
1472
|
-
type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
|
1473
|
-
/**
|
1474
|
-
* Converts union types to intersection types.
|
1546
|
+
* Defines a union of all valid RFC 6570 URI Template expressions for a given
|
1547
|
+
* parameter name.
|
1548
|
+
*
|
1549
|
+
* RFC 6570 specifies a syntax for URI templates, allowing for variable
|
1550
|
+
* expansion. This type captures all Level 1-4 operator expressions for a
|
1551
|
+
* single, named variable.
|
1475
1552
|
*
|
1476
|
-
*
|
1477
|
-
*
|
1553
|
+
* The supported expression types are:
|
1554
|
+
* - `{Param}`: Simple string expansion
|
1555
|
+
* - `+{Param}`: Reserved string expansion
|
1556
|
+
* - `#{Param}`: Fragment expansion
|
1557
|
+
* - `{.Param}`: Label expansion with a dot-prefix
|
1558
|
+
* - `{/Param}`: Path segment expansion
|
1559
|
+
* - `{;Param}`: Path-style parameter expansion
|
1560
|
+
* - `{?Param}`: Query component expansion
|
1561
|
+
* - `{&Param}`: Query continuation expansion
|
1562
|
+
*
|
1563
|
+
* @template Param The name of the parameter to be used in the expressions.
|
1478
1564
|
* @example
|
1479
1565
|
* ```ts
|
1480
|
-
* type
|
1481
|
-
*
|
1482
|
-
*
|
1483
|
-
*
|
1484
|
-
*
|
1566
|
+
* type UserIdExpression = Rfc6570Expression<"userId">;
|
1567
|
+
*
|
1568
|
+
* // The variable `userPath` can be assigned any of the valid expressions.
|
1569
|
+
* const userPath: UserIdExpression = "{/userId}";
|
1570
|
+
* ```
|
1571
|
+
* @see {@link https://tools.ietf.org/html/rfc6570} for the full specification.
|
1485
1572
|
*/
|
1486
|
-
type
|
1573
|
+
type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
|
1487
1574
|
//#endregion
|
1488
1575
|
//#region src/federation/context.d.ts
|
1489
1576
|
/**
|
@@ -2254,4 +2341,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
2254
2341
|
multikey: Multikey;
|
2255
2342
|
}
|
2256
2343
|
//#endregion
|
2257
|
-
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,
|
2344
|
+
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, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|