@fedify/fedify 1.8.1-pr.341.1240 → 1.8.1-pr.341.1243
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-CIxmVqr2.js → actor-BEwE1xkS.js} +179 -179
- package/dist/{actor-Gbs6z3x8.js → actor-BOpSPzSZ.js} +1 -1
- package/dist/{actor-B4TBtqRP.d.ts → actor-CWNAGvnO.d.ts} +2 -2
- package/dist/{authdocloader-DuKdZqtX.js → authdocloader-CjBl4Ufk.js} +3 -3
- package/dist/{authdocloader-CVDjFUMd.js → authdocloader-QzLzRgOE.js} +3 -3
- package/dist/{builder-oSu55JW1.js → builder-DH6MUSoP.js} +5 -5
- package/dist/{client-BQ4AQGKo.d.ts → client-B0IOer6B.d.ts} +1 -1
- package/dist/{client-B_vt-rAz.js → client-B2RqTSh-.js} +1 -1
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-Csbv_Ssv.d.ts → context-BNA3vzcr.d.ts} +82 -82
- package/dist/{docloader-DO_sG_oo.js → docloader-CIlLEfh0.js} +1 -1
- package/dist/{docloader-BeCtcTOJ.d.ts → docloader-CLolPVL_.d.ts} +1 -1
- package/dist/{esm-EJA-zBLn.js → esm-CcY7R-5z.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/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.d.ts +10 -10
- package/dist/federation/mod.js +11 -11
- 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-BHqTpY5H.js → http-BIVpouAl.js} +2 -2
- package/dist/{http-BL6S1G0j.d.ts → http-COez3YdK.d.ts} +3 -3
- package/dist/{http-D-k6lhV5.js → http-DtCW8AKK.js} +3 -3
- package/dist/{inbox-Cjjqwe6i.js → inbox-BFSA4sEI.js} +1 -1
- package/dist/{key-PC9tyZxc.js → key-A0cU31dk.js} +3 -3
- package/dist/{key-Blk0MMI4.js → key-DCbzFxlI.js} +3 -3
- package/dist/{key-D2criTnt.js → key-DPqaHTeu.js} +4 -4
- package/dist/{key-B1v8d98d.js → key-qgnl74Yn.js} +3 -3
- package/dist/{keycache-DbJZxKDP.js → keycache-TbjHlTFb.js} +1 -1
- package/dist/{keys-1ouVc1GJ.js → keys-C-enQWj-.js} +1 -1
- package/dist/{kv-DDdb1hMa.d.ts → kv-BqOK6zss.d.ts} +1 -1
- package/dist/{ld-A2LK_cWs.js → ld-De9oNKxb.js} +2 -2
- package/dist/{lookup-BH0rqluy.js → lookup-4JPaW7A3.js} +1 -1
- package/dist/{lookup-DRjoFQmr.js → lookup-CUyEjQoU.js} +1 -1
- package/dist/{lookup-J_m4YZg0.d.ts → lookup-tSXYzgYs.d.ts} +1 -1
- package/dist/{middleware-BeMhyJPL.js → middleware-B_nc2hY6.js} +39 -39
- package/dist/middleware-D0ISRvs9.js +17 -0
- package/dist/middleware-DxpBNpzC.js +26 -0
- package/dist/{middleware-jzh8IuK6.js → middleware-M-O0DhV3.js} +43 -43
- package/dist/{mod-j0OCtlRW.d.ts → mod-Bf-mThHd.d.ts} +4 -4
- package/dist/{mod-BFwgZ7_K.d.ts → mod-C2jQirfr.d.ts} +2 -2
- package/dist/{mod-Dc_fDCtK.d.ts → mod-CxD6XXBN.d.ts} +5 -5
- package/dist/{mod-D8-liXFY.d.ts → mod-UTC30uNC.d.ts} +2 -2
- package/dist/mod.d.ts +13 -13
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.d.ts +3 -3
- 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-CEv_PfyK.d.ts → owner-BlxMNrL4.d.ts} +3 -3
- package/dist/{owner-C3_VNt2J.js → owner-DDWwhc1V.js} +2 -2
- package/dist/{proof-50yDuYwv.js → proof-BDEygHWL.js} +3 -3
- package/dist/{proof-CxtxlCj1.js → proof-CI4Z1HtP.js} +4 -4
- 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/mod.d.ts +5 -5
- 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-SqWlV99p.js → send-CY38tmAA.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.d.ts +7 -7
- 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 +71 -71
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-B7bLlKZQ.js → testing-_24i9CAh.js} +2 -2
- package/dist/{transformers-ghwJuzGY.js → transformers-DJRB0yFF.js} +3 -3
- package/dist/{type-DQ8e7lsS.js → type-UlD3uIBC.js} +178 -178
- package/dist/{types-BveqhITK.js → types-DEDxkISl.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.d.ts +5 -5
- 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-D9mJVJGV.js → vocab-B2F9_HWH.js} +3 -3
- package/dist/{vocab-By6mpzr-.d.ts → vocab-Cyrb7_co.d.ts} +1 -1
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +14 -14
- package/dist/x/hono.js +2 -2
- package/dist/x/sveltekit.d.ts +11 -11
- package/dist/x/sveltekit.js +1 -1
- package/package.json +1 -1
- package/dist/middleware-4EJoli9l.js +0 -26
- package/dist/middleware-CymDhMln.js +0 -17
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { getDefaultActivityTransformers } from "./transformers-
|
|
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-
|
|
5
|
+
import { getDefaultActivityTransformers } from "./transformers-DJRB0yFF.js";
|
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-CIlLEfh0.js";
|
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-BEwE1xkS.js";
|
|
8
|
+
import { lookupWebFinger } from "./lookup-CUyEjQoU.js";
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-A0cU31dk.js";
|
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DtCW8AKK.js";
|
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CI4Z1HtP.js";
|
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-DEDxkISl.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-QzLzRgOE.js";
|
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-B2F9_HWH.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";
|
|
@@ -320,7 +320,7 @@ var FederationBuilderImpl = class {
|
|
|
320
320
|
this.collectionTypeIds = {};
|
|
321
321
|
}
|
|
322
322
|
async build(options) {
|
|
323
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
323
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-D0ISRvs9.js");
|
|
324
324
|
const f = new FederationImpl$1(options);
|
|
325
325
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
326
326
|
f.router = this.router.clone();
|
|
@@ -803,7 +803,7 @@ var FederationBuilderImpl = class {
|
|
|
803
803
|
/**
|
|
804
804
|
* Get the URL path for a custom collection.
|
|
805
805
|
* If the collection is not registered, returns null.
|
|
806
|
-
* @
|
|
806
|
+
* @template TParam The parameter names of the requested URL.
|
|
807
807
|
* @param {string | symbol} name The name of the custom collection.
|
|
808
808
|
* @param {TParam} values The values to fill in the URL parameters.
|
|
809
809
|
* @returns {string | null} The URL path for the custom collection, or null if not registered.
|
|
@@ -986,7 +986,7 @@ function acceptsJsonLd(request) {
|
|
|
986
986
|
}
|
|
987
987
|
/**
|
|
988
988
|
* Handles an actor request.
|
|
989
|
-
* @
|
|
989
|
+
* @template TContextData The context data to pass to the context.
|
|
990
990
|
* @param request The HTTP request.
|
|
991
991
|
* @param parameters The parameters for handling the actor.
|
|
992
992
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1036,7 +1036,7 @@ async function handleActor(request, { identifier, context: context$1, actorDispa
|
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Handles an object request.
|
|
1039
|
-
* @
|
|
1039
|
+
* @template TContextData The context data to pass to the context.
|
|
1040
1040
|
* @param request The HTTP request.
|
|
1041
1041
|
* @param parameters The parameters for handling the object.
|
|
1042
1042
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1075,10 +1075,10 @@ async function handleObject(request, { values, context: context$1, objectDispatc
|
|
|
1075
1075
|
}
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Handles a collection request.
|
|
1078
|
-
* @
|
|
1079
|
-
* @
|
|
1080
|
-
* @
|
|
1081
|
-
* @
|
|
1078
|
+
* @template TItem The type of items in the collection.
|
|
1079
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1080
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
1081
|
+
* @template TFilter The type of the filter.
|
|
1082
1082
|
* @param request The HTTP request.
|
|
1083
1083
|
* @param parameters The parameters for handling the collection.
|
|
1084
1084
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1226,7 +1226,7 @@ async function handleCollection(request, { name, identifier, uriGetter, filter,
|
|
|
1226
1226
|
}
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Filters collection items based on the provided predicate.
|
|
1229
|
-
* @
|
|
1229
|
+
* @template TItem The type of items to filter.
|
|
1230
1230
|
* @param items The items to filter.
|
|
1231
1231
|
* @param collectionName The name of the collection for logging purposes.
|
|
1232
1232
|
* @param filterPredicate Optional predicate function to filter items.
|
|
@@ -1257,7 +1257,7 @@ function filterCollectionItems(items, collectionName, filterPredicate) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Handles an inbox request for ActivityPub activities.
|
|
1260
|
-
* @
|
|
1260
|
+
* @template TContextData The context data to pass to the context.
|
|
1261
1261
|
* @param request The HTTP request.
|
|
1262
1262
|
* @param options The parameters for handling the inbox.
|
|
1263
1263
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1285,7 +1285,7 @@ async function handleInbox(request, options) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Internal function for handling inbox requests with detailed processing.
|
|
1288
|
-
* @
|
|
1288
|
+
* @template TContextData The context data to pass to the context.
|
|
1289
1289
|
* @param request The HTTP request.
|
|
1290
1290
|
* @param options The parameters for handling the inbox.
|
|
1291
1291
|
* @param span The OpenTelemetry span for tracing.
|
|
@@ -1522,10 +1522,10 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
|
|
|
1522
1522
|
}
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Handles a custom collection request.
|
|
1525
|
-
* @
|
|
1526
|
-
* @
|
|
1527
|
-
* @
|
|
1528
|
-
* @
|
|
1525
|
+
* @template TItem The type of items in the collection.
|
|
1526
|
+
* @template TParams The parameter names of the requested URL.
|
|
1527
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1528
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
1529
1529
|
* @param request The HTTP request.
|
|
1530
1530
|
* @param handleParams Parameters for handling the collection.
|
|
1531
1531
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1541,10 +1541,10 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
1541
1541
|
}
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Handles an ordered collection request.
|
|
1544
|
-
* @
|
|
1545
|
-
* @
|
|
1546
|
-
* @
|
|
1547
|
-
* @
|
|
1544
|
+
* @template TItem The type of items in the collection.
|
|
1545
|
+
* @template TParams The parameter names of the requested URL.
|
|
1546
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
1547
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
1548
1548
|
* @param request The HTTP request.
|
|
1549
1549
|
* @param handleParams Parameters for handling the collection.
|
|
1550
1550
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -1562,12 +1562,12 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
1562
1562
|
* Handling custom collections with support for pagination and filtering.
|
|
1563
1563
|
* The main flow is on `getCollection`, `dispatch`.
|
|
1564
1564
|
*
|
|
1565
|
-
* @
|
|
1566
|
-
* @
|
|
1567
|
-
* @
|
|
1568
|
-
* @
|
|
1569
|
-
* @
|
|
1570
|
-
* @
|
|
1565
|
+
* @template TItem The type of items in the collection.
|
|
1566
|
+
* @template TParams The parameter names of the requested URL.
|
|
1567
|
+
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
1568
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
1569
|
+
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
1570
|
+
* @template TCollectionPage The type of the collection page, extending {@link CollectionPage}.
|
|
1571
1571
|
* @since 1.8.0
|
|
1572
1572
|
*/
|
|
1573
1573
|
var CustomCollectionHandler = class {
|
|
@@ -1821,7 +1821,7 @@ var CustomCollectionHandler = class {
|
|
|
1821
1821
|
};
|
|
1822
1822
|
/**
|
|
1823
1823
|
* A wrapper function that catches specific errors and handles them appropriately.
|
|
1824
|
-
* @
|
|
1824
|
+
* @template TParams The type of parameters that extend ErrorHandlers.
|
|
1825
1825
|
* @param handler The handler function to wrap.
|
|
1826
1826
|
* @returns A wrapped handler function that catches and handles specific errors.
|
|
1827
1827
|
* @since 1.8.0
|
|
@@ -1843,7 +1843,7 @@ function exceptWrapper(handler) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Verifies that a value is defined (not undefined).
|
|
1846
|
-
* @
|
|
1846
|
+
* @template T The type of the value, excluding undefined.
|
|
1847
1847
|
* @param callbacks The value to verify.
|
|
1848
1848
|
* @throws {ItemsNotFoundError} If the value is undefined.
|
|
1849
1849
|
* @since 1.8.0
|
|
@@ -1862,7 +1862,7 @@ const verifyJsonLdRequest = (request) => {
|
|
|
1862
1862
|
};
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Performs authorization if needed based on the authorization predicate.
|
|
1865
|
-
* @
|
|
1865
|
+
* @template TContextData The context data type.
|
|
1866
1866
|
* @param {RequestContext<TContextData>} context The request context.
|
|
1867
1867
|
* @param {Record<string, string>} values The parameter values.
|
|
1868
1868
|
* @param options Options containing the authorization predicate.
|
|
@@ -1896,7 +1896,7 @@ const warning = {
|
|
|
1896
1896
|
};
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Appends a cursor parameter to a URL if the cursor exists.
|
|
1899
|
-
* @
|
|
1899
|
+
* @template Cursor The type of the cursor (string, null, or undefined).
|
|
1900
1900
|
* @param {URL} url The base URL to append the cursor to.
|
|
1901
1901
|
* @param {string | null | undefined} cursor The cursor value to append.
|
|
1902
1902
|
* @returns The URL with cursor appended if cursor is a string, null otherwise.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-DJRB0yFF.js";
|
|
6
|
+
import "./docloader-CIlLEfh0.js";
|
|
7
|
+
import "./actor-BEwE1xkS.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B_nc2hY6.js";
|
|
9
|
+
import "./lookup-CUyEjQoU.js";
|
|
10
|
+
import "./key-A0cU31dk.js";
|
|
11
|
+
import "./http-DtCW8AKK.js";
|
|
12
|
+
import "./proof-CI4Z1HtP.js";
|
|
13
|
+
import "./types-DEDxkISl.js";
|
|
14
|
+
import "./authdocloader-QzLzRgOE.js";
|
|
15
|
+
import "./vocab-B2F9_HWH.js";
|
|
16
|
+
|
|
17
|
+
export { FederationImpl };
|
|
@@ -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-UlD3uIBC.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-M-O0DhV3.js";
|
|
8
|
+
import "./semver-DCqorrj5.js";
|
|
9
|
+
import "./client-B2RqTSh-.js";
|
|
10
|
+
import "./lookup-4JPaW7A3.js";
|
|
11
|
+
import "./types-n7HI7VFr.js";
|
|
12
|
+
import "./actor-BOpSPzSZ.js";
|
|
13
|
+
import "./key-qgnl74Yn.js";
|
|
14
|
+
import "./http-BIVpouAl.js";
|
|
15
|
+
import "./authdocloader-CjBl4Ufk.js";
|
|
16
|
+
import "./ld-De9oNKxb.js";
|
|
17
|
+
import "./owner-DDWwhc1V.js";
|
|
18
|
+
import "./proof-BDEygHWL.js";
|
|
19
|
+
import "./inbox-BFSA4sEI.js";
|
|
20
|
+
import "./builder-DH6MUSoP.js";
|
|
21
|
+
import "./collection-D5V3UzU3.js";
|
|
22
|
+
import "./keycache-TbjHlTFb.js";
|
|
23
|
+
import "./retry-BnpVRGFC.js";
|
|
24
|
+
import "./send-CY38tmAA.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -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-UlD3uIBC.js";
|
|
7
|
+
import { getNodeInfo } from "./client-B2RqTSh-.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-4JPaW7A3.js";
|
|
9
9
|
import { nodeInfoToJson } from "./types-n7HI7VFr.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-qgnl74Yn.js";
|
|
11
|
+
import { verifyRequest } from "./http-BIVpouAl.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CjBl4Ufk.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-De9oNKxb.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-DDWwhc1V.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-BDEygHWL.js";
|
|
16
|
+
import { routeActivity } from "./inbox-BFSA4sEI.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-DH6MUSoP.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-D5V3UzU3.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-TbjHlTFb.js";
|
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-BnpVRGFC.js";
|
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-CY38tmAA.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";
|
|
@@ -42,7 +42,7 @@ const logger$1 = getLogger([
|
|
|
42
42
|
* https://example.com/#Follow/12345678-1234-5678-1234-567812345678
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
45
|
-
* @
|
|
45
|
+
* @template TContextData The type of the context data.
|
|
46
46
|
* @param activity The activity to assign an ID to.
|
|
47
47
|
* @param context The context of the activity.
|
|
48
48
|
* @return The activity with an ID assigned.
|
|
@@ -93,7 +93,7 @@ function autoIdAssigner(activity, context$1) {
|
|
|
93
93
|
*
|
|
94
94
|
* As some ActivityPub implementations like Threads fail to deal with inlined
|
|
95
95
|
* actor objects, this transformer can be used to work around this issue.
|
|
96
|
-
* @
|
|
96
|
+
* @template TContextData The type of the context data.
|
|
97
97
|
* @param activity The activity to dehydrate the actor property of.
|
|
98
98
|
* @param context The context of the activity.
|
|
99
99
|
* @returns The dehydrated activity.
|
|
@@ -106,7 +106,7 @@ function actorDehydrator(activity, _context) {
|
|
|
106
106
|
/**
|
|
107
107
|
* Gets the default activity transformers that are applied to all outgoing
|
|
108
108
|
* activities.
|
|
109
|
-
* @
|
|
109
|
+
* @template TContextData The type of the context data.
|
|
110
110
|
* @returns The default activity transformers.
|
|
111
111
|
* @since 1.4.0
|
|
112
112
|
*/
|
|
@@ -363,7 +363,7 @@ function acceptsJsonLd(request) {
|
|
|
363
363
|
}
|
|
364
364
|
/**
|
|
365
365
|
* Handles an actor request.
|
|
366
|
-
* @
|
|
366
|
+
* @template TContextData The context data to pass to the context.
|
|
367
367
|
* @param request The HTTP request.
|
|
368
368
|
* @param parameters The parameters for handling the actor.
|
|
369
369
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -413,7 +413,7 @@ async function handleActor(request, { identifier, context: context$1, actorDispa
|
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* Handles an object request.
|
|
416
|
-
* @
|
|
416
|
+
* @template TContextData The context data to pass to the context.
|
|
417
417
|
* @param request The HTTP request.
|
|
418
418
|
* @param parameters The parameters for handling the object.
|
|
419
419
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -452,10 +452,10 @@ async function handleObject(request, { values, context: context$1, objectDispatc
|
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
454
|
* Handles a collection request.
|
|
455
|
-
* @
|
|
456
|
-
* @
|
|
457
|
-
* @
|
|
458
|
-
* @
|
|
455
|
+
* @template TItem The type of items in the collection.
|
|
456
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
457
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
458
|
+
* @template TFilter The type of the filter.
|
|
459
459
|
* @param request The HTTP request.
|
|
460
460
|
* @param parameters The parameters for handling the collection.
|
|
461
461
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -603,7 +603,7 @@ async function handleCollection(request, { name, identifier, uriGetter, filter,
|
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* Filters collection items based on the provided predicate.
|
|
606
|
-
* @
|
|
606
|
+
* @template TItem The type of items to filter.
|
|
607
607
|
* @param items The items to filter.
|
|
608
608
|
* @param collectionName The name of the collection for logging purposes.
|
|
609
609
|
* @param filterPredicate Optional predicate function to filter items.
|
|
@@ -634,7 +634,7 @@ function filterCollectionItems(items, collectionName, filterPredicate) {
|
|
|
634
634
|
}
|
|
635
635
|
/**
|
|
636
636
|
* Handles an inbox request for ActivityPub activities.
|
|
637
|
-
* @
|
|
637
|
+
* @template TContextData The context data to pass to the context.
|
|
638
638
|
* @param request The HTTP request.
|
|
639
639
|
* @param options The parameters for handling the inbox.
|
|
640
640
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -662,7 +662,7 @@ async function handleInbox(request, options) {
|
|
|
662
662
|
}
|
|
663
663
|
/**
|
|
664
664
|
* Internal function for handling inbox requests with detailed processing.
|
|
665
|
-
* @
|
|
665
|
+
* @template TContextData The context data to pass to the context.
|
|
666
666
|
* @param request The HTTP request.
|
|
667
667
|
* @param options The parameters for handling the inbox.
|
|
668
668
|
* @param span The OpenTelemetry span for tracing.
|
|
@@ -899,10 +899,10 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
|
|
|
899
899
|
}
|
|
900
900
|
/**
|
|
901
901
|
* Handles a custom collection request.
|
|
902
|
-
* @
|
|
903
|
-
* @
|
|
904
|
-
* @
|
|
905
|
-
* @
|
|
902
|
+
* @template TItem The type of items in the collection.
|
|
903
|
+
* @template TParams The parameter names of the requested URL.
|
|
904
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
905
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
906
906
|
* @param request The HTTP request.
|
|
907
907
|
* @param handleParams Parameters for handling the collection.
|
|
908
908
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -918,10 +918,10 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
918
918
|
}
|
|
919
919
|
/**
|
|
920
920
|
* Handles an ordered collection request.
|
|
921
|
-
* @
|
|
922
|
-
* @
|
|
923
|
-
* @
|
|
924
|
-
* @
|
|
921
|
+
* @template TItem The type of items in the collection.
|
|
922
|
+
* @template TParams The parameter names of the requested URL.
|
|
923
|
+
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
924
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
925
925
|
* @param request The HTTP request.
|
|
926
926
|
* @param handleParams Parameters for handling the collection.
|
|
927
927
|
* @returns A promise that resolves to an HTTP response.
|
|
@@ -939,12 +939,12 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
939
939
|
* Handling custom collections with support for pagination and filtering.
|
|
940
940
|
* The main flow is on `getCollection`, `dispatch`.
|
|
941
941
|
*
|
|
942
|
-
* @
|
|
943
|
-
* @
|
|
944
|
-
* @
|
|
945
|
-
* @
|
|
946
|
-
* @
|
|
947
|
-
* @
|
|
942
|
+
* @template TItem The type of items in the collection.
|
|
943
|
+
* @template TParams The parameter names of the requested URL.
|
|
944
|
+
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
945
|
+
* @template TContextData The context data to pass to the `TContext`.
|
|
946
|
+
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
947
|
+
* @template TCollectionPage The type of the collection page, extending {@link CollectionPage}.
|
|
948
948
|
* @since 1.8.0
|
|
949
949
|
*/
|
|
950
950
|
var CustomCollectionHandler = class {
|
|
@@ -1198,7 +1198,7 @@ var CustomCollectionHandler = class {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
/**
|
|
1200
1200
|
* A wrapper function that catches specific errors and handles them appropriately.
|
|
1201
|
-
* @
|
|
1201
|
+
* @template TParams The type of parameters that extend ErrorHandlers.
|
|
1202
1202
|
* @param handler The handler function to wrap.
|
|
1203
1203
|
* @returns A wrapped handler function that catches and handles specific errors.
|
|
1204
1204
|
* @since 1.8.0
|
|
@@ -1220,7 +1220,7 @@ function exceptWrapper(handler) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Verifies that a value is defined (not undefined).
|
|
1223
|
-
* @
|
|
1223
|
+
* @template T The type of the value, excluding undefined.
|
|
1224
1224
|
* @param callbacks The value to verify.
|
|
1225
1225
|
* @throws {ItemsNotFoundError} If the value is undefined.
|
|
1226
1226
|
* @since 1.8.0
|
|
@@ -1239,7 +1239,7 @@ const verifyJsonLdRequest = (request) => {
|
|
|
1239
1239
|
};
|
|
1240
1240
|
/**
|
|
1241
1241
|
* Performs authorization if needed based on the authorization predicate.
|
|
1242
|
-
* @
|
|
1242
|
+
* @template TContextData The context data type.
|
|
1243
1243
|
* @param {RequestContext<TContextData>} context The request context.
|
|
1244
1244
|
* @param {Record<string, string>} values The parameter values.
|
|
1245
1245
|
* @param options Options containing the authorization predicate.
|
|
@@ -1273,7 +1273,7 @@ const warning = {
|
|
|
1273
1273
|
};
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Appends a cursor parameter to a URL if the cursor exists.
|
|
1276
|
-
* @
|
|
1276
|
+
* @template Cursor The type of the cursor (string, null, or undefined).
|
|
1277
1277
|
* @param {URL} url The base URL to append the cursor to.
|
|
1278
1278
|
* @param {string | null | undefined} cursor The cursor value to append.
|
|
1279
1279
|
* @returns The URL with cursor appended if cursor is a string, null otherwise.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
4
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
|
5
|
-
import { KeyCache } from "./http-
|
|
3
|
+
import { DocumentLoader } from "./docloader-CLolPVL_.js";
|
|
4
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Cyrb7_co.js";
|
|
5
|
+
import { KeyCache } from "./http-COez3YdK.js";
|
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
|
7
7
|
|
|
8
8
|
//#region sig/ld.d.ts
|
|
@@ -251,7 +251,7 @@ interface VerifyObjectOptions extends VerifyProofOptions {}
|
|
|
251
251
|
* Verifies the given object. It will verify all the proofs in the object,
|
|
252
252
|
* and succeed only if all the proofs are valid and all attributions and
|
|
253
253
|
* actors are authenticated by the proofs.
|
|
254
|
-
* @
|
|
254
|
+
* @template T The type of the object to verify.
|
|
255
255
|
* @param cls The class of the object to verify. It must be a subclass of
|
|
256
256
|
* the {@link Object}.
|
|
257
257
|
* @param jsonLd The JSON-LD object to verify. It's assumed that the object
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader, GetUserAgentOptions } from "./docloader-
|
|
4
|
-
import { Collection, Link, Object as Object$1 } from "./vocab-
|
|
3
|
+
import { DocumentLoader, GetUserAgentOptions } from "./docloader-CLolPVL_.js";
|
|
4
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-Cyrb7_co.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region vocab/lookup.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { Activity } from "./vocab-
|
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
|
3
|
+
import { Activity } from "./vocab-Cyrb7_co.js";
|
|
4
|
+
import { ActivityTransformer, Context } from "./context-BNA3vzcr.js";
|
|
5
5
|
|
|
6
6
|
//#region compat/transformers.d.ts
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ import { ActivityTransformer, Context } from "./context-Csbv_Ssv.js";
|
|
|
17
17
|
* https://example.com/#Follow/12345678-1234-5678-1234-567812345678
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
-
* @
|
|
20
|
+
* @template TContextData The type of the context data.
|
|
21
21
|
* @param activity The activity to assign an ID to.
|
|
22
22
|
* @param context The context of the activity.
|
|
23
23
|
* @return The activity with an ID assigned.
|
|
@@ -63,7 +63,7 @@ declare function autoIdAssigner<TContextData>(activity: Activity, context: Conte
|
|
|
63
63
|
*
|
|
64
64
|
* As some ActivityPub implementations like Threads fail to deal with inlined
|
|
65
65
|
* actor objects, this transformer can be used to work around this issue.
|
|
66
|
-
* @
|
|
66
|
+
* @template TContextData The type of the context data.
|
|
67
67
|
* @param activity The activity to dehydrate the actor property of.
|
|
68
68
|
* @param context The context of the activity.
|
|
69
69
|
* @returns The dehydrated activity.
|
|
@@ -73,7 +73,7 @@ declare function actorDehydrator<TContextData>(activity: Activity, _context: Con
|
|
|
73
73
|
/**
|
|
74
74
|
* Gets the default activity transformers that are applied to all outgoing
|
|
75
75
|
* activities.
|
|
76
|
-
* @
|
|
76
|
+
* @template TContextData The type of the context data.
|
|
77
77
|
* @returns The default activity transformers.
|
|
78
78
|
* @since 1.4.0
|
|
79
79
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-
|
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
|
3
|
+
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-CLolPVL_.js";
|
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-COez3YdK.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region runtime/authdocloader.d.ts
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-
|
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-
|
|
6
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-
|
|
7
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-
|
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
|
9
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-
|
|
10
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-
|
|
11
|
-
import { ResourceDescriptor, lookupWebFinger } from "./lookup-
|
|
12
|
-
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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-BqOK6zss.js";
|
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CLolPVL_.js";
|
|
5
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-B0IOer6B.js";
|
|
6
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-Cyrb7_co.js";
|
|
7
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-CWNAGvnO.js";
|
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-COez3YdK.js";
|
|
9
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BlxMNrL4.js";
|
|
10
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-C2jQirfr.js";
|
|
11
|
+
import { ResourceDescriptor, lookupWebFinger } from "./lookup-tSXYzgYs.js";
|
|
12
|
+
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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BNA3vzcr.js";
|
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CxD6XXBN.js";
|
|
15
15
|
import "./mod-g0xFzAP9.js";
|
|
16
16
|
import "./mod-1pDWKvUL.js";
|
|
17
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-
|
|
18
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-
|
|
17
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-UTC30uNC.js";
|
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-Bf-mThHd.js";
|
|
19
19
|
import "./mod-GIh5OYxW.js";
|
|
20
20
|
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, 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, ParamsKeyPath, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, 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, 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 };
|
package/dist/mod.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-
|
|
5
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-DJRB0yFF.js";
|
|
6
6
|
import "./compat-Bb5myD13.js";
|
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
|
8
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CIlLEfh0.js";
|
|
8
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-BEwE1xkS.js";
|
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-B_nc2hY6.js";
|
|
10
|
+
import { lookupWebFinger } from "./lookup-CUyEjQoU.js";
|
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-A0cU31dk.js";
|
|
12
|
+
import { signRequest, verifyRequest } from "./http-DtCW8AKK.js";
|
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-CI4Z1HtP.js";
|
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
|
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
17
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DEDxkISl.js";
|
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-QzLzRgOE.js";
|
|
17
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-B2F9_HWH.js";
|
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
|
20
20
|
import "./sig-BXJO--F9.js";
|