@fedify/fedify 2.0.1 → 2.0.2-dev.415

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.
Files changed (98) hide show
  1. package/dist/{builder-CqPrSnE5.js → builder-B55ClH_D.js} +3 -3
  2. package/dist/client-BxMZiQaD.d.ts +224 -0
  3. package/dist/client-C97KOq3x.d.cts +222 -0
  4. package/dist/compat/mod.d.cts +6 -6
  5. package/dist/compat/mod.d.ts +6 -6
  6. package/dist/compat/transformers.test.js +11 -11
  7. package/dist/context-D3QkEtZd.d.cts +2494 -0
  8. package/dist/context-DZJhUmzF.d.ts +2496 -0
  9. package/dist/{deno-CIi8RNND.js → deno-D-Duks4b.js} +1 -1
  10. package/dist/{docloader-CmrEfaGw.js → docloader-Bb4MhBYJ.js} +2 -2
  11. package/dist/federation/builder.test.js +3 -3
  12. package/dist/federation/handler.test.js +19 -19
  13. package/dist/federation/idempotency.test.js +11 -11
  14. package/dist/federation/inbox.test.js +2 -2
  15. package/dist/federation/middleware.test.js +11 -11
  16. package/dist/federation/mod.cjs +4 -4
  17. package/dist/federation/mod.d.cts +6 -6
  18. package/dist/federation/mod.d.ts +6 -6
  19. package/dist/federation/mod.js +4 -4
  20. package/dist/federation/send.test.js +5 -5
  21. package/dist/federation/webfinger.test.js +11 -11
  22. package/dist/{http-CCsNu78I.js → http-C3ipH_7H.js} +1 -1
  23. package/dist/http-Cz3MlXAZ.d.cts +244 -0
  24. package/dist/{http-BjroyS-9.cjs → http-DGYGS8C8.cjs} +1 -1
  25. package/dist/http-DkHdFfrc.d.ts +246 -0
  26. package/dist/{http-Dvox_xrq.js → http-DnP0rGKj.js} +2 -2
  27. package/dist/{inbox-CiTdVhJQ.js → inbox-CbNZlhe6.js} +1 -1
  28. package/dist/{key-C7JS89OH.js → key-DChkqRrm.js} +1 -1
  29. package/dist/kv-BL4nlICN.d.cts +110 -0
  30. package/dist/kv-DXEUEP6z.d.ts +113 -0
  31. package/dist/{kv-cache-BqFnozz0.cjs → kv-cache-Bd2z9in6.cjs} +1 -1
  32. package/dist/{kv-cache-6b2ldIo-.js → kv-cache-CFQBoGCe.js} +1 -1
  33. package/dist/{ld-C8i1kViF.js → ld-CR9Xg8mN.js} +2 -2
  34. package/dist/{middleware-DqJ1cmZE.cjs → middleware-B1XHFs0D.cjs} +8 -83
  35. package/dist/{middleware-B3GuN6Gj.js → middleware-B9frafBa.js} +8 -83
  36. package/dist/middleware-Bt5MUXQg.cjs +12 -0
  37. package/dist/{middleware-0fnsG0v7.js → middleware-ByIcAfxE.js} +11 -11
  38. package/dist/{middleware-CfL_Pd6a.js → middleware-DhlkbIaH.js} +4 -4
  39. package/dist/{middleware-B4Bgz0MJ.js → middleware-OPyIzlKI.js} +14 -89
  40. package/dist/mod-CwZXZJ9d.d.ts +91 -0
  41. package/dist/mod-DPkRU3EK.d.cts +266 -0
  42. package/dist/mod-DUWcVv49.d.ts +268 -0
  43. package/dist/mod-DVwHUI_x.d.cts +80 -0
  44. package/dist/mod-DXsQakeS.d.cts +89 -0
  45. package/dist/mod-Di3W5OdP.d.cts +62 -0
  46. package/dist/mod-DnSsduJF.d.ts +64 -0
  47. package/dist/mod-DosD6NsG.d.ts +82 -0
  48. package/dist/mod.cjs +4 -4
  49. package/dist/mod.d.cts +9 -9
  50. package/dist/mod.d.ts +9 -9
  51. package/dist/mod.js +4 -4
  52. package/dist/nodeinfo/handler.test.js +11 -11
  53. package/dist/nodeinfo/mod.d.cts +1 -1
  54. package/dist/nodeinfo/mod.d.ts +1 -1
  55. package/dist/otel/mod.d.cts +145 -145
  56. package/dist/otel/mod.d.ts +145 -145
  57. package/dist/owner-1AbPBOOZ.d.cts +66 -0
  58. package/dist/{owner-BOSWh-ha.js → owner-DfXg2o90.js} +1 -1
  59. package/dist/owner-gd0Q9FuU.d.ts +68 -0
  60. package/dist/{proof-BeT_MFIx.js → proof-BTvHpR2_.js} +2 -2
  61. package/dist/{proof-D61EYfPl.js → proof-CNhYMIct.js} +1 -1
  62. package/dist/{proof-C8qvlfLD.cjs → proof-DnzISmKI.cjs} +1 -1
  63. package/dist/{send-D7lC06r9.js → send-DaEkUvnr.js} +2 -2
  64. package/dist/sig/http.test.js +3 -3
  65. package/dist/sig/key.test.js +2 -2
  66. package/dist/sig/ld.test.js +3 -3
  67. package/dist/sig/mod.cjs +2 -2
  68. package/dist/sig/mod.d.cts +3 -3
  69. package/dist/sig/mod.d.ts +3 -3
  70. package/dist/sig/mod.js +2 -2
  71. package/dist/sig/owner.test.js +3 -3
  72. package/dist/sig/proof.test.js +3 -3
  73. package/dist/testing/mod.d.ts +4 -23
  74. package/dist/utils/docloader.test.js +4 -4
  75. package/dist/utils/mod.cjs +2 -2
  76. package/dist/utils/mod.d.cts +3 -3
  77. package/dist/utils/mod.d.ts +3 -3
  78. package/dist/utils/mod.js +2 -2
  79. package/package.json +5 -5
  80. package/dist/client-CwkOPN13.d.cts +0 -222
  81. package/dist/client-a7NwzhA2.d.ts +0 -224
  82. package/dist/context-BdNW_8a3.d.cts +0 -2554
  83. package/dist/context-C-GVKcJR.d.ts +0 -2556
  84. package/dist/http-CCEu-x1_.d.cts +0 -253
  85. package/dist/http-CODSJcKx.d.ts +0 -255
  86. package/dist/kv-g9jFc34-.d.cts +0 -110
  87. package/dist/kv-jg_8SMc1.d.ts +0 -113
  88. package/dist/middleware-DILzU8Ot.cjs +0 -12
  89. package/dist/mod-5PNty1K9.d.cts +0 -80
  90. package/dist/mod-BcpEGTWV.d.cts +0 -62
  91. package/dist/mod-COO7VMcm.d.cts +0 -266
  92. package/dist/mod-CevNbUol.d.ts +0 -91
  93. package/dist/mod-CtO31FCx.d.ts +0 -64
  94. package/dist/mod-Da9fNDyC.d.ts +0 -82
  95. package/dist/mod-ErTjUJs9.d.cts +0 -89
  96. package/dist/mod-q2IR8UiH.d.ts +0 -268
  97. package/dist/owner-9yZ5Ibsb.d.cts +0 -66
  98. package/dist/owner-DQYAbVmX.d.ts +0 -68
@@ -0,0 +1,62 @@
1
+ import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-D3QkEtZd.cjs";
2
+ import { Span, Tracer } from "@opentelemetry/api";
3
+
4
+ //#region src/federation/webfinger.d.ts
5
+ /**
6
+ * Parameters for {@link handleWebFinger}.
7
+ */
8
+ interface WebFingerHandlerParameters<TContextData> {
9
+ /**
10
+ * The request context.
11
+ */
12
+ context: RequestContext<TContextData>;
13
+ /**
14
+ * The canonical hostname of the server, if it's explicitly configured.
15
+ * @since 1.5.0
16
+ */
17
+ host?: string;
18
+ /**
19
+ * The callback for dispatching the actor.
20
+ */
21
+ actorDispatcher?: ActorDispatcher<TContextData>;
22
+ /**
23
+ * The callback for mapping a WebFinger username to the corresponding actor's
24
+ * internal identifier, or `null` if the username is not found.
25
+ * @since 0.15.0
26
+ */
27
+ actorHandleMapper?: ActorHandleMapper<TContextData>;
28
+ /**
29
+ * The callback for mapping a WebFinger query to the corresponding actor's
30
+ * internal identifier or username, or `null` if the query is not found.
31
+ * @since 1.4.0
32
+ */
33
+ actorAliasMapper?: ActorAliasMapper<TContextData>;
34
+ /**
35
+ * The callback for dispatching the Links of webFinger.
36
+ */
37
+ webFingerLinksDispatcher?: WebFingerLinksDispatcher<TContextData>;
38
+ /**
39
+ * The function to call when the actor is not found.
40
+ */
41
+ onNotFound(request: Request): Response | Promise<Response>;
42
+ /**
43
+ * The OpenTelemetry tracer.
44
+ * @since 1.3.0
45
+ */
46
+ tracer?: Tracer;
47
+ /**
48
+ * The span for the request.
49
+ * @since 1.3.0
50
+ */
51
+ span?: Span;
52
+ }
53
+ /**
54
+ * Handles a WebFinger request. You would not typically call this function
55
+ * directly, but instead use {@link Federation.fetch} method.
56
+ * @param request The WebFinger request to handle.
57
+ * @param parameters The parameters for handling the request.
58
+ * @returns The response to the request.
59
+ */
60
+ declare function handleWebFinger<TContextData>(request: Request, options: WebFingerHandlerParameters<TContextData>): Promise<Response>;
61
+ //#endregion
62
+ export { WebFingerHandlerParameters, handleWebFinger };
@@ -0,0 +1,64 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-DZJhUmzF.js";
4
+ import { Span, Tracer } from "@opentelemetry/api";
5
+
6
+ //#region src/federation/webfinger.d.ts
7
+ /**
8
+ * Parameters for {@link handleWebFinger}.
9
+ */
10
+ interface WebFingerHandlerParameters<TContextData> {
11
+ /**
12
+ * The request context.
13
+ */
14
+ context: RequestContext<TContextData>;
15
+ /**
16
+ * The canonical hostname of the server, if it's explicitly configured.
17
+ * @since 1.5.0
18
+ */
19
+ host?: string;
20
+ /**
21
+ * The callback for dispatching the actor.
22
+ */
23
+ actorDispatcher?: ActorDispatcher<TContextData>;
24
+ /**
25
+ * The callback for mapping a WebFinger username to the corresponding actor's
26
+ * internal identifier, or `null` if the username is not found.
27
+ * @since 0.15.0
28
+ */
29
+ actorHandleMapper?: ActorHandleMapper<TContextData>;
30
+ /**
31
+ * The callback for mapping a WebFinger query to the corresponding actor's
32
+ * internal identifier or username, or `null` if the query is not found.
33
+ * @since 1.4.0
34
+ */
35
+ actorAliasMapper?: ActorAliasMapper<TContextData>;
36
+ /**
37
+ * The callback for dispatching the Links of webFinger.
38
+ */
39
+ webFingerLinksDispatcher?: WebFingerLinksDispatcher<TContextData>;
40
+ /**
41
+ * The function to call when the actor is not found.
42
+ */
43
+ onNotFound(request: Request): Response | Promise<Response>;
44
+ /**
45
+ * The OpenTelemetry tracer.
46
+ * @since 1.3.0
47
+ */
48
+ tracer?: Tracer;
49
+ /**
50
+ * The span for the request.
51
+ * @since 1.3.0
52
+ */
53
+ span?: Span;
54
+ }
55
+ /**
56
+ * Handles a WebFinger request. You would not typically call this function
57
+ * directly, but instead use {@link Federation.fetch} method.
58
+ * @param request The WebFinger request to handle.
59
+ * @param parameters The parameters for handling the request.
60
+ * @returns The response to the request.
61
+ */
62
+ declare function handleWebFinger<TContextData>(request: Request, options: WebFingerHandlerParameters<TContextData>): Promise<Response>;
63
+ //#endregion
64
+ export { WebFingerHandlerParameters, handleWebFinger };
@@ -0,0 +1,82 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { ActivityTransformer, Context } from "./context-DZJhUmzF.js";
4
+ import { Activity } from "@fedify/vocab";
5
+
6
+ //#region src/compat/transformers.d.ts
7
+
8
+ /**
9
+ * An activity transformer that assigns a new random ID to an activity if it
10
+ * does not already have one. This is useful for ensuring that activities
11
+ * have an ID before they are sent to other servers.
12
+ *
13
+ * The generated ID is an origin URI with a fragment which contains an activity
14
+ * type name with a random UUID:
15
+ *
16
+ * ```
17
+ * https://example.com/#Follow/12345678-1234-5678-1234-567812345678
18
+ * ```
19
+ *
20
+ * @template TContextData The type of the context data.
21
+ * @param activity The activity to assign an ID to.
22
+ * @param context The context of the activity.
23
+ * @return The activity with an ID assigned.
24
+ * @since 1.4.0
25
+ */
26
+ declare function autoIdAssigner<TContextData>(activity: Activity, context: Context<TContextData>): Activity;
27
+ /**
28
+ * An activity transformer that dehydrates the actor property of an activity
29
+ * so that it only contains the actor's URI. For example, suppose we have an
30
+ * activity like this:
31
+ *
32
+ * ```typescript
33
+ * import { Follow, Person } from "@fedify/vocab";
34
+ * const input = new Follow({
35
+ * id: new URL("http://example.com/activities/1"),
36
+ * actor: new Person({
37
+ * id: new URL("http://example.com/actors/1"),
38
+ * name: "Alice",
39
+ * preferredUsername: "alice",
40
+ * }),
41
+ * object: new Person({
42
+ * id: new URL("http://example.com/actors/2"),
43
+ * name: "Bob",
44
+ * preferredUsername: "bob",
45
+ * }),
46
+ * });
47
+ * ```
48
+ *
49
+ * The result of applying this transformer would be:
50
+ *
51
+ * ```typescript
52
+ * import { Follow, Person } from "@fedify/vocab";
53
+ * const output = new Follow({
54
+ * id: new URL("http://example.com/activities/1"),
55
+ * actor: new URL("http://example.com/actors/1"),
56
+ * object: new Person({
57
+ * id: new URL("http://example.com/actors/2"),
58
+ * name: "Bob",
59
+ * preferredUsername: "bob",
60
+ * }),
61
+ * });
62
+ * ```
63
+ *
64
+ * As some ActivityPub implementations like Threads fail to deal with inlined
65
+ * actor objects, this transformer can be used to work around this issue.
66
+ * @template TContextData The type of the context data.
67
+ * @param activity The activity to dehydrate the actor property of.
68
+ * @param context The context of the activity.
69
+ * @returns The dehydrated activity.
70
+ * @since 1.4.0
71
+ */
72
+ declare function actorDehydrator<TContextData>(activity: Activity, _context: Context<TContextData>): Activity;
73
+ /**
74
+ * Gets the default activity transformers that are applied to all outgoing
75
+ * activities.
76
+ * @template TContextData The type of the context data.
77
+ * @returns The default activity transformers.
78
+ * @since 1.4.0
79
+ */
80
+ declare function getDefaultActivityTransformers<TContextData>(): readonly ActivityTransformer<TContextData>[];
81
+ //#endregion
82
+ export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
package/dist/mod.cjs CHANGED
@@ -5,12 +5,12 @@
5
5
  const require_chunk = require('./chunk-CGaQZ11T.cjs');
6
6
  const require_transformers = require('./transformers-3g8GZwkZ.cjs');
7
7
  require('./compat-DmDDELst.cjs');
8
- const require_http = require('./http-BjroyS-9.cjs');
9
- const require_middleware = require('./middleware-DqJ1cmZE.cjs');
10
- const require_proof = require('./proof-C8qvlfLD.cjs');
8
+ const require_http = require('./http-DGYGS8C8.cjs');
9
+ const require_middleware = require('./middleware-B1XHFs0D.cjs');
10
+ const require_proof = require('./proof-DnzISmKI.cjs');
11
11
  const require_federation = require('./federation-Bp3HI26G.cjs');
12
12
  const require_types = require('./types-Cd_hszr_.cjs');
13
- const require_kv_cache = require('./kv-cache-BqFnozz0.cjs');
13
+ const require_kv_cache = require('./kv-cache-Bd2z9in6.cjs');
14
14
  require('./nodeinfo-DuMYTpbZ.cjs');
15
15
  const require_runtime = require('./runtime-c2Njxsry.cjs');
16
16
  require('./sig-vX39WyWI.cjs');
package/dist/mod.d.cts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { __export, __reExport, mod_d_exports } from "./mod-Bh8mqlYw.cjs";
2
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-CwkOPN13.cjs";
3
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CCEu-x1_.cjs";
4
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-9yZ5Ibsb.cjs";
5
- import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BdNW_8a3.cjs";
6
- import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-g9jFc34-.cjs";
7
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-5PNty1K9.cjs";
8
- import { WebFingerHandlerParameters, handleWebFinger } from "./mod-BcpEGTWV.cjs";
2
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-C97KOq3x.cjs";
3
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-Cz3MlXAZ.cjs";
4
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-1AbPBOOZ.cjs";
5
+ import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-D3QkEtZd.cjs";
6
+ import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-BL4nlICN.cjs";
7
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DVwHUI_x.cjs";
8
+ import { WebFingerHandlerParameters, handleWebFinger } from "./mod-Di3W5OdP.cjs";
9
9
  import "./mod-gq_Xfdz8.cjs";
10
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-COO7VMcm.cjs";
11
- import { getAuthenticatedDocumentLoader, kvCache } from "./mod-ErTjUJs9.cjs";
10
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DPkRU3EK.cjs";
11
+ import { getAuthenticatedDocumentLoader, kvCache } from "./mod-DXsQakeS.cjs";
12
12
 
13
13
  //#region src/mod.d.ts
14
14
  declare namespace mod_d_exports$1 {
package/dist/mod.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { __export, __reExport } from "./chunk-DJNbSFdH.js";
4
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-a7NwzhA2.js";
5
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CODSJcKx.js";
6
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-DQYAbVmX.js";
7
- import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-C-GVKcJR.js";
8
- import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-jg_8SMc1.js";
9
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-Da9fNDyC.js";
10
- import { WebFingerHandlerParameters, handleWebFinger } from "./mod-CtO31FCx.js";
4
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-BxMZiQaD.js";
5
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-DkHdFfrc.js";
6
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-gd0Q9FuU.js";
7
+ import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-DZJhUmzF.js";
8
+ import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-DXEUEP6z.js";
9
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DosD6NsG.js";
10
+ import { WebFingerHandlerParameters, handleWebFinger } from "./mod-DnSsduJF.js";
11
11
  import "./mod-AGjRfPjT.js";
12
12
  import { mod_d_exports } from "./mod-D6HodEq7.js";
13
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-q2IR8UiH.js";
14
- import { getAuthenticatedDocumentLoader, kvCache } from "./mod-CevNbUol.js";
13
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DUWcVv49.js";
14
+ import { getAuthenticatedDocumentLoader, kvCache } from "./mod-CwZXZJ9d.js";
15
15
 
16
16
  //#region src/mod.d.ts
17
17
  declare namespace mod_d_exports$1 {
package/dist/mod.js CHANGED
@@ -5,12 +5,12 @@
5
5
  import { __export, __reExport } from "./chunk-DJNbSFdH.js";
6
6
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-C3FLHUd6.js";
7
7
  import "./compat-Bb4NuTUO.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CCsNu78I.js";
9
- import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-B3GuN6Gj.js";
10
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-D61EYfPl.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-C3ipH_7H.js";
9
+ import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-B9frafBa.js";
10
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-CNhYMIct.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-DaMfqRm4.js";
12
12
  import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-C93Ob9cU.js";
13
- import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-6b2ldIo-.js";
13
+ import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-CFQBoGCe.js";
14
14
  import "./nodeinfo-DoESQxq5.js";
15
15
  import { runtime_exports } from "./runtime-poamPCMb.js";
16
16
  import "./sig-BNhspNOf.js";
@@ -8,25 +8,25 @@ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-QzKcOQgP.js";
11
- import "../deno-CIi8RNND.js";
12
- import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-B4Bgz0MJ.js";
11
+ import "../deno-D-Duks4b.js";
12
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-OPyIzlKI.js";
13
13
  import "../client-Dg7OfUDA.js";
14
14
  import "../router-D9eI0s4b.js";
15
15
  import "../types-CPz01LGH.js";
16
- import "../key-C7JS89OH.js";
17
- import "../http-Dvox_xrq.js";
18
- import "../ld-C8i1kViF.js";
19
- import "../owner-BOSWh-ha.js";
20
- import "../proof-BeT_MFIx.js";
21
- import "../docloader-CmrEfaGw.js";
16
+ import "../key-DChkqRrm.js";
17
+ import "../http-DnP0rGKj.js";
18
+ import "../ld-CR9Xg8mN.js";
19
+ import "../owner-DfXg2o90.js";
20
+ import "../proof-BTvHpR2_.js";
21
+ import "../docloader-Bb4MhBYJ.js";
22
22
  import "../kv-cache-B__dHl7g.js";
23
- import "../inbox-CiTdVhJQ.js";
24
- import "../builder-CqPrSnE5.js";
23
+ import "../inbox-CbNZlhe6.js";
24
+ import "../builder-B55ClH_D.js";
25
25
  import "../collection-CcnIw1qY.js";
26
26
  import "../keycache-DRxpZ5r9.js";
27
27
  import "../negotiation-5NPJL6zp.js";
28
28
  import "../retry-D4GJ670a.js";
29
- import "../send-D7lC06r9.js";
29
+ import "../send-DaEkUvnr.js";
30
30
  import "../std__assert-DWivtrGR.js";
31
31
  import "../assert_rejects-Ce45JcFg.js";
32
32
  import "../assert_throws-BNXdRGWP.js";
@@ -1,3 +1,3 @@
1
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-CwkOPN13.cjs";
1
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-C97KOq3x.cjs";
2
2
  import "../mod-gq_Xfdz8.cjs";
3
3
  export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-a7NwzhA2.js";
3
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-BxMZiQaD.js";
4
4
  import "../mod-AGjRfPjT.js";
5
5
  export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };