@fedify/fedify 1.6.1-dev.877 → 1.6.1-dev.881

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 (118) hide show
  1. package/dist/{actor-DuRbv_Bj.js → actor-BRIxlOTx.js} +3 -3
  2. package/dist/{actor-BHqS2e3c.js → actor-BidJp8n0.js} +180 -180
  3. package/dist/{actor-f67C7yQD.d.ts → actor-tT_B0pDn.d.ts} +5 -8
  4. package/dist/{assert-Dv75vaGI.js → assert-YJk-1DlZ.js} +1 -1
  5. package/dist/{assert_equals-ClvzlhZu.js → assert_equals-Dnj7ejjL.js} +16 -9
  6. package/dist/{assert_instance_of--9UCVKsi.js → assert_instance_of-DBIoG5k7.js} +1 -1
  7. package/dist/{assert_is_error-D162gXcM.js → assert_is_error-jyzqjHud.js} +1 -1
  8. package/dist/{assert_not_equals-Cyf5m9Ke.js → assert_not_equals-wx-SRs4i.js} +1 -1
  9. package/dist/{assert_rejects-FOHCtlD2.js → assert_rejects-BZjUwo62.js} +2 -2
  10. package/dist/{assert_throws-CRfQJvVx.js → assert_throws-gBPv3v2V.js} +2 -2
  11. package/dist/{authdocloader-BeFl0PFE.js → authdocloader-BRs7flug.js} +4 -4
  12. package/dist/{authdocloader-Bl6g1FVm.js → authdocloader-CG3GTtW2.js} +3 -3
  13. package/dist/{builder-DY8xBedN.js → builder-DtoRVfyu.js} +3 -3
  14. package/dist/{client-DcBIDSv0.js → client-CQ24CTCb.js} +1 -1
  15. package/dist/{client-Dw1pCSIt.d.ts → client-Cd552pKL.d.ts} +6 -9
  16. package/dist/{collection-QaGK9TVn.js → collection-Dfb0TPno.js} +1 -1
  17. package/dist/compat/mod.d.ts +12 -12
  18. package/dist/compat/mod.js +1 -1
  19. package/dist/compat/transformers.test.js +21 -21
  20. package/dist/{context-DBM4y1xF.d.ts → context-DRhhOsMk.d.ts} +12 -28
  21. package/dist/{context-BDE1HkwS.js → context-Dub61h2m.js} +2 -2
  22. package/dist/{docloader-YfB_ekLA.js → docloader-BzbamfL0.js} +1 -1
  23. package/dist/{docloader-D8aaMXMS.js → docloader-CjMOaZ0w.js} +1 -1
  24. package/dist/{docloader-DTRsVZPo.d.ts → docloader-DlUDOVSe.d.ts} +4 -7
  25. package/dist/{esm-BxIKwi-M.js → esm-Btx3E8og.js} +1 -1
  26. package/dist/federation/builder.test.js +12 -12
  27. package/dist/federation/collection.test.js +9 -9
  28. package/dist/federation/handler.test.js +28 -28
  29. package/dist/federation/inbox.test.js +6 -6
  30. package/dist/federation/keycache.test.js +6 -6
  31. package/dist/federation/kv.test.js +8 -8
  32. package/dist/federation/middleware.test.js +28 -28
  33. package/dist/federation/mod.d.ts +11 -11
  34. package/dist/federation/mod.js +12 -12
  35. package/dist/federation/mq.test.js +9 -9
  36. package/dist/federation/retry.test.js +2 -2
  37. package/dist/federation/router.test.js +9 -9
  38. package/dist/federation/send.test.js +18 -18
  39. package/dist/{federation-Bmj7soSg.js → federation-3B6BDKCK.js} +1 -1
  40. package/dist/{hongminhee__deno-mock-fetch-DJKLj_H-.js → hongminhee__deno-mock-fetch-Az7fJGtg.js} +1 -1
  41. package/dist/{http-B0cOjwNh.js → http-B3Xedrzu.js} +12 -6
  42. package/dist/{http-CZyKN-rt.d.ts → http-BkUCISGt.d.ts} +6 -14
  43. package/dist/{http-Df-q_v_l.js → http-CV67UidJ.js} +12 -6
  44. package/dist/{inbox-CTtTAWQW.js → inbox-BoldQCGa.js} +4 -4
  45. package/dist/{key-yakqWjMR.js → key-D3Mc3n0F.js} +3 -3
  46. package/dist/{key-lg7Bamqg.js → key-DD4k9Ph4.js} +4 -4
  47. package/dist/{key-D66XeFWU.js → key-Dt894e0l.js} +2 -2
  48. package/dist/{key-CcDIn1xI.js → key-zqk3iQJM.js} +5 -5
  49. package/dist/{keycache-BNazIgsa.js → keycache-DXp-3NZn.js} +2 -2
  50. package/dist/{keys-sBaDMsit.js → keys-j3LZyq_M.js} +1 -1
  51. package/dist/{kv-BmsWxOQ2.d.ts → kv-p8sC8PTT.d.ts} +3 -7
  52. package/dist/{ld-DFhDZpVO.js → ld-BJz01zAZ.js} +4 -4
  53. package/dist/{lookup-1_LyYkq2.js → lookup-CNv4GGs7.js} +1 -1
  54. package/dist/{lookup-Zz0ToYnF.js → lookup-DTOPcLsZ.js} +1 -1
  55. package/dist/{lookup-B3yeXDFK.js → lookup-dfyiwjbB.js} +3 -3
  56. package/dist/{lookup-nlxO7x0u.d.ts → lookup-vJccIKCS.d.ts} +4 -8
  57. package/dist/{middleware-DfZ8KIdq.js → middleware-BXqSM2dw.js} +18 -18
  58. package/dist/{middleware-DORBFmeo.js → middleware-DB7wiPiW.js} +18 -18
  59. package/dist/middleware-HBJtiy_q.js +17 -0
  60. package/dist/middleware-ORyJDzKn.js +33 -0
  61. package/dist/{mod-iE_61Xjt.d.ts → mod-BTHfUeLo.d.ts} +2 -9
  62. package/dist/{mod-BUAWJ2pK.d.ts → mod-BUTm-sog.d.ts} +5 -9
  63. package/dist/{mod-CsYfI7YL.d.ts → mod-CgmTOt4z.d.ts} +3 -21
  64. package/dist/{mod-Bx6Du4Ct.d.ts → mod-DSPyncxx.d.ts} +5 -11
  65. package/dist/mod.d.ts +14 -14
  66. package/dist/mod.js +12 -12
  67. package/dist/{mq-Bue016Tz.d.ts → mq-nceTGCuc.d.ts} +3 -7
  68. package/dist/nodeinfo/client.test.js +11 -11
  69. package/dist/nodeinfo/handler.test.js +27 -27
  70. package/dist/nodeinfo/mod.d.ts +3 -3
  71. package/dist/nodeinfo/mod.js +2 -2
  72. package/dist/nodeinfo/semver.test.js +8 -8
  73. package/dist/nodeinfo/types.test.js +8 -8
  74. package/dist/{owner-C_Gw25Id.d.ts → owner-CbRc94FP.d.ts} +6 -9
  75. package/dist/{owner-B-x5wVW7.js → owner-DPR9iegf.js} +3 -3
  76. package/dist/{proof-Bt6oaSF6.js → proof-CIdBQp8W.js} +3 -3
  77. package/dist/{proof-DlVhAg_t.js → proof-DozAJu8u.js} +5 -5
  78. package/dist/runtime/authdocloader.test.js +17 -17
  79. package/dist/runtime/docloader.test.js +10 -10
  80. package/dist/runtime/key.test.js +13 -13
  81. package/dist/runtime/langstr.test.js +8 -8
  82. package/dist/runtime/mod.d.ts +5 -5
  83. package/dist/runtime/mod.js +6 -6
  84. package/dist/runtime/multibase/multibase.test.js +8 -8
  85. package/dist/runtime/url.test.js +4 -4
  86. package/dist/{send-CqqlfPUc.js → send-ZuWTBaWD.js} +3 -3
  87. package/dist/sig/http.test.js +16 -16
  88. package/dist/sig/key.test.js +14 -14
  89. package/dist/sig/ld.test.js +12 -12
  90. package/dist/sig/mod.d.ts +7 -7
  91. package/dist/sig/mod.js +6 -6
  92. package/dist/sig/owner.test.js +16 -16
  93. package/dist/sig/proof.test.js +15 -15
  94. package/dist/{std__assert-CaBUULmX.js → std__assert-CHXwj7zk.js} +1 -1
  95. package/dist/testing/docloader.test.js +8 -8
  96. package/dist/testing/mod.d.ts +0 -1
  97. package/dist/{transformers-jxj-4o2K.js → transformers-ghwJuzGY.js} +1 -1
  98. package/dist/{types-COsvFBcH.js → types-BkYhmwmv.js} +1 -1
  99. package/dist/vocab/actor.test.js +37 -37
  100. package/dist/vocab/lookup.test.js +13 -13
  101. package/dist/vocab/mod.d.ts +5 -5
  102. package/dist/vocab/mod.js +4 -4
  103. package/dist/vocab/type.test.js +3 -3
  104. package/dist/vocab/vocab.test.js +129 -132
  105. package/dist/{vocab-BlP2AeMB.js → vocab-CKuJcawO.js} +3 -3
  106. package/dist/{vocab-BXZLOG9E.js → vocab-D0LMe9FE.js} +178 -178
  107. package/dist/{vocab-C4bpdeio.d.ts → vocab-DSFLLLe6.d.ts} +2 -7
  108. package/dist/webfinger/handler.test.js +27 -27
  109. package/dist/webfinger/lookup.test.js +11 -11
  110. package/dist/webfinger/mod.d.ts +3 -3
  111. package/dist/webfinger/mod.js +2 -2
  112. package/dist/x/cfworkers.d.ts +2 -9
  113. package/dist/x/cfworkers.test.js +8 -8
  114. package/dist/x/hono.d.ts +11 -12
  115. package/dist/x/sveltekit.d.ts +11 -12
  116. package/package.json +2 -2
  117. package/dist/middleware-DnbfTDpa.js +0 -17
  118. package/dist/middleware-DoD5Iw7X.js +0 -33
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-YfB_ekLA.js";
7
- import { Activity } from "./vocab-BXZLOG9E.js";
6
+ import { deno_default } from "./docloader-BzbamfL0.js";
7
+ import { Activity } from "./vocab-D0LMe9FE.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -13,7 +13,7 @@ import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentele
13
13
  var InboxListenerSet = class InboxListenerSet {
14
14
  #listeners;
15
15
  constructor() {
16
- this.#listeners = new Map();
16
+ this.#listeners = /* @__PURE__ */ new Map();
17
17
  }
18
18
  clone() {
19
19
  const clone = new InboxListenerSet();
@@ -89,7 +89,7 @@ async function routeActivity({ context: ctx, json, activity, recipient, inboxLis
89
89
  activity: json,
90
90
  identifier: recipient,
91
91
  attempt: 0,
92
- started: new Date().toISOString(),
92
+ started: (/* @__PURE__ */ new Date()).toISOString(),
93
93
  traceContext: carrier
94
94
  });
95
95
  } catch (error) {
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-YfB_ekLA.js";
7
- import { CryptographicKey, Object as Object$1 } from "./vocab-BXZLOG9E.js";
8
- import { isActor } from "./actor-DuRbv_Bj.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-BzbamfL0.js";
7
+ import { CryptographicKey, Object as Object$1 } from "./vocab-D0LMe9FE.js";
8
+ import { isActor } from "./actor-BRIxlOTx.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
11
11
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-D8aaMXMS.js";
6
- import "./actor-BHqS2e3c.js";
7
- import "./lookup-Zz0ToYnF.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-D66XeFWU.js";
5
+ import "./docloader-CjMOaZ0w.js";
6
+ import "./actor-BidJp8n0.js";
7
+ import "./lookup-DTOPcLsZ.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Dt894e0l.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -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-D8aaMXMS.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-BHqS2e3c.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-CjMOaZ0w.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-BidJp8n0.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "./docloader-YfB_ekLA.js";
6
+ import "./docloader-BzbamfL0.js";
7
7
  import "./url-kTAI6_KP.js";
8
8
  import "./multibase-DeCHcK8L.js";
9
- import "./vocab-BXZLOG9E.js";
9
+ import "./vocab-D0LMe9FE.js";
10
10
  import "./langstr-DbWheeIS.js";
11
- import "./lookup-1_LyYkq2.js";
11
+ import "./lookup-CNv4GGs7.js";
12
12
  import "./type-D2s5lmbZ.js";
13
- import "./actor-DuRbv_Bj.js";
14
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-yakqWjMR.js";
13
+ import "./actor-BRIxlOTx.js";
14
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-D3Mc3n0F.js";
15
15
 
16
16
  export { validateCryptoKey };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./vocab-BXZLOG9E.js";
6
+ import { CryptographicKey, Multikey } from "./vocab-D0LMe9FE.js";
7
7
 
8
8
  //#region federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -14,7 +14,7 @@ var KvKeyCache = class {
14
14
  constructor(kv, prefix, options = {}) {
15
15
  this.kv = kv;
16
16
  this.prefix = prefix;
17
- this.nullKeys = new Set();
17
+ this.nullKeys = /* @__PURE__ */ new Set();
18
18
  this.options = options;
19
19
  }
20
20
  async get(keyId) {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey, importSpki } from "./vocab-BXZLOG9E.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./vocab-D0LMe9FE.js";
7
7
 
8
8
  //#region testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -2,11 +2,6 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
 
4
4
  //#region federation/kv.d.ts
5
- /**
6
- * A key for a key-value store. An array of one or more strings.
7
- *
8
- * @since 0.5.0
9
- */
10
5
  /**
11
6
  * A key for a key-value store. An array of one or more strings.
12
7
  *
@@ -70,5 +65,6 @@ declare class MemoryKvStore implements KvStore {
70
65
  * {@inheritDoc KvStore.delete}
71
66
  */
72
67
  delete(key: KvKey): Promise<void>;
73
- } //#endregion
74
- export { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore as MemoryKvStore$1 };
68
+ }
69
+ //#endregion
70
+ export { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-YfB_ekLA.js";
7
- import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-BXZLOG9E.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-BzbamfL0.js";
7
+ import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-D0LMe9FE.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
- import { fetchKey, validateCryptoKey } from "./key-yakqWjMR.js";
9
+ import { fetchKey, validateCryptoKey } from "./key-D3Mc3n0F.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
12
12
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -52,7 +52,7 @@ async function createSignature(jsonLd, privateKey, keyId, { contextLoader, creat
52
52
  const options = {
53
53
  "@context": "https://w3id.org/identity/v1",
54
54
  creator: keyId.href,
55
- created: created?.toString() ?? new Date().toISOString()
55
+ created: created?.toString() ?? (/* @__PURE__ */ new Date()).toISOString()
56
56
  };
57
57
  const optionsHash = await hashJsonLd(options, contextLoader);
58
58
  const docHash = await hashJsonLd(jsonLd, contextLoader);
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getUserAgent } from "./docloader-YfB_ekLA.js";
6
+ import { deno_default, getUserAgent } from "./docloader-BzbamfL0.js";
7
7
  import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -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-D8aaMXMS.js";
5
+ import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-CjMOaZ0w.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
 
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-YfB_ekLA.js";
7
- import { Object as Object$1 } from "./vocab-BXZLOG9E.js";
8
- import { lookupWebFinger } from "./lookup-1_LyYkq2.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-BzbamfL0.js";
7
+ import { Object as Object$1 } from "./vocab-D0LMe9FE.js";
8
+ import { lookupWebFinger } from "./lookup-CNv4GGs7.js";
9
9
  import { getTypeId } from "./type-D2s5lmbZ.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,13 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
3
+ import { GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
4
4
  import { TracerProvider } from "@opentelemetry/api";
5
5
 
6
6
  //#region webfinger/jrd.d.ts
7
- /**
8
- * Describes a resource. See also
9
- * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
10
- */
11
7
  /**
12
8
  * Describes a resource. See also
13
9
  * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
@@ -58,7 +54,8 @@ interface Link {
58
54
  * Conveys additional information about the link relation.
59
55
  */
60
56
  properties?: Record<string, string>;
61
- } //#endregion
57
+ }
58
+ //#endregion
62
59
  //#region webfinger/lookup.d.ts
63
60
  /**
64
61
  * Options for {@link lookupWebFinger}.
@@ -95,6 +92,5 @@ interface LookupWebFingerOptions {
95
92
  * @since 0.2.0
96
93
  */
97
94
  declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
98
-
99
95
  //#endregion
100
- export { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger as lookupWebFinger$1 };
96
+ export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
@@ -3,26 +3,26 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-YfB_ekLA.js";
7
- import { getNodeInfo } from "./client-DcBIDSv0.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-BzbamfL0.js";
7
+ import { getNodeInfo } from "./client-CQ24CTCb.js";
8
8
  import { RouterError } from "./router-D_aVZZUc.js";
9
9
  import { nodeInfoToJson } from "./types-CqoqWDkp.js";
10
- import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-BXZLOG9E.js";
11
- import { lookupWebFinger } from "./lookup-1_LyYkq2.js";
10
+ import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-D0LMe9FE.js";
11
+ import { lookupWebFinger } from "./lookup-CNv4GGs7.js";
12
12
  import { getTypeId } from "./type-D2s5lmbZ.js";
13
- import { exportJwk, importJwk, validateCryptoKey } from "./key-yakqWjMR.js";
14
- import { verifyRequest } from "./http-B0cOjwNh.js";
15
- import { getAuthenticatedDocumentLoader } from "./authdocloader-Bl6g1FVm.js";
16
- import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-DFhDZpVO.js";
17
- import { doesActorOwnKey, getKeyOwner } from "./owner-B-x5wVW7.js";
18
- import { signObject, verifyObject } from "./proof-Bt6oaSF6.js";
19
- import { lookupObject, traverseCollection } from "./lookup-B3yeXDFK.js";
20
- import { routeActivity } from "./inbox-CTtTAWQW.js";
21
- import { FederationBuilderImpl } from "./builder-DY8xBedN.js";
22
- import { buildCollectionSynchronizationHeader } from "./collection-QaGK9TVn.js";
23
- import { KvKeyCache } from "./keycache-BNazIgsa.js";
13
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-D3Mc3n0F.js";
14
+ import { verifyRequest } from "./http-B3Xedrzu.js";
15
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-CG3GTtW2.js";
16
+ import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BJz01zAZ.js";
17
+ import { doesActorOwnKey, getKeyOwner } from "./owner-DPR9iegf.js";
18
+ import { signObject, verifyObject } from "./proof-CIdBQp8W.js";
19
+ import { lookupObject, traverseCollection } from "./lookup-dfyiwjbB.js";
20
+ import { routeActivity } from "./inbox-BoldQCGa.js";
21
+ import { FederationBuilderImpl } from "./builder-DtoRVfyu.js";
22
+ import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
23
+ import { KvKeyCache } from "./keycache-DXp-3NZn.js";
24
24
  import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
25
- import { extractInboxes, sendActivity } from "./send-CqqlfPUc.js";
25
+ import { extractInboxes, sendActivity } from "./send-ZuWTBaWD.js";
26
26
  import { getLogger, withContext } from "@logtape/logtape";
27
27
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
28
28
  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";
@@ -1452,7 +1452,7 @@ var FederationImpl = class extends FederationBuilderImpl {
1452
1452
  activityType: getTypeId(activity).href,
1453
1453
  inbox,
1454
1454
  sharedInbox: inboxes[inbox].sharedInbox,
1455
- started: new Date().toISOString(),
1455
+ started: (/* @__PURE__ */ new Date()).toISOString(),
1456
1456
  attempt: 0,
1457
1457
  headers: collectionSync == null ? {} : { "Collection-Synchronization": await buildCollectionSynchronizationHeader(collectionSync, inboxes[inbox].actorIds) },
1458
1458
  traceContext: carrier
@@ -2573,7 +2573,7 @@ var InboxContextImpl = class InboxContextImpl extends ContextImpl {
2573
2573
  activityType: this.activityType,
2574
2574
  inbox,
2575
2575
  sharedInbox: inboxes[inbox].sharedInbox,
2576
- started: new Date().toISOString(),
2576
+ started: (/* @__PURE__ */ new Date()).toISOString(),
2577
2577
  attempt: 0,
2578
2578
  headers: {},
2579
2579
  traceContext: carrier
@@ -2,16 +2,16 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getDefaultActivityTransformers$1 as getDefaultActivityTransformers } from "./transformers-jxj-4o2K.js";
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-D8aaMXMS.js";
7
- import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId$1 as getTypeId } from "./actor-BHqS2e3c.js";
8
- import { lookupWebFinger } from "./lookup-Zz0ToYnF.js";
9
- import { exportJwk, importJwk, validateCryptoKey } from "./key-D66XeFWU.js";
10
- import { doubleKnock, verifyRequest } from "./http-Df-q_v_l.js";
11
- import { detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject } from "./proof-DlVhAg_t.js";
12
- import { getNodeInfo, nodeInfoToJson } from "./types-COsvFBcH.js";
13
- import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-BeFl0PFE.js";
14
- import { lookupObject, traverseCollection } from "./vocab-BlP2AeMB.js";
5
+ import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-CjMOaZ0w.js";
7
+ import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-BidJp8n0.js";
8
+ import { lookupWebFinger } from "./lookup-DTOPcLsZ.js";
9
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-Dt894e0l.js";
10
+ import { doubleKnock, verifyRequest } from "./http-CV67UidJ.js";
11
+ import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DozAJu8u.js";
12
+ import { getNodeInfo, nodeInfoToJson } from "./types-BkYhmwmv.js";
13
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-BRs7flug.js";
14
+ import { lookupObject, traverseCollection } from "./vocab-CKuJcawO.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";
@@ -25,7 +25,7 @@ import { domainToASCII } from "node:url";
25
25
  var InboxListenerSet = class InboxListenerSet {
26
26
  #listeners;
27
27
  constructor() {
28
- this.#listeners = new Map();
28
+ this.#listeners = /* @__PURE__ */ new Map();
29
29
  }
30
30
  clone() {
31
31
  const clone = new InboxListenerSet();
@@ -101,7 +101,7 @@ async function routeActivity({ context: ctx, json, activity, recipient, inboxLis
101
101
  activity: json,
102
102
  identifier: recipient,
103
103
  attempt: 0,
104
- started: new Date().toISOString(),
104
+ started: (/* @__PURE__ */ new Date()).toISOString(),
105
105
  traceContext: carrier
106
106
  });
107
107
  } catch (error) {
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
312
312
  this.objectTypeIds = {};
313
313
  }
314
314
  async build(options) {
315
- const { FederationImpl: FederationImpl$1 } = await import("./middleware-DnbfTDpa.js");
315
+ const { FederationImpl: FederationImpl$1 } = await import("./middleware-HBJtiy_q.js");
316
316
  const f = new FederationImpl$1(options);
317
317
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
318
318
  f.router = this.router.clone();
@@ -776,7 +776,7 @@ function createFederationBuilder() {
776
776
  * @returns The digest.
777
777
  */
778
778
  async function digest(uris) {
779
- const processed = new Set();
779
+ const processed = /* @__PURE__ */ new Set();
780
780
  const encoder = new TextEncoder();
781
781
  const result = new Uint8Array(32);
782
782
  for (const uri of uris) {
@@ -817,7 +817,7 @@ var KvKeyCache = class {
817
817
  constructor(kv, prefix, options = {}) {
818
818
  this.kv = kv;
819
819
  this.prefix = prefix;
820
- this.nullKeys = new Set();
820
+ this.nullKeys = /* @__PURE__ */ new Set();
821
821
  this.options = options;
822
822
  }
823
823
  async get(keyId) {
@@ -1649,7 +1649,7 @@ function extractInboxes({ recipients, preferSharedInbox, excludeBaseUris }) {
1649
1649
  if (inbox != null && recipient.id != null) {
1650
1650
  if (excludeBaseUris != null && excludeBaseUris.some((u) => u.origin === inbox?.origin)) continue;
1651
1651
  inboxes[inbox.href] ??= {
1652
- actorIds: new Set(),
1652
+ actorIds: /* @__PURE__ */ new Set(),
1653
1653
  sharedInbox
1654
1654
  };
1655
1655
  inboxes[inbox.href].actorIds.add(recipient.id.href);
@@ -2317,7 +2317,7 @@ var FederationImpl = class extends FederationBuilderImpl {
2317
2317
  activityType: getTypeId(activity).href,
2318
2318
  inbox,
2319
2319
  sharedInbox: inboxes[inbox].sharedInbox,
2320
- started: new Date().toISOString(),
2320
+ started: (/* @__PURE__ */ new Date()).toISOString(),
2321
2321
  attempt: 0,
2322
2322
  headers: collectionSync == null ? {} : { "Collection-Synchronization": await buildCollectionSynchronizationHeader(collectionSync, inboxes[inbox].actorIds) },
2323
2323
  traceContext: carrier
@@ -3438,7 +3438,7 @@ var InboxContextImpl = class InboxContextImpl extends ContextImpl {
3438
3438
  activityType: this.activityType,
3439
3439
  inbox,
3440
3440
  sharedInbox: inboxes[inbox].sharedInbox,
3441
- started: new Date().toISOString(),
3441
+ started: (/* @__PURE__ */ new Date()).toISOString(),
3442
3442
  attempt: 0,
3443
3443
  headers: {},
3444
3444
  traceContext: carrier
@@ -0,0 +1,17 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "./transformers-ghwJuzGY.js";
6
+ import "./docloader-CjMOaZ0w.js";
7
+ import "./actor-BidJp8n0.js";
8
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-DB7wiPiW.js";
9
+ import "./lookup-DTOPcLsZ.js";
10
+ import "./key-Dt894e0l.js";
11
+ import "./http-CV67UidJ.js";
12
+ import "./proof-DozAJu8u.js";
13
+ import "./types-BkYhmwmv.js";
14
+ import "./authdocloader-BRs7flug.js";
15
+ import "./vocab-CKuJcawO.js";
16
+
17
+ export { FederationImpl };
@@ -0,0 +1,33 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BXqSM2dw.js";
7
+ import "./docloader-BzbamfL0.js";
8
+ import "./url-kTAI6_KP.js";
9
+ import "./semver-CbbIgUsa.js";
10
+ import "./client-CQ24CTCb.js";
11
+ import "./router-D_aVZZUc.js";
12
+ import "./types-CqoqWDkp.js";
13
+ import "./multibase-DeCHcK8L.js";
14
+ import "./vocab-D0LMe9FE.js";
15
+ import "./langstr-DbWheeIS.js";
16
+ import "./lookup-CNv4GGs7.js";
17
+ import "./type-D2s5lmbZ.js";
18
+ import "./actor-BRIxlOTx.js";
19
+ import "./key-D3Mc3n0F.js";
20
+ import "./http-B3Xedrzu.js";
21
+ import "./authdocloader-CG3GTtW2.js";
22
+ import "./ld-BJz01zAZ.js";
23
+ import "./owner-DPR9iegf.js";
24
+ import "./proof-CIdBQp8W.js";
25
+ import "./lookup-dfyiwjbB.js";
26
+ import "./inbox-BoldQCGa.js";
27
+ import "./builder-DtoRVfyu.js";
28
+ import "./collection-Dfb0TPno.js";
29
+ import "./keycache-DXp-3NZn.js";
30
+ import "./retry-BiIhZWgD.js";
31
+ import "./send-ZuWTBaWD.js";
32
+
33
+ export { FederationImpl };
@@ -1,15 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-DTRsVZPo.js";
4
- import { HttpMessageSignaturesSpecDeterminer } from "./http-CZyKN-rt.js";
3
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-DlUDOVSe.js";
4
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-BkUCISGt.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region runtime/authdocloader.d.ts
8
- /**
9
- * Options for {@link getAuthenticatedDocumentLoader}.
10
- * @see {@link getAuthenticatedDocumentLoader}
11
- * @since 1.3.0
12
- */
13
8
  /**
14
9
  * Options for {@link getAuthenticatedDocumentLoader}.
15
10
  * @see {@link getAuthenticatedDocumentLoader}
@@ -51,7 +46,6 @@ declare function getAuthenticatedDocumentLoader(identity: {
51
46
  specDeterminer,
52
47
  tracerProvider
53
48
  }?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
54
-
55
49
  //#endregion
56
50
  //#region runtime/key.d.ts
57
51
  /**
@@ -106,6 +100,5 @@ declare function importMultibaseKey(key: string): Promise<CryptoKey>;
106
100
  * @since 0.10.0
107
101
  */
108
102
  declare function exportMultibaseKey(key: CryptoKey): Promise<string>;
109
-
110
103
  //#endregion
111
104
  export { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki };
@@ -1,15 +1,11 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-DTRsVZPo.js";
4
- import { CryptographicKey$1 as CryptographicKey, DataIntegrityProof$1 as DataIntegrityProof, Multikey$1 as Multikey, Object$1 } from "./vocab-C4bpdeio.js";
5
- import { KeyCache } from "./http-CZyKN-rt.js";
3
+ import { DocumentLoader } from "./docloader-DlUDOVSe.js";
4
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-DSFLLLe6.js";
5
+ import { KeyCache } from "./http-BkUCISGt.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
8
  //#region sig/ld.d.ts
9
- /**
10
- * A signature of a JSON-LD document.
11
- * @since 1.0.0
12
- */
13
9
  /**
14
10
  * A signature of a JSON-LD document.
15
11
  * @since 1.0.0
@@ -146,7 +142,8 @@ interface VerifyJsonLdOptions extends VerifySignatureOptions {}
146
142
  * @param options Options for verifying the document.
147
143
  * @returns `true` if the document is authentic; `false` otherwise.
148
144
  */
149
- declare function verifyJsonLd(jsonLd: unknown, options?: VerifyJsonLdOptions): Promise<boolean>; //#endregion
145
+ declare function verifyJsonLd(jsonLd: unknown, options?: VerifyJsonLdOptions): Promise<boolean>;
146
+ //#endregion
150
147
  //#region sig/proof.d.ts
151
148
  /**
152
149
  * Options for {@link createProof}.
@@ -267,6 +264,5 @@ interface VerifyObjectOptions extends VerifyProofOptions {}
267
264
  declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) => T) & {
268
265
  fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
269
266
  }, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
270
-
271
267
  //#endregion
272
268
  export { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature };
@@ -1,27 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity$1 as Activity } from "./vocab-C4bpdeio.js";
4
- import { ActivityTransformer, Context } from "./context-DBM4y1xF.js";
3
+ import { Activity } from "./vocab-DSFLLLe6.js";
4
+ import { ActivityTransformer, Context } from "./context-DRhhOsMk.js";
5
5
 
6
6
  //#region compat/transformers.d.ts
7
- /**
8
- * An activity transformer that assigns a new random ID to an activity if it
9
- * does not already have one. This is useful for ensuring that activities
10
- * have an ID before they are sent to other servers.
11
- *
12
- * The generated ID is an origin URI with a fragment which contains an activity
13
- * type name with a random UUID:
14
- *
15
- * ```
16
- * https://example.com/#Follow/12345678-1234-5678-1234-567812345678
17
- * ```
18
- *
19
- * @typeParam TContextData The type of the context data.
20
- * @param activity The activity to assign an ID to.
21
- * @param context The context of the activity.
22
- * @return The activity with an ID assigned.
23
- * @since 1.4.0
24
- */
7
+
25
8
  /**
26
9
  * An activity transformer that assigns a new random ID to an activity if it
27
10
  * does not already have one. This is useful for ensuring that activities
@@ -95,6 +78,5 @@ declare function actorDehydrator<TContextData>(activity: Activity, _context: Con
95
78
  * @since 1.4.0
96
79
  */
97
80
  declare function getDefaultActivityTransformers<TContextData>(): readonly ActivityTransformer<TContextData>[];
98
-
99
81
  //#endregion
100
82
  export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -1,15 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
4
- import { Collection$1 as Collection, Link$2 as Link, Object$1 } from "./vocab-C4bpdeio.js";
3
+ import { DocumentLoader, GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
4
+ import { Collection, Link, Object as Object$1 } from "./vocab-DSFLLLe6.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region vocab/lookup.d.ts
8
- /**
9
- * Options for the {@link lookupObject} function.
10
- *
11
- * @since 0.2.0
12
- */
13
8
  /**
14
9
  * Options for the {@link lookupObject} function.
15
10
  *
@@ -119,7 +114,8 @@ interface TraverseCollectionOptions {
119
114
  * @returns An async iterable of each item in the collection.
120
115
  * @since 1.1.0
121
116
  */
122
- declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>; //#endregion
117
+ declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
118
+ //#endregion
123
119
  //#region vocab/constants.d.ts
124
120
  /**
125
121
  * The special public collection for [public addressing]. *Do not mutate this
@@ -130,7 +126,6 @@ declare function traverseCollection(collection: Collection, options?: TraverseCo
130
126
  * @since 0.7.0
131
127
  */
132
128
  declare const PUBLIC_COLLECTION: URL;
133
-
134
129
  //#endregion
135
130
  //#region vocab/type.d.ts
136
131
  /**
@@ -213,6 +208,5 @@ declare function getTypeId(object: Object$1 | Link | null): URL | null;
213
208
  * @since 1.3.0
214
209
  */
215
210
  declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
216
-
217
211
  //#endregion
218
- export { LookupObjectOptions, PUBLIC_COLLECTION as PUBLIC_COLLECTION$1, TraverseCollectionOptions, getTypeId, lookupObject as lookupObject$1, traverseCollection as traverseCollection$1 };
212
+ export { LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject, traverseCollection };