@fedify/fedify 2.0.0-dev.379 → 2.0.0-dev.380
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/{builder-CTaPayj3.js → builder-yo-Bb1YI.js} +12 -57
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +11 -11
- package/dist/{context-Cf0-LmZC.d.cts → context-Bo8rHkgD.d.cts} +15 -45
- package/dist/{context-liIe6DFH.d.ts → context-CvI-m4eX.d.ts} +15 -45
- package/dist/{deno-DqzG_RZH.js → deno-CtGMjqVA.js} +1 -1
- package/dist/{docloader-DzdrkeHk.js → docloader-DFtiZSjQ.js} +4 -12
- package/dist/federation/builder.test.js +3 -3
- package/dist/federation/handler.test.js +45 -45
- package/dist/federation/idempotency.test.js +11 -11
- package/dist/federation/inbox.test.js +2 -2
- package/dist/federation/middleware.test.js +43 -68
- package/dist/federation/mod.cjs +4 -4
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +4 -4
- package/dist/federation/send.test.js +5 -5
- package/dist/federation/webfinger.test.js +12 -15
- package/dist/{http-BgVFYDxB.cjs → http-DL7I-lJ1.cjs} +1 -1
- package/dist/{http-wC3zLKG0.js → http-MKkRvGCD.js} +2 -2
- package/dist/{http-wpL3tTw3.js → http-d87H9gTL.js} +1 -1
- package/dist/{inbox-DD3ldbso.js → inbox-t2HfUOpK.js} +1 -1
- package/dist/{key-DT5WUsoA.js → key-BaU3dCbr.js} +1 -1
- package/dist/{kv-cache-dm5snJVx.js → kv-cache-BlAk9XRp.js} +2 -4
- package/dist/{kv-cache-fDtLLSX6.cjs → kv-cache-P81gWIMl.cjs} +1 -3
- package/dist/{ld-DkkOCVAX.js → ld-Cl1Q2ID2.js} +2 -2
- package/dist/{middleware-1jFftSD2.js → middleware-C8EKZVUa.js} +48 -128
- package/dist/{middleware-DTsAIZ_v.js → middleware-CahwrUem.js} +4 -4
- package/dist/{middleware-CyiaCQia.cjs → middleware-CeNadM06.cjs} +51 -176
- package/dist/middleware-DzqLMJf8.cjs +12 -0
- package/dist/{middleware-BPQUgG_4.js → middleware-QKMHl3jD.js} +11 -11
- package/dist/{middleware-BgA11Zdl.js → middleware-qCIC-vDz.js} +51 -176
- package/dist/{mod-CvhyLrjX.d.ts → mod-CevNbUol.d.ts} +0 -18
- package/dist/{mod-Do_sZWAA.d.cts → mod-DyzMRG8B.d.cts} +1 -1
- package/dist/{mod-DWaA45ef.d.cts → mod-ErTjUJs9.d.cts} +0 -18
- package/dist/{mod-B9_l3te3.d.ts → mod-PmuFg9QD.d.ts} +1 -1
- package/dist/{mod-Dquroqiv.d.ts → mod-hcb60sG1.d.ts} +1 -1
- package/dist/{mod-H3ScYaOb.d.cts → mod-jzy1r56s.d.cts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +6 -6
- package/dist/mod.d.ts +6 -6
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.js +11 -11
- package/dist/{owner-DkyFfykp.js → owner-CLtVml91.js} +1 -1
- package/dist/{proof-YGxK2bz_.js → proof-0NbL8saz.js} +2 -2
- package/dist/{proof-DiizpGmV.js → proof-B7X2V-RL.js} +1 -1
- package/dist/{proof-BAMTO1-Z.cjs → proof-BYSTK-fO.cjs} +1 -1
- package/dist/{send-Bh3NMyL9.js → send-yCNNrsU2.js} +2 -2
- package/dist/sig/http.test.js +3 -3
- package/dist/sig/key.test.js +2 -2
- package/dist/sig/ld.test.js +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.js +3 -3
- package/dist/sig/proof.test.js +3 -3
- package/dist/testing/mod.d.ts +9 -32
- package/dist/utils/docloader.test.js +4 -4
- package/dist/utils/mod.cjs +2 -2
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +2 -2
- package/package.json +5 -5
- package/dist/middleware-DPeL5rKU.cjs +0 -12
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-C3FLHUd6.js";
|
|
6
|
-
import { deno_default, doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-
|
|
7
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
6
|
+
import { deno_default, doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-d87H9gTL.js";
|
|
7
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-B7X2V-RL.js";
|
|
8
8
|
import { getNodeInfo, nodeInfoToJson } from "./types-C93Ob9cU.js";
|
|
9
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
|
9
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-BlAk9XRp.js";
|
|
10
10
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
11
11
|
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
12
12
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
@@ -338,7 +338,7 @@ var FederationBuilderImpl = class {
|
|
|
338
338
|
this.collectionTypeIds = {};
|
|
339
339
|
}
|
|
340
340
|
async build(options) {
|
|
341
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
341
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-CahwrUem.js");
|
|
342
342
|
const f = new FederationImpl$1(options);
|
|
343
343
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
344
344
|
f.router = this.router.clone();
|
|
@@ -370,12 +370,7 @@ var FederationBuilderImpl = class {
|
|
|
370
370
|
setActorDispatcher(path, dispatcher) {
|
|
371
371
|
if (this.router.has("actor")) throw new RouterError("Actor dispatcher already set.");
|
|
372
372
|
const variables = this.router.add(path, "actor");
|
|
373
|
-
if (variables.size !== 1 || !
|
|
374
|
-
if (variables.has("handle")) getLogger([
|
|
375
|
-
"fedify",
|
|
376
|
-
"federation",
|
|
377
|
-
"actor"
|
|
378
|
-
]).warn("The {{handle}} variable in the actor dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
373
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for actor dispatcher must have one variable: {identifier}");
|
|
379
374
|
const callbacks = { dispatcher: async (context$1, identifier) => {
|
|
380
375
|
const actor = await this._getTracer().startActiveSpan("activitypub.dispatch_actor", {
|
|
381
376
|
kind: SpanKind.SERVER,
|
|
@@ -537,12 +532,7 @@ var FederationBuilderImpl = class {
|
|
|
537
532
|
if (this.inboxPath !== path) throw new RouterError("Inbox dispatcher path must match inbox listener path.");
|
|
538
533
|
} else {
|
|
539
534
|
const variables = this.router.add(path, "inbox");
|
|
540
|
-
if (variables.size !== 1 || !
|
|
541
|
-
if (variables.has("handle")) getLogger([
|
|
542
|
-
"fedify",
|
|
543
|
-
"federation",
|
|
544
|
-
"inbox"
|
|
545
|
-
]).warn("The {{handle}} variable in the inbox dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
535
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for inbox dispatcher must have one variable: {identifier}");
|
|
546
536
|
this.inboxPath = path;
|
|
547
537
|
}
|
|
548
538
|
const callbacks = { dispatcher };
|
|
@@ -570,12 +560,7 @@ var FederationBuilderImpl = class {
|
|
|
570
560
|
setOutboxDispatcher(path, dispatcher) {
|
|
571
561
|
if (this.router.has("outbox")) throw new RouterError("Outbox dispatcher already set.");
|
|
572
562
|
const variables = this.router.add(path, "outbox");
|
|
573
|
-
if (variables.size !== 1 || !
|
|
574
|
-
if (variables.has("handle")) getLogger([
|
|
575
|
-
"fedify",
|
|
576
|
-
"federation",
|
|
577
|
-
"outbox"
|
|
578
|
-
]).warn("The {{handle}} variable in the outbox dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
563
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for outbox dispatcher must have one variable: {identifier}");
|
|
579
564
|
const callbacks = { dispatcher };
|
|
580
565
|
this.outboxCallbacks = callbacks;
|
|
581
566
|
const setters = {
|
|
@@ -601,12 +586,7 @@ var FederationBuilderImpl = class {
|
|
|
601
586
|
setFollowingDispatcher(path, dispatcher) {
|
|
602
587
|
if (this.router.has("following")) throw new RouterError("Following collection dispatcher already set.");
|
|
603
588
|
const variables = this.router.add(path, "following");
|
|
604
|
-
if (variables.size !== 1 || !
|
|
605
|
-
if (variables.has("handle")) getLogger([
|
|
606
|
-
"fedify",
|
|
607
|
-
"federation",
|
|
608
|
-
"collection"
|
|
609
|
-
]).warn("The {{handle}} variable in the following collection dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
589
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for following collection dispatcher must have one variable: {identifier}");
|
|
610
590
|
const callbacks = { dispatcher };
|
|
611
591
|
this.followingCallbacks = callbacks;
|
|
612
592
|
const setters = {
|
|
@@ -632,12 +612,7 @@ var FederationBuilderImpl = class {
|
|
|
632
612
|
setFollowersDispatcher(path, dispatcher) {
|
|
633
613
|
if (this.router.has("followers")) throw new RouterError("Followers collection dispatcher already set.");
|
|
634
614
|
const variables = this.router.add(path, "followers");
|
|
635
|
-
if (variables.size !== 1 || !
|
|
636
|
-
if (variables.has("handle")) getLogger([
|
|
637
|
-
"fedify",
|
|
638
|
-
"federation",
|
|
639
|
-
"collection"
|
|
640
|
-
]).warn("The {{handle}} variable in the followers collection dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
615
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for followers collection dispatcher must have one variable: {identifier}");
|
|
641
616
|
const callbacks = { dispatcher };
|
|
642
617
|
this.followersCallbacks = callbacks;
|
|
643
618
|
const setters = {
|
|
@@ -663,12 +638,7 @@ var FederationBuilderImpl = class {
|
|
|
663
638
|
setLikedDispatcher(path, dispatcher) {
|
|
664
639
|
if (this.router.has("liked")) throw new RouterError("Liked collection dispatcher already set.");
|
|
665
640
|
const variables = this.router.add(path, "liked");
|
|
666
|
-
if (variables.size !== 1 || !
|
|
667
|
-
if (variables.has("handle")) getLogger([
|
|
668
|
-
"fedify",
|
|
669
|
-
"federation",
|
|
670
|
-
"collection"
|
|
671
|
-
]).warn("The {{handle}} variable in the liked collection dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
641
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for liked collection dispatcher must have one variable: {identifier}");
|
|
672
642
|
const callbacks = { dispatcher };
|
|
673
643
|
this.likedCallbacks = callbacks;
|
|
674
644
|
const setters = {
|
|
@@ -694,12 +664,7 @@ var FederationBuilderImpl = class {
|
|
|
694
664
|
setFeaturedDispatcher(path, dispatcher) {
|
|
695
665
|
if (this.router.has("featured")) throw new RouterError("Featured collection dispatcher already set.");
|
|
696
666
|
const variables = this.router.add(path, "featured");
|
|
697
|
-
if (variables.size !== 1 || !
|
|
698
|
-
if (variables.has("handle")) getLogger([
|
|
699
|
-
"fedify",
|
|
700
|
-
"federation",
|
|
701
|
-
"collection"
|
|
702
|
-
]).warn("The {{handle}} variable in the featured collection dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
667
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for featured collection dispatcher must have one variable: {identifier}");
|
|
703
668
|
const callbacks = { dispatcher };
|
|
704
669
|
this.featuredCallbacks = callbacks;
|
|
705
670
|
const setters = {
|
|
@@ -725,12 +690,7 @@ var FederationBuilderImpl = class {
|
|
|
725
690
|
setFeaturedTagsDispatcher(path, dispatcher) {
|
|
726
691
|
if (this.router.has("featuredTags")) throw new RouterError("Featured tags collection dispatcher already set.");
|
|
727
692
|
const variables = this.router.add(path, "featuredTags");
|
|
728
|
-
if (variables.size !== 1 || !
|
|
729
|
-
if (variables.has("handle")) getLogger([
|
|
730
|
-
"fedify",
|
|
731
|
-
"federation",
|
|
732
|
-
"collection"
|
|
733
|
-
]).warn("The {{handle}} variable in the featured tags collection dispatcher path is deprecated. Use {{identifier}} instead.");
|
|
693
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for featured tags collection dispatcher must have one variable: {identifier}");
|
|
734
694
|
const callbacks = { dispatcher };
|
|
735
695
|
this.featuredTagsCallbacks = callbacks;
|
|
736
696
|
const setters = {
|
|
@@ -759,13 +719,8 @@ var FederationBuilderImpl = class {
|
|
|
759
719
|
if (this.inboxPath !== inboxPath) throw new RouterError("Inbox listener path must match inbox dispatcher path.");
|
|
760
720
|
} else {
|
|
761
721
|
const variables = this.router.add(inboxPath, "inbox");
|
|
762
|
-
if (variables.size !== 1 || !
|
|
722
|
+
if (variables.size !== 1 || !variables.has("identifier")) throw new RouterError("Path for inbox must have one variable: {identifier}");
|
|
763
723
|
this.inboxPath = inboxPath;
|
|
764
|
-
if (variables.has("handle")) getLogger([
|
|
765
|
-
"fedify",
|
|
766
|
-
"federation",
|
|
767
|
-
"inbox"
|
|
768
|
-
]).warn("The {{handle}} variable in the inbox path is deprecated. Use {{identifier}} instead.");
|
|
769
724
|
}
|
|
770
725
|
if (sharedInboxPath != null) {
|
|
771
726
|
const siVars = this.router.add(sharedInboxPath, "sharedInbox");
|
|
@@ -2751,7 +2706,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
2751
2706
|
if (message.identifier != null) context$1 = this.#createContext(baseUrl, ctxData, { documentLoader: await context$1.getDocumentLoader({ identifier: message.identifier }) });
|
|
2752
2707
|
else if (this.sharedInboxKeyDispatcher != null) {
|
|
2753
2708
|
const identity = await this.sharedInboxKeyDispatcher(context$1);
|
|
2754
|
-
if (identity != null) context$1 = this.#createContext(baseUrl, ctxData, { documentLoader: "identifier" in identity || "username" in identity
|
|
2709
|
+
if (identity != null) context$1 = this.#createContext(baseUrl, ctxData, { documentLoader: "identifier" in identity || "username" in identity ? await context$1.getDocumentLoader(identity) : context$1.getDocumentLoader(identity) });
|
|
2755
2710
|
}
|
|
2756
2711
|
const activity = await Activity.fromJsonLd(message.activity, context$1);
|
|
2757
2712
|
span.setAttribute("activitypub.activity.type", getTypeId(activity).href);
|
|
@@ -3147,9 +3102,9 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3147
3102
|
if (request.method !== "POST" && !acceptsJsonLd(request)) return await onNotAcceptable(request);
|
|
3148
3103
|
switch (routeName) {
|
|
3149
3104
|
case "actor":
|
|
3150
|
-
context$1 = this.#createContext(request, contextData, { invokedFromActorDispatcher: { identifier: route.values.identifier
|
|
3105
|
+
context$1 = this.#createContext(request, contextData, { invokedFromActorDispatcher: { identifier: route.values.identifier } });
|
|
3151
3106
|
return await handleActor(request, {
|
|
3152
|
-
identifier: route.values.identifier
|
|
3107
|
+
identifier: route.values.identifier,
|
|
3153
3108
|
context: context$1,
|
|
3154
3109
|
actorDispatcher: this.actorCallbacks?.dispatcher,
|
|
3155
3110
|
authorizePredicate: this.actorCallbacks?.authorizePredicate,
|
|
@@ -3175,7 +3130,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3175
3130
|
}
|
|
3176
3131
|
case "outbox": return await handleCollection(request, {
|
|
3177
3132
|
name: "outbox",
|
|
3178
|
-
identifier: route.values.identifier
|
|
3133
|
+
identifier: route.values.identifier,
|
|
3179
3134
|
uriGetter: context$1.getOutboxUri.bind(context$1),
|
|
3180
3135
|
context: context$1,
|
|
3181
3136
|
collectionCallbacks: this.outboxCallbacks,
|
|
@@ -3186,7 +3141,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3186
3141
|
case "inbox":
|
|
3187
3142
|
if (request.method !== "POST") return await handleCollection(request, {
|
|
3188
3143
|
name: "inbox",
|
|
3189
|
-
identifier: route.values.identifier
|
|
3144
|
+
identifier: route.values.identifier,
|
|
3190
3145
|
uriGetter: context$1.getInboxUri.bind(context$1),
|
|
3191
3146
|
context: context$1,
|
|
3192
3147
|
collectionCallbacks: this.inboxCallbacks,
|
|
@@ -3194,15 +3149,15 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3194
3149
|
onUnauthorized,
|
|
3195
3150
|
onNotFound
|
|
3196
3151
|
});
|
|
3197
|
-
context$1 = this.#createContext(request, contextData, { documentLoader: await context$1.getDocumentLoader({ identifier: route.values.identifier
|
|
3152
|
+
context$1 = this.#createContext(request, contextData, { documentLoader: await context$1.getDocumentLoader({ identifier: route.values.identifier }) });
|
|
3198
3153
|
case "sharedInbox":
|
|
3199
3154
|
if (routeName !== "inbox" && this.sharedInboxKeyDispatcher != null) {
|
|
3200
3155
|
const identity = await this.sharedInboxKeyDispatcher(context$1);
|
|
3201
|
-
if (identity != null) context$1 = this.#createContext(request, contextData, { documentLoader: "identifier" in identity || "username" in identity
|
|
3156
|
+
if (identity != null) context$1 = this.#createContext(request, contextData, { documentLoader: "identifier" in identity || "username" in identity ? await context$1.getDocumentLoader(identity) : context$1.getDocumentLoader(identity) });
|
|
3202
3157
|
}
|
|
3203
3158
|
if (!this.manuallyStartQueue) this._startQueueInternal(contextData);
|
|
3204
3159
|
return await handleInbox(request, {
|
|
3205
|
-
recipient: route.values.identifier ??
|
|
3160
|
+
recipient: route.values.identifier ?? null,
|
|
3206
3161
|
context: context$1,
|
|
3207
3162
|
inboxContextFactory: context$1.toInboxContext.bind(context$1),
|
|
3208
3163
|
kv: this.kv,
|
|
@@ -3219,7 +3174,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3219
3174
|
});
|
|
3220
3175
|
case "following": return await handleCollection(request, {
|
|
3221
3176
|
name: "following",
|
|
3222
|
-
identifier: route.values.identifier
|
|
3177
|
+
identifier: route.values.identifier,
|
|
3223
3178
|
uriGetter: context$1.getFollowingUri.bind(context$1),
|
|
3224
3179
|
context: context$1,
|
|
3225
3180
|
collectionCallbacks: this.followingCallbacks,
|
|
@@ -3236,7 +3191,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3236
3191
|
}
|
|
3237
3192
|
return await handleCollection(request, {
|
|
3238
3193
|
name: "followers",
|
|
3239
|
-
identifier: route.values.identifier
|
|
3194
|
+
identifier: route.values.identifier,
|
|
3240
3195
|
uriGetter: baseUrl == null ? context$1.getFollowersUri.bind(context$1) : (identifier) => {
|
|
3241
3196
|
const uri = context$1.getFollowersUri(identifier);
|
|
3242
3197
|
uri.searchParams.set("base-url", baseUrl);
|
|
@@ -3253,7 +3208,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3253
3208
|
}
|
|
3254
3209
|
case "liked": return await handleCollection(request, {
|
|
3255
3210
|
name: "liked",
|
|
3256
|
-
identifier: route.values.identifier
|
|
3211
|
+
identifier: route.values.identifier,
|
|
3257
3212
|
uriGetter: context$1.getLikedUri.bind(context$1),
|
|
3258
3213
|
context: context$1,
|
|
3259
3214
|
collectionCallbacks: this.likedCallbacks,
|
|
@@ -3263,7 +3218,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3263
3218
|
});
|
|
3264
3219
|
case "featured": return await handleCollection(request, {
|
|
3265
3220
|
name: "featured",
|
|
3266
|
-
identifier: route.values.identifier
|
|
3221
|
+
identifier: route.values.identifier,
|
|
3267
3222
|
uriGetter: context$1.getFeaturedUri.bind(context$1),
|
|
3268
3223
|
context: context$1,
|
|
3269
3224
|
collectionCallbacks: this.featuredCallbacks,
|
|
@@ -3273,7 +3228,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3273
3228
|
});
|
|
3274
3229
|
case "featuredTags": return await handleCollection(request, {
|
|
3275
3230
|
name: "featured tags",
|
|
3276
|
-
identifier: route.values.identifier
|
|
3231
|
+
identifier: route.values.identifier,
|
|
3277
3232
|
uriGetter: context$1.getFeaturedTagsUri.bind(context$1),
|
|
3278
3233
|
context: context$1,
|
|
3279
3234
|
collectionCallbacks: this.featuredTagsCallbacks,
|
|
@@ -3371,10 +3326,7 @@ var ContextImpl = class ContextImpl {
|
|
|
3371
3326
|
return new URL(path, this.canonicalOrigin);
|
|
3372
3327
|
}
|
|
3373
3328
|
getActorUri(identifier) {
|
|
3374
|
-
const path = this.federation.router.build("actor", {
|
|
3375
|
-
identifier,
|
|
3376
|
-
handle: identifier
|
|
3377
|
-
});
|
|
3329
|
+
const path = this.federation.router.build("actor", { identifier });
|
|
3378
3330
|
if (path == null) throw new RouterError("No actor dispatcher registered.");
|
|
3379
3331
|
return new URL(path, this.canonicalOrigin);
|
|
3380
3332
|
}
|
|
@@ -3387,10 +3339,7 @@ var ContextImpl = class ContextImpl {
|
|
|
3387
3339
|
return new URL(path, this.canonicalOrigin);
|
|
3388
3340
|
}
|
|
3389
3341
|
getOutboxUri(identifier) {
|
|
3390
|
-
const path = this.federation.router.build("outbox", {
|
|
3391
|
-
identifier,
|
|
3392
|
-
handle: identifier
|
|
3393
|
-
});
|
|
3342
|
+
const path = this.federation.router.build("outbox", { identifier });
|
|
3394
3343
|
if (path == null) throw new RouterError("No outbox dispatcher registered.");
|
|
3395
3344
|
return new URL(path, this.canonicalOrigin);
|
|
3396
3345
|
}
|
|
@@ -3400,50 +3349,32 @@ var ContextImpl = class ContextImpl {
|
|
|
3400
3349
|
if (path$1 == null) throw new RouterError("No shared inbox path registered.");
|
|
3401
3350
|
return new URL(path$1, this.canonicalOrigin);
|
|
3402
3351
|
}
|
|
3403
|
-
const path = this.federation.router.build("inbox", {
|
|
3404
|
-
identifier,
|
|
3405
|
-
handle: identifier
|
|
3406
|
-
});
|
|
3352
|
+
const path = this.federation.router.build("inbox", { identifier });
|
|
3407
3353
|
if (path == null) throw new RouterError("No inbox path registered.");
|
|
3408
3354
|
return new URL(path, this.canonicalOrigin);
|
|
3409
3355
|
}
|
|
3410
3356
|
getFollowingUri(identifier) {
|
|
3411
|
-
const path = this.federation.router.build("following", {
|
|
3412
|
-
identifier,
|
|
3413
|
-
handle: identifier
|
|
3414
|
-
});
|
|
3357
|
+
const path = this.federation.router.build("following", { identifier });
|
|
3415
3358
|
if (path == null) throw new RouterError("No following collection path registered.");
|
|
3416
3359
|
return new URL(path, this.canonicalOrigin);
|
|
3417
3360
|
}
|
|
3418
3361
|
getFollowersUri(identifier) {
|
|
3419
|
-
const path = this.federation.router.build("followers", {
|
|
3420
|
-
identifier,
|
|
3421
|
-
handle: identifier
|
|
3422
|
-
});
|
|
3362
|
+
const path = this.federation.router.build("followers", { identifier });
|
|
3423
3363
|
if (path == null) throw new RouterError("No followers collection path registered.");
|
|
3424
3364
|
return new URL(path, this.canonicalOrigin);
|
|
3425
3365
|
}
|
|
3426
3366
|
getLikedUri(identifier) {
|
|
3427
|
-
const path = this.federation.router.build("liked", {
|
|
3428
|
-
identifier,
|
|
3429
|
-
handle: identifier
|
|
3430
|
-
});
|
|
3367
|
+
const path = this.federation.router.build("liked", { identifier });
|
|
3431
3368
|
if (path == null) throw new RouterError("No liked collection path registered.");
|
|
3432
3369
|
return new URL(path, this.canonicalOrigin);
|
|
3433
3370
|
}
|
|
3434
3371
|
getFeaturedUri(identifier) {
|
|
3435
|
-
const path = this.federation.router.build("featured", {
|
|
3436
|
-
identifier,
|
|
3437
|
-
handle: identifier
|
|
3438
|
-
});
|
|
3372
|
+
const path = this.federation.router.build("featured", { identifier });
|
|
3439
3373
|
if (path == null) throw new RouterError("No featured collection path registered.");
|
|
3440
3374
|
return new URL(path, this.canonicalOrigin);
|
|
3441
3375
|
}
|
|
3442
3376
|
getFeaturedTagsUri(identifier) {
|
|
3443
|
-
const path = this.federation.router.build("featuredTags", {
|
|
3444
|
-
identifier,
|
|
3445
|
-
handle: identifier
|
|
3446
|
-
});
|
|
3377
|
+
const path = this.federation.router.build("featuredTags", { identifier });
|
|
3447
3378
|
if (path == null) throw new RouterError("No featured tags collection path registered.");
|
|
3448
3379
|
return new URL(path, this.canonicalOrigin);
|
|
3449
3380
|
}
|
|
@@ -3456,24 +3387,15 @@ var ContextImpl = class ContextImpl {
|
|
|
3456
3387
|
if (uri == null) return null;
|
|
3457
3388
|
if (uri.origin !== this.origin && uri.origin !== this.canonicalOrigin) return null;
|
|
3458
3389
|
const route = this.federation.router.route(uri.pathname);
|
|
3459
|
-
const logger$1 = getLogger(["fedify", "federation"]);
|
|
3460
3390
|
if (route == null) return null;
|
|
3461
3391
|
else if (route.name === "sharedInbox") return {
|
|
3462
3392
|
type: "inbox",
|
|
3463
|
-
identifier: void 0
|
|
3464
|
-
get handle() {
|
|
3465
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3466
|
-
return void 0;
|
|
3467
|
-
}
|
|
3393
|
+
identifier: void 0
|
|
3468
3394
|
};
|
|
3469
|
-
const identifier =
|
|
3395
|
+
const identifier = route.values.identifier;
|
|
3470
3396
|
if (route.name === "actor") return {
|
|
3471
3397
|
type: "actor",
|
|
3472
|
-
identifier
|
|
3473
|
-
get handle() {
|
|
3474
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3475
|
-
return identifier;
|
|
3476
|
-
}
|
|
3398
|
+
identifier
|
|
3477
3399
|
};
|
|
3478
3400
|
else if (route.name.startsWith("object:")) {
|
|
3479
3401
|
const typeId = route.name.replace(/^object:/, "");
|
|
@@ -3485,59 +3407,31 @@ var ContextImpl = class ContextImpl {
|
|
|
3485
3407
|
};
|
|
3486
3408
|
} else if (route.name === "inbox") return {
|
|
3487
3409
|
type: "inbox",
|
|
3488
|
-
identifier
|
|
3489
|
-
get handle() {
|
|
3490
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3491
|
-
return identifier;
|
|
3492
|
-
}
|
|
3410
|
+
identifier
|
|
3493
3411
|
};
|
|
3494
3412
|
else if (route.name === "outbox") return {
|
|
3495
3413
|
type: "outbox",
|
|
3496
|
-
identifier
|
|
3497
|
-
get handle() {
|
|
3498
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3499
|
-
return identifier;
|
|
3500
|
-
}
|
|
3414
|
+
identifier
|
|
3501
3415
|
};
|
|
3502
3416
|
else if (route.name === "following") return {
|
|
3503
3417
|
type: "following",
|
|
3504
|
-
identifier
|
|
3505
|
-
get handle() {
|
|
3506
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3507
|
-
return identifier;
|
|
3508
|
-
}
|
|
3418
|
+
identifier
|
|
3509
3419
|
};
|
|
3510
3420
|
else if (route.name === "followers") return {
|
|
3511
3421
|
type: "followers",
|
|
3512
|
-
identifier
|
|
3513
|
-
get handle() {
|
|
3514
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3515
|
-
return identifier;
|
|
3516
|
-
}
|
|
3422
|
+
identifier
|
|
3517
3423
|
};
|
|
3518
3424
|
else if (route.name === "liked") return {
|
|
3519
3425
|
type: "liked",
|
|
3520
|
-
identifier
|
|
3521
|
-
get handle() {
|
|
3522
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3523
|
-
return identifier;
|
|
3524
|
-
}
|
|
3426
|
+
identifier
|
|
3525
3427
|
};
|
|
3526
3428
|
else if (route.name === "featured") return {
|
|
3527
3429
|
type: "featured",
|
|
3528
|
-
identifier
|
|
3529
|
-
get handle() {
|
|
3530
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3531
|
-
return identifier;
|
|
3532
|
-
}
|
|
3430
|
+
identifier
|
|
3533
3431
|
};
|
|
3534
3432
|
else if (route.name === "featuredTags") return {
|
|
3535
3433
|
type: "featuredTags",
|
|
3536
|
-
identifier
|
|
3537
|
-
get handle() {
|
|
3538
|
-
logger$1.warn("The ParseUriResult.handle property is deprecated; use ParseUriResult.identifier instead.");
|
|
3539
|
-
return identifier;
|
|
3540
|
-
}
|
|
3434
|
+
identifier
|
|
3541
3435
|
};
|
|
3542
3436
|
const collectionTypes = ["collection", "orderedCollection"];
|
|
3543
3437
|
const collectionRegex = /* @__PURE__ */ new RegExp(`^(${collectionTypes.join("|")}):(.*)$`);
|
|
@@ -3639,19 +3533,10 @@ var ContextImpl = class ContextImpl {
|
|
|
3639
3533
|
return null;
|
|
3640
3534
|
}
|
|
3641
3535
|
getDocumentLoader(identity) {
|
|
3642
|
-
if ("identifier" in identity || "username" in identity
|
|
3536
|
+
if ("identifier" in identity || "username" in identity) {
|
|
3643
3537
|
let identifierPromise;
|
|
3644
|
-
if ("username" in identity
|
|
3645
|
-
|
|
3646
|
-
if ("username" in identity) username = identity.username;
|
|
3647
|
-
else {
|
|
3648
|
-
username = identity.handle;
|
|
3649
|
-
getLogger([
|
|
3650
|
-
"fedify",
|
|
3651
|
-
"runtime",
|
|
3652
|
-
"docloader"
|
|
3653
|
-
]).warn("The \"handle\" property is deprecated; use \"identifier\" or \"username\" instead.", { identity });
|
|
3654
|
-
}
|
|
3538
|
+
if ("username" in identity) {
|
|
3539
|
+
const username = identity.username;
|
|
3655
3540
|
const mapper = this.federation.actorCallbacks?.handleMapper;
|
|
3656
3541
|
if (mapper == null) identifierPromise = Promise.resolve(username);
|
|
3657
3542
|
else {
|
|
@@ -3737,15 +3622,10 @@ var ContextImpl = class ContextImpl {
|
|
|
3737
3622
|
]);
|
|
3738
3623
|
let keys;
|
|
3739
3624
|
let identifier = null;
|
|
3740
|
-
if ("identifier" in sender || "username" in sender
|
|
3625
|
+
if ("identifier" in sender || "username" in sender) {
|
|
3741
3626
|
if ("identifier" in sender) identifier = sender.identifier;
|
|
3742
3627
|
else {
|
|
3743
|
-
|
|
3744
|
-
if ("username" in sender) username = sender.username;
|
|
3745
|
-
else {
|
|
3746
|
-
username = sender.handle;
|
|
3747
|
-
logger$1.warn("The \"handle\" property for the sender parameter is deprecated; use \"identifier\" or \"username\" instead.", { sender });
|
|
3748
|
-
}
|
|
3628
|
+
const username = sender.username;
|
|
3749
3629
|
if (this.federation.actorCallbacks?.handleMapper == null) identifier = username;
|
|
3750
3630
|
else {
|
|
3751
3631
|
const mapped = await this.federation.actorCallbacks.handleMapper(this, username);
|
|
@@ -4101,15 +3981,10 @@ var InboxContextImpl = class InboxContextImpl extends ContextImpl {
|
|
|
4101
3981
|
]);
|
|
4102
3982
|
let keys;
|
|
4103
3983
|
let identifier = null;
|
|
4104
|
-
if ("identifier" in forwarder || "username" in forwarder
|
|
3984
|
+
if ("identifier" in forwarder || "username" in forwarder) {
|
|
4105
3985
|
if ("identifier" in forwarder) identifier = forwarder.identifier;
|
|
4106
3986
|
else {
|
|
4107
|
-
|
|
4108
|
-
if ("username" in forwarder) username = forwarder.username;
|
|
4109
|
-
else {
|
|
4110
|
-
username = forwarder.handle;
|
|
4111
|
-
logger$1.warn("The \"handle\" property for the forwarder parameter is deprecated; use \"identifier\" or \"username\" instead.", { forwarder });
|
|
4112
|
-
}
|
|
3987
|
+
const username = forwarder.username;
|
|
4113
3988
|
if (this.federation.actorCallbacks?.handleMapper == null) identifier = username;
|
|
4114
3989
|
else {
|
|
4115
3990
|
const mapped = await this.federation.actorCallbacks.handleMapper(this, username);
|
|
@@ -47,24 +47,6 @@ declare function getAuthenticatedDocumentLoader(identity: {
|
|
|
47
47
|
specDeterminer,
|
|
48
48
|
tracerProvider
|
|
49
49
|
}?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
|
|
50
|
-
/**
|
|
51
|
-
* A JSON-LD document loader that utilizes the browser's `fetch` API.
|
|
52
|
-
*
|
|
53
|
-
* This loader preloads the below frequently used contexts:
|
|
54
|
-
*
|
|
55
|
-
* - <https://www.w3.org/ns/activitystreams>
|
|
56
|
-
* - <https://w3id.org/security/v1>
|
|
57
|
-
* - <https://w3id.org/security/data-integrity/v1>
|
|
58
|
-
* - <https://www.w3.org/ns/did/v1>
|
|
59
|
-
* - <https://w3id.org/security/multikey/v1>
|
|
60
|
-
* - <https://purl.archive.org/socialweb/webfinger>
|
|
61
|
-
* - <http://schema.org/>
|
|
62
|
-
* @param url The URL of the document to load.
|
|
63
|
-
* @param allowPrivateAddress Whether to allow fetching private network
|
|
64
|
-
* addresses. Turned off by default.
|
|
65
|
-
* @returns The remote document.
|
|
66
|
-
* @deprecated Use {@link getDocumentLoader} instead.
|
|
67
|
-
*/
|
|
68
50
|
//#endregion
|
|
69
51
|
//#region src/utils/kv-cache.d.ts
|
|
70
52
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-
|
|
1
|
+
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-Bo8rHkgD.cjs";
|
|
2
2
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/federation/webfinger.d.ts
|
|
@@ -45,24 +45,6 @@ declare function getAuthenticatedDocumentLoader(identity: {
|
|
|
45
45
|
specDeterminer,
|
|
46
46
|
tracerProvider
|
|
47
47
|
}?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
|
|
48
|
-
/**
|
|
49
|
-
* A JSON-LD document loader that utilizes the browser's `fetch` API.
|
|
50
|
-
*
|
|
51
|
-
* This loader preloads the below frequently used contexts:
|
|
52
|
-
*
|
|
53
|
-
* - <https://www.w3.org/ns/activitystreams>
|
|
54
|
-
* - <https://w3id.org/security/v1>
|
|
55
|
-
* - <https://w3id.org/security/data-integrity/v1>
|
|
56
|
-
* - <https://www.w3.org/ns/did/v1>
|
|
57
|
-
* - <https://w3id.org/security/multikey/v1>
|
|
58
|
-
* - <https://purl.archive.org/socialweb/webfinger>
|
|
59
|
-
* - <http://schema.org/>
|
|
60
|
-
* @param url The URL of the document to load.
|
|
61
|
-
* @param allowPrivateAddress Whether to allow fetching private network
|
|
62
|
-
* addresses. Turned off by default.
|
|
63
|
-
* @returns The remote document.
|
|
64
|
-
* @deprecated Use {@link getDocumentLoader} instead.
|
|
65
|
-
*/
|
|
66
48
|
//#endregion
|
|
67
49
|
//#region src/utils/kv-cache.d.ts
|
|
68
50
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { ActivityTransformer, Context } from "./context-
|
|
3
|
+
import { ActivityTransformer, Context } from "./context-CvI-m4eX.js";
|
|
4
4
|
import { Activity } from "@fedify/vocab";
|
|
5
5
|
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-
|
|
3
|
+
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-CvI-m4eX.js";
|
|
4
4
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
5
5
|
|
|
6
6
|
//#region src/federation/webfinger.d.ts
|
package/dist/mod.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
const require_chunk = require('./chunk-CGaQZ11T.cjs');
|
|
6
6
|
const require_transformers = require('./transformers-3g8GZwkZ.cjs');
|
|
7
7
|
require('./compat-DmDDELst.cjs');
|
|
8
|
-
const require_http = require('./http-
|
|
9
|
-
const require_middleware = require('./middleware-
|
|
10
|
-
const require_proof = require('./proof-
|
|
8
|
+
const require_http = require('./http-DL7I-lJ1.cjs');
|
|
9
|
+
const require_middleware = require('./middleware-CeNadM06.cjs');
|
|
10
|
+
const require_proof = require('./proof-BYSTK-fO.cjs');
|
|
11
11
|
const require_federation = require('./federation-Bp3HI26G.cjs');
|
|
12
12
|
const require_types = require('./types-Cd_hszr_.cjs');
|
|
13
|
-
const require_kv_cache = require('./kv-cache-
|
|
13
|
+
const require_kv_cache = require('./kv-cache-P81gWIMl.cjs');
|
|
14
14
|
require('./nodeinfo-DuMYTpbZ.cjs');
|
|
15
15
|
const require_runtime = require('./runtime-c2Njxsry.cjs');
|
|
16
16
|
require('./sig-vX39WyWI.cjs');
|
package/dist/mod.d.cts
CHANGED
|
@@ -2,19 +2,19 @@ import { __export, __reExport, mod_d_exports } from "./mod-Bh8mqlYw.cjs";
|
|
|
2
2
|
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-CwkOPN13.cjs";
|
|
3
3
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CCEu-x1_.cjs";
|
|
4
4
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-9yZ5Ibsb.cjs";
|
|
5
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions,
|
|
5
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-Bo8rHkgD.cjs";
|
|
6
6
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-g9jFc34-.cjs";
|
|
7
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
8
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-
|
|
7
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-jzy1r56s.cjs";
|
|
8
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-DyzMRG8B.cjs";
|
|
9
9
|
import "./mod-gq_Xfdz8.cjs";
|
|
10
10
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-COO7VMcm.cjs";
|
|
11
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-
|
|
11
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-ErTjUJs9.cjs";
|
|
12
12
|
|
|
13
13
|
//#region src/mod.d.ts
|
|
14
14
|
declare namespace mod_d_exports$1 {
|
|
15
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions,
|
|
15
|
+
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
|
16
16
|
}
|
|
17
17
|
__reExport(mod_d_exports$1, mod_d_exports);
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions,
|
|
20
|
+
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|