@fedify/fedify 1.9.0-pr.395.1481 → 2.0.0-pr.393.1495

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 (96) hide show
  1. package/dist/{actor-9LPJkiZG.js → actor-B16nziQs.js} +228 -225
  2. package/dist/{actor-Ch5yFYFG.d.ts → actor-C22bXuuC.d.ts} +1 -1
  3. package/dist/{actor-Uase6HaC.js → actor-CinCK71p.js} +1 -1
  4. package/dist/{authdocloader-CogKPs5c.js → authdocloader-BrY6MDsl.js} +3 -3
  5. package/dist/{authdocloader-Br8fjCDA.js → authdocloader-C74ICOGP.js} +3 -3
  6. package/dist/{builder-Bo9ciHfP.js → builder-Dq7MQ5NK.js} +4 -4
  7. package/dist/{client-BVxAaya-.js → client-8WmN_-II.js} +1 -1
  8. package/dist/compat/mod.d.ts +7 -7
  9. package/dist/compat/transformers.test.js +16 -16
  10. package/dist/{context-DJQB_Zv4.d.ts → context-3ICnZJKt.d.ts} +5 -11
  11. package/dist/{docloader-DXhq_Y_0.js → docloader-DwdOQnHI.js} +1 -2
  12. package/dist/{esm-Bo7LuXob.js → esm-Dv897aO4.js} +1 -1
  13. package/dist/federation/builder.test.js +5 -5
  14. package/dist/federation/collection.test.js +3 -3
  15. package/dist/federation/handler.test.js +17 -17
  16. package/dist/federation/inbox.test.js +4 -4
  17. package/dist/federation/keycache.test.js +4 -4
  18. package/dist/federation/kv.test.js +3 -3
  19. package/dist/federation/middleware.test.js +46 -47
  20. package/dist/federation/mod.d.ts +6 -6
  21. package/dist/federation/mod.js +10 -10
  22. package/dist/federation/mq.test.js +3 -3
  23. package/dist/federation/retry.test.js +3 -3
  24. package/dist/federation/router.test.js +3 -3
  25. package/dist/federation/send.test.js +10 -10
  26. package/dist/{http-DblhtMbl.js → http-CkThXm40.js} +3 -3
  27. package/dist/{http-D4JZZsj7.js → http-Crm_YI3l.js} +2 -2
  28. package/dist/{http-D8Q4xH0d.d.ts → http-DqSNLFNY.d.ts} +1 -1
  29. package/dist/{inbox-fuzozZbS.js → inbox-zeOB5Uez.js} +1 -1
  30. package/dist/{key-C09wKLi0.js → key-BN7R43vy.js} +3 -3
  31. package/dist/{key-Btvx_gRX.js → key-DYqvk96x.js} +2 -2
  32. package/dist/{key-DY4r2zHZ.js → key-DZ46WqGg.js} +2 -2
  33. package/dist/{key-Np8EEJ9P.js → key-srqy5usi.js} +4 -4
  34. package/dist/{keycache-HTIISDcs.js → keycache-6Dz6thSh.js} +1 -1
  35. package/dist/{keys-FCSOZqsT.js → keys-Dw-l1OR5.js} +1 -1
  36. package/dist/{ld-BeIT6mlc.js → ld-AXMQ5Sw4.js} +2 -2
  37. package/dist/{lookup-gtbh2a3H.js → lookup-BjPjagJv.js} +1 -1
  38. package/dist/{lookup-Buywr1WF.js → lookup-DauD87tC.js} +1 -1
  39. package/dist/middleware-ABxBZMAN.js +26 -0
  40. package/dist/{middleware-zXrzC_d6.js → middleware-BnJ93F1S.js} +15 -20
  41. package/dist/middleware-CVCu5dAz.js +17 -0
  42. package/dist/{middleware-BpvvMkJx.js → middleware-owulyLCk.js} +12 -17
  43. package/dist/{mod-eBo9RUEr.d.ts → mod-CWxqOAci.d.ts} +2 -2
  44. package/dist/{mod-Cy6pkZSn.d.ts → mod-Cxt4Kpf6.d.ts} +1 -1
  45. package/dist/{mod-B7Pc0I7F.d.ts → mod-Drmz72EK.d.ts} +2 -2
  46. package/dist/{mod-BAuhKa9d.d.ts → mod-TFoH2Ql8.d.ts} +1 -1
  47. package/dist/mod.d.ts +9 -9
  48. package/dist/mod.js +10 -10
  49. package/dist/nodeinfo/client.test.js +5 -5
  50. package/dist/nodeinfo/handler.test.js +16 -16
  51. package/dist/nodeinfo/mod.js +2 -2
  52. package/dist/nodeinfo/semver.test.js +3 -3
  53. package/dist/nodeinfo/types.test.js +3 -3
  54. package/dist/{owner-D38zBIMc.d.ts → owner-CQPnQVtf.d.ts} +2 -2
  55. package/dist/{owner-D3LffaGr.js → owner-DP9z-To9.js} +2 -2
  56. package/dist/{proof-sKtcV6pt.js → proof-BAeRVX1L.js} +2 -2
  57. package/dist/{proof-B2vYr7n3.js → proof-CIEGsOhH.js} +3 -3
  58. package/dist/runtime/authdocloader.test.js +9 -9
  59. package/dist/runtime/docloader.test.js +4 -4
  60. package/dist/runtime/key.test.js +5 -5
  61. package/dist/runtime/langstr.test.js +5 -6
  62. package/dist/runtime/mod.d.ts +3 -3
  63. package/dist/runtime/mod.js +6 -6
  64. package/dist/runtime/multibase/multibase.test.js +3 -3
  65. package/dist/runtime/url.test.js +3 -3
  66. package/dist/{send-BeQ8g_vp.js → send-C4RIv5E5.js} +2 -2
  67. package/dist/sig/http.test.js +8 -8
  68. package/dist/sig/key.test.js +6 -6
  69. package/dist/sig/ld.test.js +7 -7
  70. package/dist/sig/mod.d.ts +5 -5
  71. package/dist/sig/mod.js +6 -6
  72. package/dist/sig/owner.test.js +7 -7
  73. package/dist/sig/proof.test.js +7 -7
  74. package/dist/testing/docloader.test.js +3 -3
  75. package/dist/testing/mod.d.ts +13 -10
  76. package/dist/testing/mod.js +3 -3
  77. package/dist/{testing-CMNbLS0m.js → testing-BIWxL9f6.js} +2 -2
  78. package/dist/{type-Bo0QfGsr.js → type-DpdbXymL.js} +227 -225
  79. package/dist/{types-ByoM5Yqa.js → types-DHR7i5kl.js} +1 -1
  80. package/dist/vocab/actor.test.js +5 -5
  81. package/dist/vocab/lookup.test.js +4 -4
  82. package/dist/vocab/mod.d.ts +3 -3
  83. package/dist/vocab/mod.js +4 -4
  84. package/dist/vocab/type.test.js +3 -3
  85. package/dist/vocab/vocab.test.js +11 -12
  86. package/dist/{vocab-69WqtJLZ.js → vocab-L0DaSC6q.js} +3 -3
  87. package/dist/{vocab-BEEm2I6u.d.ts → vocab-SOE1ifCr.d.ts} +15 -12
  88. package/dist/webfinger/handler.test.js +16 -16
  89. package/dist/webfinger/lookup.test.js +4 -4
  90. package/dist/webfinger/mod.js +2 -2
  91. package/dist/x/cfworkers.test.js +3 -3
  92. package/dist/x/hono.d.ts +6 -6
  93. package/dist/x/sveltekit.d.ts +6 -6
  94. package/package.json +1 -2
  95. package/dist/middleware-DZaPVOW-.js +0 -26
  96. package/dist/middleware-W4SkyU21.js +0 -17
@@ -3,16 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import "../transformers-Dna8Fg7k.js";
6
- import "../docloader-DXhq_Y_0.js";
7
- import "../actor-9LPJkiZG.js";
8
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BpvvMkJx.js";
9
- import "../lookup-gtbh2a3H.js";
10
- import "../key-DY4r2zHZ.js";
11
- import "../http-DblhtMbl.js";
12
- import "../proof-B2vYr7n3.js";
6
+ import "../docloader-DwdOQnHI.js";
7
+ import "../actor-B16nziQs.js";
8
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-owulyLCk.js";
9
+ import "../lookup-BjPjagJv.js";
10
+ import "../key-DZ46WqGg.js";
11
+ import "../http-CkThXm40.js";
12
+ import "../proof-CIEGsOhH.js";
13
13
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-CMX7WzeL.js";
14
- import "../types-ByoM5Yqa.js";
15
- import "../authdocloader-CogKPs5c.js";
16
- import "../vocab-69WqtJLZ.js";
14
+ import "../types-DHR7i5kl.js";
15
+ import "../authdocloader-BrY6MDsl.js";
16
+ import "../vocab-L0DaSC6q.js";
17
17
 
18
18
  export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Bo0QfGsr.js";
6
+ import "../type-DpdbXymL.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Buywr1WF.js";
11
- import { test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DauD87tC.js";
11
+ import { test } from "../testing-BIWxL9f6.js";
12
12
  import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Bo0QfGsr.js";
6
+ import "../type-DpdbXymL.js";
7
7
  import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-Buywr1WF.js";
8
+ import "../lookup-DauD87tC.js";
9
9
  import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
10
- import { test } from "../testing-CMNbLS0m.js";
10
+ import { test } from "../testing-BIWxL9f6.js";
11
11
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
12
12
 
13
13
  //#region src/federation/retry.test.ts
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Bo0QfGsr.js";
6
+ import "../type-DpdbXymL.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import { Router, RouterError } from "../lookup-Buywr1WF.js";
11
- import { test } from "../testing-CMNbLS0m.js";
10
+ import { Router, RouterError } from "../lookup-DauD87tC.js";
11
+ import { test } from "../testing-BIWxL9f6.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,24 +3,24 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../type-Bo0QfGsr.js";
6
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../type-DpdbXymL.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Buywr1WF.js";
11
- import "../actor-Uase6HaC.js";
12
- import "../key-Btvx_gRX.js";
13
- import { verifyRequest } from "../http-D4JZZsj7.js";
14
- import { doesActorOwnKey } from "../owner-D3LffaGr.js";
15
- import { extractInboxes, sendActivity } from "../send-BeQ8g_vp.js";
16
- import { mockDocumentLoader, test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DauD87tC.js";
11
+ import "../actor-CinCK71p.js";
12
+ import "../key-DYqvk96x.js";
13
+ import { verifyRequest } from "../http-Crm_YI3l.js";
14
+ import { doesActorOwnKey } from "../owner-DP9z-To9.js";
15
+ import { extractInboxes, sendActivity } from "../send-C4RIv5E5.js";
16
+ import { mockDocumentLoader, test } from "../testing-BIWxL9f6.js";
17
17
  import "../std__assert-X-_kMxKM.js";
18
18
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
19
19
  import "../assert_is_error-BPGph1Jx.js";
20
20
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
21
21
  import "../assert_throws-BOO88avQ.js";
22
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-FCSOZqsT.js";
23
- import { esm_default } from "../esm-Bo7LuXob.js";
22
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-Dw-l1OR5.js";
23
+ import { esm_default } from "../esm-Dv897aO4.js";
24
24
 
25
25
  //#region src/federation/send.test.ts
26
26
  test("extractInboxes()", () => {
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default } from "./docloader-DXhq_Y_0.js";
6
- import { CryptographicKey } from "./actor-9LPJkiZG.js";
7
- import { fetchKey, validateCryptoKey } from "./key-DY4r2zHZ.js";
5
+ import { deno_default } from "./docloader-DwdOQnHI.js";
6
+ import { CryptographicKey } from "./actor-B16nziQs.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-DZ46WqGg.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, deno_default } from "./type-Bo0QfGsr.js";
7
- import { fetchKey, validateCryptoKey } from "./key-Btvx_gRX.js";
6
+ import { CryptographicKey, deno_default } from "./type-DpdbXymL.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-DYqvk96x.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
4
- import { CryptographicKey, Multikey } from "./vocab-BEEm2I6u.js";
4
+ import { CryptographicKey, Multikey } from "./vocab-SOE1ifCr.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region src/sig/key.d.ts
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, deno_default, getTypeId } from "./type-Bo0QfGsr.js";
6
+ import { Activity, deno_default, getTypeId } from "./type-DpdbXymL.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
9
 
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "./type-Bo0QfGsr.js";
7
- import "./actor-Uase6HaC.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Btvx_gRX.js";
6
+ import "./type-DpdbXymL.js";
7
+ import "./actor-CinCK71p.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DYqvk96x.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-Bo0QfGsr.js";
7
- import { isActor } from "./actor-Uase6HaC.js";
6
+ import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-DpdbXymL.js";
7
+ import { isActor } from "./actor-CinCK71p.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-DXhq_Y_0.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-9LPJkiZG.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-DwdOQnHI.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-B16nziQs.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-DXhq_Y_0.js";
6
- import "./actor-9LPJkiZG.js";
7
- import "./lookup-gtbh2a3H.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DY4r2zHZ.js";
5
+ import "./docloader-DwdOQnHI.js";
6
+ import "./actor-B16nziQs.js";
7
+ import "./lookup-BjPjagJv.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DZ46WqGg.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./type-Bo0QfGsr.js";
6
+ import { CryptographicKey, Multikey } from "./type-DpdbXymL.js";
7
7
 
8
8
  //#region src/federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey, importSpki } from "./type-Bo0QfGsr.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./type-DpdbXymL.js";
7
7
 
8
8
  //#region src/testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-Bo0QfGsr.js";
7
- import { fetchKey, validateCryptoKey } from "./key-Btvx_gRX.js";
6
+ import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-DpdbXymL.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-DYqvk96x.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-DXhq_Y_0.js";
5
+ import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-DwdOQnHI.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
 
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-Bo0QfGsr.js";
6
+ import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-DpdbXymL.js";
7
7
  import { cloneDeep, delay } from "es-toolkit";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -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-DpdbXymL.js";
7
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BnJ93F1S.js";
8
+ import "./semver-dArNLkR9.js";
9
+ import "./client-8WmN_-II.js";
10
+ import "./lookup-DauD87tC.js";
11
+ import "./types-BIgY6c-l.js";
12
+ import "./actor-CinCK71p.js";
13
+ import "./key-DYqvk96x.js";
14
+ import "./http-Crm_YI3l.js";
15
+ import "./authdocloader-C74ICOGP.js";
16
+ import "./ld-AXMQ5Sw4.js";
17
+ import "./owner-DP9z-To9.js";
18
+ import "./proof-BAeRVX1L.js";
19
+ import "./inbox-zeOB5Uez.js";
20
+ import "./builder-Dq7MQ5NK.js";
21
+ import "./collection-CSzG2j1P.js";
22
+ import "./keycache-6Dz6thSh.js";
23
+ import "./retry-D4GJ670a.js";
24
+ import "./send-C4RIv5E5.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-Bo0QfGsr.js";
7
- import { getNodeInfo } from "./client-BVxAaya-.js";
8
- import { RouterError, lookupObject, traverseCollection } from "./lookup-Buywr1WF.js";
6
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-DpdbXymL.js";
7
+ import { getNodeInfo } from "./client-8WmN_-II.js";
8
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-DauD87tC.js";
9
9
  import { nodeInfoToJson } from "./types-BIgY6c-l.js";
10
- import { exportJwk, importJwk, validateCryptoKey } from "./key-Btvx_gRX.js";
11
- import { verifyRequest } from "./http-D4JZZsj7.js";
12
- import { getAuthenticatedDocumentLoader } from "./authdocloader-Br8fjCDA.js";
13
- import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BeIT6mlc.js";
14
- import { doesActorOwnKey, getKeyOwner } from "./owner-D3LffaGr.js";
15
- import { signObject, verifyObject } from "./proof-sKtcV6pt.js";
16
- import { routeActivity } from "./inbox-fuzozZbS.js";
17
- import { FederationBuilderImpl } from "./builder-Bo9ciHfP.js";
10
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-DYqvk96x.js";
11
+ import { verifyRequest } from "./http-Crm_YI3l.js";
12
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-C74ICOGP.js";
13
+ import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-AXMQ5Sw4.js";
14
+ import { doesActorOwnKey, getKeyOwner } from "./owner-DP9z-To9.js";
15
+ import { signObject, verifyObject } from "./proof-BAeRVX1L.js";
16
+ import { routeActivity } from "./inbox-zeOB5Uez.js";
17
+ import { FederationBuilderImpl } from "./builder-Dq7MQ5NK.js";
18
18
  import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
19
- import { KvKeyCache } from "./keycache-HTIISDcs.js";
19
+ import { KvKeyCache } from "./keycache-6Dz6thSh.js";
20
20
  import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
21
- import { extractInboxes, sendActivity } from "./send-BeQ8g_vp.js";
21
+ import { extractInboxes, sendActivity } from "./send-C4RIv5E5.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";
@@ -1449,17 +1449,12 @@ var FederationImpl = class extends FederationBuilderImpl {
1449
1449
  this.router.trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
1450
1450
  this._initializeRouter();
1451
1451
  if (options.allowPrivateAddress || options.userAgent != null) {
1452
- if (options.documentLoader != null) throw new TypeError("Cannot set documentLoader with allowPrivateAddress or userAgent options.");
1453
- else if (options.contextLoader != null) throw new TypeError("Cannot set contextLoader with allowPrivateAddress or userAgent options.");
1452
+ if (options.contextLoader != null) throw new TypeError("Cannot set contextLoader with allowPrivateAddress or userAgent options.");
1454
1453
  else if (options.authenticatedDocumentLoaderFactory != null) throw new TypeError("Cannot set authenticatedDocumentLoaderFactory with allowPrivateAddress or userAgent options.");
1455
1454
  }
1456
1455
  const { allowPrivateAddress, userAgent } = options;
1457
1456
  this.allowPrivateAddress = allowPrivateAddress ?? false;
1458
- if (options.documentLoader != null) {
1459
- if (options.documentLoaderFactory != null) throw new TypeError("Cannot set both documentLoader and documentLoaderFactory options at a time; use documentLoaderFactory only.");
1460
- this.documentLoaderFactory = () => options.documentLoader;
1461
- logger$2.warn("The documentLoader option is deprecated; use documentLoaderFactory option instead.");
1462
- } else this.documentLoaderFactory = options.documentLoaderFactory ?? ((opts) => {
1457
+ this.documentLoaderFactory = options.documentLoaderFactory ?? ((opts) => {
1463
1458
  return kvCache({
1464
1459
  loader: getDocumentLoader({
1465
1460
  allowPrivateAddress: opts?.allowPrivateAddress ?? allowPrivateAddress,
@@ -0,0 +1,17 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "./transformers-Dna8Fg7k.js";
6
+ import "./docloader-DwdOQnHI.js";
7
+ import "./actor-B16nziQs.js";
8
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-owulyLCk.js";
9
+ import "./lookup-BjPjagJv.js";
10
+ import "./key-DZ46WqGg.js";
11
+ import "./http-CkThXm40.js";
12
+ import "./proof-CIEGsOhH.js";
13
+ import "./types-DHR7i5kl.js";
14
+ import "./authdocloader-BrY6MDsl.js";
15
+ import "./vocab-L0DaSC6q.js";
16
+
17
+ export { FederationImpl };
@@ -3,15 +3,15 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import { getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-DXhq_Y_0.js";
7
- import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-9LPJkiZG.js";
8
- import { lookupWebFinger } from "./lookup-gtbh2a3H.js";
9
- import { exportJwk, importJwk, validateCryptoKey } from "./key-DY4r2zHZ.js";
10
- import { doubleKnock, verifyRequest } from "./http-DblhtMbl.js";
11
- import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-B2vYr7n3.js";
12
- import { getNodeInfo, nodeInfoToJson } from "./types-ByoM5Yqa.js";
13
- import { getAuthenticatedDocumentLoader } from "./authdocloader-CogKPs5c.js";
14
- import { lookupObject, traverseCollection } from "./vocab-69WqtJLZ.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-DwdOQnHI.js";
7
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-B16nziQs.js";
8
+ import { lookupWebFinger } from "./lookup-BjPjagJv.js";
9
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-DZ46WqGg.js";
10
+ import { doubleKnock, verifyRequest } from "./http-CkThXm40.js";
11
+ import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CIEGsOhH.js";
12
+ import { getNodeInfo, nodeInfoToJson } from "./types-DHR7i5kl.js";
13
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-BrY6MDsl.js";
14
+ import { lookupObject, traverseCollection } from "./vocab-L0DaSC6q.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-W4SkyU21.js");
323
+ const { FederationImpl: FederationImpl$1 } = await import("./middleware-CVCu5dAz.js");
324
324
  const f = new FederationImpl$1(options);
325
325
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
326
326
  f.router = this.router.clone();
@@ -2388,17 +2388,12 @@ var FederationImpl = class extends FederationBuilderImpl {
2388
2388
  this.router.trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
2389
2389
  this._initializeRouter();
2390
2390
  if (options.allowPrivateAddress || options.userAgent != null) {
2391
- if (options.documentLoader != null) throw new TypeError("Cannot set documentLoader with allowPrivateAddress or userAgent options.");
2392
- else if (options.contextLoader != null) throw new TypeError("Cannot set contextLoader with allowPrivateAddress or userAgent options.");
2391
+ if (options.contextLoader != null) throw new TypeError("Cannot set contextLoader with allowPrivateAddress or userAgent options.");
2393
2392
  else if (options.authenticatedDocumentLoaderFactory != null) throw new TypeError("Cannot set authenticatedDocumentLoaderFactory with allowPrivateAddress or userAgent options.");
2394
2393
  }
2395
2394
  const { allowPrivateAddress, userAgent } = options;
2396
2395
  this.allowPrivateAddress = allowPrivateAddress ?? false;
2397
- if (options.documentLoader != null) {
2398
- if (options.documentLoaderFactory != null) throw new TypeError("Cannot set both documentLoader and documentLoaderFactory options at a time; use documentLoaderFactory only.");
2399
- this.documentLoaderFactory = () => options.documentLoader;
2400
- logger$1.warn("The documentLoader option is deprecated; use documentLoaderFactory option instead.");
2401
- } else this.documentLoaderFactory = options.documentLoaderFactory ?? ((opts) => {
2396
+ this.documentLoaderFactory = options.documentLoaderFactory ?? ((opts) => {
2402
2397
  return kvCache({
2403
2398
  loader: getDocumentLoader({
2404
2399
  allowPrivateAddress: opts?.allowPrivateAddress ?? allowPrivateAddress,
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-BEEm2I6u.js";
4
- import { ActivityTransformer, Context } from "./context-DJQB_Zv4.js";
3
+ import { Activity } from "./vocab-SOE1ifCr.js";
4
+ import { ActivityTransformer, Context } from "./context-3ICnZJKt.js";
5
5
 
6
6
  //#region src/compat/transformers.d.ts
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { DocumentLoader, GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
4
- import { Collection, Link, Object as Object$1 } from "./vocab-BEEm2I6u.js";
4
+ import { Collection, Link, Object as Object$1 } from "./vocab-SOE1ifCr.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region src/vocab/lookup.d.ts
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
4
- import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-BEEm2I6u.js";
5
- import { KeyCache } from "./http-D8Q4xH0d.js";
4
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-SOE1ifCr.js";
5
+ import { KeyCache } from "./http-DqSNLFNY.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
8
  //#region src/sig/ld.d.ts
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-CxWcuWqQ.js";
4
- import { HttpMessageSignaturesSpecDeterminer } from "./http-D8Q4xH0d.js";
4
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-DqSNLFNY.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region src/runtime/authdocloader.d.ts
package/dist/mod.d.ts CHANGED
@@ -3,18 +3,18 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-C7sopW2E.js";
4
4
  import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CxWcuWqQ.js";
5
5
  import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-DF8anIB5.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-BEEm2I6u.js";
7
- import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-Ch5yFYFG.js";
8
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-D8Q4xH0d.js";
9
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-D38zBIMc.js";
10
- import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-Cy6pkZSn.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-SOE1ifCr.js";
7
+ import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-C22bXuuC.js";
8
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-DqSNLFNY.js";
9
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-CQPnQVtf.js";
10
+ import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-Cxt4Kpf6.js";
11
11
  import { ResourceDescriptor, lookupWebFinger } from "./lookup-3czM5mmU.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-DJQB_Zv4.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-3ICnZJKt.js";
13
13
  import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-CRGm1e_F.js";
14
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-eBo9RUEr.js";
14
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CWxqOAci.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-BAuhKa9d.js";
18
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-B7Pc0I7F.js";
17
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-TFoH2Ql8.js";
18
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-Drmz72EK.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
@@ -4,17 +4,17 @@
4
4
 
5
5
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
6
6
  import "./compat-Bb5myD13.js";
7
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DXhq_Y_0.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-9LPJkiZG.js";
9
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-BpvvMkJx.js";
10
- import { lookupWebFinger } from "./lookup-gtbh2a3H.js";
11
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-DY4r2zHZ.js";
12
- import { signRequest, verifyRequest } from "./http-DblhtMbl.js";
13
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-B2vYr7n3.js";
7
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DwdOQnHI.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-B16nziQs.js";
9
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-owulyLCk.js";
10
+ import { lookupWebFinger } from "./lookup-BjPjagJv.js";
11
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-DZ46WqGg.js";
12
+ import { signRequest, verifyRequest } from "./http-CkThXm40.js";
13
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-CIEGsOhH.js";
14
14
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-CMX7WzeL.js";
15
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-ByoM5Yqa.js";
16
- import { getAuthenticatedDocumentLoader } from "./authdocloader-CogKPs5c.js";
17
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-69WqtJLZ.js";
15
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DHR7i5kl.js";
16
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-BrY6MDsl.js";
17
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-L0DaSC6q.js";
18
18
  import "./nodeinfo-CyEbLjHs.js";
19
19
  import "./runtime-BSkOVUWM.js";
20
20
  import "./sig-BXJO--F9.js";
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Bo0QfGsr.js";
6
+ import "../type-DpdbXymL.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import "../semver-dArNLkR9.js";
11
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-BVxAaya-.js";
12
- import "../lookup-Buywr1WF.js";
13
- import { test } from "../testing-CMNbLS0m.js";
11
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-8WmN_-II.js";
12
+ import "../lookup-DauD87tC.js";
13
+ import { test } from "../testing-BIWxL9f6.js";
14
14
  import "../std__assert-X-_kMxKM.js";
15
15
  import "../assert_rejects-DiIiJbZn.js";
16
16
  import "../assert_is_error-BPGph1Jx.js";
17
17
  import "../assert_not_equals-f3m3epl3.js";
18
18
  import "../assert_throws-BOO88avQ.js";
19
- import { esm_default } from "../esm-Bo7LuXob.js";
19
+ import { esm_default } from "../esm-Dv897aO4.js";
20
20
 
21
21
  //#region src/nodeinfo/client.test.ts
22
22
  test("getNodeInfo()", async (t) => {