@fedify/fedify 1.9.6 → 1.9.8
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-CEGEmRll.js → actor-BTA45fXF.js} +1205 -2768
- package/dist/{actor-Ydzhc8dj.d.cts → actor-Be-68iJP.d.cts} +3 -3
- package/dist/{actor-C1Euqngb.d.ts → actor-C5AY0Tno.d.ts} +3 -3
- package/dist/{actor-DbpZ6pzg.js → actor-DGa1EWaV.mjs} +8 -15
- package/dist/{actor-DlS-Q8hE.cjs → actor-DxfJk4lY.cjs} +3112 -4674
- package/dist/{assert-MZs1qjMx.js → assert-DikXweDx.mjs} +5 -9
- package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Ew3jOFa3.mjs} +55 -69
- package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C4Ri6VuN.mjs} +5 -9
- package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-C50x8tnw.mjs} +5 -9
- package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals--wG9hV7u.mjs} +6 -13
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-CJC9ThS-.mjs} +6 -11
- package/dist/{assert_throws-BOO88avQ.js → assert_throws-BIL7gChy.mjs} +6 -10
- package/dist/{authdocloader-DUQcOTRS.js → authdocloader-BC2rYCy1.mjs} +9 -14
- package/dist/{authdocloader-CT_V4Z7G.cjs → authdocloader-BrhFB421.cjs} +14 -22
- package/dist/{authdocloader-BLqMyboS.js → authdocloader-CqtNsX_N.js} +8 -15
- package/dist/{builder-BO61xeXE.js → builder-CIkAhIGC.mjs} +31 -40
- package/dist/{client-DF8anIB5.d.ts → client-D8OSiPBT.d.ts} +2 -2
- package/dist/{client-UG5wpNhG.js → client-MXqit6c-.mjs} +11 -15
- package/dist/{client-DjT_tegg.d.cts → client-T0VFOdMw.d.cts} +2 -2
- package/dist/{collection-CSzG2j1P.js → collection-BD6-SZ6O.mjs} +7 -12
- package/dist/compat/mod.cjs +5 -8
- package/dist/compat/mod.d.cts +78 -12
- package/dist/compat/mod.d.ts +78 -12
- package/dist/compat/mod.js +4 -8
- package/dist/compat/transformers.test.mjs +62 -0
- package/dist/{context-CwUAkopp.d.cts → context-CACMqDzl.d.cts} +33 -26
- package/dist/{context-CXUibY4L.d.ts → context-K4cCphQj.d.ts} +33 -26
- package/dist/{denokv-Bv33Xxea.js → denokv-CoSB_Eps.mjs} +22 -11
- package/dist/{docloader-BIFI3OS7.cjs → docloader-BVuUhBLI.cjs} +112 -212
- package/dist/{docloader-fJgJeqiX.js → docloader-BoXhusJ1.js} +17 -151
- package/dist/{docloader-CxWcuWqQ.d.ts → docloader-DSaLRXEA.d.ts} +2 -7
- package/dist/{docloader-D-MrRyHl.d.cts → docloader-DpGRDZrn.d.cts} +2 -7
- package/dist/{esm-C1EfGjSS.js → esm-BHJ7sdNg.mjs} +49 -85
- package/dist/federation/{builder.test.js → builder.test.mjs} +22 -41
- package/dist/federation/collection.test.d.mts +2 -0
- package/dist/federation/collection.test.mjs +21 -0
- package/dist/federation/handler.test.d.mts +2 -0
- package/dist/federation/{handler.test.js → handler.test.mjs} +22 -49
- package/dist/federation/idempotency.test.d.mts +2 -0
- package/dist/federation/{idempotency.test.js → idempotency.test.mjs} +29 -59
- package/dist/federation/inbox.test.d.mts +2 -0
- package/dist/federation/{inbox.test.js → inbox.test.mjs} +10 -15
- package/dist/federation/keycache.test.d.mts +2 -0
- package/dist/federation/{keycache.test.js → keycache.test.mjs} +13 -18
- package/dist/federation/kv.test.d.mts +2 -0
- package/dist/federation/{kv.test.js → kv.test.mjs} +9 -20
- package/dist/federation/middleware.test.d.mts +2 -0
- package/dist/federation/{middleware.test.js → middleware.test.mjs} +182 -197
- package/dist/federation/mod.cjs +223 -21
- package/dist/federation/mod.d.cts +4 -13
- package/dist/federation/mod.d.ts +4 -13
- package/dist/federation/mod.js +218 -18
- package/dist/federation/mq.test.d.mts +2 -0
- package/dist/federation/{mq.test.js → mq.test.mjs} +23 -38
- package/dist/federation/retry.test.d.mts +2 -0
- package/dist/federation/{retry.test.js → retry.test.mjs} +9 -14
- package/dist/federation/router.test.d.mts +2 -0
- package/dist/federation/{router.test.js → router.test.mjs} +12 -19
- package/dist/federation/send.test.d.mts +2 -0
- package/dist/federation/{send.test.js → send.test.mjs} +17 -26
- package/dist/{http-wsGR6KkT.d.ts → http-BZpls--H.d.ts} +5 -9
- package/dist/{http-CR-Eg1Uq.js → http-Bu5ZNlhZ.mjs} +16 -32
- package/dist/{http-B1_DzfAU.d.cts → http-C7WoprmE.d.cts} +5 -9
- package/dist/{http-BgopPF-8.cjs → http-DKw-O_VY.cjs} +51 -68
- package/dist/{http-05HxN-lp.js → http-VJbz6sKD.js} +17 -33
- package/dist/{inbox-DcJN1cxM.js → inbox-DkbTULXE.mjs} +17 -25
- package/dist/key-4fu6v0Jf.mjs +5 -0
- package/dist/{key-DjS1X9TG.cjs → key-B-wFdaPB.cjs} +42 -50
- package/dist/{key-ibMO03_0.js → key-BNMK_IVr.mjs} +12 -18
- package/dist/key-CancShOo.cjs +4 -0
- package/dist/{key-CPJcJjp-.js → key-DK3o0FEH.js} +19 -19
- package/dist/{keycache-CMUfqYqr.js → keycache-D-Vj8z88.mjs} +6 -10
- package/dist/{keys-IZ5050fT.js → keys-B27nVeIs.mjs} +6 -10
- package/dist/{kv-C7sopW2E.d.ts → kv-Bq9QLKm5.d.ts} +1 -1
- package/dist/{kv-CRZrzyXm.js → kv-DM1zFCtL.mjs} +6 -10
- package/dist/{kv-63Cil1MD.d.cts → kv-GIrOktyG.d.cts} +1 -1
- package/dist/{ld-DHNA2RSQ.js → ld-6jAVu3jV.mjs} +17 -31
- package/dist/{lookup-CKZfuyxA.js → lookup-BaU75j-d.js} +5 -11
- package/dist/{lookup-C4_dVYz7.cjs → lookup-BiIPmTwB.cjs} +16 -23
- package/dist/{lookup-BMAWLsP2.js → lookup-DmeJ8WUw.mjs} +8 -17
- package/dist/middleware-9ByEpBvV.cjs +4 -0
- package/dist/{middleware-CGbvIGvy.cjs → middleware-C188G4Go.cjs} +494 -547
- package/dist/{middleware-DrhEvfTo.js → middleware-Db1yZQaT.mjs} +276 -321
- package/dist/{middleware-ODfDRN3q.js → middleware-Do06X21v.js} +349 -393
- package/dist/middleware-DrfZEjyc.mjs +5 -0
- package/dist/{mod-CDObsV1d.d.ts → mod-BSwc3_rD.d.ts} +3 -3
- package/dist/{mod-DBzN0aCM.d.ts → mod-BTNpXcPj.d.ts} +2 -2
- package/dist/{mod-fjqfsrty.d.cts → mod-Chb_NKPp.d.cts} +4 -4
- package/dist/{mod-DgcYoyZK.d.ts → mod-DHoc3toL.d.ts} +4 -4
- package/dist/{mod-jQ4OODsl.d.cts → mod-DIMx6YjJ.d.cts} +2 -2
- package/dist/{mod-BUbqxBev.d.cts → mod-HElaq2UB.d.cts} +3 -3
- package/dist/mod.cjs +31 -33
- package/dist/mod.d.cts +15 -17
- package/dist/mod.d.ts +15 -17
- package/dist/mod.js +20 -23
- package/dist/{mq-B7R1Q-M5.d.cts → mq-CrItclRD.d.cts} +1 -1
- package/dist/{mq-CRGm1e_F.d.ts → mq-D_ZZRdby.d.ts} +1 -1
- package/dist/nodeinfo/client.test.d.mts +2 -0
- package/dist/nodeinfo/{client.test.js → client.test.mjs} +23 -45
- package/dist/nodeinfo/handler.test.d.mts +2 -0
- package/dist/nodeinfo/{handler.test.js → handler.test.mjs} +14 -43
- package/dist/nodeinfo/mod.cjs +5 -9
- package/dist/nodeinfo/mod.d.cts +2 -5
- package/dist/nodeinfo/mod.d.ts +2 -5
- package/dist/nodeinfo/mod.js +4 -9
- package/dist/nodeinfo/semver.test.d.mts +2 -0
- package/dist/nodeinfo/{semver.test.js → semver.test.mjs} +28 -51
- package/dist/nodeinfo/types.test.d.mts +2 -0
- package/dist/nodeinfo/{types.test.js → types.test.mjs} +10 -21
- package/dist/{owner-DDHsHYQO.js → owner-CKuGt_T9.mjs} +10 -13
- package/dist/{owner-BbeUDvOu.d.ts → owner-DPAPnB0R.d.ts} +4 -4
- package/dist/{owner-6KSEp9eV.d.cts → owner-_rFs0ik_.d.cts} +4 -4
- package/dist/{proof-V1uQaB2y.js → proof-CmTtG_t-.js} +33 -57
- package/dist/{proof-CX7ujFFX.cjs → proof-DLOy7HYU.cjs} +112 -135
- package/dist/{proof-exgGRW88.js → proof-mJLL2gSA.mjs} +20 -32
- package/dist/{retry-D4GJ670a.js → retry-Ddbq3AcK.mjs} +4 -7
- package/dist/rolldown-runtime-C7fyD9f2.js +15 -0
- package/dist/runtime/authdocloader.test.d.mts +2 -0
- package/dist/runtime/{authdocloader.test.js → authdocloader.test.mjs} +16 -28
- package/dist/runtime/docloader.test.d.mts +2 -0
- package/dist/runtime/{docloader.test.js → docloader.test.mjs} +52 -72
- package/dist/runtime/key.test.d.mts +2 -0
- package/dist/runtime/{key.test.js → key.test.mjs} +27 -57
- package/dist/runtime/langstr.test.d.mts +2 -0
- package/dist/runtime/{langstr.test.js → langstr.test.mjs} +9 -19
- package/dist/runtime/link.test.d.mts +2 -0
- package/dist/runtime/{link.test.js → link.test.mjs} +7 -11
- package/dist/runtime/mod.cjs +7 -13
- package/dist/runtime/mod.d.cts +103 -6
- package/dist/runtime/mod.d.ts +103 -6
- package/dist/runtime/mod.js +6 -13
- package/dist/runtime/multibase/multibase.test.d.mts +2 -0
- package/dist/runtime/multibase/{multibase.test.js → multibase.test.mjs} +16 -33
- package/dist/runtime/url.test.d.mts +2 -0
- package/dist/runtime/{url.test.js → url.test.mjs} +10 -15
- package/dist/{semver-dArNLkR9.js → semver-CgD82xxg.mjs} +13 -28
- package/dist/{send-BfMYakUE.js → send-BsQbGuw4.mjs} +7 -12
- package/dist/sig/http.test.d.mts +2 -0
- package/dist/sig/{http.test.js → http.test.mjs} +119 -203
- package/dist/sig/key.test.d.mts +2 -0
- package/dist/sig/{key.test.js → key.test.mjs} +13 -22
- package/dist/sig/ld.test.d.mts +2 -0
- package/dist/sig/{ld.test.js → ld.test.mjs} +24 -39
- package/dist/sig/mod.cjs +7 -13
- package/dist/sig/mod.d.cts +3 -7
- package/dist/sig/mod.d.ts +3 -7
- package/dist/sig/mod.js +6 -13
- package/dist/sig/owner.test.d.mts +2 -0
- package/dist/sig/owner.test.mjs +39 -0
- package/dist/sig/proof.test.d.mts +2 -0
- package/dist/sig/{proof.test.js → proof.test.mjs} +18 -31
- package/dist/{std__assert-X-_kMxKM.js → std__assert-2v7gYiZp.mjs} +13 -24
- package/dist/testing/docloader.test.d.mts +2 -0
- package/dist/testing/docloader.test.mjs +12 -0
- package/dist/testing/{mod.d.ts → mod.d.mts} +371 -541
- package/dist/testing/mod.mjs +5 -0
- package/dist/{testing-RPOc_gVG.js → testing-DS3gcq8V.mjs} +27 -35
- package/dist/{transformers-CoBS-oFG.cjs → transformers-BM0M8hnW.cjs} +20 -25
- package/dist/{transformers-BFT6d7J5.js → transformers-BV4OeK9o.js} +3 -7
- package/dist/{types-Cptev2nt.js → types-BXfL-dsX.js} +18 -36
- package/dist/{types-BIgY6c-l.js → types-CAnkAQGM.mjs} +5 -9
- package/dist/{types-CGnM1vft.cjs → types-DpM4FhjW.cjs} +45 -64
- package/dist/vocab/actor.test.d.mts +2 -0
- package/dist/vocab/{actor.test.js → actor.test.mjs} +308 -550
- package/dist/vocab/cjs.test.d.mts +2 -0
- package/dist/vocab/cjs.test.mjs +14 -0
- package/dist/vocab/lookup.test.d.mts +2 -0
- package/dist/vocab/{lookup.test.js → lookup.test.mjs} +29 -45
- package/dist/vocab/mod.cjs +251 -16
- package/dist/vocab/mod.d.cts +3 -5
- package/dist/vocab/mod.d.ts +3 -5
- package/dist/vocab/mod.js +244 -10
- package/dist/vocab/type.test.d.mts +2 -0
- package/dist/vocab/type.test.mjs +16 -0
- package/dist/vocab/vocab.test.d.mts +2 -0
- package/dist/vocab/{vocab.test.js → vocab.test.mjs} +178 -311
- package/dist/{vocab-CDHNj5zp.d.ts → vocab-BLvSEtuz.d.cts} +2 -4
- package/dist/{type-COPv6pMi.js → vocab-DuW9rL1h.mjs} +1177 -2871
- package/dist/{vocab-Cfs0937i.d.cts → vocab-lhCS9lzq.d.ts} +4 -2
- package/dist/webfinger/handler.test.d.mts +2 -0
- package/dist/webfinger/{handler.test.js → handler.test.mjs} +23 -56
- package/dist/webfinger/lookup.test.d.mts +2 -0
- package/dist/webfinger/{lookup.test.js → lookup.test.mjs} +13 -27
- package/dist/webfinger/mod.cjs +5 -9
- package/dist/webfinger/mod.d.cts +1 -3
- package/dist/webfinger/mod.d.ts +1 -3
- package/dist/webfinger/mod.js +4 -9
- package/dist/x/cfworkers.cjs +25 -14
- package/dist/x/cfworkers.d.cts +33 -6
- package/dist/x/cfworkers.d.ts +33 -6
- package/dist/x/cfworkers.js +22 -12
- package/dist/x/cfworkers.test.d.mts +2 -0
- package/dist/x/{cfworkers.test.js → cfworkers.test.mjs} +28 -26
- package/dist/x/hono.cjs +25 -14
- package/dist/x/hono.d.cts +1 -11
- package/dist/x/hono.d.ts +1 -11
- package/dist/x/hono.js +22 -12
- package/dist/x/sveltekit.cjs +23 -12
- package/dist/x/sveltekit.d.cts +1 -11
- package/dist/x/sveltekit.d.ts +1 -11
- package/dist/x/sveltekit.js +20 -10
- package/package.json +2 -2
- package/dist/chunk-DqRYRqnO.cjs +0 -34
- package/dist/compat/transformers.test.d.ts +0 -3
- package/dist/compat/transformers.test.js +0 -86
- package/dist/compat-DmDDELst.cjs +0 -4
- package/dist/compat-nxUqe4Z-.js +0 -4
- package/dist/federation/builder.test.d.ts +0 -3
- package/dist/federation/collection.test.d.ts +0 -3
- package/dist/federation/collection.test.js +0 -35
- package/dist/federation/handler.test.d.ts +0 -3
- package/dist/federation/idempotency.test.d.ts +0 -3
- package/dist/federation/inbox.test.d.ts +0 -3
- package/dist/federation/keycache.test.d.ts +0 -3
- package/dist/federation/kv.test.d.ts +0 -3
- package/dist/federation/middleware.test.d.ts +0 -3
- package/dist/federation/mq.test.d.ts +0 -3
- package/dist/federation/retry.test.d.ts +0 -3
- package/dist/federation/router.test.d.ts +0 -3
- package/dist/federation/send.test.d.ts +0 -3
- package/dist/federation-D1U8YY9t.js +0 -226
- package/dist/federation-H2_En3j5.cjs +0 -244
- package/dist/key-BCUd8FWp.js +0 -10
- package/dist/key-BUardnTH.cjs +0 -10
- package/dist/key-Dr6H_e3K.js +0 -10
- package/dist/middleware-BJ83veqi.js +0 -26
- package/dist/middleware-CJ4W2ir5.cjs +0 -17
- package/dist/middleware-Ve2mHJgo.js +0 -17
- package/dist/mod-BcObK1Lz.d.ts +0 -82
- package/dist/mod-C2tOeRkN.d.cts +0 -1
- package/dist/mod-CIbqfZW0.d.ts +0 -104
- package/dist/mod-Dt-G9ZOS.d.cts +0 -102
- package/dist/mod-FZd39qVq.d.cts +0 -1
- package/dist/mod-mXx9V0q5.d.cts +0 -80
- package/dist/nodeinfo/client.test.d.ts +0 -3
- package/dist/nodeinfo/handler.test.d.ts +0 -3
- package/dist/nodeinfo/semver.test.d.ts +0 -3
- package/dist/nodeinfo/types.test.d.ts +0 -3
- package/dist/nodeinfo-Co9lJrWl.cjs +0 -4
- package/dist/nodeinfo-DfycQ8Wf.js +0 -4
- package/dist/runtime/authdocloader.test.d.ts +0 -3
- package/dist/runtime/docloader.test.d.ts +0 -3
- package/dist/runtime/key.test.d.ts +0 -3
- package/dist/runtime/langstr.test.d.ts +0 -3
- package/dist/runtime/link.test.d.ts +0 -3
- package/dist/runtime/multibase/multibase.test.d.ts +0 -3
- package/dist/runtime/url.test.d.ts +0 -3
- package/dist/runtime-C58AJWSv.cjs +0 -4
- package/dist/runtime-DPYEDf-o.js +0 -4
- package/dist/sig/http.test.d.ts +0 -3
- package/dist/sig/key.test.d.ts +0 -3
- package/dist/sig/ld.test.d.ts +0 -3
- package/dist/sig/owner.test.d.ts +0 -3
- package/dist/sig/owner.test.js +0 -52
- package/dist/sig/proof.test.d.ts +0 -3
- package/dist/sig-ByHXzqUi.cjs +0 -4
- package/dist/sig-Cj3tk-ig.js +0 -4
- package/dist/testing/docloader.test.d.ts +0 -3
- package/dist/testing/docloader.test.js +0 -24
- package/dist/testing/mod.js +0 -10
- package/dist/vocab/actor.test.d.ts +0 -3
- package/dist/vocab/lookup.test.d.ts +0 -3
- package/dist/vocab/type.test.d.ts +0 -3
- package/dist/vocab/type.test.js +0 -25
- package/dist/vocab/vocab.test.d.ts +0 -3
- package/dist/vocab-BFy1CS5L.cjs +0 -289
- package/dist/vocab-BPFiQ650.js +0 -253
- package/dist/webfinger/handler.test.d.ts +0 -3
- package/dist/webfinger/lookup.test.d.ts +0 -3
- package/dist/webfinger-BjOEdFPs.cjs +0 -4
- package/dist/webfinger-De_bU0iE.js +0 -4
- package/dist/x/cfworkers.test.d.ts +0 -3
- /package/dist/{mod-1pDWKvUL.d.ts → compat/transformers.test.d.mts} +0 -0
- /package/dist/{mod-g0xFzAP9.d.ts → federation/builder.test.d.mts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
|
7
|
-
import { GetKeyOwnerOptions } from "./owner-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { MessageQueue } from "./mq-
|
|
1
|
+
import { n as KvStore, t as KvKey } from "./kv-GIrOktyG.cjs";
|
|
2
|
+
import { n as DocumentLoader, r as DocumentLoaderFactory, s as GetUserAgentOptions, t as AuthenticatedDocumentLoaderFactory } from "./docloader-DpGRDZrn.cjs";
|
|
3
|
+
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-T0VFOdMw.cjs";
|
|
4
|
+
import { B as Multikey, H as Object$1, I as Link, O as Hashtag, d as Collection, m as CryptographicKey, n as Activity } from "./vocab-BLvSEtuz.cjs";
|
|
5
|
+
import { a as Recipient, t as Actor } from "./actor-Be-68iJP.cjs";
|
|
6
|
+
import { t as HttpMessageSignaturesSpec } from "./http-C7WoprmE.cjs";
|
|
7
|
+
import { n as GetKeyOwnerOptions } from "./owner-_rFs0ik_.cjs";
|
|
8
|
+
import { c as TraverseCollectionOptions, s as LookupObjectOptions } from "./mod-HElaq2UB.cjs";
|
|
9
|
+
import { i as ResourceDescriptor, r as Link$1, t as LookupWebFingerOptions } from "./mod-DIMx6YjJ.cjs";
|
|
10
|
+
import { r as MessageQueue } from "./mq-CrItclRD.cjs";
|
|
11
11
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
12
12
|
|
|
13
13
|
//#region src/compat/types.d.ts
|
|
@@ -60,9 +60,6 @@ interface SenderKeyPair {
|
|
|
60
60
|
*/
|
|
61
61
|
keyId: URL;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Parameters for {@link sendActivity}.
|
|
65
|
-
*/
|
|
66
63
|
//#endregion
|
|
67
64
|
//#region src/federation/callback.d.ts
|
|
68
65
|
/**
|
|
@@ -307,7 +304,6 @@ type CustomCollectionCounter<TParam extends string, TContextData> = (context: Re
|
|
|
307
304
|
type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
|
|
308
305
|
//#endregion
|
|
309
306
|
//#region src/federation/handler.d.ts
|
|
310
|
-
|
|
311
307
|
/**
|
|
312
308
|
* Options for the {@link respondWithObject} and
|
|
313
309
|
* {@link respondWithObjectIfAcceptable} functions.
|
|
@@ -2101,7 +2097,8 @@ type ParseUriResult =
|
|
|
2101
2097
|
}
|
|
2102
2098
|
/**
|
|
2103
2099
|
* The case of an object URI.
|
|
2104
|
-
*/
|
|
2100
|
+
*/
|
|
2101
|
+
| {
|
|
2105
2102
|
readonly type: "object";
|
|
2106
2103
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
2107
2104
|
readonly typeId: URL;
|
|
@@ -2109,35 +2106,40 @@ type ParseUriResult =
|
|
|
2109
2106
|
}
|
|
2110
2107
|
/**
|
|
2111
2108
|
* The case of an shared inbox URI.
|
|
2112
|
-
*/
|
|
2109
|
+
*/
|
|
2110
|
+
| {
|
|
2113
2111
|
readonly type: "inbox";
|
|
2114
2112
|
readonly identifier: undefined;
|
|
2115
2113
|
readonly handle: undefined;
|
|
2116
2114
|
}
|
|
2117
2115
|
/**
|
|
2118
2116
|
* The case of an personal inbox URI.
|
|
2119
|
-
*/
|
|
2117
|
+
*/
|
|
2118
|
+
| {
|
|
2120
2119
|
readonly type: "inbox";
|
|
2121
2120
|
readonly identifier: string;
|
|
2122
2121
|
readonly handle: string;
|
|
2123
2122
|
}
|
|
2124
2123
|
/**
|
|
2125
2124
|
* The case of an outbox collection URI.
|
|
2126
|
-
*/
|
|
2125
|
+
*/
|
|
2126
|
+
| {
|
|
2127
2127
|
readonly type: "outbox";
|
|
2128
2128
|
readonly identifier: string;
|
|
2129
2129
|
readonly handle: string;
|
|
2130
2130
|
}
|
|
2131
2131
|
/**
|
|
2132
2132
|
* The case of a following collection URI.
|
|
2133
|
-
*/
|
|
2133
|
+
*/
|
|
2134
|
+
| {
|
|
2134
2135
|
readonly type: "following";
|
|
2135
2136
|
readonly identifier: string;
|
|
2136
2137
|
readonly handle: string;
|
|
2137
2138
|
}
|
|
2138
2139
|
/**
|
|
2139
2140
|
* The case of a followers collection URI.
|
|
2140
|
-
*/
|
|
2141
|
+
*/
|
|
2142
|
+
| {
|
|
2141
2143
|
readonly type: "followers";
|
|
2142
2144
|
readonly identifier: string;
|
|
2143
2145
|
readonly handle: string;
|
|
@@ -2145,7 +2147,8 @@ type ParseUriResult =
|
|
|
2145
2147
|
/**
|
|
2146
2148
|
* The case of a liked collection URI.
|
|
2147
2149
|
* @since 0.11.0
|
|
2148
|
-
*/
|
|
2150
|
+
*/
|
|
2151
|
+
| {
|
|
2149
2152
|
readonly type: "liked";
|
|
2150
2153
|
readonly identifier: string;
|
|
2151
2154
|
readonly handle: string;
|
|
@@ -2153,7 +2156,8 @@ type ParseUriResult =
|
|
|
2153
2156
|
/**
|
|
2154
2157
|
* The case of a featured collection URI.
|
|
2155
2158
|
* @since 0.11.0
|
|
2156
|
-
*/
|
|
2159
|
+
*/
|
|
2160
|
+
| {
|
|
2157
2161
|
readonly type: "featured";
|
|
2158
2162
|
readonly identifier: string;
|
|
2159
2163
|
readonly handle: string;
|
|
@@ -2161,7 +2165,8 @@ type ParseUriResult =
|
|
|
2161
2165
|
/**
|
|
2162
2166
|
* The case of a featured tags collection URI.
|
|
2163
2167
|
* @since 0.11.0
|
|
2164
|
-
*/
|
|
2168
|
+
*/
|
|
2169
|
+
| {
|
|
2165
2170
|
readonly type: "featuredTags";
|
|
2166
2171
|
readonly identifier: string;
|
|
2167
2172
|
readonly handle: string;
|
|
@@ -2169,7 +2174,8 @@ type ParseUriResult =
|
|
|
2169
2174
|
/**
|
|
2170
2175
|
* The case of a custom collection URI.
|
|
2171
2176
|
* @since 1.8.0
|
|
2172
|
-
*/
|
|
2177
|
+
*/
|
|
2178
|
+
| {
|
|
2173
2179
|
readonly type: "collection";
|
|
2174
2180
|
readonly name: string | symbol;
|
|
2175
2181
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
@@ -2179,7 +2185,8 @@ type ParseUriResult =
|
|
|
2179
2185
|
/**
|
|
2180
2186
|
* The case of a custom ordered collection URI.
|
|
2181
2187
|
* @since 1.8.0
|
|
2182
|
-
*/
|
|
2188
|
+
*/
|
|
2189
|
+
| {
|
|
2183
2190
|
readonly type: "orderedCollection";
|
|
2184
2191
|
readonly name: string | symbol;
|
|
2185
2192
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
@@ -2321,4 +2328,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
|
2321
2328
|
multikey: Multikey;
|
|
2322
2329
|
}
|
|
2323
2330
|
//#endregion
|
|
2324
|
-
export {
|
|
2331
|
+
export { CustomCollectionCursor as $, createFederation as A, RouterRouteResult as B, InboxListenerSetters as C, FederationKvPrefixes as D, CreateFederationOptions as E, Message as F, ActorDispatcher as G, respondWithObject as H, createFederationBuilder as I, AuthorizePredicate as J, ActorHandleMapper as K, Router as L, RetryContext as M, RetryPolicy as N, FederationOrigin as O, createExponentialBackoffPolicy as P, CustomCollectionCounter as Q, RouterError as R, IdempotencyStrategy as S, Rfc6570Expression as T, respondWithObjectIfAcceptable as U, RespondWithObjectOptions as V, ActorAliasMapper as W, CollectionCursor as X, CollectionCounter as Y, CollectionDispatcher as Z, FederationBuilder as _, InboxContext as a, ObjectDispatcher as at, FederationStartQueueOptions as b, RouteActivityOptions as c, WebFingerLinksDispatcher as ct, ActorCallbackSetters as d, buildCollectionSynchronizationHeader as dt, CustomCollectionDispatcher as et, CollectionCallbackSetters as f, digest as ft, Federation as g, Federatable as h, GetSignedKeyOptions as i, ObjectAuthorizePredicate as it, CreateExponentialBackoffPolicyOptions as j, FederationQueueOptions as k, SendActivityOptions as l, SenderKeyPair as lt, CustomCollectionCallbackSetters as m, Context as n, InboxListener as nt, ParseUriResult as o, OutboxErrorHandler as ot, ConstructorWithTypeId as p, ActivityTransformer as pt, ActorKeyPairsDispatcher as q, ForwardActivityOptions as r, NodeInfoDispatcher as rt, RequestContext as s, SharedInboxKeyDispatcher as st, ActorKeyPair as t, InboxErrorHandler as tt, SendActivityOptionsForCollection as u, PageItems as ut, FederationFetchOptions as v, ObjectCallbackSetters as w, IdempotencyKeyCallback as x, FederationOptions as y, RouterOptions as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
|
9
|
-
import { GetKeyOwnerOptions } from "./owner-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { MessageQueue } from "./mq-
|
|
3
|
+
import { n as KvStore, t as KvKey } from "./kv-Bq9QLKm5.js";
|
|
4
|
+
import { n as DocumentLoader, r as DocumentLoaderFactory, s as GetUserAgentOptions, t as AuthenticatedDocumentLoaderFactory } from "./docloader-DSaLRXEA.js";
|
|
5
|
+
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-D8OSiPBT.js";
|
|
6
|
+
import { B as Multikey, H as Object$1, I as Link, O as Hashtag, d as Collection, m as CryptographicKey, n as Activity } from "./vocab-lhCS9lzq.js";
|
|
7
|
+
import { a as Recipient, t as Actor } from "./actor-C5AY0Tno.js";
|
|
8
|
+
import { t as HttpMessageSignaturesSpec } from "./http-BZpls--H.js";
|
|
9
|
+
import { n as GetKeyOwnerOptions } from "./owner-DPAPnB0R.js";
|
|
10
|
+
import { c as TraverseCollectionOptions, s as LookupObjectOptions } from "./mod-BSwc3_rD.js";
|
|
11
|
+
import { i as ResourceDescriptor, r as Link$1, t as LookupWebFingerOptions } from "./mod-BTNpXcPj.js";
|
|
12
|
+
import { r as MessageQueue } from "./mq-D_ZZRdby.js";
|
|
13
13
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
14
14
|
|
|
15
15
|
//#region src/compat/types.d.ts
|
|
@@ -62,9 +62,6 @@ interface SenderKeyPair {
|
|
|
62
62
|
*/
|
|
63
63
|
keyId: URL;
|
|
64
64
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Parameters for {@link sendActivity}.
|
|
67
|
-
*/
|
|
68
65
|
//#endregion
|
|
69
66
|
//#region src/federation/callback.d.ts
|
|
70
67
|
/**
|
|
@@ -309,7 +306,6 @@ type CustomCollectionCounter<TParam extends string, TContextData> = (context: Re
|
|
|
309
306
|
type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
|
|
310
307
|
//#endregion
|
|
311
308
|
//#region src/federation/handler.d.ts
|
|
312
|
-
|
|
313
309
|
/**
|
|
314
310
|
* Options for the {@link respondWithObject} and
|
|
315
311
|
* {@link respondWithObjectIfAcceptable} functions.
|
|
@@ -2103,7 +2099,8 @@ type ParseUriResult =
|
|
|
2103
2099
|
}
|
|
2104
2100
|
/**
|
|
2105
2101
|
* The case of an object URI.
|
|
2106
|
-
*/
|
|
2102
|
+
*/
|
|
2103
|
+
| {
|
|
2107
2104
|
readonly type: "object";
|
|
2108
2105
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
2109
2106
|
readonly typeId: URL;
|
|
@@ -2111,35 +2108,40 @@ type ParseUriResult =
|
|
|
2111
2108
|
}
|
|
2112
2109
|
/**
|
|
2113
2110
|
* The case of an shared inbox URI.
|
|
2114
|
-
*/
|
|
2111
|
+
*/
|
|
2112
|
+
| {
|
|
2115
2113
|
readonly type: "inbox";
|
|
2116
2114
|
readonly identifier: undefined;
|
|
2117
2115
|
readonly handle: undefined;
|
|
2118
2116
|
}
|
|
2119
2117
|
/**
|
|
2120
2118
|
* The case of an personal inbox URI.
|
|
2121
|
-
*/
|
|
2119
|
+
*/
|
|
2120
|
+
| {
|
|
2122
2121
|
readonly type: "inbox";
|
|
2123
2122
|
readonly identifier: string;
|
|
2124
2123
|
readonly handle: string;
|
|
2125
2124
|
}
|
|
2126
2125
|
/**
|
|
2127
2126
|
* The case of an outbox collection URI.
|
|
2128
|
-
*/
|
|
2127
|
+
*/
|
|
2128
|
+
| {
|
|
2129
2129
|
readonly type: "outbox";
|
|
2130
2130
|
readonly identifier: string;
|
|
2131
2131
|
readonly handle: string;
|
|
2132
2132
|
}
|
|
2133
2133
|
/**
|
|
2134
2134
|
* The case of a following collection URI.
|
|
2135
|
-
*/
|
|
2135
|
+
*/
|
|
2136
|
+
| {
|
|
2136
2137
|
readonly type: "following";
|
|
2137
2138
|
readonly identifier: string;
|
|
2138
2139
|
readonly handle: string;
|
|
2139
2140
|
}
|
|
2140
2141
|
/**
|
|
2141
2142
|
* The case of a followers collection URI.
|
|
2142
|
-
*/
|
|
2143
|
+
*/
|
|
2144
|
+
| {
|
|
2143
2145
|
readonly type: "followers";
|
|
2144
2146
|
readonly identifier: string;
|
|
2145
2147
|
readonly handle: string;
|
|
@@ -2147,7 +2149,8 @@ type ParseUriResult =
|
|
|
2147
2149
|
/**
|
|
2148
2150
|
* The case of a liked collection URI.
|
|
2149
2151
|
* @since 0.11.0
|
|
2150
|
-
*/
|
|
2152
|
+
*/
|
|
2153
|
+
| {
|
|
2151
2154
|
readonly type: "liked";
|
|
2152
2155
|
readonly identifier: string;
|
|
2153
2156
|
readonly handle: string;
|
|
@@ -2155,7 +2158,8 @@ type ParseUriResult =
|
|
|
2155
2158
|
/**
|
|
2156
2159
|
* The case of a featured collection URI.
|
|
2157
2160
|
* @since 0.11.0
|
|
2158
|
-
*/
|
|
2161
|
+
*/
|
|
2162
|
+
| {
|
|
2159
2163
|
readonly type: "featured";
|
|
2160
2164
|
readonly identifier: string;
|
|
2161
2165
|
readonly handle: string;
|
|
@@ -2163,7 +2167,8 @@ type ParseUriResult =
|
|
|
2163
2167
|
/**
|
|
2164
2168
|
* The case of a featured tags collection URI.
|
|
2165
2169
|
* @since 0.11.0
|
|
2166
|
-
*/
|
|
2170
|
+
*/
|
|
2171
|
+
| {
|
|
2167
2172
|
readonly type: "featuredTags";
|
|
2168
2173
|
readonly identifier: string;
|
|
2169
2174
|
readonly handle: string;
|
|
@@ -2171,7 +2176,8 @@ type ParseUriResult =
|
|
|
2171
2176
|
/**
|
|
2172
2177
|
* The case of a custom collection URI.
|
|
2173
2178
|
* @since 1.8.0
|
|
2174
|
-
*/
|
|
2179
|
+
*/
|
|
2180
|
+
| {
|
|
2175
2181
|
readonly type: "collection";
|
|
2176
2182
|
readonly name: string | symbol;
|
|
2177
2183
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
@@ -2181,7 +2187,8 @@ type ParseUriResult =
|
|
|
2181
2187
|
/**
|
|
2182
2188
|
* The case of a custom ordered collection URI.
|
|
2183
2189
|
* @since 1.8.0
|
|
2184
|
-
*/
|
|
2190
|
+
*/
|
|
2191
|
+
| {
|
|
2185
2192
|
readonly type: "orderedCollection";
|
|
2186
2193
|
readonly name: string | symbol;
|
|
2187
2194
|
readonly class: ConstructorWithTypeId<Object$1>;
|
|
@@ -2323,4 +2330,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
|
2323
2330
|
multikey: Multikey;
|
|
2324
2331
|
}
|
|
2325
2332
|
//#endregion
|
|
2326
|
-
export {
|
|
2333
|
+
export { CustomCollectionCursor as $, createFederation as A, RouterRouteResult as B, InboxListenerSetters as C, FederationKvPrefixes as D, CreateFederationOptions as E, Message as F, ActorDispatcher as G, respondWithObject as H, createFederationBuilder as I, AuthorizePredicate as J, ActorHandleMapper as K, Router as L, RetryContext as M, RetryPolicy as N, FederationOrigin as O, createExponentialBackoffPolicy as P, CustomCollectionCounter as Q, RouterError as R, IdempotencyStrategy as S, Rfc6570Expression as T, respondWithObjectIfAcceptable as U, RespondWithObjectOptions as V, ActorAliasMapper as W, CollectionCursor as X, CollectionCounter as Y, CollectionDispatcher as Z, FederationBuilder as _, InboxContext as a, ObjectDispatcher as at, FederationStartQueueOptions as b, RouteActivityOptions as c, WebFingerLinksDispatcher as ct, ActorCallbackSetters as d, buildCollectionSynchronizationHeader as dt, CustomCollectionDispatcher as et, CollectionCallbackSetters as f, digest as ft, Federation as g, Federatable as h, GetSignedKeyOptions as i, ObjectAuthorizePredicate as it, CreateExponentialBackoffPolicyOptions as j, FederationQueueOptions as k, SendActivityOptions as l, SenderKeyPair as lt, CustomCollectionCallbackSetters as m, Context as n, InboxListener as nt, ParseUriResult as o, OutboxErrorHandler as ot, ConstructorWithTypeId as p, ActivityTransformer as pt, ActorKeyPairsDispatcher as q, ForwardActivityOptions as r, NodeInfoDispatcher as rt, RequestContext as s, SharedInboxKeyDispatcher as st, ActorKeyPair as t, InboxErrorHandler as tt, SendActivityOptionsForCollection as u, PageItems as ut, FederationFetchOptions as v, ObjectCallbackSetters as w, IdempotencyKeyCallback as x, FederationOptions as y, RouterOptions as z };
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
6
|
-
import { isEqual } from "es-toolkit";
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
7
4
|
import { getLogger } from "@logtape/logtape";
|
|
8
|
-
|
|
5
|
+
import "es-toolkit";
|
|
9
6
|
//#region src/x/denokv.ts
|
|
10
7
|
/**
|
|
8
|
+
* `KvStore` & `MessageQueue` adapters for Deno's KV store
|
|
9
|
+
* =======================================================
|
|
10
|
+
*
|
|
11
|
+
* This module provides `KvStore` and `MessageQueue` implementations that use
|
|
12
|
+
* Deno's KV store. The `DenoKvStore` class implements the `KvStore` interface
|
|
13
|
+
* using Deno's KV store, and the `DenoKvMessageQueue` class implements the
|
|
14
|
+
* `MessageQueue` interface using Deno's KV store.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated This module has been moved to a separate package.
|
|
17
|
+
* Install and import from `@fedify/denokv` instead.
|
|
18
|
+
* This module will be removed in Fedify v2.0.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
* @since 0.5.0
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
11
24
|
* Represents a message queue adapter that uses Deno KV store.
|
|
12
25
|
*
|
|
13
26
|
* @deprecated This class has been moved to `@fedify/denokv` package.
|
|
@@ -27,8 +40,7 @@ var DenoKvMessageQueue = class {
|
|
|
27
40
|
* @param kv The Deno KV store to use.
|
|
28
41
|
*/
|
|
29
42
|
constructor(kv) {
|
|
30
|
-
|
|
31
|
-
logger.warn("The `@fedify/fedify/x/denokv` module is deprecated; use `DenoKvMessageQueue` from `@fedify/denokv` package instead.");
|
|
43
|
+
getLogger(["fedify", "denokv"]).warn("The `@fedify/fedify/x/denokv` module is deprecated; use `DenoKvMessageQueue` from `@fedify/denokv` package instead.");
|
|
32
44
|
this.#kv = kv;
|
|
33
45
|
}
|
|
34
46
|
async enqueue(message, options) {
|
|
@@ -52,6 +64,5 @@ var DenoKvMessageQueue = class {
|
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
};
|
|
55
|
-
|
|
56
67
|
//#endregion
|
|
57
|
-
export { DenoKvMessageQueue };
|
|
68
|
+
export { DenoKvMessageQueue };
|