@fedify/fedify 2.0.0-pr.445.1694 → 2.0.0-pr.449.1725
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-DoMcqXsW.js → actor-C0gLJq8I.js} +187 -187
- package/dist/{actor-CwZ2m5rG.cjs → actor-CsRJa7wV.cjs} +187 -187
- package/dist/{actor-D8gCwLzv.js → actor-VrXd7EdX.js} +1 -1
- package/dist/{authdocloader-Cv_qEn1G.js → authdocloader-6F9IP-VO.js} +3 -3
- package/dist/{authdocloader-bsmVF6eO.cjs → authdocloader-BkuVo8LL.cjs} +3 -3
- package/dist/{authdocloader-DYTNpaMA.js → authdocloader-C8LXxsmU.js} +3 -3
- package/dist/{builder-1_skw-d2.js → builder-JjsppXTK.js} +8 -8
- package/dist/{client-D5CBsPrc.js → client-BS-GE3XI.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-DBKpNBnc.d.ts → context-B1X8-X33.d.ts} +120 -87
- package/dist/{context-DiqjMRef.d.cts → context-DYCJXr7J.d.cts} +120 -87
- package/dist/{docloader-Czl3xV10.js → docloader-AMdJU291.js} +1 -1
- package/dist/{docloader-CYnQRIXv.cjs → docloader-BdF5STdg.cjs} +1 -1
- package/dist/{esm-Dl5T1RNE.js → esm-CvUgdJZ_.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/negotiation.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-C_Qc2neP.js → http-DVQEn98K.js} +3 -3
- package/dist/{http-CAusBl_3.cjs → http-D_BI5KHC.cjs} +3 -3
- package/dist/{http-CuS-d4U0.js → http-DbyMqL2X.js} +2 -2
- package/dist/{inbox-IETv_Qez.js → inbox-DQlf_-Dz.js} +1 -1
- package/dist/{key-C_ruQbbl.js → key-BBzfhQGE.js} +4 -4
- package/dist/key-BMz_uAnc.cjs +10 -0
- package/dist/{key-DnqhSgAv.js → key-BSJX6n9o.js} +2 -2
- package/dist/{key-DuXv64tg.cjs → key-D-RgWfcf.cjs} +2 -2
- package/dist/{key-BNJQQm3h.js → key-DFefr8X2.js} +2 -2
- package/dist/{key-DpFjiItf.js → key-DW2DrPGl.js} +3 -3
- package/dist/{keycache-CSBkusP8.js → keycache-CcIfdj0m.js} +1 -1
- package/dist/{keys-D3_MDK7n.js → keys-DnSaJmvD.js} +1 -1
- package/dist/{ld-Isot0tiW.js → ld-CAJ6Q2od.js} +2 -2
- package/dist/{lookup-D6dro5Au.cjs → lookup-B2Bsau2g.cjs} +1 -1
- package/dist/{lookup-Dhm78GlK.js → lookup-BGCuyJRy.js} +1 -1
- package/dist/{lookup-CbtuFbtg.js → lookup-C3pnuyiD.js} +1 -1
- package/dist/{middleware-BuHr2fzh.js → middleware-1oxZY_0z.js} +36 -37
- package/dist/middleware-B8WWe8Q2.js +26 -0
- package/dist/{middleware-DQYscW90.js → middleware-BDqkoMAQ.js} +35 -36
- package/dist/{middleware-Dgmdgrvb.cjs → middleware-D0XMPoN8.cjs} +36 -37
- package/dist/middleware-DipQbJmB.js +17 -0
- package/dist/middleware-mLaQeD_Z.cjs +17 -0
- package/dist/{mod-D_y2y32N.d.ts → mod-DcKxhFQ8.d.ts} +1 -1
- package/dist/{mod-Bpb5QLaZ.d.cts → mod-twdvV2hR.d.cts} +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/types.test.js +3 -3
- package/dist/{owner-ChSL4aJ7.js → owner-CaIfLBwg.js} +2 -2
- package/dist/{proof-ONNmhInb.cjs → proof-AhyVJcNZ.cjs} +3 -3
- package/dist/{proof-x3IBewan.js → proof-BQwXHakc.js} +2 -2
- package/dist/{proof-BiSCuwyA.js → proof-CKXppjee.js} +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-D5fjmUEj.js → send-DQd3R1Oc.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-tWr1VQxx.js → testing-BljKU-GG.js} +2 -2
- package/dist/{type-DaUr3Il7.js → type-COb6KNlm.js} +186 -186
- package/dist/{types-DQuSDtDg.js → types-CEn4wB51.js} +1 -1
- package/dist/{types-D2Nyz0tR.cjs → types-DI0yutHB.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-w--qk7HF.js → vocab-CkWH9P5l.js} +3 -3
- package/dist/{vocab-Dd4VMrr0.cjs → vocab-NZXL5Pr-.cjs} +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-DIMJMxf4.cjs +0 -10
- package/dist/middleware-BpR6186a.js +0 -26
- package/dist/middleware-DDMxdtWM.cjs +0 -17
- package/dist/middleware-T-knSMwl.js +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-AMdJU291.js";
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-C0gLJq8I.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-BGCuyJRy.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-DFefr8X2.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DVQEn98K.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CKXppjee.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-CEn4wB51.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-6F9IP-VO.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-CkWH9P5l.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";
|
@@ -339,7 +339,7 @@ var FederationBuilderImpl = class {
|
|
339
339
|
this.collectionTypeIds = {};
|
340
340
|
}
|
341
341
|
async build(options) {
|
342
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
342
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-DipQbJmB.js");
|
343
343
|
const f = new FederationImpl$1(options);
|
344
344
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
345
345
|
f.router = this.router.clone();
|
@@ -792,11 +792,11 @@ var FederationBuilderImpl = class {
|
|
792
792
|
};
|
793
793
|
return setters;
|
794
794
|
}
|
795
|
-
setCollectionDispatcher(name,
|
796
|
-
return this.#setCustomCollectionDispatcher(name, "collection",
|
795
|
+
setCollectionDispatcher(name, itemType, path, dispatcher) {
|
796
|
+
return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
|
797
797
|
}
|
798
|
-
setOrderedCollectionDispatcher(name,
|
799
|
-
return this.#setCustomCollectionDispatcher(name, "orderedCollection",
|
798
|
+
setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
|
799
|
+
return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
|
800
800
|
}
|
801
801
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
802
802
|
const strName = String(name);
|
@@ -1550,7 +1550,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
1550
1550
|
/**
|
1551
1551
|
* Handles a custom collection request.
|
1552
1552
|
* @template TItem The type of items in the collection.
|
1553
|
-
* @template
|
1553
|
+
* @template TParam The parameter names of the requested URL.
|
1554
1554
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
1555
1555
|
* @template TContextData The context data to pass to the `TContext`.
|
1556
1556
|
* @param request The HTTP request.
|
@@ -1568,7 +1568,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
1568
1568
|
/**
|
1569
1569
|
* Handles an ordered collection request.
|
1570
1570
|
* @template TItem The type of items in the collection.
|
1571
|
-
* @template
|
1571
|
+
* @template TParam The parameter names of the requested URL.
|
1572
1572
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
1573
1573
|
* @template TContextData The context data to pass to the `TContext`.
|
1574
1574
|
* @param request The HTTP request.
|
@@ -1588,7 +1588,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
1588
1588
|
* The main flow is on `getCollection`, `dispatch`.
|
1589
1589
|
*
|
1590
1590
|
* @template TItem The type of items in the collection.
|
1591
|
-
* @template
|
1591
|
+
* @template TParam The parameter names of the requested URL.
|
1592
1592
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
1593
1593
|
* @template TContextData The context data to pass to the `TContext`.
|
1594
1594
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
@@ -1622,14 +1622,14 @@ var CustomCollectionHandler = class {
|
|
1622
1622
|
#collection = null;
|
1623
1623
|
/**
|
1624
1624
|
* Creates a new CustomCollection instance.
|
1625
|
-
* @param
|
1626
|
-
* @param
|
1627
|
-
* @param
|
1628
|
-
* @param
|
1629
|
-
* @param
|
1630
|
-
* @param
|
1631
|
-
* @param
|
1632
|
-
* @param
|
1625
|
+
* @param name The name of the collection.
|
1626
|
+
* @param values The parameter values for the collection.
|
1627
|
+
* @param context The request context.
|
1628
|
+
* @param callbacks The collection callbacks.
|
1629
|
+
* @param tracerProvider The tracer provider for telemetry.
|
1630
|
+
* @param Collection The Collection constructor.
|
1631
|
+
* @param CollectionPage The CollectionPage constructor.
|
1632
|
+
* @param filterPredicate Optional filter predicate for items.
|
1633
1633
|
*/
|
1634
1634
|
constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
1635
1635
|
this.name = name;
|
@@ -1754,7 +1754,7 @@ var CustomCollectionHandler = class {
|
|
1754
1754
|
/**
|
1755
1755
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
1756
1756
|
* @param params Parameters including cursor and total items.
|
1757
|
-
* @returns
|
1757
|
+
* @returns A function that handles the span operation.
|
1758
1758
|
*/
|
1759
1759
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
1760
1760
|
try {
|
@@ -1775,23 +1775,23 @@ var CustomCollectionHandler = class {
|
|
1775
1775
|
};
|
1776
1776
|
/**
|
1777
1777
|
* Dispatches the collection request to get items.
|
1778
|
-
* @param
|
1779
|
-
* @returns
|
1778
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
1779
|
+
* @returns A promise that resolves to the page items.
|
1780
1780
|
*/
|
1781
1781
|
async dispatch(cursor = null) {
|
1782
1782
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
1783
1783
|
}
|
1784
1784
|
/**
|
1785
1785
|
* Filters the items in the collection.
|
1786
|
-
* @param
|
1787
|
-
* @returns
|
1786
|
+
* @param items The items to filter.
|
1787
|
+
* @returns The filtered items.
|
1788
1788
|
*/
|
1789
1789
|
filterItems(items) {
|
1790
1790
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
1791
1791
|
}
|
1792
1792
|
/**
|
1793
1793
|
* Appends a cursor to the URL if it exists.
|
1794
|
-
* @param
|
1794
|
+
* @param cursor The cursor to append, or null/undefined.
|
1795
1795
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
1796
1796
|
*/
|
1797
1797
|
appendToUrl(cursor) {
|
@@ -1799,8 +1799,7 @@ var CustomCollectionHandler = class {
|
|
1799
1799
|
}
|
1800
1800
|
/**
|
1801
1801
|
* Gets the stored collection or collection page.
|
1802
|
-
* @returns
|
1803
|
-
the collection or collection page.
|
1802
|
+
* @returns A promise that resolves to the collection or collection page.
|
1804
1803
|
*/
|
1805
1804
|
get collection() {
|
1806
1805
|
if (this.#collection === null) this.#collection = this.getCollection();
|
@@ -1808,8 +1807,8 @@ var CustomCollectionHandler = class {
|
|
1808
1807
|
}
|
1809
1808
|
/**
|
1810
1809
|
* Gets the total number of items in the collection.
|
1811
|
-
* @returns
|
1812
|
-
|
1810
|
+
* @returns A promise that resolves to the total items count,
|
1811
|
+
* or null if not available.
|
1813
1812
|
*/
|
1814
1813
|
get totalItems() {
|
1815
1814
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
@@ -1825,8 +1824,8 @@ var CustomCollectionHandler = class {
|
|
1825
1824
|
}
|
1826
1825
|
/**
|
1827
1826
|
* Gets the first cursor for pagination.
|
1828
|
-
* @returns
|
1829
|
-
or null if not available.
|
1827
|
+
* @returns A promise that resolves to the first cursor,
|
1828
|
+
* or null if not available.
|
1830
1829
|
*/
|
1831
1830
|
get firstCursor() {
|
1832
1831
|
const cursor = this.callbacks.firstCursor?.(this.context, this.values);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import "./type-COb6KNlm.js";
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BDqkoMAQ.js";
|
8
|
+
import "./client-BS-GE3XI.js";
|
9
|
+
import "./lookup-C3pnuyiD.js";
|
10
|
+
import "./types-BSuWJsOm.js";
|
11
|
+
import "./actor-VrXd7EdX.js";
|
12
|
+
import "./key-BSJX6n9o.js";
|
13
|
+
import "./http-DbyMqL2X.js";
|
14
|
+
import "./authdocloader-C8LXxsmU.js";
|
15
|
+
import "./ld-CAJ6Q2od.js";
|
16
|
+
import "./owner-CaIfLBwg.js";
|
17
|
+
import "./proof-BQwXHakc.js";
|
18
|
+
import "./inbox-DQlf_-Dz.js";
|
19
|
+
import "./builder-JjsppXTK.js";
|
20
|
+
import "./collection-CcnIw1qY.js";
|
21
|
+
import "./keycache-CcIfdj0m.js";
|
22
|
+
import "./negotiation-5NPJL6zp.js";
|
23
|
+
import "./retry-D4GJ670a.js";
|
24
|
+
import "./send-DQd3R1Oc.js";
|
25
|
+
|
26
|
+
export { FederationImpl };
|
@@ -3,23 +3,23 @@
|
|
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-COb6KNlm.js";
|
7
|
+
import { getNodeInfo } from "./client-BS-GE3XI.js";
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-C3pnuyiD.js";
|
9
9
|
import { nodeInfoToJson } from "./types-BSuWJsOm.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-BSJX6n9o.js";
|
11
|
+
import { verifyRequest } from "./http-DbyMqL2X.js";
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-C8LXxsmU.js";
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-CAJ6Q2od.js";
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-CaIfLBwg.js";
|
15
|
+
import { signObject, verifyObject } from "./proof-BQwXHakc.js";
|
16
|
+
import { routeActivity } from "./inbox-DQlf_-Dz.js";
|
17
|
+
import { FederationBuilderImpl } from "./builder-JjsppXTK.js";
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-CcnIw1qY.js";
|
19
|
-
import { KvKeyCache } from "./keycache-
|
19
|
+
import { KvKeyCache } from "./keycache-CcIfdj0m.js";
|
20
20
|
import { acceptsJsonLd } from "./negotiation-5NPJL6zp.js";
|
21
21
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
22
|
-
import { extractInboxes, sendActivity } from "./send-
|
22
|
+
import { extractInboxes, sendActivity } from "./send-DQd3R1Oc.js";
|
23
23
|
import { getLogger, withContext } from "@logtape/logtape";
|
24
24
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
25
25
|
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";
|
@@ -838,7 +838,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
838
838
|
/**
|
839
839
|
* Handles a custom collection request.
|
840
840
|
* @template TItem The type of items in the collection.
|
841
|
-
* @template
|
841
|
+
* @template TParam The parameter names of the requested URL.
|
842
842
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
843
843
|
* @template TContextData The context data to pass to the `TContext`.
|
844
844
|
* @param request The HTTP request.
|
@@ -856,7 +856,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
856
856
|
/**
|
857
857
|
* Handles an ordered collection request.
|
858
858
|
* @template TItem The type of items in the collection.
|
859
|
-
* @template
|
859
|
+
* @template TParam The parameter names of the requested URL.
|
860
860
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
861
861
|
* @template TContextData The context data to pass to the `TContext`.
|
862
862
|
* @param request The HTTP request.
|
@@ -876,7 +876,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
876
876
|
* The main flow is on `getCollection`, `dispatch`.
|
877
877
|
*
|
878
878
|
* @template TItem The type of items in the collection.
|
879
|
-
* @template
|
879
|
+
* @template TParam The parameter names of the requested URL.
|
880
880
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
881
881
|
* @template TContextData The context data to pass to the `TContext`.
|
882
882
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
@@ -910,14 +910,14 @@ var CustomCollectionHandler = class {
|
|
910
910
|
#collection = null;
|
911
911
|
/**
|
912
912
|
* Creates a new CustomCollection instance.
|
913
|
-
* @param
|
914
|
-
* @param
|
915
|
-
* @param
|
916
|
-
* @param
|
917
|
-
* @param
|
918
|
-
* @param
|
919
|
-
* @param
|
920
|
-
* @param
|
913
|
+
* @param name The name of the collection.
|
914
|
+
* @param values The parameter values for the collection.
|
915
|
+
* @param context The request context.
|
916
|
+
* @param callbacks The collection callbacks.
|
917
|
+
* @param tracerProvider The tracer provider for telemetry.
|
918
|
+
* @param Collection The Collection constructor.
|
919
|
+
* @param CollectionPage The CollectionPage constructor.
|
920
|
+
* @param filterPredicate Optional filter predicate for items.
|
921
921
|
*/
|
922
922
|
constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
923
923
|
this.name = name;
|
@@ -1042,7 +1042,7 @@ var CustomCollectionHandler = class {
|
|
1042
1042
|
/**
|
1043
1043
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
1044
1044
|
* @param params Parameters including cursor and total items.
|
1045
|
-
* @returns
|
1045
|
+
* @returns A function that handles the span operation.
|
1046
1046
|
*/
|
1047
1047
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
1048
1048
|
try {
|
@@ -1063,23 +1063,23 @@ var CustomCollectionHandler = class {
|
|
1063
1063
|
};
|
1064
1064
|
/**
|
1065
1065
|
* Dispatches the collection request to get items.
|
1066
|
-
* @param
|
1067
|
-
* @returns
|
1066
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
1067
|
+
* @returns A promise that resolves to the page items.
|
1068
1068
|
*/
|
1069
1069
|
async dispatch(cursor = null) {
|
1070
1070
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
1071
1071
|
}
|
1072
1072
|
/**
|
1073
1073
|
* Filters the items in the collection.
|
1074
|
-
* @param
|
1075
|
-
* @returns
|
1074
|
+
* @param items The items to filter.
|
1075
|
+
* @returns The filtered items.
|
1076
1076
|
*/
|
1077
1077
|
filterItems(items) {
|
1078
1078
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
1079
1079
|
}
|
1080
1080
|
/**
|
1081
1081
|
* Appends a cursor to the URL if it exists.
|
1082
|
-
* @param
|
1082
|
+
* @param cursor The cursor to append, or null/undefined.
|
1083
1083
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
1084
1084
|
*/
|
1085
1085
|
appendToUrl(cursor) {
|
@@ -1087,8 +1087,7 @@ var CustomCollectionHandler = class {
|
|
1087
1087
|
}
|
1088
1088
|
/**
|
1089
1089
|
* Gets the stored collection or collection page.
|
1090
|
-
* @returns
|
1091
|
-
the collection or collection page.
|
1090
|
+
* @returns A promise that resolves to the collection or collection page.
|
1092
1091
|
*/
|
1093
1092
|
get collection() {
|
1094
1093
|
if (this.#collection === null) this.#collection = this.getCollection();
|
@@ -1096,8 +1095,8 @@ var CustomCollectionHandler = class {
|
|
1096
1095
|
}
|
1097
1096
|
/**
|
1098
1097
|
* Gets the total number of items in the collection.
|
1099
|
-
* @returns
|
1100
|
-
|
1098
|
+
* @returns A promise that resolves to the total items count,
|
1099
|
+
* or null if not available.
|
1101
1100
|
*/
|
1102
1101
|
get totalItems() {
|
1103
1102
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
@@ -1113,8 +1112,8 @@ var CustomCollectionHandler = class {
|
|
1113
1112
|
}
|
1114
1113
|
/**
|
1115
1114
|
* Gets the first cursor for pagination.
|
1116
|
-
* @returns
|
1117
|
-
or null if not available.
|
1115
|
+
* @returns A promise that resolves to the first cursor,
|
1116
|
+
* or null if not available.
|
1118
1117
|
*/
|
1119
1118
|
get firstCursor() {
|
1120
1119
|
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-BdF5STdg.cjs');
|
8
|
+
const require_actor = require('./actor-CsRJa7wV.cjs');
|
9
|
+
const require_lookup = require('./lookup-B2Bsau2g.cjs');
|
10
|
+
const require_key = require('./key-D-RgWfcf.cjs');
|
11
|
+
const require_http = require('./http-D_BI5KHC.cjs');
|
12
|
+
const require_proof = require('./proof-AhyVJcNZ.cjs');
|
13
|
+
const require_types = require('./types-DI0yutHB.cjs');
|
14
|
+
const require_authdocloader = require('./authdocloader-BkuVo8LL.cjs');
|
15
|
+
const require_vocab = require('./vocab-NZXL5Pr-.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"));
|
@@ -340,7 +340,7 @@ var FederationBuilderImpl = class {
|
|
340
340
|
this.collectionTypeIds = {};
|
341
341
|
}
|
342
342
|
async build(options) {
|
343
|
-
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-
|
343
|
+
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-mLaQeD_Z.cjs"));
|
344
344
|
const f = new FederationImpl$1(options);
|
345
345
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
346
346
|
f.router = this.router.clone();
|
@@ -793,11 +793,11 @@ var FederationBuilderImpl = class {
|
|
793
793
|
};
|
794
794
|
return setters;
|
795
795
|
}
|
796
|
-
setCollectionDispatcher(name,
|
797
|
-
return this.#setCustomCollectionDispatcher(name, "collection",
|
796
|
+
setCollectionDispatcher(name, itemType, path, dispatcher) {
|
797
|
+
return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
|
798
798
|
}
|
799
|
-
setOrderedCollectionDispatcher(name,
|
800
|
-
return this.#setCustomCollectionDispatcher(name, "orderedCollection",
|
799
|
+
setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
|
800
|
+
return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
|
801
801
|
}
|
802
802
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
803
803
|
const strName = String(name);
|
@@ -1551,7 +1551,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
1551
1551
|
/**
|
1552
1552
|
* Handles a custom collection request.
|
1553
1553
|
* @template TItem The type of items in the collection.
|
1554
|
-
* @template
|
1554
|
+
* @template TParam The parameter names of the requested URL.
|
1555
1555
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
1556
1556
|
* @template TContextData The context data to pass to the `TContext`.
|
1557
1557
|
* @param request The HTTP request.
|
@@ -1569,7 +1569,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
1569
1569
|
/**
|
1570
1570
|
* Handles an ordered collection request.
|
1571
1571
|
* @template TItem The type of items in the collection.
|
1572
|
-
* @template
|
1572
|
+
* @template TParam The parameter names of the requested URL.
|
1573
1573
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
1574
1574
|
* @template TContextData The context data to pass to the `TContext`.
|
1575
1575
|
* @param request The HTTP request.
|
@@ -1589,7 +1589,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
1589
1589
|
* The main flow is on `getCollection`, `dispatch`.
|
1590
1590
|
*
|
1591
1591
|
* @template TItem The type of items in the collection.
|
1592
|
-
* @template
|
1592
|
+
* @template TParam The parameter names of the requested URL.
|
1593
1593
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
1594
1594
|
* @template TContextData The context data to pass to the `TContext`.
|
1595
1595
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
@@ -1623,14 +1623,14 @@ var CustomCollectionHandler = class {
|
|
1623
1623
|
#collection = null;
|
1624
1624
|
/**
|
1625
1625
|
* Creates a new CustomCollection instance.
|
1626
|
-
* @param
|
1627
|
-
* @param
|
1628
|
-
* @param
|
1629
|
-
* @param
|
1630
|
-
* @param
|
1631
|
-
* @param
|
1632
|
-
* @param
|
1633
|
-
* @param
|
1626
|
+
* @param name The name of the collection.
|
1627
|
+
* @param values The parameter values for the collection.
|
1628
|
+
* @param context The request context.
|
1629
|
+
* @param callbacks The collection callbacks.
|
1630
|
+
* @param tracerProvider The tracer provider for telemetry.
|
1631
|
+
* @param Collection The Collection constructor.
|
1632
|
+
* @param CollectionPage The CollectionPage constructor.
|
1633
|
+
* @param filterPredicate Optional filter predicate for items.
|
1634
1634
|
*/
|
1635
1635
|
constructor(name, values, context$2, callbacks, tracerProvider = __opentelemetry_api.trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
1636
1636
|
this.name = name;
|
@@ -1755,7 +1755,7 @@ var CustomCollectionHandler = class {
|
|
1755
1755
|
/**
|
1756
1756
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
1757
1757
|
* @param params Parameters including cursor and total items.
|
1758
|
-
* @returns
|
1758
|
+
* @returns A function that handles the span operation.
|
1759
1759
|
*/
|
1760
1760
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
1761
1761
|
try {
|
@@ -1776,23 +1776,23 @@ var CustomCollectionHandler = class {
|
|
1776
1776
|
};
|
1777
1777
|
/**
|
1778
1778
|
* Dispatches the collection request to get items.
|
1779
|
-
* @param
|
1780
|
-
* @returns
|
1779
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
1780
|
+
* @returns A promise that resolves to the page items.
|
1781
1781
|
*/
|
1782
1782
|
async dispatch(cursor = null) {
|
1783
1783
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
1784
1784
|
}
|
1785
1785
|
/**
|
1786
1786
|
* Filters the items in the collection.
|
1787
|
-
* @param
|
1788
|
-
* @returns
|
1787
|
+
* @param items The items to filter.
|
1788
|
+
* @returns The filtered items.
|
1789
1789
|
*/
|
1790
1790
|
filterItems(items) {
|
1791
1791
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
1792
1792
|
}
|
1793
1793
|
/**
|
1794
1794
|
* Appends a cursor to the URL if it exists.
|
1795
|
-
* @param
|
1795
|
+
* @param cursor The cursor to append, or null/undefined.
|
1796
1796
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
1797
1797
|
*/
|
1798
1798
|
appendToUrl(cursor) {
|
@@ -1800,8 +1800,7 @@ var CustomCollectionHandler = class {
|
|
1800
1800
|
}
|
1801
1801
|
/**
|
1802
1802
|
* Gets the stored collection or collection page.
|
1803
|
-
* @returns
|
1804
|
-
the collection or collection page.
|
1803
|
+
* @returns A promise that resolves to the collection or collection page.
|
1805
1804
|
*/
|
1806
1805
|
get collection() {
|
1807
1806
|
if (this.#collection === null) this.#collection = this.getCollection();
|
@@ -1809,8 +1808,8 @@ var CustomCollectionHandler = class {
|
|
1809
1808
|
}
|
1810
1809
|
/**
|
1811
1810
|
* Gets the total number of items in the collection.
|
1812
|
-
* @returns
|
1813
|
-
|
1811
|
+
* @returns A promise that resolves to the total items count,
|
1812
|
+
* or null if not available.
|
1814
1813
|
*/
|
1815
1814
|
get totalItems() {
|
1816
1815
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
@@ -1826,8 +1825,8 @@ var CustomCollectionHandler = class {
|
|
1826
1825
|
}
|
1827
1826
|
/**
|
1828
1827
|
* Gets the first cursor for pagination.
|
1829
|
-
* @returns
|
1830
|
-
or null if not available.
|
1828
|
+
* @returns A promise that resolves to the first cursor,
|
1829
|
+
* or null if not available.
|
1831
1830
|
*/
|
1832
1831
|
get firstCursor() {
|
1833
1832
|
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-AMdJU291.js";
|
7
|
+
import "./actor-C0gLJq8I.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-1oxZY_0z.js";
|
9
|
+
import "./lookup-BGCuyJRy.js";
|
10
|
+
import "./key-DFefr8X2.js";
|
11
|
+
import "./http-DVQEn98K.js";
|
12
|
+
import "./proof-CKXppjee.js";
|
13
|
+
import "./types-CEn4wB51.js";
|
14
|
+
import "./authdocloader-6F9IP-VO.js";
|
15
|
+
import "./vocab-CkWH9P5l.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-BdF5STdg.cjs');
|
7
|
+
require('./actor-CsRJa7wV.cjs');
|
8
|
+
const require_middleware = require('./middleware-D0XMPoN8.cjs');
|
9
|
+
require('./lookup-B2Bsau2g.cjs');
|
10
|
+
require('./key-D-RgWfcf.cjs');
|
11
|
+
require('./http-D_BI5KHC.cjs');
|
12
|
+
require('./proof-AhyVJcNZ.cjs');
|
13
|
+
require('./types-DI0yutHB.cjs');
|
14
|
+
require('./authdocloader-BkuVo8LL.cjs');
|
15
|
+
require('./vocab-NZXL5Pr-.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-BI0Ak5lL.js";
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
4
|
+
import { ActivityTransformer, Context } from "./context-B1X8-X33.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-BdF5STdg.cjs');
|
8
|
+
const require_actor = require('./actor-CsRJa7wV.cjs');
|
9
|
+
const require_middleware = require('./middleware-D0XMPoN8.cjs');
|
10
|
+
const require_lookup = require('./lookup-B2Bsau2g.cjs');
|
11
|
+
const require_key = require('./key-D-RgWfcf.cjs');
|
12
|
+
const require_http = require('./http-D_BI5KHC.cjs');
|
13
|
+
const require_proof = require('./proof-AhyVJcNZ.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-DI0yutHB.cjs');
|
16
|
+
const require_authdocloader = require('./authdocloader-BkuVo8LL.cjs');
|
17
|
+
const require_vocab = require('./vocab-NZXL5Pr-.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-BN_tO3cY.cjs";
|
8
8
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-CxkWO3Mg.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-DYCJXr7J.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-twdvV2hR.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-Cj1tHXBR.cjs";
|
16
16
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-Djzcw2ry.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, 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, 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, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|