@fedify/fedify 2.0.0-pr.451.1731 → 2.0.0-pr.457.1754
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/README.md +3 -0
- package/dist/{actor-GwnlqPRv.js → actor--EIM8WJq.js} +1 -1
- package/dist/{actor-CRQwUlsr.js → actor-BkClSt23.js} +185 -186
- package/dist/{actor-Ci-5y3ml.cjs → actor-C1V-Vbaa.cjs} +186 -187
- package/dist/{actor-Cd2CREO0.d.ts → actor-DqFajh9s.d.ts} +2 -2
- package/dist/{actor-DDhZuMGl.d.cts → actor-f2NtjyCg.d.cts} +2 -2
- package/dist/{builder-BflZmL4k.js → builder-Drp8J0wC.js} +3 -3
- package/dist/{client-Cle5j1T1.d.cts → client-94iWEfQa.d.cts} +1 -1
- package/dist/{client-Bkaw0_PR.d.ts → client-BsGzbnV-.d.ts} +1 -1
- package/dist/{client-DylapB-t.js → client-pY7-3icS.js} +1 -1
- package/dist/compat/mod.d.cts +11 -12
- package/dist/compat/mod.d.ts +11 -12
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-DqFifMwj.d.ts → context-DG0huGW-.d.ts} +26 -56
- package/dist/{context-BOYzcFSe.d.cts → context-DJ8aSy2Q.d.cts} +26 -56
- package/dist/{docloader-BpcE9hBI.js → docloader-BhDPeZk3.js} +4 -5
- package/dist/{esm-DjbC-dsH.js → esm-D2byLwNf.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.js +17 -17
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +9 -10
- package/dist/federation/mod.d.cts +11 -12
- package/dist/federation/mod.d.ts +11 -12
- package/dist/federation/mod.js +9 -10
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-BE7aFuqn.d.ts → http-BbO0ejuk.d.ts} +1 -1
- package/dist/{http-CCUJdi0H.js → http-CQraRgim.js} +2 -2
- package/dist/{http-BzsavjR2.js → http-ChVy_Zs1.js} +2 -2
- package/dist/{http-DtUGyvkU.cjs → http-Dc-3AhVQ.cjs} +5 -5
- package/dist/{http-B6SKO6NJ.d.cts → http-M8k5mKc0.d.cts} +1 -1
- package/dist/{inbox-DizLjfhC.js → inbox-c2HespXf.js} +1 -1
- package/dist/{key-De1MJH3k.js → key-DfjYEehd.js} +2 -2
- package/dist/{keycache-D2HiBv4F.js → keycache-Bqod49Je.js} +1 -1
- package/dist/{keys-B4ZjS1Ot.js → keys-DpfNqWw3.js} +1 -1
- package/dist/kv-cache--YUzf-BE.cjs +134 -0
- package/dist/kv-cache-BHyEN0Z7.js +122 -0
- package/dist/kv-cache-DN9pfMBe.js +94 -0
- package/dist/{ld-Dux3_Cw2.js → ld-DxH5pJEy.js} +2 -2
- package/dist/{lookup-Bep-EOgr.js → lookup-C5pO70ss.js} +188 -298
- package/dist/lookup-CHu82YNt.cjs +272 -0
- package/dist/{lookup-Bql--V-C.js → lookup-UlFMEz4S.js} +128 -60
- package/dist/middleware-BPWWS7Li.js +15 -0
- package/dist/middleware-BZRfF01Z.cjs +15 -0
- package/dist/{middleware-DrpnHeGO.cjs → middleware-BjvG3FSg.cjs} +18 -19
- package/dist/{middleware-D7tP9Tq6.js → middleware-CnVcyowb.js} +13 -13
- package/dist/middleware-d26uv3fL.js +26 -0
- package/dist/{middleware-BBTmHKGh.js → middleware-f2BqmeAn.js} +8 -9
- package/dist/{mod-CLKu6Uo_.d.cts → mod-0noXw66R.d.cts} +4 -4
- package/dist/{mod-DLIidI_j.d.ts → mod-B2iOw50L.d.ts} +2 -2
- package/dist/{mod-Cm97bAiT.d.ts → mod-B9M-8jm2.d.ts} +4 -4
- package/dist/{mod-CRENK2dd.d.ts → mod-BlVovdcy.d.ts} +2 -3
- package/dist/{mod-CaWbCg0N.d.ts → mod-BoHnwOCs.d.ts} +2 -2
- package/dist/{mod--K7l84wp.d.cts → mod-BxRCHTz-.d.cts} +2 -3
- package/dist/{mod-DuclhZjh.d.cts → mod-C58MZ7Wx.d.cts} +1 -1
- package/dist/{mod-D9XZsft2.d.cts → mod-DJcZDvjA.d.cts} +2 -2
- package/dist/{mod-COlOrmr9.d.cts → mod-DgdBYYa0.d.cts} +2 -2
- package/dist/{mod-CB80AlIA.d.ts → mod-Ds0mpFZU.d.ts} +1 -1
- package/dist/mod.cjs +13 -15
- package/dist/mod.d.cts +15 -16
- package/dist/mod.d.ts +16 -17
- package/dist/mod.js +14 -15
- package/dist/nodeinfo/client.test.js +4 -4
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -3
- package/dist/nodeinfo/mod.d.cts +2 -3
- package/dist/nodeinfo/mod.d.ts +2 -3
- package/dist/nodeinfo/mod.js +2 -3
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-dkg5OpSC.d.cts → owner-B4HbyP8s.d.cts} +2 -2
- package/dist/{owner-Zq8du9WO.js → owner-BqWkxhC_.js} +2 -2
- package/dist/{owner-CktUdA0h.d.ts → owner-kQRGVXG1.d.ts} +2 -2
- package/dist/{proof-0PY1LDZY.cjs → proof-DHEZDAfy.cjs} +7 -7
- package/dist/{proof-aIlK5BTc.js → proof-DKHqWkww.js} +3 -3
- package/dist/{proof-C5S_3hdJ.js → proof-DjnaYscE.js} +2 -2
- package/dist/{send-BbVnlsQO.js → send-DG2jH3Yb.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +5 -6
- package/dist/sig/mod.d.cts +5 -6
- package/dist/sig/mod.d.ts +5 -6
- package/dist/sig/mod.js +5 -6
- package/dist/sig/owner.test.js +6 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.d.ts +16 -72
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-BkidWE0N.js → testing-CUOkRXmb.js} +1 -1
- package/dist/{types-CXnyjUdK.js → types-BtUjyi5y.js} +1 -1
- package/dist/{types-BDNYgodm.cjs → types-CWgzGaqk.cjs} +3 -3
- package/dist/utils/docloader.test.js +9 -8
- package/dist/utils/kv-cache.test.js +4 -3
- package/dist/utils/mod.cjs +5 -7
- package/dist/utils/mod.d.cts +5 -6
- package/dist/utils/mod.d.ts +5 -6
- package/dist/utils/mod.js +6 -7
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -4
- package/dist/vocab/mod.d.cts +3 -4
- package/dist/vocab/mod.d.ts +3 -4
- package/dist/vocab/mod.js +3 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-Dapemq3v.cjs → vocab-DWCgeSMU.cjs} +3 -4
- package/dist/{vocab-BiKK7m2H.js → vocab-HZjpFucb.js} +2 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +2 -3
- package/dist/webfinger/mod.d.cts +1 -2
- package/dist/webfinger/mod.d.ts +1 -2
- package/dist/webfinger/mod.js +2 -3
- package/dist/x/cfworkers.d.cts +2 -2
- package/dist/x/cfworkers.d.ts +2 -2
- package/dist/x/cfworkers.test.js +2 -2
- package/dist/x/hono.d.cts +10 -11
- package/dist/x/hono.d.ts +10 -11
- package/dist/x/sveltekit.d.cts +10 -11
- package/dist/x/sveltekit.d.ts +10 -11
- package/package.json +4 -5
- package/dist/kv-cache-3VK2-wq_.cjs +0 -4279
- package/dist/kv-cache-DNvS-egZ.js +0 -4236
- package/dist/kv-cache-rR-Cnl95.js +0 -4267
- package/dist/lookup-BmGuy-Ps.cjs +0 -210
- package/dist/middleware-BUZSGsQH.js +0 -16
- package/dist/middleware-BusTq7Js.cjs +0 -16
- package/dist/middleware-tZdLtCWz.js +0 -26
- package/dist/request-BbHkedIU.d.cts +0 -35
- package/dist/request-Bc5CHBqO.cjs +0 -208
- package/dist/request-C0Ags1gQ.js +0 -184
- package/dist/request-U1t6zZtk.d.ts +0 -39
- package/dist/utils/request.test.d.ts +0 -3
- package/dist/utils/request.test.js +0 -48
- package/dist/utils/url.test.d.ts +0 -3
- package/dist/utils/url.test.js +0 -41
- /package/dist/{federation-DOuZpcAw.cjs → federation-CRpdnOMS.cjs} +0 -0
- /package/dist/{federation-pZJsapBn.js → federation-jcR8-ZxP.js} +0 -0
- /package/dist/{kv-Dt06smFt.d.ts → kv-BKNZ-Tb-.d.ts} +0 -0
- /package/dist/{kv-BMKIFXNW.d.cts → kv-Bxr0Q87_.d.cts} +0 -0
- /package/dist/{mod-FZd39qVq.d.cts → mod-B-hUPT2N.d.cts} +0 -0
- /package/dist/{mod-B-ZQqbGe.d.ts → mod-CVgZgliM.d.ts} +0 -0
- /package/dist/{mod-CjsiSl7_.d.ts → mod-xIj-IT58.d.ts} +0 -0
- /package/dist/{mq-CPRJk4mZ.d.ts → mq-CUKlBw08.d.ts} +0 -0
- /package/dist/{mq-B7R1Q-M5.d.cts → mq-DcJPkXD5.d.cts} +0 -0
- /package/dist/{nodeinfo-B0UefMXO.js → nodeinfo-BnthBobC.js} +0 -0
- /package/dist/{nodeinfo-ByTd7HpT.cjs → nodeinfo-CdN0rEnZ.cjs} +0 -0
- /package/dist/{sig-Dx59zAgn.js → sig-C34-oHBl.js} +0 -0
- /package/dist/{sig-DE_NC_VQ.cjs → sig-YYj5tCnr.cjs} +0 -0
- /package/dist/{utils-BXMGcmqK.js → utils-D-Va7aXC.js} +0 -0
- /package/dist/{utils-B6yXfxAQ.cjs → utils-DyRU1gdZ.cjs} +0 -0
- /package/dist/{vocab-ivDKb439.d.ts → vocab-BCWe1Ih5.d.ts} +0 -0
- /package/dist/{vocab-DCBw44JZ.d.cts → vocab-CeDBzu-f.d.cts} +0 -0
- /package/dist/{webfinger-qG8R5jc3.js → webfinger-C72Y8lrh.js} +0 -0
- /package/dist/{webfinger-C949bxcD.cjs → webfinger-vAtLmxOF.cjs} +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import "./lookup-C5pO70ss.js";
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CnVcyowb.js";
|
8
|
+
import "./client-pY7-3icS.js";
|
9
|
+
import "./types-C2XVl6gj.js";
|
10
|
+
import "./actor--EIM8WJq.js";
|
11
|
+
import "./key-DfjYEehd.js";
|
12
|
+
import "./http-CQraRgim.js";
|
13
|
+
import "./ld-DxH5pJEy.js";
|
14
|
+
import "./owner-BqWkxhC_.js";
|
15
|
+
import "./proof-DjnaYscE.js";
|
16
|
+
import "./docloader-BhDPeZk3.js";
|
17
|
+
import "./kv-cache-DN9pfMBe.js";
|
18
|
+
import "./inbox-c2HespXf.js";
|
19
|
+
import "./builder-Drp8J0wC.js";
|
20
|
+
import "./collection-BzWsN9pB.js";
|
21
|
+
import "./keycache-Bqod49Je.js";
|
22
|
+
import "./negotiation-C4nFufNk.js";
|
23
|
+
import "./retry-CfF8Gn4d.js";
|
24
|
+
import "./send-DG2jH3Yb.js";
|
25
|
+
|
26
|
+
export { FederationImpl };
|
@@ -3,14 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
6
|
-
import { deno_default } from "./
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import { lookupObject, traverseCollection } from "./vocab-BiKK7m2H.js";
|
6
|
+
import { deno_default, lookupWebFinger } from "./lookup-UlFMEz4S.js";
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-BkClSt23.js";
|
8
|
+
import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-ChVy_Zs1.js";
|
9
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DKHqWkww.js";
|
10
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-BtUjyi5y.js";
|
11
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-BHyEN0Z7.js";
|
12
|
+
import { lookupObject, traverseCollection } from "./vocab-HZjpFucb.js";
|
14
13
|
import { getLogger, withContext } from "@logtape/logtape";
|
15
14
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
16
15
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
@@ -339,7 +338,7 @@ var FederationBuilderImpl = class {
|
|
339
338
|
this.collectionTypeIds = {};
|
340
339
|
}
|
341
340
|
async build(options) {
|
342
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
341
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-BPWWS7Li.js");
|
343
342
|
const f = new FederationImpl$1(options);
|
344
343
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
345
344
|
f.router = this.router.clone();
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
2
|
-
import { KvKey, KvStore } from "./kv-
|
1
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-M8k5mKc0.cjs";
|
2
|
+
import { KvKey, KvStore } from "./kv-Bxr0Q87_.cjs";
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
5
5
|
|
@@ -85,12 +85,12 @@ interface KvCacheParameters {
|
|
85
85
|
/**
|
86
86
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
87
87
|
* where `urlPattern` is either a string, a {@link URL}, or
|
88
|
-
* a {@link URLPattern} and `duration` is a {@link Temporal.
|
88
|
+
* a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
|
89
89
|
* The `duration` is allowed to be at most 30 days.
|
90
90
|
*
|
91
91
|
* By default, 5 minutes for all URLs.
|
92
92
|
*/
|
93
|
-
rules?: [string | URL | URLPattern, Temporal.Duration][];
|
93
|
+
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
94
94
|
}
|
95
95
|
/**
|
96
96
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
4
|
-
import { KeyCache } from "./http-
|
3
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-BCWe1Ih5.js";
|
4
|
+
import { KeyCache } from "./http-BbO0ejuk.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
4
|
-
import { KvKey, KvStore } from "./kv-
|
3
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-BbO0ejuk.js";
|
4
|
+
import { KvKey, KvStore } from "./kv-BKNZ-Tb-.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
7
7
|
|
@@ -87,12 +87,12 @@ interface KvCacheParameters {
|
|
87
87
|
/**
|
88
88
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
89
89
|
* where `urlPattern` is either a string, a {@link URL}, or
|
90
|
-
* a {@link URLPattern} and `duration` is a {@link Temporal.
|
90
|
+
* a {@link URLPattern} and `duration` is a {@link Temporal.DurationLike}.
|
91
91
|
* The `duration` is allowed to be at most 30 days.
|
92
92
|
*
|
93
93
|
* By default, 5 minutes for all URLs.
|
94
94
|
*/
|
95
|
-
rules?: [string | URL | URLPattern, Temporal.Duration][];
|
95
|
+
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
96
96
|
}
|
97
97
|
/**
|
98
98
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import {
|
4
|
-
import { Collection, Link, Object as Object$1 } from "./vocab-ivDKb439.js";
|
3
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-BCWe1Ih5.js";
|
5
4
|
import { TracerProvider } from "@opentelemetry/api";
|
6
|
-
import { DocumentLoader } from "@fedify/vocab-runtime";
|
5
|
+
import { DocumentLoader, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
7
6
|
|
8
7
|
//#region src/vocab/lookup.d.ts
|
9
8
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { Activity } from "./vocab-
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
3
|
+
import { Activity } from "./vocab-BCWe1Ih5.js";
|
4
|
+
import { ActivityTransformer, Context } from "./context-DG0huGW-.js";
|
5
5
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
7
7
|
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { DocumentLoader } from "@fedify/vocab-runtime";
|
1
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { DocumentLoader, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
4
3
|
import { TracerProvider } from "@opentelemetry/api";
|
5
4
|
|
6
5
|
//#region src/vocab/lookup.d.ts
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Activity } from "./vocab-
|
2
|
-
import { ActivityTransformer, Context } from "./context-
|
1
|
+
import { Activity } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { ActivityTransformer, Context } from "./context-DJ8aSy2Q.cjs";
|
3
3
|
|
4
4
|
//#region src/compat/transformers.d.ts
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
2
|
-
import { KeyCache } from "./http-
|
1
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { KeyCache } from "./http-M8k5mKc0.cjs";
|
3
3
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
5
5
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { GetUserAgentOptions } from "./request-U1t6zZtk.js";
|
4
3
|
import { TracerProvider } from "@opentelemetry/api";
|
4
|
+
import { GetUserAgentOptions } from "@fedify/vocab-runtime";
|
5
5
|
|
6
6
|
//#region src/webfinger/jrd.d.ts
|
7
7
|
/**
|
package/dist/mod.cjs
CHANGED
@@ -4,20 +4,19 @@
|
|
4
4
|
|
5
5
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
6
6
|
require('./compat-DmDDELst.cjs');
|
7
|
-
const
|
8
|
-
const require_actor = require('./actor-
|
9
|
-
const require_middleware = require('./middleware-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
14
|
-
const
|
15
|
-
const
|
16
|
-
|
17
|
-
require('./
|
18
|
-
require('./
|
19
|
-
require('./
|
20
|
-
require('./webfinger-C949bxcD.cjs');
|
7
|
+
const require_lookup = require('./lookup-CHu82YNt.cjs');
|
8
|
+
const require_actor = require('./actor-C1V-Vbaa.cjs');
|
9
|
+
const require_middleware = require('./middleware-BjvG3FSg.cjs');
|
10
|
+
const require_http = require('./http-Dc-3AhVQ.cjs');
|
11
|
+
const require_proof = require('./proof-DHEZDAfy.cjs');
|
12
|
+
const require_federation = require('./federation-CRpdnOMS.cjs');
|
13
|
+
const require_types = require('./types-CWgzGaqk.cjs');
|
14
|
+
const require_kv_cache = require('./kv-cache--YUzf-BE.cjs');
|
15
|
+
const require_vocab = require('./vocab-DWCgeSMU.cjs');
|
16
|
+
require('./nodeinfo-CdN0rEnZ.cjs');
|
17
|
+
require('./sig-YYj5tCnr.cjs');
|
18
|
+
require('./utils-DyRU1gdZ.cjs');
|
19
|
+
require('./webfinger-vAtLmxOF.cjs');
|
21
20
|
|
22
21
|
exports.Accept = require_actor.Accept;
|
23
22
|
exports.Activity = require_actor.Activity;
|
@@ -114,7 +113,6 @@ exports.getDefaultActivityTransformers = require_transformers.getDefaultActivity
|
|
114
113
|
exports.getKeyOwner = require_proof.getKeyOwner;
|
115
114
|
exports.getNodeInfo = require_types.getNodeInfo;
|
116
115
|
exports.getTypeId = require_actor.getTypeId;
|
117
|
-
exports.getUserAgent = require_request.getUserAgent;
|
118
116
|
exports.importJwk = require_http.importJwk;
|
119
117
|
exports.isActor = require_actor.isActor;
|
120
118
|
exports.isFediverseHandle = require_vocab.isFediverseHandle;
|
package/dist/mod.d.cts
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import
|
1
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-94iWEfQa.cjs";
|
2
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-CeDBzu-f.cjs";
|
3
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-f2NtjyCg.cjs";
|
4
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-M8k5mKc0.cjs";
|
5
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-B4HbyP8s.cjs";
|
6
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BxRCHTz-.cjs";
|
7
|
+
import { ResourceDescriptor, lookupWebFinger } from "./mod-C58MZ7Wx.cjs";
|
8
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-DJ8aSy2Q.cjs";
|
9
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-Bxr0Q87_.cjs";
|
10
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DcJPkXD5.cjs";
|
11
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DJcZDvjA.cjs";
|
12
|
+
import "./mod-B-hUPT2N.cjs";
|
13
13
|
import "./mod-C2tOeRkN.cjs";
|
14
|
-
import "./mod-
|
15
|
-
import {
|
16
|
-
|
17
|
-
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
14
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DgdBYYa0.cjs";
|
15
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-0noXw66R.cjs";
|
16
|
+
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.d.ts
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import
|
15
|
-
import "./mod-
|
16
|
-
import "./mod-
|
17
|
-
import {
|
18
|
-
|
19
|
-
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
3
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-BsGzbnV-.js";
|
4
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-BCWe1Ih5.js";
|
5
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-DqFajh9s.js";
|
6
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-BbO0ejuk.js";
|
7
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-kQRGVXG1.js";
|
8
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BlVovdcy.js";
|
9
|
+
import { ResourceDescriptor, lookupWebFinger } from "./mod-Ds0mpFZU.js";
|
10
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-DG0huGW-.js";
|
11
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-BKNZ-Tb-.js";
|
12
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-CUKlBw08.js";
|
13
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-BoHnwOCs.js";
|
14
|
+
import "./mod-CVgZgliM.js";
|
15
|
+
import "./mod-xIj-IT58.js";
|
16
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-B2iOw50L.js";
|
17
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-B9M-8jm2.js";
|
18
|
+
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,19 +4,18 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
6
6
|
import "./compat-nxUqe4Z-.js";
|
7
|
-
import {
|
8
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "./actor-
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import
|
17
|
-
import "./
|
18
|
-
import "./
|
19
|
-
import "./
|
20
|
-
import "./webfinger-qG8R5jc3.js";
|
7
|
+
import { lookupWebFinger } from "./lookup-UlFMEz4S.js";
|
8
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "./actor-BkClSt23.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-f2BqmeAn.js";
|
10
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-ChVy_Zs1.js";
|
11
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DKHqWkww.js";
|
12
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-jcR8-ZxP.js";
|
13
|
+
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-BtUjyi5y.js";
|
14
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-BHyEN0Z7.js";
|
15
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-HZjpFucb.js";
|
16
|
+
import "./nodeinfo-BnthBobC.js";
|
17
|
+
import "./sig-C34-oHBl.js";
|
18
|
+
import "./utils-D-Va7aXC.js";
|
19
|
+
import "./webfinger-C72Y8lrh.js";
|
21
20
|
|
22
|
-
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, InProcessMessageQueue, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, MemoryKvStore, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, ParallelMessageQueue, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Router, RouterError, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId,
|
21
|
+
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, InProcessMessageQueue, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, MemoryKvStore, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, ParallelMessageQueue, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Router, RouterError, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
@@ -3,17 +3,17 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-pY7-3icS.js";
|
11
|
+
import { test } from "../testing-CUOkRXmb.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
15
15
|
import "../assert_not_equals-C80BG-_5.js";
|
16
|
-
import { esm_default } from "../esm-
|
16
|
+
import { esm_default } from "../esm-D2byLwNf.js";
|
17
17
|
|
18
18
|
//#region src/nodeinfo/client.test.ts
|
19
19
|
test("getNodeInfo()", async (t) => {
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
12
|
-
import "../client-
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CnVcyowb.js";
|
12
|
+
import "../client-pY7-3icS.js";
|
13
13
|
import "../types-C2XVl6gj.js";
|
14
|
-
import "../actor
|
15
|
-
import "../key-
|
16
|
-
import "../http-
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor--EIM8WJq.js";
|
15
|
+
import "../key-DfjYEehd.js";
|
16
|
+
import "../http-CQraRgim.js";
|
17
|
+
import "../ld-DxH5pJEy.js";
|
18
|
+
import "../owner-BqWkxhC_.js";
|
19
|
+
import "../proof-DjnaYscE.js";
|
20
|
+
import "../docloader-BhDPeZk3.js";
|
21
|
+
import "../kv-cache-DN9pfMBe.js";
|
22
|
+
import "../inbox-c2HespXf.js";
|
23
|
+
import "../builder-Drp8J0wC.js";
|
24
24
|
import "../collection-BzWsN9pB.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-Bqod49Je.js";
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-DG2jH3Yb.js";
|
29
|
+
import { createRequestContext, test } from "../testing-CUOkRXmb.js";
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/nodeinfo/mod.cjs
CHANGED
@@ -2,9 +2,8 @@
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
|
-
require('../
|
6
|
-
|
7
|
-
require('../nodeinfo-ByTd7HpT.cjs');
|
5
|
+
const require_types = require('../types-CWgzGaqk.cjs');
|
6
|
+
require('../nodeinfo-CdN0rEnZ.cjs');
|
8
7
|
|
9
8
|
exports.getNodeInfo = require_types.getNodeInfo;
|
10
9
|
exports.nodeInfoToJson = require_types.nodeInfoToJson;
|
package/dist/nodeinfo/mod.d.cts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import "../
|
2
|
-
import
|
3
|
-
import "../mod-FZd39qVq.cjs";
|
1
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-94iWEfQa.cjs";
|
2
|
+
import "../mod-C2tOeRkN.cjs";
|
4
3
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
package/dist/nodeinfo/mod.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../
|
4
|
-
import
|
5
|
-
import "../mod-B-ZQqbGe.js";
|
3
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-BsGzbnV-.js";
|
4
|
+
import "../mod-xIj-IT58.js";
|
6
5
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
package/dist/nodeinfo/mod.js
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../
|
6
|
-
import
|
7
|
-
import "../nodeinfo-B0UefMXO.js";
|
5
|
+
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../types-BtUjyi5y.js";
|
6
|
+
import "../nodeinfo-BnthBobC.js";
|
8
7
|
|
9
8
|
export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { nodeInfoToJson } from "../types-C2XVl6gj.js";
|
11
|
-
import { test } from "../testing-
|
11
|
+
import { test } from "../testing-CUOkRXmb.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Activity, CryptographicKey } from "./vocab-
|
2
|
-
import { Actor } from "./actor-
|
1
|
+
import { Activity, CryptographicKey } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { Actor } from "./actor-f2NtjyCg.cjs";
|
3
3
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
5
5
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Object as Object$1 } from "./lookup-
|
7
|
-
import { isActor } from "./actor
|
6
|
+
import { CryptographicKey, Object as Object$1 } from "./lookup-C5pO70ss.js";
|
7
|
+
import { isActor } from "./actor--EIM8WJq.js";
|
8
8
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
9
9
|
import { trace } from "@opentelemetry/api";
|
10
10
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { Activity, CryptographicKey } from "./vocab-
|
4
|
-
import { Actor } from "./actor-
|
3
|
+
import { Activity, CryptographicKey } from "./vocab-BCWe1Ih5.js";
|
4
|
+
import { Actor } from "./actor-DqFajh9s.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
7
7
|
|