@fedify/fedify 2.4.0-dev.1655 → 2.4.0-pr.934.40

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 (71) hide show
  1. package/README.md +3 -0
  2. package/dist/{builder-8MpCLAhD.mjs → builder-BBPwtB2v.mjs} +2 -2
  3. package/dist/compat/mod.d.cts +1 -1
  4. package/dist/compat/mod.d.ts +1 -1
  5. package/dist/compat/transformers.test.mjs +1 -1
  6. package/dist/{context-lxX6I7as.d.cts → context-C05Rgxmu.d.cts} +1 -1
  7. package/dist/{context-Zii1f5xS.d.ts → context-Cjnr0ig1.d.ts} +1 -1
  8. package/dist/{deno-DIcd3H5U.mjs → deno-D3c0o_N0.mjs} +1 -1
  9. package/dist/{docloader-BS9NsNYt.mjs → docloader-BCecHIxU.mjs} +2 -2
  10. package/dist/federation/builder.test.mjs +1 -1
  11. package/dist/federation/handler.test.mjs +3 -5
  12. package/dist/federation/idempotency.test.mjs +2 -2
  13. package/dist/federation/metrics.test.mjs +1 -1
  14. package/dist/federation/middleware.test.mjs +7 -7
  15. package/dist/federation/mod.cjs +288 -9
  16. package/dist/federation/mod.d.cts +3 -3
  17. package/dist/federation/mod.d.ts +3 -3
  18. package/dist/federation/mod.js +279 -1
  19. package/dist/federation/mq.test.mjs +20 -1
  20. package/dist/federation/send.test.mjs +3 -3
  21. package/dist/federation/tasks/enqueue.test.mjs +39 -2
  22. package/dist/federation/tasks/tasks.test.mjs +3 -3
  23. package/dist/federation/temporal.test.mjs +1 -1
  24. package/dist/federation/webfinger.test.mjs +1 -1
  25. package/dist/{http-CuQZAaUT.js → http-Ctb_KhZ8.js} +1 -1
  26. package/dist/{http-v2n_JnYK.mjs → http-Dm0JAUa_.mjs} +3 -3
  27. package/dist/{http-C6PWxqco.cjs → http-jr0TkgZe.cjs} +1 -1
  28. package/dist/{key-C2NKn9Cq.mjs → key-C_gNKtxm.mjs} +2 -2
  29. package/dist/{kv-cache-BlhrYDM4.mjs → kv-cache-B7H7lZ84.mjs} +1 -1
  30. package/dist/{kv-cache-CZH7haL0.js → kv-cache-BxUZRBC2.js} +1 -1
  31. package/dist/{kv-cache-B7ZZFrUW.cjs → kv-cache-D-hbjJAD.cjs} +1 -1
  32. package/dist/{ld-g2gwPTnA.mjs → ld-DAPAVL_7.mjs} +3 -3
  33. package/dist/{metrics-DTsGrbUw.mjs → metrics-BMaatuZi.mjs} +1 -1
  34. package/dist/{metrics-CoUJLQhZ.d.cts → metrics-DN13mCAw.d.cts} +19 -1
  35. package/dist/{metrics-Dc4jR-IC.d.ts → metrics-v_e0n5GQ.d.ts} +19 -1
  36. package/dist/{middleware-FI7YX3gk.cjs → middleware-BW7WQltk.cjs} +40 -325
  37. package/dist/{middleware-CzUjNpkv.js → middleware-CfZR_riY.js} +6 -278
  38. package/dist/{middleware-BWlRM5qQ.mjs → middleware-DfPBAh9L.mjs} +1 -1
  39. package/dist/{middleware-C_MX_2Mg.mjs → middleware-O2LHXFEk.mjs} +14 -15
  40. package/dist/{mod-BtEaIEcD.d.cts → mod-BrpVsSfY.d.cts} +1 -1
  41. package/dist/{mod-DLc2Ot6f.d.ts → mod-BsCE5Ihq.d.ts} +1 -1
  42. package/dist/{mod-UMmveiO0.d.ts → mod-CNef4in0.d.ts} +1 -1
  43. package/dist/{mod-gOlPDuT8.d.cts → mod-DdONo-ep.d.cts} +1 -1
  44. package/dist/mod.cjs +6 -6
  45. package/dist/mod.d.cts +4 -4
  46. package/dist/mod.d.ts +4 -4
  47. package/dist/mod.js +5 -5
  48. package/dist/{mq-llHKivST.mjs → mq-Bo7Etgh6.mjs} +6 -0
  49. package/dist/nodeinfo/handler.test.mjs +1 -1
  50. package/dist/{owner-Dzl5ytTO.mjs → owner-Dcx-czqn.mjs} +2 -2
  51. package/dist/{proof-C3fIAqh0.mjs → proof-BkAxvrjt.mjs} +3 -3
  52. package/dist/{proof-p5BKVu79.js → proof-D-H_PnJW.js} +1 -1
  53. package/dist/{proof-h42TdzKb.cjs → proof-NY0D8Oux.cjs} +1 -1
  54. package/dist/{send-1BSFDQnC.mjs → send-D_j7E-oC.mjs} +3 -3
  55. package/dist/sig/http.test.mjs +2 -2
  56. package/dist/sig/key.test.mjs +1 -1
  57. package/dist/sig/ld.test.mjs +2 -2
  58. package/dist/sig/mod.cjs +2 -2
  59. package/dist/sig/mod.js +2 -2
  60. package/dist/sig/owner.test.mjs +1 -1
  61. package/dist/sig/proof.test.mjs +1 -1
  62. package/dist/{temporal-DBKWwg91.mjs → temporal-yE5EcfNX.mjs} +1 -1
  63. package/dist/testing/mod.d.mts +14 -1
  64. package/dist/utils/docloader.test.mjs +2 -2
  65. package/dist/utils/kv-cache.test.mjs +1 -1
  66. package/dist/utils/mod.cjs +1 -1
  67. package/dist/utils/mod.d.cts +1 -1
  68. package/dist/utils/mod.d.ts +1 -1
  69. package/dist/utils/mod.js +1 -1
  70. package/package.json +7 -7
  71. package/skills/fedify/SKILL.md +462 -0
package/README.md CHANGED
@@ -119,6 +119,7 @@ Here is the list of packages:
119
119
  | [@fedify/next](/packages/next/) | | [npm][npm:@fedify/next] | Next.js integration |
120
120
  | [@fedify/nuxt](/packages/nuxt/) | [JSR][jsr:@fedify/nuxt] | [npm][npm:@fedify/nuxt] | Nuxt integration |
121
121
  | [@fedify/mysql](/packages/mysql/) | [JSR][jsr:@fedify/mysql] | [npm][npm:@fedify/mysql] | MySQL/MariaDB driver |
122
+ | [@fedify/netlify](/packages/netlify/) | [JSR][jsr:@fedify/netlify] | [npm][npm:@fedify/netlify] | Netlify Async Workloads integration |
122
123
  | [@fedify/postgres](/packages/postgres/) | [JSR][jsr:@fedify/postgres] | [npm][npm:@fedify/postgres] | PostgreSQL driver |
123
124
  | [@fedify/redis](/packages/redis/) | [JSR][jsr:@fedify/redis] | [npm][npm:@fedify/redis] | Redis driver |
124
125
  | [@fedify/relay](/packages/relay/) | [JSR][jsr:@fedify/relay] | [npm][npm:@fedify/relay] | ActivityPub relay support |
@@ -168,6 +169,8 @@ Here is the list of packages:
168
169
  [npm:@fedify/nuxt]: https://www.npmjs.com/package/@fedify/nuxt
169
170
  [jsr:@fedify/mysql]: https://jsr.io/@fedify/mysql
170
171
  [npm:@fedify/mysql]: https://www.npmjs.com/package/@fedify/mysql
172
+ [jsr:@fedify/netlify]: https://jsr.io/@fedify/netlify
173
+ [npm:@fedify/netlify]: https://www.npmjs.com/package/@fedify/netlify
171
174
  [jsr:@fedify/postgres]: https://jsr.io/@fedify/postgres
172
175
  [npm:@fedify/postgres]: https://www.npmjs.com/package/@fedify/postgres
173
176
  [jsr:@fedify/redis]: https://jsr.io/@fedify/redis
@@ -1,7 +1,7 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DIcd3H5U.mjs";
4
+ import { n as version, t as name } from "./deno-D3c0o_N0.mjs";
5
5
  import { t as ActivityListenerSet } from "./activity-listener-BtTSxZWA.mjs";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { Router, RouterError, assertPath } from "@fedify/uri-template";
@@ -85,7 +85,7 @@ var FederationBuilderImpl = class {
85
85
  * specified.
86
86
  */
87
87
  async build(options) {
88
- const { FederationImpl } = await import("./middleware-BWlRM5qQ.mjs");
88
+ const { FederationImpl } = await import("./middleware-DfPBAh9L.mjs");
89
89
  const f = new FederationImpl(options);
90
90
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
91
91
  f.router = this.router.clone();
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Rt as ActivityTransformer, n as Context } from "../context-lxX6I7as.cjs";
2
+ import { Rt as ActivityTransformer, n as Context } from "../context-C05Rgxmu.cjs";
3
3
  import { Activity } from "@fedify/vocab";
4
4
 
5
5
  //#region src/compat/transformers.d.ts
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Rt as ActivityTransformer, n as Context } from "../context-Zii1f5xS.js";
2
+ import { Rt as ActivityTransformer, n as Context } from "../context-Cjnr0ig1.js";
3
3
  import { Activity } from "@fedify/vocab";
4
4
 
5
5
  //#region src/compat/transformers.d.ts
@@ -5,7 +5,7 @@ import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
6
  import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
7
7
  import { t as assert } from "../assert-CJ1KXcvv.mjs";
8
- import { b as autoIdAssigner, n as FederationImpl, y as actorDehydrator } from "../middleware-C_MX_2Mg.mjs";
8
+ import { b as autoIdAssigner, n as FederationImpl, y as actorDehydrator } from "../middleware-O2LHXFEk.mjs";
9
9
  import { Follow, Person } from "@fedify/vocab";
10
10
  import { test } from "@fedify/fixture";
11
11
  //#region src/compat/transformers.test.ts
@@ -3,7 +3,7 @@ import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client
3
3
  import { o as VerifyRequestFailureReason, t as HttpMessageSignaturesSpec } from "./http-VyDTd4G3.cjs";
4
4
  import { n as GetKeyOwnerOptions } from "./owner-DEvZuyOE.cjs";
5
5
  import { n as KvStore, t as KvKey } from "./kv-gJ8LYbxX.cjs";
6
- import { i as MessageQueue } from "./metrics-CoUJLQhZ.cjs";
6
+ import { i as MessageQueue } from "./metrics-DN13mCAw.cjs";
7
7
  import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, Tombstone, TraverseCollectionOptions } from "@fedify/vocab";
8
8
  import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
9
9
  import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fedify/webfinger";
@@ -3,7 +3,7 @@ import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client
3
3
  import { o as VerifyRequestFailureReason, t as HttpMessageSignaturesSpec } from "./http-lf8Hsd91.js";
4
4
  import { n as GetKeyOwnerOptions } from "./owner-CnngXDNJ.js";
5
5
  import { n as KvStore, t as KvKey } from "./kv-D6hNiMTK.js";
6
- import { i as MessageQueue } from "./metrics-Dc4jR-IC.js";
6
+ import { i as MessageQueue } from "./metrics-v_e0n5GQ.js";
7
7
  import { Router } from "@fedify/uri-template";
8
8
  import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, Tombstone, TraverseCollectionOptions } from "@fedify/vocab";
9
9
  import { MeterProvider, Span, Tracer, TracerProvider } from "@opentelemetry/api";
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.4.0-dev.1655+b8f3c3d5";
6
+ var version = "2.4.0-pr.934.40+3331d302";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,8 +1,8 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { o as validateCryptoKey } from "./key-C2NKn9Cq.mjs";
5
- import { n as doubleKnock } from "./http-v2n_JnYK.mjs";
4
+ import { o as validateCryptoKey } from "./key-C_gNKtxm.mjs";
5
+ import { n as doubleKnock } from "./http-Dm0JAUa_.mjs";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { curry } from "es-toolkit";
8
8
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -5,7 +5,7 @@ import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
6
  import { r as assertExists } from "../std__assert-B2NnY9bq.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
8
- import { r as createFederationBuilder } from "../builder-8MpCLAhD.mjs";
8
+ import { r as createFederationBuilder } from "../builder-BBPwtB2v.mjs";
9
9
  import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
10
10
  import { Activity, Note, Person } from "@fedify/vocab";
11
11
  import { test } from "@fedify/fixture";
@@ -9,10 +9,10 @@ import { n as assertGreaterOrEqual, t as assertRejects } from "../assert_rejects
9
9
  import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
10
10
  import { t as assert } from "../assert-CJ1KXcvv.mjs";
11
11
  import { r as parseAcceptSignature } from "../accept-8PiolDP7.mjs";
12
- import { s as signRequest } from "../http-v2n_JnYK.mjs";
12
+ import { s as signRequest } from "../http-Dm0JAUa_.mjs";
13
13
  import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-Dbyd7bhl.mjs";
14
- import { a as compactJsonLd, p as signJsonLd } from "../ld-g2gwPTnA.mjs";
15
- import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-C_MX_2Mg.mjs";
14
+ import { a as compactJsonLd, p as signJsonLd } from "../ld-DAPAVL_7.mjs";
15
+ import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-O2LHXFEk.mjs";
16
16
  import { t as ActivityListenerSet } from "../activity-listener-BtTSxZWA.mjs";
17
17
  import { Activity, Create, Note, Person, Tombstone } from "@fedify/vocab";
18
18
  import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -106,7 +106,6 @@ test("handleActor()", async () => {
106
106
  assertEquals(await response.json(), {
107
107
  "@context": [
108
108
  "https://www.w3.org/ns/activitystreams",
109
- "https://w3id.org/fep/ef61",
110
109
  "https://w3id.org/security/v1",
111
110
  "https://w3id.org/security/data-integrity/v1",
112
111
  "https://www.w3.org/ns/did/v1",
@@ -196,7 +195,6 @@ test("handleActor()", async () => {
196
195
  assertEquals(await response.json(), {
197
196
  "@context": [
198
197
  "https://www.w3.org/ns/activitystreams",
199
- "https://w3id.org/fep/ef61",
200
198
  "https://w3id.org/security/v1",
201
199
  "https://w3id.org/security/data-integrity/v1",
202
200
  "https://www.w3.org/ns/did/v1",
@@ -5,8 +5,8 @@ import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
6
  import "../std__assert-B2NnY9bq.mjs";
7
7
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-Dbyd7bhl.mjs";
8
- import { r as signObject } from "../proof-C3fIAqh0.mjs";
9
- import { o as createFederation } from "../middleware-C_MX_2Mg.mjs";
8
+ import { r as signObject } from "../proof-BkAxvrjt.mjs";
9
+ import { o as createFederation } from "../middleware-O2LHXFEk.mjs";
10
10
  import { Create, Follow, Person } from "@fedify/vocab";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  //#region src/federation/idempotency.test.ts
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
5
5
  import "../std__assert-B2NnY9bq.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-EgstcQy5.mjs";
7
- import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-DTsGrbUw.mjs";
7
+ import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-BMaatuZi.mjs";
8
8
  import { createTestMeterProvider, test } from "@fedify/fixture";
9
9
  import { FetchError } from "@fedify/vocab-runtime";
10
10
  import { DataPointType, MeterProvider, MetricReader } from "@opentelemetry/sdk-metrics";
@@ -12,14 +12,14 @@ import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
12
12
  import { t as assertNotEquals } from "../assert_not_equals-EPJPoxuf.mjs";
13
13
  import { t as assertStrictEquals } from "../assert_strict_equals-Ec20AUwa.mjs";
14
14
  import { t as assert } from "../assert-CJ1KXcvv.mjs";
15
- import { g as recordInboxActivity } from "../metrics-DTsGrbUw.mjs";
16
- import { l as verifyRequest, s as signRequest } from "../http-v2n_JnYK.mjs";
15
+ import { g as recordInboxActivity } from "../metrics-BMaatuZi.mjs";
16
+ import { l as verifyRequest, s as signRequest } from "../http-Dm0JAUa_.mjs";
17
17
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-Dbyd7bhl.mjs";
18
- import { t as getAuthenticatedDocumentLoader } from "../docloader-BS9NsNYt.mjs";
19
- import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-g2gwPTnA.mjs";
20
- import { t as doesActorOwnKey } from "../owner-Dzl5ytTO.mjs";
21
- import { i as verifyObject, r as signObject } from "../proof-C3fIAqh0.mjs";
22
- import { g as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-C_MX_2Mg.mjs";
18
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-BCecHIxU.mjs";
19
+ import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-DAPAVL_7.mjs";
20
+ import { t as doesActorOwnKey } from "../owner-Dcx-czqn.mjs";
21
+ import { i as verifyObject, r as signObject } from "../proof-BkAxvrjt.mjs";
22
+ import { g as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-O2LHXFEk.mjs";
23
23
  import { t as CircuitBreaker } from "../circuit-breaker-CBGyz5F7.mjs";
24
24
  import { t as TaskCodec } from "../codec-BBga-FWI.mjs";
25
25
  import { configure, reset } from "@logtape/logtape";
@@ -1,13 +1,13 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("../chunk-Czpeue4M.cjs");
4
- const require_middleware = require("../middleware-FI7YX3gk.cjs");
4
+ const require_middleware = require("../middleware-BW7WQltk.cjs");
5
5
  const require_temporal_polyfill = require("../temporal-polyfill-BCdTHexd.cjs");
6
6
  let _logtape_logtape = require("@logtape/logtape");
7
7
  let _fedify_uri_template = require("@fedify/uri-template");
8
8
  let es_toolkit = require("es-toolkit");
9
9
  //#region src/federation/kv.ts
10
- const Temporal = require_temporal_polyfill.Temporal;
10
+ const Temporal$1 = require_temporal_polyfill.Temporal;
11
11
  /**
12
12
  * A key–value store that stores values in memory.
13
13
  * Do not use this in production as it does not persist values.
@@ -27,7 +27,7 @@ var MemoryKvStore = class {
27
27
  const entry = this.#values[encodedKey];
28
28
  if (entry == null) return Promise.resolve(void 0);
29
29
  const [value, expiration] = entry;
30
- if (expiration != null && Temporal.Now.instant().until(expiration).sign < 0) {
30
+ if (expiration != null && Temporal$1.Now.instant().until(expiration).sign < 0) {
31
31
  delete this.#values[encodedKey];
32
32
  return Promise.resolve(void 0);
33
33
  }
@@ -38,7 +38,7 @@ var MemoryKvStore = class {
38
38
  */
39
39
  set(key, value, options) {
40
40
  const encodedKey = this.#encodeKey(key);
41
- const expiration = options?.ttl == null ? null : Temporal.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
41
+ const expiration = options?.ttl == null ? null : Temporal$1.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
42
42
  this.#values[encodedKey] = [value, expiration];
43
43
  return Promise.resolve();
44
44
  }
@@ -60,13 +60,13 @@ var MemoryKvStore = class {
60
60
  if (entry == null) currentValue = void 0;
61
61
  else {
62
62
  const [value, expiration] = entry;
63
- if (expiration != null && Temporal.Now.instant().until(expiration).sign < 0) {
63
+ if (expiration != null && Temporal$1.Now.instant().until(expiration).sign < 0) {
64
64
  delete this.#values[encodedKey];
65
65
  currentValue = void 0;
66
66
  } else currentValue = value;
67
67
  }
68
68
  if (!(0, es_toolkit.isEqual)(currentValue, expectedValue)) return Promise.resolve(false);
69
- const expiration = options?.ttl == null ? null : Temporal.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
69
+ const expiration = options?.ttl == null ? null : Temporal$1.Now.instant().add(options.ttl.round({ largestUnit: "hour" }));
70
70
  this.#values[encodedKey] = [newValue, expiration];
71
71
  return Promise.resolve(true);
72
72
  }
@@ -74,7 +74,7 @@ var MemoryKvStore = class {
74
74
  * {@inheritDoc KvStore.list}
75
75
  */
76
76
  async *list(prefix) {
77
- const now = Temporal.Now.instant();
77
+ const now = Temporal$1.Now.instant();
78
78
  for (const [encodedKey, entry] of Object.entries(this.#values)) {
79
79
  const key = JSON.parse(encodedKey);
80
80
  if (prefix != null) {
@@ -94,6 +94,285 @@ var MemoryKvStore = class {
94
94
  }
95
95
  };
96
96
  //#endregion
97
+ //#region src/federation/mq.ts
98
+ const Temporal = require_temporal_polyfill.Temporal;
99
+ /**
100
+ * A message queue that processes messages in the same process.
101
+ * Do not use this in production as it does neither persist messages nor
102
+ * distribute them across multiple processes.
103
+ *
104
+ * @since 0.5.0
105
+ */
106
+ var InProcessMessageQueue = class {
107
+ #messages;
108
+ #monitors;
109
+ #pollIntervalMs;
110
+ #delayedMessages;
111
+ /**
112
+ * Tracks which ordering keys are currently being processed to ensure
113
+ * sequential processing for messages with the same key.
114
+ */
115
+ #processingKeys;
116
+ /**
117
+ * In-process message queue does not provide native retry mechanisms.
118
+ * @since 1.7.0
119
+ */
120
+ nativeRetrial = false;
121
+ /**
122
+ * In-process message queue does not deduplicate messages natively.
123
+ * @since 2.4.0
124
+ */
125
+ nativeDeduplication = false;
126
+ /**
127
+ * Constructs a new {@link InProcessMessageQueue} with the given options.
128
+ * @param options Additional options for the in-process message queue.
129
+ */
130
+ constructor(options = {}) {
131
+ this.#messages = [];
132
+ this.#monitors = {};
133
+ this.#pollIntervalMs = Temporal.Duration.from(options.pollInterval ?? { seconds: 5 }).total("millisecond");
134
+ this.#delayedMessages = 0;
135
+ this.#processingKeys = /* @__PURE__ */ new Set();
136
+ }
137
+ enqueue(message, options) {
138
+ const delay = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
139
+ if (delay > 0) {
140
+ this.#delayedMessages++;
141
+ setTimeout(() => {
142
+ this.#delayedMessages--;
143
+ this.#enqueueReady(message, options);
144
+ }, delay);
145
+ return Promise.resolve();
146
+ }
147
+ this.#enqueueReady(message, options);
148
+ return Promise.resolve();
149
+ }
150
+ #enqueueReady(message, options) {
151
+ const orderingKey = options?.orderingKey ?? null;
152
+ this.#messages.push({
153
+ message,
154
+ orderingKey
155
+ });
156
+ this.#notifyMonitors();
157
+ }
158
+ #notifyMonitors() {
159
+ for (const monitorId in this.#monitors) this.#monitors[monitorId]();
160
+ }
161
+ enqueueMany(messages, options) {
162
+ if (messages.length === 0) return Promise.resolve();
163
+ const delay = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
164
+ if (delay > 0) {
165
+ const delayedCount = messages.length;
166
+ const deferredMessages = [...messages];
167
+ this.#delayedMessages += delayedCount;
168
+ setTimeout(() => {
169
+ this.#delayedMessages -= delayedCount;
170
+ this.#enqueueManyReady(deferredMessages, options);
171
+ }, delay);
172
+ return Promise.resolve();
173
+ }
174
+ this.#enqueueManyReady(messages, options);
175
+ return Promise.resolve();
176
+ }
177
+ #enqueueManyReady(messages, options) {
178
+ const orderingKey = options?.orderingKey ?? null;
179
+ for (const message of messages) this.#messages.push({
180
+ message,
181
+ orderingKey
182
+ });
183
+ this.#notifyMonitors();
184
+ }
185
+ async listen(handler, options = {}) {
186
+ const signal = options.signal;
187
+ while (signal == null || !signal.aborted) {
188
+ const idx = this.#messages.findIndex((m) => m.orderingKey == null || !this.#processingKeys.has(m.orderingKey));
189
+ if (idx >= 0) {
190
+ const { message, orderingKey } = this.#messages.splice(idx, 1)[0];
191
+ if (orderingKey != null) this.#processingKeys.add(orderingKey);
192
+ try {
193
+ await handler(message);
194
+ } finally {
195
+ if (orderingKey != null) this.#processingKeys.delete(orderingKey);
196
+ }
197
+ } else if (this.#messages.length === 0) await this.#wait(this.#pollIntervalMs, signal);
198
+ else await this.#wait(10, signal);
199
+ }
200
+ }
201
+ getDepth() {
202
+ const ready = this.#messages.length;
203
+ const delayed = this.#delayedMessages;
204
+ return Promise.resolve({
205
+ queued: ready + delayed,
206
+ ready,
207
+ delayed
208
+ });
209
+ }
210
+ #wait(ms, signal) {
211
+ let timer = null;
212
+ return Promise.any([new Promise((resolve) => {
213
+ signal?.addEventListener("abort", () => {
214
+ if (timer != null) clearTimeout(timer);
215
+ resolve();
216
+ }, { once: true });
217
+ const monitorId = crypto.randomUUID();
218
+ this.#monitors[monitorId] = () => {
219
+ delete this.#monitors[monitorId];
220
+ if (timer != null) clearTimeout(timer);
221
+ resolve();
222
+ };
223
+ }), new Promise((resolve) => timer = setTimeout(resolve, ms))]);
224
+ }
225
+ };
226
+ /**
227
+ * A message queue that processes messages in parallel. It takes another
228
+ * {@link MessageQueue}, and processes messages in parallel up to a certain
229
+ * number of workers.
230
+ *
231
+ * Actually, it's rather a decorator than a queue itself.
232
+ *
233
+ * Note that the workers do not run in truly parallel, in the sense that they
234
+ * are not running in separate threads or processes. They are running in the
235
+ * same process, but are scheduled to run in parallel. Hence, this is useful
236
+ * for I/O-bound tasks, but not for CPU-bound tasks, which is okay for Fedify's
237
+ * workloads.
238
+ *
239
+ * When using `ParallelMessageQueue`, the ordering guarantee is preserved
240
+ * *only if* the underlying queue implementation delivers messages in a wrapper
241
+ * format that includes the `__fedify_ordering_key__` property. Currently,
242
+ * only `DenoKvMessageQueue` and `WorkersMessageQueue` use this format.
243
+ * For other queue implementations (e.g., `InProcessMessageQueue`,
244
+ * `RedisMessageQueue`, `PostgresMessageQueue`, `SqliteMessageQueue`,
245
+ * `AmqpMessageQueue`), the ordering key cannot be detected by
246
+ * `ParallelMessageQueue`, so ordering guarantees are handled by those
247
+ * implementations directly rather than at the `ParallelMessageQueue` level.
248
+ *
249
+ * Messages with the same ordering key will never be processed concurrently
250
+ * by different workers, ensuring sequential processing within each key.
251
+ * Messages with different ordering keys (or no ordering key) can still be
252
+ * processed in parallel.
253
+ *
254
+ * @since 1.0.0
255
+ */
256
+ var ParallelMessageQueue = class ParallelMessageQueue {
257
+ queue;
258
+ workers;
259
+ /**
260
+ * Inherits the native retry capability from the wrapped queue.
261
+ * @since 1.7.0
262
+ */
263
+ nativeRetrial;
264
+ /**
265
+ * Inherits the native deduplication capability from the wrapped queue.
266
+ * @since 2.4.0
267
+ */
268
+ nativeDeduplication;
269
+ /**
270
+ * Inherits the atomic batch capability from the wrapped queue.
271
+ * @since 2.4.0
272
+ */
273
+ atomicEnqueueMany;
274
+ getDepth;
275
+ /**
276
+ * Tracks which ordering keys are currently being processed to ensure
277
+ * sequential processing for messages with the same key.
278
+ */
279
+ #processingKeys = /* @__PURE__ */ new Set();
280
+ /**
281
+ * Pending messages waiting for their ordering key to become available.
282
+ */
283
+ #pendingMessages = [];
284
+ /**
285
+ * Constructs a new {@link ParallelMessageQueue} with the given queue and
286
+ * number of workers.
287
+ * @param queue The message queue to use under the hood. Note that
288
+ * {@link ParallelMessageQueue} cannot be nested.
289
+ * @param workers The number of workers to process messages in parallel.
290
+ * @throws {TypeError} If the given queue is an instance of
291
+ * {@link ParallelMessageQueue}.
292
+ */
293
+ constructor(queue, workers) {
294
+ if (queue instanceof ParallelMessageQueue) throw new TypeError("Cannot nest ParallelMessageQueue.");
295
+ this.queue = queue;
296
+ this.workers = workers;
297
+ this.nativeRetrial = queue.nativeRetrial;
298
+ this.nativeDeduplication = queue.nativeDeduplication;
299
+ this.atomicEnqueueMany = queue.enqueueMany == null ? false : queue.atomicEnqueueMany;
300
+ if (queue.getDepth != null) this.getDepth = () => queue.getDepth();
301
+ }
302
+ enqueue(message, options) {
303
+ return this.queue.enqueue(message, options);
304
+ }
305
+ async enqueueMany(messages, options) {
306
+ if (this.queue.enqueueMany == null) {
307
+ if (messages.length === 1) {
308
+ await this.queue.enqueue(messages[0], options);
309
+ return;
310
+ }
311
+ if (options?.deduplicationKey != null) throw new TypeError("Cannot enqueue a batch with a deduplicationKey: the wrapped queue does not implement enqueueMany, so ParallelMessageQueue would have to fan out to individual enqueue() calls that cannot share one deduplicationKey atomically. Wrap a queue that implements enqueueMany instead.");
312
+ const errors = (await Promise.allSettled(messages.map((message) => this.queue.enqueue(message, options)))).filter((r) => r.status === "rejected").map((r) => r.reason);
313
+ if (errors.length > 1) throw new AggregateError(errors, "Failed to enqueue messages.");
314
+ else if (errors.length === 1) throw errors[0];
315
+ return;
316
+ }
317
+ await this.queue.enqueueMany(messages, options);
318
+ }
319
+ /**
320
+ * Extracts ordering key from a message if present.
321
+ *
322
+ * This method only works for queue implementations that deliver messages
323
+ * in the wrapper format with `__fedify_ordering_key__` property. Currently,
324
+ * only `DenoKvMessageQueue` and `WorkersMessageQueue` use this format.
325
+ *
326
+ * For other queue implementations (`InProcessMessageQueue`,
327
+ * `RedisMessageQueue`, `PostgresMessageQueue`, `SqliteMessageQueue`,
328
+ * `AmqpMessageQueue`), messages are delivered as raw payloads without the
329
+ * wrapper, so the ordering key cannot be detected here. Those
330
+ * implementations handle ordering guarantees internally.
331
+ */
332
+ #extractOrderingKey(message) {
333
+ if (message != null && typeof message === "object") {
334
+ if ("__fedify_ordering_key__" in message) return message.__fedify_ordering_key__;
335
+ }
336
+ }
337
+ listen(handler, options = {}) {
338
+ const workers = /* @__PURE__ */ new Map();
339
+ return this.queue.listen(async (message) => {
340
+ while (workers.size >= this.workers) {
341
+ const consumedId = await Promise.any(workers.values());
342
+ workers.delete(consumedId);
343
+ }
344
+ const workerId = crypto.randomUUID();
345
+ const orderingKey = this.#extractOrderingKey(message);
346
+ if (orderingKey != null && this.#processingKeys.has(orderingKey)) await new Promise((resolve) => {
347
+ this.#pendingMessages.push({
348
+ message,
349
+ orderingKey,
350
+ resolve
351
+ });
352
+ });
353
+ if (orderingKey != null) this.#processingKeys.add(orderingKey);
354
+ const promise = this.#work(workerId, handler, message, orderingKey);
355
+ workers.set(workerId, promise);
356
+ }, options);
357
+ }
358
+ async #work(workerId, handler, message, orderingKey) {
359
+ await this.#sleep(0);
360
+ try {
361
+ await handler(message);
362
+ } finally {
363
+ if (orderingKey != null) {
364
+ this.#processingKeys.delete(orderingKey);
365
+ const pendingIdx = this.#pendingMessages.findIndex((p) => p.orderingKey === orderingKey);
366
+ if (pendingIdx >= 0) this.#pendingMessages.splice(pendingIdx, 1)[0].resolve();
367
+ }
368
+ }
369
+ return workerId;
370
+ }
371
+ #sleep(ms) {
372
+ return new Promise((resolve) => setTimeout(resolve, ms));
373
+ }
374
+ };
375
+ //#endregion
97
376
  //#region src/federation/router.ts
98
377
  const logger = (0, _logtape_logtape.getLogger)([
99
378
  "fedify",
@@ -245,9 +524,9 @@ function convertRouterError(func) {
245
524
  }
246
525
  //#endregion
247
526
  exports.CircuitBreaker = require_middleware.CircuitBreaker;
248
- exports.InProcessMessageQueue = require_middleware.InProcessMessageQueue;
527
+ exports.InProcessMessageQueue = InProcessMessageQueue;
249
528
  exports.MemoryKvStore = MemoryKvStore;
250
- exports.ParallelMessageQueue = require_middleware.ParallelMessageQueue;
529
+ exports.ParallelMessageQueue = ParallelMessageQueue;
251
530
  exports.Router = Router;
252
531
  exports.RouterError = RouterError;
253
532
  exports.SendActivityError = require_middleware.SendActivityError;
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { $ as CircuitBreakerCreateOptions, A as OutboxListenerSetters, At as UnverifiedActivityHandler, B as TaskEnqueueOptions, C as FederationStartQueueOptions, Ct as ObjectAuthorizePredicate, D as InboxListenerSetters, Dt as OutboxListenerErrorHandler, E as InboxChallengePolicy, Et as OutboxListener, F as createFederation, Ft as PageItems, G as RetryPolicy, H as TaskRegistry, I as Message, It as buildCollectionSynchronizationHeader, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as digest, M as FederationKvPrefixes, Mt as WebFingerLinksDispatcher, N as FederationOrigin, Nt as SendActivityError, O as MediaUploaderSetters, Ot as OutboxPermanentFailureHandler, P as FederationQueueOptions, Pt as SenderKeyPair, Q as CircuitBreakerBeforeSendDecision, R as TaskDefinition, S as FederationOptions, St as NodeInfoDispatcher, T as IdempotencyStrategy, Tt as OutboxErrorHandler, U as CreateExponentialBackoffPolicyOptions, V as TaskHandler, W as RetryContext, X as CircuitBreaker, Y as respondWithObjectIfAcceptable, Z as CircuitBreakerActivityDrop, _ as Federatable, _t as CustomCollectionCursor, a as GetSignedKeyOptions, at as NormalizedCircuitBreakerOptions, b as FederationBuilder, bt as InboxListener, c as ParseUriResult, ct as ActorAliasMapper, d as SendActivityOptions, dt as ActorKeyPairsDispatcher, et as CircuitBreakerFailurePolicy, f as SendActivityOptionsForCollection, ft as AuthorizePredicate, g as CustomCollectionCallbackSetters, gt as CustomCollectionCounter, h as ConstructorWithTypeId, ht as CollectionDispatcher, i as GetActorOptions, it as CircuitBreakerStateChange, j as Rfc6570Expression, jt as UnverifiedActivityReason, k as ObjectCallbackSetters, kt as SharedInboxKeyDispatcher, l as RequestContext, lt as ActorDispatcher, m as CollectionCallbackSetters, mt as CollectionCursor, n as Context, nt as CircuitBreakerOptions, o as InboxContext, ot as normalizeCircuitBreakerOptions, p as ActorCallbackSetters, pt as CollectionCounter, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreakerState, s as OutboxContext, st as parseCircuitBreakerKvState, t as ActorKeyPair, tt as CircuitBreakerKvState, u as RouteActivityOptions, ut as ActorHandleMapper, v as Federation, vt as CustomCollectionDispatcher, w as IdempotencyKeyCallback, wt as ObjectDispatcher, x as FederationFetchOptions, xt as MediaUploaderCallback, y as FederationBenchmarkOptions, yt as InboxErrorHandler, z as TaskDefinitionOptions } from "../context-lxX6I7as.cjs";
2
+ import { $ as CircuitBreakerCreateOptions, A as OutboxListenerSetters, At as UnverifiedActivityHandler, B as TaskEnqueueOptions, C as FederationStartQueueOptions, Ct as ObjectAuthorizePredicate, D as InboxListenerSetters, Dt as OutboxListenerErrorHandler, E as InboxChallengePolicy, Et as OutboxListener, F as createFederation, Ft as PageItems, G as RetryPolicy, H as TaskRegistry, I as Message, It as buildCollectionSynchronizationHeader, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as digest, M as FederationKvPrefixes, Mt as WebFingerLinksDispatcher, N as FederationOrigin, Nt as SendActivityError, O as MediaUploaderSetters, Ot as OutboxPermanentFailureHandler, P as FederationQueueOptions, Pt as SenderKeyPair, Q as CircuitBreakerBeforeSendDecision, R as TaskDefinition, S as FederationOptions, St as NodeInfoDispatcher, T as IdempotencyStrategy, Tt as OutboxErrorHandler, U as CreateExponentialBackoffPolicyOptions, V as TaskHandler, W as RetryContext, X as CircuitBreaker, Y as respondWithObjectIfAcceptable, Z as CircuitBreakerActivityDrop, _ as Federatable, _t as CustomCollectionCursor, a as GetSignedKeyOptions, at as NormalizedCircuitBreakerOptions, b as FederationBuilder, bt as InboxListener, c as ParseUriResult, ct as ActorAliasMapper, d as SendActivityOptions, dt as ActorKeyPairsDispatcher, et as CircuitBreakerFailurePolicy, f as SendActivityOptionsForCollection, ft as AuthorizePredicate, g as CustomCollectionCallbackSetters, gt as CustomCollectionCounter, h as ConstructorWithTypeId, ht as CollectionDispatcher, i as GetActorOptions, it as CircuitBreakerStateChange, j as Rfc6570Expression, jt as UnverifiedActivityReason, k as ObjectCallbackSetters, kt as SharedInboxKeyDispatcher, l as RequestContext, lt as ActorDispatcher, m as CollectionCallbackSetters, mt as CollectionCursor, n as Context, nt as CircuitBreakerOptions, o as InboxContext, ot as normalizeCircuitBreakerOptions, p as ActorCallbackSetters, pt as CollectionCounter, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreakerState, s as OutboxContext, st as parseCircuitBreakerKvState, t as ActorKeyPair, tt as CircuitBreakerKvState, u as RouteActivityOptions, ut as ActorHandleMapper, v as Federation, vt as CustomCollectionDispatcher, w as IdempotencyKeyCallback, wt as ObjectDispatcher, x as FederationFetchOptions, xt as MediaUploaderCallback, y as FederationBenchmarkOptions, yt as InboxErrorHandler, z as TaskDefinitionOptions } from "../context-C05Rgxmu.cjs";
3
3
  import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "../kv-gJ8LYbxX.cjs";
4
- import { a as MessageQueueDepth, c as ParallelMessageQueue, i as MessageQueue, n as InProcessMessageQueue, o as MessageQueueEnqueueOptions, r as InProcessMessageQueueOptions, s as MessageQueueListenOptions } from "../metrics-CoUJLQhZ.cjs";
5
- import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-gOlPDuT8.cjs";
4
+ import { a as MessageQueueDepth, c as ParallelMessageQueue, i as MessageQueue, n as InProcessMessageQueue, o as MessageQueueEnqueueOptions, r as InProcessMessageQueueOptions, s as MessageQueueListenOptions } from "../metrics-DN13mCAw.cjs";
5
+ import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-DdONo-ep.cjs";
6
6
  export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { $ as CircuitBreakerCreateOptions, A as OutboxListenerSetters, At as UnverifiedActivityHandler, B as TaskEnqueueOptions, C as FederationStartQueueOptions, Ct as ObjectAuthorizePredicate, D as InboxListenerSetters, Dt as OutboxListenerErrorHandler, E as InboxChallengePolicy, Et as OutboxListener, F as createFederation, Ft as PageItems, G as RetryPolicy, H as TaskRegistry, I as Message, It as buildCollectionSynchronizationHeader, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as digest, M as FederationKvPrefixes, Mt as WebFingerLinksDispatcher, N as FederationOrigin, Nt as SendActivityError, O as MediaUploaderSetters, Ot as OutboxPermanentFailureHandler, P as FederationQueueOptions, Pt as SenderKeyPair, Q as CircuitBreakerBeforeSendDecision, R as TaskDefinition, S as FederationOptions, St as NodeInfoDispatcher, T as IdempotencyStrategy, Tt as OutboxErrorHandler, U as CreateExponentialBackoffPolicyOptions, V as TaskHandler, W as RetryContext, X as CircuitBreaker, Y as respondWithObjectIfAcceptable, Z as CircuitBreakerActivityDrop, _ as Federatable, _t as CustomCollectionCursor, a as GetSignedKeyOptions, at as NormalizedCircuitBreakerOptions, b as FederationBuilder, bt as InboxListener, c as ParseUriResult, ct as ActorAliasMapper, d as SendActivityOptions, dt as ActorKeyPairsDispatcher, et as CircuitBreakerFailurePolicy, f as SendActivityOptionsForCollection, ft as AuthorizePredicate, g as CustomCollectionCallbackSetters, gt as CustomCollectionCounter, h as ConstructorWithTypeId, ht as CollectionDispatcher, i as GetActorOptions, it as CircuitBreakerStateChange, j as Rfc6570Expression, jt as UnverifiedActivityReason, k as ObjectCallbackSetters, kt as SharedInboxKeyDispatcher, l as RequestContext, lt as ActorDispatcher, m as CollectionCallbackSetters, mt as CollectionCursor, n as Context, nt as CircuitBreakerOptions, o as InboxContext, ot as normalizeCircuitBreakerOptions, p as ActorCallbackSetters, pt as CollectionCounter, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreakerState, s as OutboxContext, st as parseCircuitBreakerKvState, t as ActorKeyPair, tt as CircuitBreakerKvState, u as RouteActivityOptions, ut as ActorHandleMapper, v as Federation, vt as CustomCollectionDispatcher, w as IdempotencyKeyCallback, wt as ObjectDispatcher, x as FederationFetchOptions, xt as MediaUploaderCallback, y as FederationBenchmarkOptions, yt as InboxErrorHandler, z as TaskDefinitionOptions } from "../context-Zii1f5xS.js";
2
+ import { $ as CircuitBreakerCreateOptions, A as OutboxListenerSetters, At as UnverifiedActivityHandler, B as TaskEnqueueOptions, C as FederationStartQueueOptions, Ct as ObjectAuthorizePredicate, D as InboxListenerSetters, Dt as OutboxListenerErrorHandler, E as InboxChallengePolicy, Et as OutboxListener, F as createFederation, Ft as PageItems, G as RetryPolicy, H as TaskRegistry, I as Message, It as buildCollectionSynchronizationHeader, J as respondWithObject, K as createExponentialBackoffPolicy, L as createFederationBuilder, Lt as digest, M as FederationKvPrefixes, Mt as WebFingerLinksDispatcher, N as FederationOrigin, Nt as SendActivityError, O as MediaUploaderSetters, Ot as OutboxPermanentFailureHandler, P as FederationQueueOptions, Pt as SenderKeyPair, Q as CircuitBreakerBeforeSendDecision, R as TaskDefinition, S as FederationOptions, St as NodeInfoDispatcher, T as IdempotencyStrategy, Tt as OutboxErrorHandler, U as CreateExponentialBackoffPolicyOptions, V as TaskHandler, W as RetryContext, X as CircuitBreaker, Y as respondWithObjectIfAcceptable, Z as CircuitBreakerActivityDrop, _ as Federatable, _t as CustomCollectionCursor, a as GetSignedKeyOptions, at as NormalizedCircuitBreakerOptions, b as FederationBuilder, bt as InboxListener, c as ParseUriResult, ct as ActorAliasMapper, d as SendActivityOptions, dt as ActorKeyPairsDispatcher, et as CircuitBreakerFailurePolicy, f as SendActivityOptionsForCollection, ft as AuthorizePredicate, g as CustomCollectionCallbackSetters, gt as CustomCollectionCounter, h as ConstructorWithTypeId, ht as CollectionDispatcher, i as GetActorOptions, it as CircuitBreakerStateChange, j as Rfc6570Expression, jt as UnverifiedActivityReason, k as ObjectCallbackSetters, kt as SharedInboxKeyDispatcher, l as RequestContext, lt as ActorDispatcher, m as CollectionCallbackSetters, mt as CollectionCursor, n as Context, nt as CircuitBreakerOptions, o as InboxContext, ot as normalizeCircuitBreakerOptions, p as ActorCallbackSetters, pt as CollectionCounter, q as RespondWithObjectOptions, r as ForwardActivityOptions, rt as CircuitBreakerState, s as OutboxContext, st as parseCircuitBreakerKvState, t as ActorKeyPair, tt as CircuitBreakerKvState, u as RouteActivityOptions, ut as ActorHandleMapper, v as Federation, vt as CustomCollectionDispatcher, w as IdempotencyKeyCallback, wt as ObjectDispatcher, x as FederationFetchOptions, xt as MediaUploaderCallback, y as FederationBenchmarkOptions, yt as InboxErrorHandler, z as TaskDefinitionOptions } from "../context-Cjnr0ig1.js";
3
3
  import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "../kv-D6hNiMTK.js";
4
- import { a as MessageQueueDepth, c as ParallelMessageQueue, i as MessageQueue, n as InProcessMessageQueue, o as MessageQueueEnqueueOptions, r as InProcessMessageQueueOptions, s as MessageQueueListenOptions } from "../metrics-Dc4jR-IC.js";
5
- import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-DLc2Ot6f.js";
4
+ import { a as MessageQueueDepth, c as ParallelMessageQueue, i as MessageQueue, n as InProcessMessageQueue, o as MessageQueueEnqueueOptions, r as InProcessMessageQueueOptions, s as MessageQueueListenOptions } from "../metrics-v_e0n5GQ.js";
5
+ import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-BsCE5Ihq.js";
6
6
  export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };