@fedify/fedify 1.9.0-dev.1689 → 1.9.0-dev.1723
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actor-Dpkqj5Dv.js → actor-Bck28wpR.js} +187 -187
- package/dist/{actor-DzdLVqkJ.js → actor-C0tREqah.js} +1 -1
- package/dist/{actor-CK94m0Yv.cjs → actor-DJB4Vcry.cjs} +187 -187
- package/dist/{authdocloader-4iBGWlQw.cjs → authdocloader-BGRNpmBY.cjs} +3 -3
- package/dist/{authdocloader-BVvTFQbi.js → authdocloader-CK0Xf-wR.js} +3 -3
- package/dist/{authdocloader-DdSBpn11.js → authdocloader-L79525JY.js} +3 -3
- package/dist/{builder-BR--hcb8.js → builder-CllNIJUW.js} +8 -8
- package/dist/{client-BoUqciR8.js → client-CqZUAIKM.js} +1 -1
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-CZorAkt8.d.ts → context-C51zGhGC.d.ts} +120 -87
- package/dist/{context-DCh96LcF.d.cts → context-Qnv814-p.d.cts} +120 -87
- package/dist/{docloader-Bui9z8Lb.cjs → docloader-8pZfzt96.cjs} +1 -1
- package/dist/{docloader-DyvW1gbN.js → docloader-C_tcUe9l.js} +1 -1
- package/dist/{esm-DMb2eQXG.js → esm-iiswZds0.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-C7nvEG1N.js → http-0NYYZxmW.js} +2 -2
- package/dist/{http-xsj5Fzwl.js → http-7RegzYNG.js} +3 -3
- package/dist/{http-BAaVL480.cjs → http-CEuXdReR.cjs} +3 -3
- package/dist/{inbox-DZNE3Jtq.js → inbox-CkIdV3Ev.js} +1 -1
- package/dist/{key-DqqCoLbc.cjs → key-B56sv4Fl.cjs} +2 -2
- package/dist/{key-DgZIZVqA.js → key-BLdgpIjx.js} +3 -3
- package/dist/{key-CbnQpdZy.js → key-BhGPiWUd.js} +2 -2
- package/dist/{key-DOPWTj2e.js → key-BwxOfVpT.js} +4 -4
- package/dist/{key-C25gGlmV.js → key-C9PF4hnE.js} +2 -2
- package/dist/key-CkQH1Uhs.cjs +10 -0
- package/dist/{keycache-CoMI1L_W.js → keycache-BTjERToa.js} +1 -1
- package/dist/{keys-CMahfArj.js → keys-BhcsCPhh.js} +1 -1
- package/dist/{ld-WZpO-MzE.js → ld-D0xNckDT.js} +2 -2
- package/dist/{lookup-D_w567L8.cjs → lookup-C6_F4vT5.cjs} +1 -1
- package/dist/{lookup-WoJkw8wY.js → lookup-Db2ZNRUd.js} +1 -1
- package/dist/{lookup-y6-PEpxS.js → lookup-xdEsBwwQ.js} +1 -1
- package/dist/middleware-BFhY5NjZ.js +26 -0
- package/dist/{middleware-Cj9WC_iX.js → middleware-BZJyUDXL.js} +36 -37
- package/dist/{middleware-CjgR6ayA.js → middleware-BeXOYZwa.js} +35 -36
- package/dist/{middleware-CWlrInU2.cjs → middleware-C9P1mSn_.cjs} +36 -37
- package/dist/middleware-CfpOEs0j.js +17 -0
- package/dist/middleware-QMPcx47j.cjs +17 -0
- package/dist/{mod-BojaEE1l.d.cts → mod-COTXAYRl.d.cts} +1 -1
- package/dist/{mod-tWXEItkO.d.ts → mod-o-hx_hU8.d.ts} +1 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +3 -3
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-CPBOVM7l.js → owner-gy5GU0xI.js} +2 -2
- package/dist/{proof-h0JvKPRP.js → proof-CfLS43th.js} +2 -2
- package/dist/{proof-CpmDDzvf.js → proof-DLRWN-8p.js} +3 -3
- package/dist/{proof-BLoRsaYR.cjs → proof-fpjWg11s.cjs} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-CD-m2vwX.js → send-GJbfneG0.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +119 -86
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DvTABhvG.js → testing-BWcU9Pfz.js} +2 -2
- package/dist/{type-BCazg_Pu.js → type-Dd-usiUJ.js} +186 -186
- package/dist/{types-BsM0mf3R.js → types-CkApr45E.js} +1 -1
- package/dist/{types-F8JMlP-f.cjs → types-DiAz6at6.cjs} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-C-qxDq1m.cjs → vocab-BCI9fICV.cjs} +3 -3
- package/dist/{vocab-DdTdRfBW.js → vocab-BZoa2e6N.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.cts +1 -1
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.d.cts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/key-CHU24Npw.cjs +0 -10
- package/dist/middleware-BYEKw_OJ.js +0 -17
- package/dist/middleware-DbxA0Z6o.js +0 -26
- package/dist/middleware-hTlyJu9R.cjs +0 -17
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-C_tcUe9l.js";
|
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-Bck28wpR.js";
|
|
8
|
+
import { lookupWebFinger } from "./lookup-Db2ZNRUd.js";
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-BhGPiWUd.js";
|
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-7RegzYNG.js";
|
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DLRWN-8p.js";
|
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-CkApr45E.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CK0Xf-wR.js";
|
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-BZoa2e6N.js";
|
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -344,7 +344,7 @@ var FederationBuilderImpl = class {
|
|
|
344
344
|
this.collectionTypeIds = {};
|
|
345
345
|
}
|
|
346
346
|
async build(options) {
|
|
347
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
347
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-CfpOEs0j.js");
|
|
348
348
|
const f = new FederationImpl$1(options);
|
|
349
349
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
350
350
|
f.router = this.router.clone();
|
|
@@ -797,11 +797,11 @@ var FederationBuilderImpl = class {
|
|
|
797
797
|
};
|
|
798
798
|
return setters;
|
|
799
799
|
}
|
|
800
|
-
setCollectionDispatcher(name,
|
|
801
|
-
return this.#setCustomCollectionDispatcher(name, "collection",
|
|
800
|
+
setCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
801
|
+
return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
|
|
802
802
|
}
|
|
803
|
-
setOrderedCollectionDispatcher(name,
|
|
804
|
-
return this.#setCustomCollectionDispatcher(name, "orderedCollection",
|
|
803
|
+
setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
804
|
+
return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
|
|
805
805
|
}
|
|
806
806
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
|
807
807
|
const strName = String(name);
|
|
@@ -1558,7 +1558,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Handles a custom collection request.
|
|
1560
1560
|
* @template TItem The type of items in the collection.
|
|
1561
|
-
* @template
|
|
1561
|
+
* @template TParam The parameter names of the requested URL.
|
|
1562
1562
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1563
1563
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1564
1564
|
* @param request The HTTP request.
|
|
@@ -1577,7 +1577,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Handles an ordered collection request.
|
|
1579
1579
|
* @template TItem The type of items in the collection.
|
|
1580
|
-
* @template
|
|
1580
|
+
* @template TParam The parameter names of the requested URL.
|
|
1581
1581
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1582
1582
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1583
1583
|
* @param request The HTTP request.
|
|
@@ -1598,7 +1598,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
1598
1598
|
* The main flow is on `getCollection`, `dispatch`.
|
|
1599
1599
|
*
|
|
1600
1600
|
* @template TItem The type of items in the collection.
|
|
1601
|
-
* @template
|
|
1601
|
+
* @template TParam The parameter names of the requested URL.
|
|
1602
1602
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
1603
1603
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1604
1604
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
@@ -1632,14 +1632,14 @@ var CustomCollectionHandler = class {
|
|
|
1632
1632
|
#collection = null;
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Creates a new CustomCollection instance.
|
|
1635
|
-
* @param
|
|
1636
|
-
* @param
|
|
1637
|
-
* @param
|
|
1638
|
-
* @param
|
|
1639
|
-
* @param
|
|
1640
|
-
* @param
|
|
1641
|
-
* @param
|
|
1642
|
-
* @param
|
|
1635
|
+
* @param name The name of the collection.
|
|
1636
|
+
* @param values The parameter values for the collection.
|
|
1637
|
+
* @param context The request context.
|
|
1638
|
+
* @param callbacks The collection callbacks.
|
|
1639
|
+
* @param tracerProvider The tracer provider for telemetry.
|
|
1640
|
+
* @param Collection The Collection constructor.
|
|
1641
|
+
* @param CollectionPage The CollectionPage constructor.
|
|
1642
|
+
* @param filterPredicate Optional filter predicate for items.
|
|
1643
1643
|
*/
|
|
1644
1644
|
constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
|
1645
1645
|
this.name = name;
|
|
@@ -1764,7 +1764,7 @@ var CustomCollectionHandler = class {
|
|
|
1764
1764
|
/**
|
|
1765
1765
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
|
1766
1766
|
* @param params Parameters including cursor and total items.
|
|
1767
|
-
* @returns
|
|
1767
|
+
* @returns A function that handles the span operation.
|
|
1768
1768
|
*/
|
|
1769
1769
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
|
1770
1770
|
try {
|
|
@@ -1785,23 +1785,23 @@ var CustomCollectionHandler = class {
|
|
|
1785
1785
|
};
|
|
1786
1786
|
/**
|
|
1787
1787
|
* Dispatches the collection request to get items.
|
|
1788
|
-
* @param
|
|
1789
|
-
* @returns
|
|
1788
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
|
1789
|
+
* @returns A promise that resolves to the page items.
|
|
1790
1790
|
*/
|
|
1791
1791
|
async dispatch(cursor = null) {
|
|
1792
1792
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
|
1793
1793
|
}
|
|
1794
1794
|
/**
|
|
1795
1795
|
* Filters the items in the collection.
|
|
1796
|
-
* @param
|
|
1797
|
-
* @returns
|
|
1796
|
+
* @param items The items to filter.
|
|
1797
|
+
* @returns The filtered items.
|
|
1798
1798
|
*/
|
|
1799
1799
|
filterItems(items) {
|
|
1800
1800
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
|
1801
1801
|
}
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Appends a cursor to the URL if it exists.
|
|
1804
|
-
* @param
|
|
1804
|
+
* @param cursor The cursor to append, or null/undefined.
|
|
1805
1805
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
|
1806
1806
|
*/
|
|
1807
1807
|
appendToUrl(cursor) {
|
|
@@ -1809,8 +1809,7 @@ var CustomCollectionHandler = class {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
/**
|
|
1811
1811
|
* Gets the stored collection or collection page.
|
|
1812
|
-
* @returns
|
|
1813
|
-
the collection or collection page.
|
|
1812
|
+
* @returns A promise that resolves to the collection or collection page.
|
|
1814
1813
|
*/
|
|
1815
1814
|
get collection() {
|
|
1816
1815
|
if (this.#collection === null) this.#collection = this.getCollection();
|
|
@@ -1818,8 +1817,8 @@ var CustomCollectionHandler = class {
|
|
|
1818
1817
|
}
|
|
1819
1818
|
/**
|
|
1820
1819
|
* Gets the total number of items in the collection.
|
|
1821
|
-
* @returns
|
|
1822
|
-
|
|
1820
|
+
* @returns A promise that resolves to the total items count,
|
|
1821
|
+
* or null if not available.
|
|
1823
1822
|
*/
|
|
1824
1823
|
get totalItems() {
|
|
1825
1824
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
|
@@ -1835,8 +1834,8 @@ var CustomCollectionHandler = class {
|
|
|
1835
1834
|
}
|
|
1836
1835
|
/**
|
|
1837
1836
|
* Gets the first cursor for pagination.
|
|
1838
|
-
* @returns
|
|
1839
|
-
or null if not available.
|
|
1837
|
+
* @returns A promise that resolves to the first cursor,
|
|
1838
|
+
* or null if not available.
|
|
1840
1839
|
*/
|
|
1841
1840
|
get firstCursor() {
|
|
1842
1841
|
const cursor = this.callbacks.firstCursor?.(this.context, this.values);
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
8
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-Dd-usiUJ.js";
|
|
7
|
+
import { getNodeInfo } from "./client-CqZUAIKM.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-xdEsBwwQ.js";
|
|
9
9
|
import { nodeInfoToJson } from "./types-BIgY6c-l.js";
|
|
10
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
11
|
-
import { verifyRequest } from "./http-
|
|
12
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
13
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
14
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
15
|
-
import { signObject, verifyObject } from "./proof-
|
|
16
|
-
import { routeActivity } from "./inbox-
|
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-C9PF4hnE.js";
|
|
11
|
+
import { verifyRequest } from "./http-0NYYZxmW.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-L79525JY.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-D0xNckDT.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-gy5GU0xI.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-CfLS43th.js";
|
|
16
|
+
import { routeActivity } from "./inbox-CkIdV3Ev.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-CllNIJUW.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-BTjERToa.js";
|
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-GJbfneG0.js";
|
|
22
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
23
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
24
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -905,7 +905,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
905
905
|
/**
|
|
906
906
|
* Handles a custom collection request.
|
|
907
907
|
* @template TItem The type of items in the collection.
|
|
908
|
-
* @template
|
|
908
|
+
* @template TParam The parameter names of the requested URL.
|
|
909
909
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
910
910
|
* @template TContextData The context data to pass to the `TContext`.
|
|
911
911
|
* @param request The HTTP request.
|
|
@@ -924,7 +924,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
924
924
|
/**
|
|
925
925
|
* Handles an ordered collection request.
|
|
926
926
|
* @template TItem The type of items in the collection.
|
|
927
|
-
* @template
|
|
927
|
+
* @template TParam The parameter names of the requested URL.
|
|
928
928
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
929
929
|
* @template TContextData The context data to pass to the `TContext`.
|
|
930
930
|
* @param request The HTTP request.
|
|
@@ -945,7 +945,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
945
945
|
* The main flow is on `getCollection`, `dispatch`.
|
|
946
946
|
*
|
|
947
947
|
* @template TItem The type of items in the collection.
|
|
948
|
-
* @template
|
|
948
|
+
* @template TParam The parameter names of the requested URL.
|
|
949
949
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
950
950
|
* @template TContextData The context data to pass to the `TContext`.
|
|
951
951
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
@@ -979,14 +979,14 @@ var CustomCollectionHandler = class {
|
|
|
979
979
|
#collection = null;
|
|
980
980
|
/**
|
|
981
981
|
* Creates a new CustomCollection instance.
|
|
982
|
-
* @param
|
|
983
|
-
* @param
|
|
984
|
-
* @param
|
|
985
|
-
* @param
|
|
986
|
-
* @param
|
|
987
|
-
* @param
|
|
988
|
-
* @param
|
|
989
|
-
* @param
|
|
982
|
+
* @param name The name of the collection.
|
|
983
|
+
* @param values The parameter values for the collection.
|
|
984
|
+
* @param context The request context.
|
|
985
|
+
* @param callbacks The collection callbacks.
|
|
986
|
+
* @param tracerProvider The tracer provider for telemetry.
|
|
987
|
+
* @param Collection The Collection constructor.
|
|
988
|
+
* @param CollectionPage The CollectionPage constructor.
|
|
989
|
+
* @param filterPredicate Optional filter predicate for items.
|
|
990
990
|
*/
|
|
991
991
|
constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
|
992
992
|
this.name = name;
|
|
@@ -1111,7 +1111,7 @@ var CustomCollectionHandler = class {
|
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
|
1113
1113
|
* @param params Parameters including cursor and total items.
|
|
1114
|
-
* @returns
|
|
1114
|
+
* @returns A function that handles the span operation.
|
|
1115
1115
|
*/
|
|
1116
1116
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
|
1117
1117
|
try {
|
|
@@ -1132,23 +1132,23 @@ var CustomCollectionHandler = class {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Dispatches the collection request to get items.
|
|
1135
|
-
* @param
|
|
1136
|
-
* @returns
|
|
1135
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
|
1136
|
+
* @returns A promise that resolves to the page items.
|
|
1137
1137
|
*/
|
|
1138
1138
|
async dispatch(cursor = null) {
|
|
1139
1139
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
|
1140
1140
|
}
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Filters the items in the collection.
|
|
1143
|
-
* @param
|
|
1144
|
-
* @returns
|
|
1143
|
+
* @param items The items to filter.
|
|
1144
|
+
* @returns The filtered items.
|
|
1145
1145
|
*/
|
|
1146
1146
|
filterItems(items) {
|
|
1147
1147
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Appends a cursor to the URL if it exists.
|
|
1151
|
-
* @param
|
|
1151
|
+
* @param cursor The cursor to append, or null/undefined.
|
|
1152
1152
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
|
1153
1153
|
*/
|
|
1154
1154
|
appendToUrl(cursor) {
|
|
@@ -1156,8 +1156,7 @@ var CustomCollectionHandler = class {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Gets the stored collection or collection page.
|
|
1159
|
-
* @returns
|
|
1160
|
-
the collection or collection page.
|
|
1159
|
+
* @returns A promise that resolves to the collection or collection page.
|
|
1161
1160
|
*/
|
|
1162
1161
|
get collection() {
|
|
1163
1162
|
if (this.#collection === null) this.#collection = this.getCollection();
|
|
@@ -1165,8 +1164,8 @@ var CustomCollectionHandler = class {
|
|
|
1165
1164
|
}
|
|
1166
1165
|
/**
|
|
1167
1166
|
* Gets the total number of items in the collection.
|
|
1168
|
-
* @returns
|
|
1169
|
-
|
|
1167
|
+
* @returns A promise that resolves to the total items count,
|
|
1168
|
+
* or null if not available.
|
|
1170
1169
|
*/
|
|
1171
1170
|
get totalItems() {
|
|
1172
1171
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
|
@@ -1182,8 +1181,8 @@ var CustomCollectionHandler = class {
|
|
|
1182
1181
|
}
|
|
1183
1182
|
/**
|
|
1184
1183
|
* Gets the first cursor for pagination.
|
|
1185
|
-
* @returns
|
|
1186
|
-
or null if not available.
|
|
1184
|
+
* @returns A promise that resolves to the first cursor,
|
|
1185
|
+
* or null if not available.
|
|
1187
1186
|
*/
|
|
1188
1187
|
get firstCursor() {
|
|
1189
1188
|
const cursor = this.callbacks.firstCursor?.(this.context, this.values);
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
6
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
|
7
|
-
const require_docloader = require('./docloader-
|
|
8
|
-
const require_actor = require('./actor-
|
|
9
|
-
const require_lookup = require('./lookup-
|
|
10
|
-
const require_key = require('./key-
|
|
11
|
-
const require_http = require('./http-
|
|
12
|
-
const require_proof = require('./proof-
|
|
13
|
-
const require_types = require('./types-
|
|
14
|
-
const require_authdocloader = require('./authdocloader-
|
|
15
|
-
const require_vocab = require('./vocab-
|
|
7
|
+
const require_docloader = require('./docloader-8pZfzt96.cjs');
|
|
8
|
+
const require_actor = require('./actor-DJB4Vcry.cjs');
|
|
9
|
+
const require_lookup = require('./lookup-C6_F4vT5.cjs');
|
|
10
|
+
const require_key = require('./key-B56sv4Fl.cjs');
|
|
11
|
+
const require_http = require('./http-CEuXdReR.cjs');
|
|
12
|
+
const require_proof = require('./proof-fpjWg11s.cjs');
|
|
13
|
+
const require_types = require('./types-DiAz6at6.cjs');
|
|
14
|
+
const require_authdocloader = require('./authdocloader-BGRNpmBY.cjs');
|
|
15
|
+
const require_vocab = require('./vocab-BCI9fICV.cjs');
|
|
16
16
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
17
17
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
18
18
|
const byte_encodings_hex = require_chunk.__toESM(require("byte-encodings/hex"));
|
|
@@ -345,7 +345,7 @@ var FederationBuilderImpl = class {
|
|
|
345
345
|
this.collectionTypeIds = {};
|
|
346
346
|
}
|
|
347
347
|
async build(options) {
|
|
348
|
-
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-
|
|
348
|
+
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-QMPcx47j.cjs"));
|
|
349
349
|
const f = new FederationImpl$1(options);
|
|
350
350
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
351
351
|
f.router = this.router.clone();
|
|
@@ -798,11 +798,11 @@ var FederationBuilderImpl = class {
|
|
|
798
798
|
};
|
|
799
799
|
return setters;
|
|
800
800
|
}
|
|
801
|
-
setCollectionDispatcher(name,
|
|
802
|
-
return this.#setCustomCollectionDispatcher(name, "collection",
|
|
801
|
+
setCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
802
|
+
return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
|
|
803
803
|
}
|
|
804
|
-
setOrderedCollectionDispatcher(name,
|
|
805
|
-
return this.#setCustomCollectionDispatcher(name, "orderedCollection",
|
|
804
|
+
setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
805
|
+
return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
|
|
806
806
|
}
|
|
807
807
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
|
808
808
|
const strName = String(name);
|
|
@@ -1559,7 +1559,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Handles a custom collection request.
|
|
1561
1561
|
* @template TItem The type of items in the collection.
|
|
1562
|
-
* @template
|
|
1562
|
+
* @template TParam The parameter names of the requested URL.
|
|
1563
1563
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1564
1564
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1565
1565
|
* @param request The HTTP request.
|
|
@@ -1578,7 +1578,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Handles an ordered collection request.
|
|
1580
1580
|
* @template TItem The type of items in the collection.
|
|
1581
|
-
* @template
|
|
1581
|
+
* @template TParam The parameter names of the requested URL.
|
|
1582
1582
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1583
1583
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1584
1584
|
* @param request The HTTP request.
|
|
@@ -1599,7 +1599,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
1599
1599
|
* The main flow is on `getCollection`, `dispatch`.
|
|
1600
1600
|
*
|
|
1601
1601
|
* @template TItem The type of items in the collection.
|
|
1602
|
-
* @template
|
|
1602
|
+
* @template TParam The parameter names of the requested URL.
|
|
1603
1603
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
1604
1604
|
* @template TContextData The context data to pass to the `TContext`.
|
|
1605
1605
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
@@ -1633,14 +1633,14 @@ var CustomCollectionHandler = class {
|
|
|
1633
1633
|
#collection = null;
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Creates a new CustomCollection instance.
|
|
1636
|
-
* @param
|
|
1637
|
-
* @param
|
|
1638
|
-
* @param
|
|
1639
|
-
* @param
|
|
1640
|
-
* @param
|
|
1641
|
-
* @param
|
|
1642
|
-
* @param
|
|
1643
|
-
* @param
|
|
1636
|
+
* @param name The name of the collection.
|
|
1637
|
+
* @param values The parameter values for the collection.
|
|
1638
|
+
* @param context The request context.
|
|
1639
|
+
* @param callbacks The collection callbacks.
|
|
1640
|
+
* @param tracerProvider The tracer provider for telemetry.
|
|
1641
|
+
* @param Collection The Collection constructor.
|
|
1642
|
+
* @param CollectionPage The CollectionPage constructor.
|
|
1643
|
+
* @param filterPredicate Optional filter predicate for items.
|
|
1644
1644
|
*/
|
|
1645
1645
|
constructor(name, values, context$2, callbacks, tracerProvider = __opentelemetry_api.trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
|
1646
1646
|
this.name = name;
|
|
@@ -1765,7 +1765,7 @@ var CustomCollectionHandler = class {
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
|
1767
1767
|
* @param params Parameters including cursor and total items.
|
|
1768
|
-
* @returns
|
|
1768
|
+
* @returns A function that handles the span operation.
|
|
1769
1769
|
*/
|
|
1770
1770
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
|
1771
1771
|
try {
|
|
@@ -1786,23 +1786,23 @@ var CustomCollectionHandler = class {
|
|
|
1786
1786
|
};
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Dispatches the collection request to get items.
|
|
1789
|
-
* @param
|
|
1790
|
-
* @returns
|
|
1789
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
|
1790
|
+
* @returns A promise that resolves to the page items.
|
|
1791
1791
|
*/
|
|
1792
1792
|
async dispatch(cursor = null) {
|
|
1793
1793
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
|
1794
1794
|
}
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Filters the items in the collection.
|
|
1797
|
-
* @param
|
|
1798
|
-
* @returns
|
|
1797
|
+
* @param items The items to filter.
|
|
1798
|
+
* @returns The filtered items.
|
|
1799
1799
|
*/
|
|
1800
1800
|
filterItems(items) {
|
|
1801
1801
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
|
1802
1802
|
}
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Appends a cursor to the URL if it exists.
|
|
1805
|
-
* @param
|
|
1805
|
+
* @param cursor The cursor to append, or null/undefined.
|
|
1806
1806
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
|
1807
1807
|
*/
|
|
1808
1808
|
appendToUrl(cursor) {
|
|
@@ -1810,8 +1810,7 @@ var CustomCollectionHandler = class {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
/**
|
|
1812
1812
|
* Gets the stored collection or collection page.
|
|
1813
|
-
* @returns
|
|
1814
|
-
the collection or collection page.
|
|
1813
|
+
* @returns A promise that resolves to the collection or collection page.
|
|
1815
1814
|
*/
|
|
1816
1815
|
get collection() {
|
|
1817
1816
|
if (this.#collection === null) this.#collection = this.getCollection();
|
|
@@ -1819,8 +1818,8 @@ var CustomCollectionHandler = class {
|
|
|
1819
1818
|
}
|
|
1820
1819
|
/**
|
|
1821
1820
|
* Gets the total number of items in the collection.
|
|
1822
|
-
* @returns
|
|
1823
|
-
|
|
1821
|
+
* @returns A promise that resolves to the total items count,
|
|
1822
|
+
* or null if not available.
|
|
1824
1823
|
*/
|
|
1825
1824
|
get totalItems() {
|
|
1826
1825
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
|
@@ -1836,8 +1835,8 @@ var CustomCollectionHandler = class {
|
|
|
1836
1835
|
}
|
|
1837
1836
|
/**
|
|
1838
1837
|
* Gets the first cursor for pagination.
|
|
1839
|
-
* @returns
|
|
1840
|
-
or null if not available.
|
|
1838
|
+
* @returns A promise that resolves to the first cursor,
|
|
1839
|
+
* or null if not available.
|
|
1841
1840
|
*/
|
|
1842
1841
|
get firstCursor() {
|
|
1843
1842
|
const cursor = this.callbacks.firstCursor?.(this.context, this.values);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-BFT6d7J5.js";
|
|
6
|
+
import "./docloader-C_tcUe9l.js";
|
|
7
|
+
import "./actor-Bck28wpR.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BZJyUDXL.js";
|
|
9
|
+
import "./lookup-Db2ZNRUd.js";
|
|
10
|
+
import "./key-BhGPiWUd.js";
|
|
11
|
+
import "./http-7RegzYNG.js";
|
|
12
|
+
import "./proof-DLRWN-8p.js";
|
|
13
|
+
import "./types-CkApr45E.js";
|
|
14
|
+
import "./authdocloader-CK0Xf-wR.js";
|
|
15
|
+
import "./vocab-BZoa2e6N.js";
|
|
16
|
+
|
|
17
|
+
export { FederationImpl };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./transformers-CoBS-oFG.cjs');
|
|
6
|
+
require('./docloader-8pZfzt96.cjs');
|
|
7
|
+
require('./actor-DJB4Vcry.cjs');
|
|
8
|
+
const require_middleware = require('./middleware-C9P1mSn_.cjs');
|
|
9
|
+
require('./lookup-C6_F4vT5.cjs');
|
|
10
|
+
require('./key-B56sv4Fl.cjs');
|
|
11
|
+
require('./http-CEuXdReR.cjs');
|
|
12
|
+
require('./proof-fpjWg11s.cjs');
|
|
13
|
+
require('./types-DiAz6at6.cjs');
|
|
14
|
+
require('./authdocloader-BGRNpmBY.cjs');
|
|
15
|
+
require('./vocab-BCI9fICV.cjs');
|
|
16
|
+
|
|
17
|
+
exports.FederationImpl = require_middleware.FederationImpl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { Activity } from "./vocab-CDHNj5zp.js";
|
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
|
4
|
+
import { ActivityTransformer, Context } from "./context-C51zGhGC.js";
|
|
5
5
|
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
|
7
7
|
|
package/dist/mod.cjs
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
|
6
6
|
require('./compat-DmDDELst.cjs');
|
|
7
|
-
const require_docloader = require('./docloader-
|
|
8
|
-
const require_actor = require('./actor-
|
|
9
|
-
const require_middleware = require('./middleware-
|
|
10
|
-
const require_lookup = require('./lookup-
|
|
11
|
-
const require_key = require('./key-
|
|
12
|
-
const require_http = require('./http-
|
|
13
|
-
const require_proof = require('./proof-
|
|
7
|
+
const require_docloader = require('./docloader-8pZfzt96.cjs');
|
|
8
|
+
const require_actor = require('./actor-DJB4Vcry.cjs');
|
|
9
|
+
const require_middleware = require('./middleware-C9P1mSn_.cjs');
|
|
10
|
+
const require_lookup = require('./lookup-C6_F4vT5.cjs');
|
|
11
|
+
const require_key = require('./key-B56sv4Fl.cjs');
|
|
12
|
+
const require_http = require('./http-CEuXdReR.cjs');
|
|
13
|
+
const require_proof = require('./proof-fpjWg11s.cjs');
|
|
14
14
|
const require_federation = require('./federation-H2_En3j5.cjs');
|
|
15
|
-
const require_types = require('./types-
|
|
16
|
-
const require_authdocloader = require('./authdocloader-
|
|
17
|
-
const require_vocab = require('./vocab-
|
|
15
|
+
const require_types = require('./types-DiAz6at6.cjs');
|
|
16
|
+
const require_authdocloader = require('./authdocloader-BGRNpmBY.cjs');
|
|
17
|
+
const require_vocab = require('./vocab-BCI9fICV.cjs');
|
|
18
18
|
require('./nodeinfo-Co9lJrWl.cjs');
|
|
19
19
|
require('./runtime-C58AJWSv.cjs');
|
|
20
20
|
require('./sig-ByHXzqUi.cjs');
|
package/dist/mod.d.cts
CHANGED
|
@@ -7,11 +7,11 @@ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessage
|
|
|
7
7
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-6KSEp9eV.cjs";
|
|
8
8
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BUbqxBev.cjs";
|
|
9
9
|
import { ResourceDescriptor, lookupWebFinger } from "./mod-jQ4OODsl.cjs";
|
|
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,
|
|
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-Qnv814-p.cjs";
|
|
11
11
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-B7R1Q-M5.cjs";
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-COTXAYRl.cjs";
|
|
13
13
|
import "./mod-C2tOeRkN.cjs";
|
|
14
14
|
import "./mod-FZd39qVq.cjs";
|
|
15
15
|
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-Dt-G9ZOS.cjs";
|
|
16
16
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-fjqfsrty.cjs";
|
|
17
|
-
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, 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, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, 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,
|
|
17
|
+
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, 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, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, 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, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, 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, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|