@fedify/fedify 2.5.0-dev.2494 → 2.5.0-dev.2500
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-Y3pokaG2.mjs → builder-SNy83ctF.mjs} +2 -2
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-BM7AINht.mjs → compound-proof-CuPaRl9U.mjs} +2 -2
- package/dist/{context-COHd1Rsh.mjs → context-A-Nde3u-.mjs} +1 -1
- package/dist/{context-DSuL3YWx.d.cts → context-De6_qvb7.d.cts} +12 -11
- package/dist/{context-DQJE9YfH.d.ts → context-TVf3fdlB.d.ts} +12 -11
- package/dist/{deno-D7blYLbb.mjs → deno-CsxrXtWa.mjs} +1 -1
- package/dist/{docloader-DbBbDaY-.mjs → docloader--D95F073.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +4 -4
- package/dist/federation/handler.test.mjs +10 -6
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-actorless.test.mjs +55 -20
- package/dist/federation/inbox-authentication.test.mjs +112 -8
- package/dist/federation/inbox-report.test.mjs +13 -9
- package/dist/federation/inbox-view.test.mjs +1 -1
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +8 -8
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +1 -1
- package/dist/federation/outgoing-proof.test.mjs +4 -4
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +6 -6
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +2 -2
- package/dist/federation/tasks/tasks.test.mjs +3 -3
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +2 -2
- package/dist/{federation-CFaTsSMN.cjs → federation-B-rXYPHr.cjs} +61 -49
- package/dist/{http-CxKd10Lq.mjs → http-CVDBHMLY.mjs} +4 -4
- package/dist/{http-2SwIR4b-.cjs → http-DXinHD8N.cjs} +1 -1
- package/dist/{http-CrYxBKqG.js → http-pp-ezSve.js} +1 -1
- package/dist/{inbox-CM0UktG8.mjs → inbox-DiZdzcME.mjs} +3 -3
- package/dist/{inbox-authentication-DflPYlLL.mjs → inbox-authentication-CgonVRkg.mjs} +41 -14
- package/dist/{inbox-view-BJ5DBPFo.mjs → inbox-view-BV7f1seI.mjs} +1 -1
- package/dist/{kv-cache-CIdGATck.mjs → kv-cache-BxZh__fO.mjs} +1 -1
- package/dist/{kv-cache-DbgFe35y.js → kv-cache-C30xcebA.js} +1 -1
- package/dist/{kv-cache-Cd8xKv-x.cjs → kv-cache-DYgeImco.cjs} +1 -1
- package/dist/{ld-DUeBHFWH.mjs → ld-DjN0ClIo.mjs} +2 -2
- package/dist/{metrics-B7TvoAP7.mjs → metrics-CLY7puRu.mjs} +1 -1
- package/dist/{middleware-CId6efsJ.js → middleware-BkZ-V26C.js} +53 -41
- package/dist/{middleware-BE4JXx-U.mjs → middleware-CDgUvT3j.mjs} +1 -1
- package/dist/{middleware-BEaUojg7.mjs → middleware-CM2qToci.mjs} +26 -41
- package/dist/{mod-6TQ4UQZb.d.cts → mod-oYNzF2VJ.d.cts} +1 -1
- package/dist/{mod-CIeBgsOC.d.ts → mod-xr6CN9Vz.d.ts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/{owner-CwijV0c5.mjs → owner-CwIAw3J7.mjs} +3 -3
- package/dist/{portable-collection-2jn_4V7Y.js → portable-collection-CG03LGR1.js} +1 -1
- package/dist/{portable-collection-BeS88JJp.cjs → portable-collection-D8I6E3WW.cjs} +1 -1
- package/dist/{portable-collection-B023xqhZ.mjs → portable-collection-DL7UprdF.mjs} +2 -2
- package/dist/{portable-key-BpBucRfb.mjs → portable-key-CH5N_5yl.mjs} +1 -1
- package/dist/{proof-DQh2z9fx.mjs → proof-WYcq-_qG.mjs} +3 -3
- package/dist/{send-DN5HNBv-.mjs → send-DvoreDHu.mjs} +3 -3
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +1 -1
- package/dist/sig/ld.test.mjs +1 -1
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +5 -5
- package/dist/sig/proof.test.mjs +3 -3
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-yl7Z7A6y.mjs → temporal-B4Y_8d0L.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/testing/mod.d.mts +12 -11
- package/dist/testing/mod.mjs +2 -2
- package/dist/{testing-Dbr21vZk.mjs → testing-_9kJHvqh.mjs} +1 -1
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +6 -6
- package/skills/fedify/SKILL.md +6 -1
|
@@ -2,10 +2,10 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { t as __exportAll } from "./rolldown-runtime-BC-Eo5Mj.js";
|
|
4
4
|
import { r as getDefaultActivityTransformers } from "./transformers-DAtXl_Kc.js";
|
|
5
|
-
import { $ as getVerifiedKeyOwnerEvidence, A as compactJsonLd, At as getRawCanonicalPortableId, B as verifyCompactJsonLdDetailed, C as verifyPortableObjectProofWithRoot, Ct as observeAttempt, D as InvalidContextReferenceError, Dt as getCanonicalPortableId, E as normalizeOutgoingActivityJsonLd, Et as getAuthenticationOrigin, F as hasSignatureLike, Ft as isPortableUri, I as isClearlyMalformedContextReference, It as isSameObjectId, L as isInvalidUrlTypeError, M as detachSignature, Mt as isCompatibleKeyId, N as getNormalizationContextLoader, Nt as isPortableId, O as assertSafeJsonLd, Ot as getGatewayKeyBase, P as hasSignature, Pt as isPortableKeyId, Q as MAX_PORTABLE_KEY_TTL, R as markEffectiveContextLoader, Rt as name, S as verifyPortableObjectProofPolicy, Tt as verificationObservation, U as wrapContextLoaderForJsonLd, W as exportJwk, X as validateCryptoKey, Y as importJwk, _ as signObject, _t as registerQueueDepthGauge, at as isAbortError, b as verifyObjectDetailed, c as verifyRequestDetailed, ct as recordCollectionPageItems, d as InvalidPortableObjectIdError, f as classifyFep2277CoreType, ft as recordFanoutRecipients, g as preparePortableObjectProofPolicy, gt as recordWebFingerHandle, h as hasProofLike, ht as recordOutboxEnqueue, i as selectRequestSignature, it as instrumentDocumentLoader, jt as hasPortableActor, kt as getPortableDid, lt as recordCollectionRequest, m as getProofSigner, mt as recordOutboxActivity, n as listRequestSignatures, nt as getFederationMetrics, o as validateMaxSignatures, ot as recordCircuitBreakerStateChange, pt as recordInboxActivity, r as parseRfc9421SignatureInput, rt as getRemoteHost, s as verifyRequest, st as recordCollectionDispatchDuration, t as doubleKnockScoped, tt as getDurationMs, ut as recordCollectionTotalItems, v as verifyMapLocalProof, vt as preloadedOnlyDocumentLoader, w as verifyPreparedPortableObjectProofPolicy, wt as snapshotKey, x as verifyPortableObjectProof, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd, zt as version } from "./http-
|
|
5
|
+
import { $ as getVerifiedKeyOwnerEvidence, A as compactJsonLd, At as getRawCanonicalPortableId, B as verifyCompactJsonLdDetailed, C as verifyPortableObjectProofWithRoot, Ct as observeAttempt, D as InvalidContextReferenceError, Dt as getCanonicalPortableId, E as normalizeOutgoingActivityJsonLd, Et as getAuthenticationOrigin, F as hasSignatureLike, Ft as isPortableUri, I as isClearlyMalformedContextReference, It as isSameObjectId, L as isInvalidUrlTypeError, M as detachSignature, Mt as isCompatibleKeyId, N as getNormalizationContextLoader, Nt as isPortableId, O as assertSafeJsonLd, Ot as getGatewayKeyBase, P as hasSignature, Pt as isPortableKeyId, Q as MAX_PORTABLE_KEY_TTL, R as markEffectiveContextLoader, Rt as name, S as verifyPortableObjectProofPolicy, Tt as verificationObservation, U as wrapContextLoaderForJsonLd, W as exportJwk, X as validateCryptoKey, Y as importJwk, _ as signObject, _t as registerQueueDepthGauge, at as isAbortError, b as verifyObjectDetailed, c as verifyRequestDetailed, ct as recordCollectionPageItems, d as InvalidPortableObjectIdError, f as classifyFep2277CoreType, ft as recordFanoutRecipients, g as preparePortableObjectProofPolicy, gt as recordWebFingerHandle, h as hasProofLike, ht as recordOutboxEnqueue, i as selectRequestSignature, it as instrumentDocumentLoader, jt as hasPortableActor, kt as getPortableDid, lt as recordCollectionRequest, m as getProofSigner, mt as recordOutboxActivity, n as listRequestSignatures, nt as getFederationMetrics, o as validateMaxSignatures, ot as recordCircuitBreakerStateChange, pt as recordInboxActivity, r as parseRfc9421SignatureInput, rt as getRemoteHost, s as verifyRequest, st as recordCollectionDispatchDuration, t as doubleKnockScoped, tt as getDurationMs, ut as recordCollectionTotalItems, v as verifyMapLocalProof, vt as preloadedOnlyDocumentLoader, w as verifyPreparedPortableObjectProofPolicy, wt as snapshotKey, x as verifyPortableObjectProof, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd, zt as version } from "./http-pp-ezSve.js";
|
|
6
6
|
import { a as MAX_BODY_SIZE, i as BodyTooLargeError, n as getNodeInfo, o as readBoundedText, t as nodeInfoToJson } from "./types-DUjZb4i6.js";
|
|
7
|
-
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-
|
|
8
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-
|
|
7
|
+
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-CG03LGR1.js";
|
|
8
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-C30xcebA.js";
|
|
9
9
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
10
10
|
import { Router, RouterError, assertPath } from "@fedify/uri-template";
|
|
11
11
|
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, PUBLIC_COLLECTION, Tombstone, getTypeId, isActor, lookupObject, lookupObserver, traverseCollection } from "@fedify/vocab";
|
|
@@ -2857,7 +2857,7 @@ function normalizeActorId(id) {
|
|
|
2857
2857
|
* @internal
|
|
2858
2858
|
*/
|
|
2859
2859
|
function principalAuthenticates(principal, actorId) {
|
|
2860
|
-
if (principal.kind === "
|
|
2860
|
+
if (principal.kind === "portable-authority") {
|
|
2861
2861
|
if (!isPortableId(actorId)) return false;
|
|
2862
2862
|
const did = getPortableDid(actorId);
|
|
2863
2863
|
return did != null && did === getPortableDid(principal.id);
|
|
@@ -2895,11 +2895,45 @@ function principalAuthenticates(principal, actorId) {
|
|
|
2895
2895
|
function isActorAuthenticated(evidence, actorId, options = {}) {
|
|
2896
2896
|
return getEffectivePrincipals(evidence, options.scope).some((principal) => principalAuthenticates(principal, actorId));
|
|
2897
2897
|
}
|
|
2898
|
+
const SERIALIZED_KINDS = {
|
|
2899
|
+
actor: "actor",
|
|
2900
|
+
"portable-authority": "portableAuthority"
|
|
2901
|
+
};
|
|
2902
|
+
const PUBLIC_KINDS = {
|
|
2903
|
+
actor: "actor",
|
|
2904
|
+
portableAuthority: "portable-authority"
|
|
2905
|
+
};
|
|
2906
|
+
const SERIALIZED_MECHANISMS = {
|
|
2907
|
+
"http-signatures": "httpSignatures",
|
|
2908
|
+
"linked-data-signatures": "linkedDataSignatures",
|
|
2909
|
+
"object-integrity-proofs": "objectIntegrityProofs",
|
|
2910
|
+
origin: "origin"
|
|
2911
|
+
};
|
|
2912
|
+
const PUBLIC_MECHANISMS = {
|
|
2913
|
+
httpSignatures: "http-signatures",
|
|
2914
|
+
linkedDataSignatures: "linked-data-signatures",
|
|
2915
|
+
objectIntegrityProofs: "object-integrity-proofs",
|
|
2916
|
+
origin: "origin"
|
|
2917
|
+
};
|
|
2918
|
+
/**
|
|
2919
|
+
* Converts an internal proof signer to the public authentication principal.
|
|
2920
|
+
* @param signer The authenticated signer.
|
|
2921
|
+
* @returns The public principal.
|
|
2922
|
+
* @internal
|
|
2923
|
+
*/
|
|
2924
|
+
function toProofPrincipal(signer) {
|
|
2925
|
+
return {
|
|
2926
|
+
kind: PUBLIC_KINDS[signer.kind],
|
|
2927
|
+
id: signer.id,
|
|
2928
|
+
mechanism: "object-integrity-proofs",
|
|
2929
|
+
keyId: signer.keyId
|
|
2930
|
+
};
|
|
2931
|
+
}
|
|
2898
2932
|
function serializePrincipal(principal) {
|
|
2899
2933
|
return {
|
|
2900
|
-
kind: principal.kind,
|
|
2934
|
+
kind: SERIALIZED_KINDS[principal.kind],
|
|
2901
2935
|
id: principal.id.href,
|
|
2902
|
-
mechanism: principal.mechanism,
|
|
2936
|
+
mechanism: SERIALIZED_MECHANISMS[principal.mechanism],
|
|
2903
2937
|
keyId: principal.keyId?.href ?? null
|
|
2904
2938
|
};
|
|
2905
2939
|
}
|
|
@@ -2915,22 +2949,15 @@ function serializeAuthentication(evidence) {
|
|
|
2915
2949
|
originAuthenticated: evidence.originAuthenticated.map(serializePrincipal)
|
|
2916
2950
|
};
|
|
2917
2951
|
}
|
|
2918
|
-
const KINDS = /* @__PURE__ */ new Set(["actor", "portableAuthority"]);
|
|
2919
|
-
const MECHANISMS = /* @__PURE__ */ new Set([
|
|
2920
|
-
"httpSignatures",
|
|
2921
|
-
"linkedDataSignatures",
|
|
2922
|
-
"objectIntegrityProofs",
|
|
2923
|
-
"origin"
|
|
2924
|
-
]);
|
|
2925
2952
|
function deserializePrincipals(value) {
|
|
2926
2953
|
if (!Array.isArray(value)) return null;
|
|
2927
2954
|
const principals = [];
|
|
2928
2955
|
for (const item of value) {
|
|
2929
|
-
if (item == null || typeof item !== "object" || !
|
|
2956
|
+
if (item == null || typeof item !== "object" || !(typeof item.kind === "string" && Object.hasOwn(PUBLIC_KINDS, item.kind)) || !(typeof item.mechanism === "string" && Object.hasOwn(PUBLIC_MECHANISMS, item.mechanism)) || typeof item.id !== "string" || !URL.canParse(item.id) || item.keyId != null && (typeof item.keyId !== "string" || !URL.canParse(item.keyId))) return null;
|
|
2930
2957
|
principals.push(Object.freeze({
|
|
2931
|
-
kind: item.kind,
|
|
2958
|
+
kind: PUBLIC_KINDS[item.kind],
|
|
2932
2959
|
id: new URL(item.id),
|
|
2933
|
-
mechanism: item.mechanism,
|
|
2960
|
+
mechanism: PUBLIC_MECHANISMS[item.mechanism],
|
|
2934
2961
|
keyId: item.keyId == null ? null : new URL(item.keyId)
|
|
2935
2962
|
}));
|
|
2936
2963
|
}
|
|
@@ -6496,7 +6523,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
6496
6523
|
if (ldSigKey?.ownerId != null) documentSigners = [{
|
|
6497
6524
|
kind: "actor",
|
|
6498
6525
|
id: ldSigKey.ownerId,
|
|
6499
|
-
mechanism: "
|
|
6526
|
+
mechanism: "linked-data-signatures",
|
|
6500
6527
|
keyId: ldSigKey.id
|
|
6501
6528
|
}];
|
|
6502
6529
|
if (await isActorlessCandidate(activity, viewSource)) {
|
|
@@ -6856,7 +6883,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
6856
6883
|
if (httpSigKey != null && !actorless && activity.actorId != null) requestSigners = [{
|
|
6857
6884
|
kind: "actor",
|
|
6858
6885
|
id: activity.actorId,
|
|
6859
|
-
mechanism: "
|
|
6886
|
+
mechanism: "http-signatures",
|
|
6860
6887
|
keyId: httpSigKey.id
|
|
6861
6888
|
}];
|
|
6862
6889
|
if (actorless) {
|
|
@@ -6872,7 +6899,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
6872
6899
|
if (deferredLdSignatureError != null) throw deferredLdSignatureError;
|
|
6873
6900
|
observation.authentication = {
|
|
6874
6901
|
status: "rejected",
|
|
6875
|
-
reason: { type: "
|
|
6902
|
+
reason: { type: "no-authenticated-principal" }
|
|
6876
6903
|
};
|
|
6877
6904
|
logger.error("The activity {activityId} declares no actor, and no principal is authenticated for it.", {
|
|
6878
6905
|
activity: json,
|
|
@@ -6892,7 +6919,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
6892
6919
|
observation.authentication = {
|
|
6893
6920
|
status: "rejected",
|
|
6894
6921
|
reason: {
|
|
6895
|
-
type: "
|
|
6922
|
+
type: "activity-origin-mismatch",
|
|
6896
6923
|
activityId: new URL(activity.id.href),
|
|
6897
6924
|
actorIds: check.principals.map((principal) => principal.id)
|
|
6898
6925
|
}
|
|
@@ -6976,7 +7003,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
6976
7003
|
observation.authentication = {
|
|
6977
7004
|
status: "rejected",
|
|
6978
7005
|
reason: {
|
|
6979
|
-
type: "
|
|
7006
|
+
type: "activity-origin-mismatch",
|
|
6980
7007
|
activityId: new URL(activity.id.href),
|
|
6981
7008
|
actorIds: activity.actorIds.map((id) => new URL(id.href))
|
|
6982
7009
|
}
|
|
@@ -7763,12 +7790,7 @@ const MIN_COMPONENTS = [
|
|
|
7763
7790
|
* Turns the signers of verified Object Integrity Proofs into principals.
|
|
7764
7791
|
*/
|
|
7765
7792
|
function toProofPrincipals(signers) {
|
|
7766
|
-
return signers.map(
|
|
7767
|
-
kind: signer.kind,
|
|
7768
|
-
id: signer.id,
|
|
7769
|
-
mechanism: "objectIntegrityProofs",
|
|
7770
|
-
keyId: signer.keyId
|
|
7771
|
-
}));
|
|
7793
|
+
return signers.map(toProofPrincipal);
|
|
7772
7794
|
}
|
|
7773
7795
|
/**
|
|
7774
7796
|
* Gets the principal of an HTTP Signature key, whose owner was confirmed by
|
|
@@ -7781,7 +7803,7 @@ function getHttpKeyPrincipal(key) {
|
|
|
7781
7803
|
return {
|
|
7782
7804
|
kind: "actor",
|
|
7783
7805
|
id: parseIri(evidence.ownerId),
|
|
7784
|
-
mechanism: "
|
|
7806
|
+
mechanism: "http-signatures",
|
|
7785
7807
|
keyId: key.id
|
|
7786
7808
|
};
|
|
7787
7809
|
} catch {
|
|
@@ -7791,7 +7813,7 @@ function getHttpKeyPrincipal(key) {
|
|
|
7791
7813
|
return {
|
|
7792
7814
|
kind: "actor",
|
|
7793
7815
|
id: key.ownerId,
|
|
7794
|
-
mechanism: "
|
|
7816
|
+
mechanism: "http-signatures",
|
|
7795
7817
|
keyId: key.id
|
|
7796
7818
|
};
|
|
7797
7819
|
}
|
|
@@ -12545,12 +12567,7 @@ var ContextImpl = class ContextImpl {
|
|
|
12545
12567
|
const result = verifications.get(candidate.document);
|
|
12546
12568
|
if (result?.verified === true && result.method === "proof") documentSigners = result.keys.flatMap((key) => {
|
|
12547
12569
|
const signer = getProofSigner(key);
|
|
12548
|
-
return signer == null ? [] : [
|
|
12549
|
-
kind: signer.kind,
|
|
12550
|
-
id: signer.id,
|
|
12551
|
-
mechanism: "objectIntegrityProofs",
|
|
12552
|
-
keyId: signer.keyId
|
|
12553
|
-
}];
|
|
12570
|
+
return signer == null ? [] : [toProofPrincipal(signer)];
|
|
12554
12571
|
});
|
|
12555
12572
|
} else originAuthenticated = fetched.actorIds.map((actorId) => ({
|
|
12556
12573
|
kind: "actor",
|
|
@@ -12564,12 +12581,7 @@ var ContextImpl = class ContextImpl {
|
|
|
12564
12581
|
activity: json
|
|
12565
12582
|
});
|
|
12566
12583
|
activity = verified.object;
|
|
12567
|
-
documentSigners = verified.signers.map(
|
|
12568
|
-
kind: signer.kind,
|
|
12569
|
-
id: signer.id,
|
|
12570
|
-
mechanism: "objectIntegrityProofs",
|
|
12571
|
-
keyId: signer.keyId
|
|
12572
|
-
}));
|
|
12584
|
+
documentSigners = verified.signers.map(toProofPrincipal);
|
|
12573
12585
|
viewSource = {
|
|
12574
12586
|
policy: "standard",
|
|
12575
12587
|
source: "activity",
|
|
@@ -3,32 +3,32 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { d as isPortableUri, f as isSameObjectId, i as getPortableDid, l as isPortableId, n as getCanonicalPortableId, o as hasPortableActor, r as getGatewayKeyBase, s as isCompatibleKeyId, t as getAuthenticationOrigin, u as isPortableKeyId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { n as isPubliclyAddressedNode, t as isInAudience } from "./audience-CHQ-FlLD.mjs";
|
|
6
|
-
import { i as getEmptyAuthenticationEvidence, n as deserializeAuthentication, t as createAuthenticationEvidence } from "./inbox-authentication-
|
|
6
|
+
import { i as getEmptyAuthenticationEvidence, n as deserializeAuthentication, s as toProofPrincipal, t as createAuthenticationEvidence } from "./inbox-authentication-CgonVRkg.mjs";
|
|
7
7
|
import { a as verificationObservation, r as snapshotKey, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
8
|
-
import { n as version, t as name } from "./deno-
|
|
9
|
-
import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-
|
|
8
|
+
import { n as version, t as name } from "./deno-CsxrXtWa.mjs";
|
|
9
|
+
import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-CLY7puRu.mjs";
|
|
10
10
|
import { t as formatAcceptSignature } from "./accept-CPVqki78.mjs";
|
|
11
11
|
import { r as getVerifiedKeyOwnerEvidence } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
12
|
-
import { D as validateCryptoKey, E as importJwk, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, g as verifyCompactJsonLdDetailed, l as hasSignature, m as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike, x as exportJwk, y as wrapContextLoaderForJsonLd } from "./ld-
|
|
12
|
+
import { D as validateCryptoKey, E as importJwk, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, g as verifyCompactJsonLdDetailed, l as hasSignature, m as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike, x as exportJwk, y as wrapContextLoaderForJsonLd } from "./ld-DjN0ClIo.mjs";
|
|
13
13
|
import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-4IJqPYos.mjs";
|
|
14
|
-
import { a as hasProofLike, d as verifyPortableObjectProof, i as getProofSigner, l as verifyObject, p as verifyPortableObjectProofWithRoot, s as signObject, t as InvalidPortableObjectIdError, u as verifyObjectDetailed } from "./proof-
|
|
15
|
-
import { c as parseRfc9421SignatureInput, f as validateMaxSignatures, l as selectRequestSignature, m as verifyRequestDetailed, o as listRequestSignatures, p as verifyRequest } from "./http-
|
|
16
|
-
import { n as getAuthenticatedDocumentLoader } from "./docloader
|
|
17
|
-
import { n as kvCache } from "./kv-cache-
|
|
14
|
+
import { a as hasProofLike, d as verifyPortableObjectProof, i as getProofSigner, l as verifyObject, p as verifyPortableObjectProofWithRoot, s as signObject, t as InvalidPortableObjectIdError, u as verifyObjectDetailed } from "./proof-WYcq-_qG.mjs";
|
|
15
|
+
import { c as parseRfc9421SignatureInput, f as validateMaxSignatures, l as selectRequestSignature, m as verifyRequestDetailed, o as listRequestSignatures, p as verifyRequest } from "./http-CVDBHMLY.mjs";
|
|
16
|
+
import { n as getAuthenticatedDocumentLoader } from "./docloader--D95F073.mjs";
|
|
17
|
+
import { n as kvCache } from "./kv-cache-BxZh__fO.mjs";
|
|
18
18
|
import { d as MAX_BODY_SIZE, f as readBoundedText, t as getNodeInfo, u as BodyTooLargeError } from "./client-5SIFzW3q.mjs";
|
|
19
19
|
import { t as nodeInfoToJson } from "./types-DE_LV1JB.mjs";
|
|
20
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-
|
|
21
|
-
import { t as verifyPortableObject } from "./portable-collection-
|
|
22
|
-
import { a as sendActivityThroughGateways, i as sendActivity, n as extractInboxes, o as getOrderingDestination, t as SendActivityError } from "./send-
|
|
23
|
-
import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-
|
|
20
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-CwIAw3J7.mjs";
|
|
21
|
+
import { t as verifyPortableObject } from "./portable-collection-DL7UprdF.mjs";
|
|
22
|
+
import { a as sendActivityThroughGateways, i as sendActivity, n as extractInboxes, o as getOrderingDestination, t as SendActivityError } from "./send-DvoreDHu.mjs";
|
|
23
|
+
import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-SNy83ctF.mjs";
|
|
24
24
|
import { t as CircuitBreaker } from "./circuit-breaker-XJ53md4S.mjs";
|
|
25
25
|
import { t as buildCollectionSynchronizationHeader } from "./collection-CnnP1UAv.mjs";
|
|
26
|
-
import { a as inspectCompoundPortableObjectApplicability, c as verifyServedPortableObjects, i as findUnsupportedCompoundProofShape, o as verifyCompoundPortableObjectProofs, r as findEmbeddedProofWithoutContext, t as containsCompoundPortableObject } from "./compound-proof-
|
|
27
|
-
import { a as isActorlessActivityAuthenticated, i as getInboxIdempotencyKey, n as checkActorlessActivity, o as isInboxActivityProcessed, s as routeActivity, t as actorsHaveSameOrigin } from "./inbox-
|
|
28
|
-
import { c as expandDocument, d as parseSerializedVerifiedActivityView, f as restoreVerifiedActivityView, i as createReleasableLoader, l as getActorPresence, n as buildVerifiedActivityView, o as deepFreeze, r as createContextSnapshot, t as ContextSnapshotMissError } from "./inbox-view-
|
|
26
|
+
import { a as inspectCompoundPortableObjectApplicability, c as verifyServedPortableObjects, i as findUnsupportedCompoundProofShape, o as verifyCompoundPortableObjectProofs, r as findEmbeddedProofWithoutContext, t as containsCompoundPortableObject } from "./compound-proof-CuPaRl9U.mjs";
|
|
27
|
+
import { a as isActorlessActivityAuthenticated, i as getInboxIdempotencyKey, n as checkActorlessActivity, o as isInboxActivityProcessed, s as routeActivity, t as actorsHaveSameOrigin } from "./inbox-DiZdzcME.mjs";
|
|
28
|
+
import { c as expandDocument, d as parseSerializedVerifiedActivityView, f as restoreVerifiedActivityView, i as createReleasableLoader, l as getActorPresence, n as buildVerifiedActivityView, o as deepFreeze, r as createContextSnapshot, t as ContextSnapshotMissError } from "./inbox-view-BV7f1seI.mjs";
|
|
29
29
|
import { t as KvKeyCache } from "./keycache-N2opu4-3.mjs";
|
|
30
30
|
import { t as acceptsJsonLd } from "./negotiation-CCocWT_N.mjs";
|
|
31
|
-
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-
|
|
31
|
+
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-B4Y_8d0L.mjs";
|
|
32
32
|
import { t as createExponentialBackoffPolicy } from "./retry-zX5xw5e0.mjs";
|
|
33
33
|
import { t as TaskCodec } from "./codec-C6rTrpIp.mjs";
|
|
34
34
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
@@ -2507,7 +2507,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
2507
2507
|
if (ldSigKey?.ownerId != null) documentSigners = [{
|
|
2508
2508
|
kind: "actor",
|
|
2509
2509
|
id: ldSigKey.ownerId,
|
|
2510
|
-
mechanism: "
|
|
2510
|
+
mechanism: "linked-data-signatures",
|
|
2511
2511
|
keyId: ldSigKey.id
|
|
2512
2512
|
}];
|
|
2513
2513
|
if (await isActorlessCandidate(activity, viewSource)) {
|
|
@@ -2867,7 +2867,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
2867
2867
|
if (httpSigKey != null && !actorless && activity.actorId != null) requestSigners = [{
|
|
2868
2868
|
kind: "actor",
|
|
2869
2869
|
id: activity.actorId,
|
|
2870
|
-
mechanism: "
|
|
2870
|
+
mechanism: "http-signatures",
|
|
2871
2871
|
keyId: httpSigKey.id
|
|
2872
2872
|
}];
|
|
2873
2873
|
if (actorless) {
|
|
@@ -2883,7 +2883,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
2883
2883
|
if (deferredLdSignatureError != null) throw deferredLdSignatureError;
|
|
2884
2884
|
observation.authentication = {
|
|
2885
2885
|
status: "rejected",
|
|
2886
|
-
reason: { type: "
|
|
2886
|
+
reason: { type: "no-authenticated-principal" }
|
|
2887
2887
|
};
|
|
2888
2888
|
logger.error("The activity {activityId} declares no actor, and no principal is authenticated for it.", {
|
|
2889
2889
|
activity: json,
|
|
@@ -2903,7 +2903,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
2903
2903
|
observation.authentication = {
|
|
2904
2904
|
status: "rejected",
|
|
2905
2905
|
reason: {
|
|
2906
|
-
type: "
|
|
2906
|
+
type: "activity-origin-mismatch",
|
|
2907
2907
|
activityId: new URL(activity.id.href),
|
|
2908
2908
|
actorIds: check.principals.map((principal) => principal.id)
|
|
2909
2909
|
}
|
|
@@ -2987,7 +2987,7 @@ async function handleInboxInternal(request, parameters, span, snapshot) {
|
|
|
2987
2987
|
observation.authentication = {
|
|
2988
2988
|
status: "rejected",
|
|
2989
2989
|
reason: {
|
|
2990
|
-
type: "
|
|
2990
|
+
type: "activity-origin-mismatch",
|
|
2991
2991
|
activityId: new URL(activity.id.href),
|
|
2992
2992
|
actorIds: activity.actorIds.map((id) => new URL(id.href))
|
|
2993
2993
|
}
|
|
@@ -3774,12 +3774,7 @@ const MIN_COMPONENTS = [
|
|
|
3774
3774
|
* Turns the signers of verified Object Integrity Proofs into principals.
|
|
3775
3775
|
*/
|
|
3776
3776
|
function toProofPrincipals(signers) {
|
|
3777
|
-
return signers.map(
|
|
3778
|
-
kind: signer.kind,
|
|
3779
|
-
id: signer.id,
|
|
3780
|
-
mechanism: "objectIntegrityProofs",
|
|
3781
|
-
keyId: signer.keyId
|
|
3782
|
-
}));
|
|
3777
|
+
return signers.map(toProofPrincipal);
|
|
3783
3778
|
}
|
|
3784
3779
|
/**
|
|
3785
3780
|
* Gets the principal of an HTTP Signature key, whose owner was confirmed by
|
|
@@ -3792,7 +3787,7 @@ function getHttpKeyPrincipal(key) {
|
|
|
3792
3787
|
return {
|
|
3793
3788
|
kind: "actor",
|
|
3794
3789
|
id: parseIri(evidence.ownerId),
|
|
3795
|
-
mechanism: "
|
|
3790
|
+
mechanism: "http-signatures",
|
|
3796
3791
|
keyId: key.id
|
|
3797
3792
|
};
|
|
3798
3793
|
} catch {
|
|
@@ -3802,7 +3797,7 @@ function getHttpKeyPrincipal(key) {
|
|
|
3802
3797
|
return {
|
|
3803
3798
|
kind: "actor",
|
|
3804
3799
|
id: key.ownerId,
|
|
3805
|
-
mechanism: "
|
|
3800
|
+
mechanism: "http-signatures",
|
|
3806
3801
|
keyId: key.id
|
|
3807
3802
|
};
|
|
3808
3803
|
}
|
|
@@ -8147,12 +8142,7 @@ var ContextImpl = class ContextImpl {
|
|
|
8147
8142
|
const result = verifications.get(candidate.document);
|
|
8148
8143
|
if (result?.verified === true && result.method === "proof") documentSigners = result.keys.flatMap((key) => {
|
|
8149
8144
|
const signer = getProofSigner(key);
|
|
8150
|
-
return signer == null ? [] : [
|
|
8151
|
-
kind: signer.kind,
|
|
8152
|
-
id: signer.id,
|
|
8153
|
-
mechanism: "objectIntegrityProofs",
|
|
8154
|
-
keyId: signer.keyId
|
|
8155
|
-
}];
|
|
8145
|
+
return signer == null ? [] : [toProofPrincipal(signer)];
|
|
8156
8146
|
});
|
|
8157
8147
|
} else originAuthenticated = fetched.actorIds.map((actorId) => ({
|
|
8158
8148
|
kind: "actor",
|
|
@@ -8166,12 +8156,7 @@ var ContextImpl = class ContextImpl {
|
|
|
8166
8156
|
activity: json
|
|
8167
8157
|
});
|
|
8168
8158
|
activity = verified.object;
|
|
8169
|
-
documentSigners = verified.signers.map(
|
|
8170
|
-
kind: signer.kind,
|
|
8171
|
-
id: signer.id,
|
|
8172
|
-
mechanism: "objectIntegrityProofs",
|
|
8173
|
-
keyId: signer.keyId
|
|
8174
|
-
}));
|
|
8159
|
+
documentSigners = verified.signers.map(toProofPrincipal);
|
|
8175
8160
|
viewSource = {
|
|
8176
8161
|
policy: "standard",
|
|
8177
8162
|
source: "activity",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Et as ActorHandleMapper, Qt as WebFingerLinksDispatcher, Tt as ActorDispatcher, p as RequestContext, wt as ActorAliasMapper } from "./context-
|
|
2
|
+
import { Et as ActorHandleMapper, Qt as WebFingerLinksDispatcher, Tt as ActorDispatcher, p as RequestContext, wt as ActorAliasMapper } from "./context-De6_qvb7.cjs";
|
|
3
3
|
import { MeterProvider, Span, Tracer } from "@opentelemetry/api";
|
|
4
4
|
import { RouterError, RouterOptions, RouterRouteResult } from "@fedify/uri-template";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Et as ActorHandleMapper, Qt as WebFingerLinksDispatcher, Tt as ActorDispatcher, p as RequestContext, wt as ActorAliasMapper } from "./context-
|
|
2
|
+
import { Et as ActorHandleMapper, Qt as WebFingerLinksDispatcher, Tt as ActorDispatcher, p as RequestContext, wt as ActorAliasMapper } from "./context-TVf3fdlB.js";
|
|
3
3
|
import { RouterError, RouterOptions, RouterRouteResult } from "@fedify/uri-template";
|
|
4
4
|
import { MeterProvider, Span, Tracer } from "@opentelemetry/api";
|
|
5
5
|
|
package/dist/mod.cjs
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("./rolldown-runtime-Dmm3t92W.cjs");
|
|
4
4
|
const require_transformers = require("./transformers-BalCrSsr.cjs");
|
|
5
5
|
require("./compat/mod.cjs");
|
|
6
|
-
const require_http = require("./http-
|
|
7
|
-
const require_federation = require("./federation-
|
|
6
|
+
const require_http = require("./http-DXinHD8N.cjs");
|
|
7
|
+
const require_federation = require("./federation-B-rXYPHr.cjs");
|
|
8
8
|
const require_types = require("./types-hKCCjii0.cjs");
|
|
9
|
-
const require_portable_collection = require("./portable-collection-
|
|
10
|
-
const require_kv_cache = require("./kv-cache-
|
|
9
|
+
const require_portable_collection = require("./portable-collection-D8I6E3WW.cjs");
|
|
10
|
+
const require_kv_cache = require("./kv-cache-DYgeImco.cjs");
|
|
11
11
|
require("./nodeinfo/mod.cjs");
|
|
12
12
|
require("./runtime/mod.cjs");
|
|
13
13
|
require("./sig/mod.cjs");
|
package/dist/mod.d.cts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-3InDZbba.cjs";
|
|
3
3
|
import { A as AcceptSignatureParameters, B as VerifyPortableObjectProofOptions, C as VerifyRequestDetailedResult, D as verifyRequest, E as signRequest, F as validateAcceptSignature, G as signObject, H as VerifyProofOptions, I as CreateProofOptions, J as verifyProof, K as verifyObject, L as SignObjectOptions, M as formatAcceptSignature, N as fulfillAcceptSignature, O as verifyRequestDetailed, P as parseAcceptSignature, R as VerifyObjectOptions, S as SignRequestOptions, T as VerifyRequestOptions, U as createProof, V as VerifyPortableObjectProofResult, W as hasProofLike, _ as InboxVerificationKey, a as KeyCache, b as HttpMessageSignaturesSpecDeterminer, c as fetchKeyDetailed, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, i as FetchKeyResult, j as FulfillAcceptSignatureResult, k as AcceptSignatureMember, l as generateCryptoKeyPair, m as InboxSignatureIdentity, n as FetchKeyErrorResult, o as exportJwk, p as InboxSignatureFailureReason, q as verifyPortableObjectProof, r as FetchKeyOptions, s as fetchKey, t as FetchKeyDetailedResult, u as importJwk, w as VerifyRequestFailureReason, x as Rfc9421SignRequestOptions, y as HttpMessageSignaturesSpec, z as VerifyPortableObjectProofFailureReason } from "./key-DlHT4R6k.cjs";
|
|
4
4
|
import { a as VerifySignatureOptions, c as detachSignature, d as verifyJsonLd, f as verifySignature, g as getKeyOwner, h as doesActorOwnKey, i as VerifyJsonLdOptions, l as hasSignatureLike, m as GetKeyOwnerOptions, o as attachSignature, p as DoesActorOwnKeyOptions, r as SignJsonLdOptions, s as createSignature, t as CreateSignatureOptions, u as signJsonLd } from "./ld-CWVpo_NM.cjs";
|
|
5
|
-
import { $ as respondWithObject, $t as SendActivityError, A as InboxChallengePolicy, At as CollectionCursor, B as createFederation, Bt as NodeInfoDispatcher, C as FederationBenchmarkOptions, Ct as parseCircuitBreakerKvState, D as FederationStartQueueOptions, Dt as ActorKeyPairsDispatcher, E as FederationOptions, Et as ActorHandleMapper, F as PortableInboxForwardingOptions, Ft as HashlinkMediaDispatcher, G as TaskEnqueueOptions, Gt as OutboxListenerErrorHandler, H as createFederationBuilder, Ht as ObjectDispatcher, I as Rfc6570Expression, It as HashlinkMediaRequest, J as CreateExponentialBackoffPolicyOptions, Jt as PortableCollectionOwnerMapper, K as TaskHandler, Kt as OutboxPermanentFailureHandler, L as FederationKvPrefixes, Lt as InboxErrorHandler, M as MediaUploaderSetters, Mt as CustomCollectionCounter, N as ObjectCallbackSetters, Nt as CustomCollectionCursor, O as IdempotencyKeyCallback, Ot as AuthorizePredicate, P as OutboxListenerSetters, Pt as CustomCollectionDispatcher, Q as RespondWithObjectOptions, Qt as WebFingerLinksDispatcher, R as FederationOrigin, Rt as InboxListener, S as Federation, St as normalizeCircuitBreakerOptions, T as FederationFetchOptions, Tt as ActorDispatcher, U as TaskDefinition, Ut as OutboxErrorHandler, V as Message, Vt as ObjectAuthorizePredicate, W as TaskDefinitionOptions, Wt as OutboxListener, X as RetryPolicy, Xt as UnverifiedActivityHandler, Y as RetryContext, Yt as SharedInboxKeyDispatcher, Z as createExponentialBackoffPolicy, Zt as UnverifiedActivityReason, _ as ActorCallbackSetters, _t as CircuitBreakerKvState, a as GetObjectOptions, an as InboxAuthentication, at as InProcessMessageQueue, b as CustomCollectionCallbackSetters, bt as CircuitBreakerStateChange, c as IsSignedByAudienceOptions, cn as InboxRequestOutcome, ct as MessageQueueDepth, d as ParseUriResult, dt as ParallelMessageQueue, en as SenderKeyPair, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreaker, g as SendActivityOptionsForCollection, gt as CircuitBreakerFailurePolicy, h as SendActivityOptions, ht as CircuitBreakerCreateOptions, i as GetActorOptions, in as ActivityTransformer, it as isActorAuthenticated, j as InboxListenerSetters, jt as CollectionDispatcher, k as IdempotencyStrategy, kt as CollectionCounter, l as OutboxContext, ln as InboxRequestReport, lt as MessageQueueEnqueueOptions, m as RouteActivityOptions, mt as CircuitBreakerBeforeSendDecision, n as Context, nn as buildCollectionSynchronizationHeader, nt as InboxPrincipal, o as GetSignedKeyOptions, on as InboxJsonValue, ot as InProcessMessageQueueOptions, p as RequestContext, pt as CircuitBreakerActivityDrop, q as TaskRegistry, qt as PortableActorIdMapper, r as ForwardActivityOptions, rn as digest, rt as IsActorAuthenticatedOptions, s as InboxContext, sn as InboxRequestFinishedHandler, st as MessageQueue, t as ActorKeyPair, tn as PageItems, tt as InboxAuthenticationEvidence, u as ParseUriOptions, un as InboxListenerOptions, ut as MessageQueueListenOptions, v as CollectionCallbackSetters, vt as CircuitBreakerOptions, w as FederationBuilder, wt as ActorAliasMapper, x as Federatable, xt as NormalizedCircuitBreakerOptions, y as ConstructorWithTypeId, yt as CircuitBreakerState, z as FederationQueueOptions, zt as MediaUploaderCallback } from "./context-
|
|
5
|
+
import { $ as respondWithObject, $t as SendActivityError, A as InboxChallengePolicy, At as CollectionCursor, B as createFederation, Bt as NodeInfoDispatcher, C as FederationBenchmarkOptions, Ct as parseCircuitBreakerKvState, D as FederationStartQueueOptions, Dt as ActorKeyPairsDispatcher, E as FederationOptions, Et as ActorHandleMapper, F as PortableInboxForwardingOptions, Ft as HashlinkMediaDispatcher, G as TaskEnqueueOptions, Gt as OutboxListenerErrorHandler, H as createFederationBuilder, Ht as ObjectDispatcher, I as Rfc6570Expression, It as HashlinkMediaRequest, J as CreateExponentialBackoffPolicyOptions, Jt as PortableCollectionOwnerMapper, K as TaskHandler, Kt as OutboxPermanentFailureHandler, L as FederationKvPrefixes, Lt as InboxErrorHandler, M as MediaUploaderSetters, Mt as CustomCollectionCounter, N as ObjectCallbackSetters, Nt as CustomCollectionCursor, O as IdempotencyKeyCallback, Ot as AuthorizePredicate, P as OutboxListenerSetters, Pt as CustomCollectionDispatcher, Q as RespondWithObjectOptions, Qt as WebFingerLinksDispatcher, R as FederationOrigin, Rt as InboxListener, S as Federation, St as normalizeCircuitBreakerOptions, T as FederationFetchOptions, Tt as ActorDispatcher, U as TaskDefinition, Ut as OutboxErrorHandler, V as Message, Vt as ObjectAuthorizePredicate, W as TaskDefinitionOptions, Wt as OutboxListener, X as RetryPolicy, Xt as UnverifiedActivityHandler, Y as RetryContext, Yt as SharedInboxKeyDispatcher, Z as createExponentialBackoffPolicy, Zt as UnverifiedActivityReason, _ as ActorCallbackSetters, _t as CircuitBreakerKvState, a as GetObjectOptions, an as InboxAuthentication, at as InProcessMessageQueue, b as CustomCollectionCallbackSetters, bt as CircuitBreakerStateChange, c as IsSignedByAudienceOptions, cn as InboxRequestOutcome, ct as MessageQueueDepth, d as ParseUriResult, dt as ParallelMessageQueue, en as SenderKeyPair, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreaker, g as SendActivityOptionsForCollection, gt as CircuitBreakerFailurePolicy, h as SendActivityOptions, ht as CircuitBreakerCreateOptions, i as GetActorOptions, in as ActivityTransformer, it as isActorAuthenticated, j as InboxListenerSetters, jt as CollectionDispatcher, k as IdempotencyStrategy, kt as CollectionCounter, l as OutboxContext, ln as InboxRequestReport, lt as MessageQueueEnqueueOptions, m as RouteActivityOptions, mt as CircuitBreakerBeforeSendDecision, n as Context, nn as buildCollectionSynchronizationHeader, nt as InboxPrincipal, o as GetSignedKeyOptions, on as InboxJsonValue, ot as InProcessMessageQueueOptions, p as RequestContext, pt as CircuitBreakerActivityDrop, q as TaskRegistry, qt as PortableActorIdMapper, r as ForwardActivityOptions, rn as digest, rt as IsActorAuthenticatedOptions, s as InboxContext, sn as InboxRequestFinishedHandler, st as MessageQueue, t as ActorKeyPair, tn as PageItems, tt as InboxAuthenticationEvidence, u as ParseUriOptions, un as InboxListenerOptions, ut as MessageQueueListenOptions, v as CollectionCallbackSetters, vt as CircuitBreakerOptions, w as FederationBuilder, wt as ActorAliasMapper, x as Federatable, xt as NormalizedCircuitBreakerOptions, y as ConstructorWithTypeId, yt as CircuitBreakerState, z as FederationQueueOptions, zt as MediaUploaderCallback } from "./context-De6_qvb7.cjs";
|
|
6
6
|
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-B2mzK5tl.cjs";
|
|
7
7
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.cjs";
|
|
8
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-
|
|
8
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-oYNzF2VJ.cjs";
|
|
9
9
|
import { i as verifyPortableObject, n as VerifyPortableObjectOptions, r as VerifyPortableObjectResult, t as VerifyPortableObjectFailureReason } from "./mod-C1nT74IG.cjs";
|
|
10
10
|
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-YvA4Rk8J.cjs";
|
|
11
11
|
export * from "@fedify/vocab-runtime";
|
package/dist/mod.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { a as InboundService, c as OutboundService, d as Software, f as Usage, i as parseNodeInfo, l as Protocol, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "./client-3InDZbba.js";
|
|
3
3
|
import { A as AcceptSignatureParameters, B as VerifyPortableObjectProofOptions, C as VerifyRequestDetailedResult, D as verifyRequest, E as signRequest, F as validateAcceptSignature, G as signObject, H as VerifyProofOptions, I as CreateProofOptions, J as verifyProof, K as verifyObject, L as SignObjectOptions, M as formatAcceptSignature, N as fulfillAcceptSignature, O as verifyRequestDetailed, P as parseAcceptSignature, R as VerifyObjectOptions, S as SignRequestOptions, T as VerifyRequestOptions, U as createProof, V as VerifyPortableObjectProofResult, W as hasProofLike, _ as InboxVerificationKey, a as KeyCache, b as HttpMessageSignaturesSpecDeterminer, c as fetchKeyDetailed, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, i as FetchKeyResult, j as FulfillAcceptSignatureResult, k as AcceptSignatureMember, l as generateCryptoKeyPair, m as InboxSignatureIdentity, n as FetchKeyErrorResult, o as exportJwk, p as InboxSignatureFailureReason, q as verifyPortableObjectProof, r as FetchKeyOptions, s as fetchKey, t as FetchKeyDetailedResult, u as importJwk, w as VerifyRequestFailureReason, x as Rfc9421SignRequestOptions, y as HttpMessageSignaturesSpec, z as VerifyPortableObjectProofFailureReason } from "./key-DbLNT-vA.js";
|
|
4
4
|
import { a as VerifySignatureOptions, c as detachSignature, d as verifyJsonLd, f as verifySignature, g as getKeyOwner, h as doesActorOwnKey, i as VerifyJsonLdOptions, l as hasSignatureLike, m as GetKeyOwnerOptions, o as attachSignature, p as DoesActorOwnKeyOptions, r as SignJsonLdOptions, s as createSignature, t as CreateSignatureOptions, u as signJsonLd } from "./ld-Inagww4R.js";
|
|
5
|
-
import { $ as respondWithObject, $t as SendActivityError, A as InboxChallengePolicy, At as CollectionCursor, B as createFederation, Bt as NodeInfoDispatcher, C as FederationBenchmarkOptions, Ct as parseCircuitBreakerKvState, D as FederationStartQueueOptions, Dt as ActorKeyPairsDispatcher, E as FederationOptions, Et as ActorHandleMapper, F as PortableInboxForwardingOptions, Ft as HashlinkMediaDispatcher, G as TaskEnqueueOptions, Gt as OutboxListenerErrorHandler, H as createFederationBuilder, Ht as ObjectDispatcher, I as Rfc6570Expression, It as HashlinkMediaRequest, J as CreateExponentialBackoffPolicyOptions, Jt as PortableCollectionOwnerMapper, K as TaskHandler, Kt as OutboxPermanentFailureHandler, L as FederationKvPrefixes, Lt as InboxErrorHandler, M as MediaUploaderSetters, Mt as CustomCollectionCounter, N as ObjectCallbackSetters, Nt as CustomCollectionCursor, O as IdempotencyKeyCallback, Ot as AuthorizePredicate, P as OutboxListenerSetters, Pt as CustomCollectionDispatcher, Q as RespondWithObjectOptions, Qt as WebFingerLinksDispatcher, R as FederationOrigin, Rt as InboxListener, S as Federation, St as normalizeCircuitBreakerOptions, T as FederationFetchOptions, Tt as ActorDispatcher, U as TaskDefinition, Ut as OutboxErrorHandler, V as Message, Vt as ObjectAuthorizePredicate, W as TaskDefinitionOptions, Wt as OutboxListener, X as RetryPolicy, Xt as UnverifiedActivityHandler, Y as RetryContext, Yt as SharedInboxKeyDispatcher, Z as createExponentialBackoffPolicy, Zt as UnverifiedActivityReason, _ as ActorCallbackSetters, _t as CircuitBreakerKvState, a as GetObjectOptions, an as InboxAuthentication, at as InProcessMessageQueue, b as CustomCollectionCallbackSetters, bt as CircuitBreakerStateChange, c as IsSignedByAudienceOptions, cn as InboxRequestOutcome, ct as MessageQueueDepth, d as ParseUriResult, dt as ParallelMessageQueue, en as SenderKeyPair, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreaker, g as SendActivityOptionsForCollection, gt as CircuitBreakerFailurePolicy, h as SendActivityOptions, ht as CircuitBreakerCreateOptions, i as GetActorOptions, in as ActivityTransformer, it as isActorAuthenticated, j as InboxListenerSetters, jt as CollectionDispatcher, k as IdempotencyStrategy, kt as CollectionCounter, l as OutboxContext, ln as InboxRequestReport, lt as MessageQueueEnqueueOptions, m as RouteActivityOptions, mt as CircuitBreakerBeforeSendDecision, n as Context, nn as buildCollectionSynchronizationHeader, nt as InboxPrincipal, o as GetSignedKeyOptions, on as InboxJsonValue, ot as InProcessMessageQueueOptions, p as RequestContext, pt as CircuitBreakerActivityDrop, q as TaskRegistry, qt as PortableActorIdMapper, r as ForwardActivityOptions, rn as digest, rt as IsActorAuthenticatedOptions, s as InboxContext, sn as InboxRequestFinishedHandler, st as MessageQueue, t as ActorKeyPair, tn as PageItems, tt as InboxAuthenticationEvidence, u as ParseUriOptions, un as InboxListenerOptions, ut as MessageQueueListenOptions, v as CollectionCallbackSetters, vt as CircuitBreakerOptions, w as FederationBuilder, wt as ActorAliasMapper, x as Federatable, xt as NormalizedCircuitBreakerOptions, y as ConstructorWithTypeId, yt as CircuitBreakerState, z as FederationQueueOptions, zt as MediaUploaderCallback } from "./context-
|
|
5
|
+
import { $ as respondWithObject, $t as SendActivityError, A as InboxChallengePolicy, At as CollectionCursor, B as createFederation, Bt as NodeInfoDispatcher, C as FederationBenchmarkOptions, Ct as parseCircuitBreakerKvState, D as FederationStartQueueOptions, Dt as ActorKeyPairsDispatcher, E as FederationOptions, Et as ActorHandleMapper, F as PortableInboxForwardingOptions, Ft as HashlinkMediaDispatcher, G as TaskEnqueueOptions, Gt as OutboxListenerErrorHandler, H as createFederationBuilder, Ht as ObjectDispatcher, I as Rfc6570Expression, It as HashlinkMediaRequest, J as CreateExponentialBackoffPolicyOptions, Jt as PortableCollectionOwnerMapper, K as TaskHandler, Kt as OutboxPermanentFailureHandler, L as FederationKvPrefixes, Lt as InboxErrorHandler, M as MediaUploaderSetters, Mt as CustomCollectionCounter, N as ObjectCallbackSetters, Nt as CustomCollectionCursor, O as IdempotencyKeyCallback, Ot as AuthorizePredicate, P as OutboxListenerSetters, Pt as CustomCollectionDispatcher, Q as RespondWithObjectOptions, Qt as WebFingerLinksDispatcher, R as FederationOrigin, Rt as InboxListener, S as Federation, St as normalizeCircuitBreakerOptions, T as FederationFetchOptions, Tt as ActorDispatcher, U as TaskDefinition, Ut as OutboxErrorHandler, V as Message, Vt as ObjectAuthorizePredicate, W as TaskDefinitionOptions, Wt as OutboxListener, X as RetryPolicy, Xt as UnverifiedActivityHandler, Y as RetryContext, Yt as SharedInboxKeyDispatcher, Z as createExponentialBackoffPolicy, Zt as UnverifiedActivityReason, _ as ActorCallbackSetters, _t as CircuitBreakerKvState, a as GetObjectOptions, an as InboxAuthentication, at as InProcessMessageQueue, b as CustomCollectionCallbackSetters, bt as CircuitBreakerStateChange, c as IsSignedByAudienceOptions, cn as InboxRequestOutcome, ct as MessageQueueDepth, d as ParseUriResult, dt as ParallelMessageQueue, en as SenderKeyPair, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreaker, g as SendActivityOptionsForCollection, gt as CircuitBreakerFailurePolicy, h as SendActivityOptions, ht as CircuitBreakerCreateOptions, i as GetActorOptions, in as ActivityTransformer, it as isActorAuthenticated, j as InboxListenerSetters, jt as CollectionDispatcher, k as IdempotencyStrategy, kt as CollectionCounter, l as OutboxContext, ln as InboxRequestReport, lt as MessageQueueEnqueueOptions, m as RouteActivityOptions, mt as CircuitBreakerBeforeSendDecision, n as Context, nn as buildCollectionSynchronizationHeader, nt as InboxPrincipal, o as GetSignedKeyOptions, on as InboxJsonValue, ot as InProcessMessageQueueOptions, p as RequestContext, pt as CircuitBreakerActivityDrop, q as TaskRegistry, qt as PortableActorIdMapper, r as ForwardActivityOptions, rn as digest, rt as IsActorAuthenticatedOptions, s as InboxContext, sn as InboxRequestFinishedHandler, st as MessageQueue, t as ActorKeyPair, tn as PageItems, tt as InboxAuthenticationEvidence, u as ParseUriOptions, un as InboxListenerOptions, ut as MessageQueueListenOptions, v as CollectionCallbackSetters, vt as CircuitBreakerOptions, w as FederationBuilder, wt as ActorAliasMapper, x as Federatable, xt as NormalizedCircuitBreakerOptions, y as ConstructorWithTypeId, yt as CircuitBreakerState, z as FederationQueueOptions, zt as MediaUploaderCallback } from "./context-TVf3fdlB.js";
|
|
6
6
|
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "./kv-B2mzK5tl.js";
|
|
7
7
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./compat/mod.js";
|
|
8
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-
|
|
8
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "./mod-xr6CN9Vz.js";
|
|
9
9
|
import { i as verifyPortableObject, n as VerifyPortableObjectOptions, r as VerifyPortableObjectResult, t as VerifyPortableObjectFailureReason } from "./mod-B4kBw1-8.js";
|
|
10
10
|
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./mod-B7j30IQf.js";
|
|
11
11
|
export * from "@fedify/vocab-runtime";
|
package/dist/mod.js
CHANGED
|
@@ -3,11 +3,11 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "./rolldown-runtime-BC-Eo5Mj.js";
|
|
4
4
|
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-DAtXl_Kc.js";
|
|
5
5
|
import "./compat/mod.js";
|
|
6
|
-
import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "./http-
|
|
7
|
-
import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "./middleware-
|
|
6
|
+
import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "./http-pp-ezSve.js";
|
|
7
|
+
import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "./middleware-BkZ-V26C.js";
|
|
8
8
|
import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-DUjZb4i6.js";
|
|
9
|
-
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-
|
|
10
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-
|
|
9
|
+
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-CG03LGR1.js";
|
|
10
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-C30xcebA.js";
|
|
11
11
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError } from "./federation/mod.js";
|
|
12
12
|
import "./nodeinfo/mod.js";
|
|
13
13
|
import "./runtime/mod.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { r as createRequestContext } from "../context-
|
|
4
|
+
import { r as createRequestContext } from "../context-A-Nde3u-.mjs";
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
|
-
import { D as handleNodeInfoJrd, E as handleNodeInfo, o as createFederation } from "../middleware-
|
|
8
|
+
import { D as handleNodeInfoJrd, E as handleNodeInfo, o as createFederation } from "../middleware-CM2qToci.mjs";
|
|
9
9
|
import { test } from "@fedify/fixture";
|
|
10
10
|
//#region src/nodeinfo/handler.test.ts
|
|
11
11
|
test("handleNodeInfo()", async () => {
|
|
@@ -2,10 +2,10 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { d as isPortableUri, l as isPortableId, n as getCanonicalPortableId, p as isSamePublicKey$1, s as isCompatibleKeyId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
|
-
import { n as version, t as name } from "./deno-
|
|
5
|
+
import { n as version, t as name } from "./deno-CsxrXtWa.mjs";
|
|
6
6
|
import { i as parseKeyOwnerEvidence, r as getVerifiedKeyOwnerEvidence } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
7
|
-
import { O as verifyKeyOwnership, S as fetchActorDocument, x as exportJwk } from "./ld-
|
|
8
|
-
import { n as resolvePortableActorKey, t as fetchPortableGatewayKey } from "./portable-key-
|
|
7
|
+
import { O as verifyKeyOwnership, S as fetchActorDocument, x as exportJwk } from "./ld-DjN0ClIo.mjs";
|
|
8
|
+
import { n as resolvePortableActorKey, t as fetchPortableGatewayKey } from "./portable-key-CH5N_5yl.mjs";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
|
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { $ as getVerifiedKeyOwnerEvidence, C as verifyPortableObjectProofWithRoot, Dt as getCanonicalPortableId, Ft as isPortableUri, G as fetchActorDocument, Lt as isSamePublicKey$1, Mt as isCompatibleKeyId, Nt as isPortableId, Rt as name, W as exportJwk, Z as verifyKeyOwnership, et as parseKeyOwnerEvidence, l as fetchPortableGatewayKey, u as resolvePortableActorKey, x as verifyPortableObjectProof, zt as version } from "./http-
|
|
3
|
+
import { $ as getVerifiedKeyOwnerEvidence, C as verifyPortableObjectProofWithRoot, Dt as getCanonicalPortableId, Ft as isPortableUri, G as fetchActorDocument, Lt as isSamePublicKey$1, Mt as isCompatibleKeyId, Nt as isPortableId, Rt as name, W as exportJwk, Z as verifyKeyOwnership, et as parseKeyOwnerEvidence, l as fetchPortableGatewayKey, u as resolvePortableActorKey, x as verifyPortableObjectProof, zt as version } from "./http-pp-ezSve.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { CollectionPage, CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
|
|
6
6
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
|
-
const require_http = require("./http-
|
|
2
|
+
const require_http = require("./http-DXinHD8N.cjs");
|
|
3
3
|
let _logtape_logtape = require("@logtape/logtape");
|
|
4
4
|
let _fedify_vocab = require("@fedify/vocab");
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as version, t as name } from "./deno-
|
|
5
|
-
import { d as verifyPortableObjectProof, p as verifyPortableObjectProofWithRoot } from "./proof-
|
|
4
|
+
import { n as version, t as name } from "./deno-CsxrXtWa.mjs";
|
|
5
|
+
import { d as verifyPortableObjectProof, p as verifyPortableObjectProofWithRoot } from "./proof-WYcq-_qG.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { CollectionPage, Object as Object$1, isActor } from "@fedify/vocab";
|
|
8
8
|
import { trace } from "@opentelemetry/api";
|
|
@@ -2,7 +2,7 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { a as getRawCanonicalPortableId, c as isPortableActorDocument, d as isPortableUri, n as getCanonicalPortableId, p as isSamePublicKey } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
|
-
import { p as verifyPortableObjectProofWithRoot } from "./proof-
|
|
5
|
+
import { p as verifyPortableObjectProofWithRoot } from "./proof-WYcq-_qG.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { CryptographicKey, Multikey, Object as Object$1 } from "@fedify/vocab";
|
|
8
8
|
import { FetchError, formatIri, getDocumentLoader, isGatewayUrl, parseIri, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|
|
@@ -3,9 +3,9 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { i as getPortableDid, l as isPortableId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation, i as triedKey, n as observeCheck, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-
|
|
8
|
-
import { C as fetchKey, D as validateCryptoKey, b as bypassKeyCacheReads, c as getNormalizationContextLoader } from "./ld-
|
|
6
|
+
import { n as version, t as name } from "./deno-CsxrXtWa.mjs";
|
|
7
|
+
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-CLY7puRu.mjs";
|
|
8
|
+
import { C as fetchKey, D as validateCryptoKey, b as bypassKeyCacheReads, c as getNormalizationContextLoader } from "./ld-DjN0ClIo.mjs";
|
|
9
9
|
import { n as preloadedOnlyDocumentLoader } from "./public-audience--klBIOk1.mjs";
|
|
10
10
|
import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-4IJqPYos.mjs";
|
|
11
11
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -2,9 +2,9 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { d as isPortableUri } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
|
-
import { n as version, t as name } from "./deno-
|
|
6
|
-
import { n as getDurationMs, r as getFederationMetrics } from "./metrics-
|
|
7
|
-
import { r as doubleKnockScoped } from "./http-
|
|
5
|
+
import { n as version, t as name } from "./deno-CsxrXtWa.mjs";
|
|
6
|
+
import { n as getDurationMs, r as getFederationMetrics } from "./metrics-CLY7puRu.mjs";
|
|
7
|
+
import { r as doubleKnockScoped } from "./http-CVDBHMLY.mjs";
|
|
8
8
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { FetchError, UrlError, canonicalizePortableUri, getFe34Origin, isGatewayUrl, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|
|
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
|
-
import { a as inspectCompoundPortableObjectApplicability, n as discoverCompoundProofDocuments } from "../compound-proof-
|
|
6
|
+
import { a as inspectCompoundPortableObjectApplicability, n as discoverCompoundProofDocuments } from "../compound-proof-CuPaRl9U.mjs";
|
|
7
7
|
import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
|
|
8
8
|
import { test } from "@fedify/fixture";
|
|
9
9
|
//#region src/sig/compound-proof-discovery.test.ts
|
|
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
|
-
import { a as inspectCompoundPortableObjectApplicability, i as findUnsupportedCompoundProofShape, t as containsCompoundPortableObject } from "../compound-proof-
|
|
6
|
+
import { a as inspectCompoundPortableObjectApplicability, i as findUnsupportedCompoundProofShape, t as containsCompoundPortableObject } from "../compound-proof-CuPaRl9U.mjs";
|
|
7
7
|
import { test } from "@fedify/fixture";
|
|
8
8
|
//#region src/sig/compound-proof-producer.test.ts
|
|
9
9
|
const portableId = "ap+ef61://did:key:z6MkAlice/objects/1";
|