@fedify/fedify 1.9.0-dev.1605 → 1.9.0-dev.1668

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 (155) hide show
  1. package/dist/{actor-Bp5E1_uo.js → actor-BHAPrCDB.js} +1 -1
  2. package/dist/actor-CHOM_AN3.d.cts +128 -0
  3. package/dist/{actor-Bi2qvBSd.js → actor-ChSW_rBk.js} +200 -200
  4. package/dist/actor-fGD4yb1K.cjs +37783 -0
  5. package/dist/{authdocloader-BE3rMpjB.js → authdocloader-CgrKtaQg.js} +3 -3
  6. package/dist/{authdocloader-CtNUOc_o.js → authdocloader-ChsJ9FJN.js} +6 -6
  7. package/dist/authdocloader-eSrbn3wM.cjs +58 -0
  8. package/dist/{builder-i_bWHUua.js → builder-DI4-Kpdg.js} +4 -4
  9. package/dist/chunk-DqRYRqnO.cjs +34 -0
  10. package/dist/{client-DzL0DiuM.js → client-B8gJ1cw8.js} +1 -1
  11. package/dist/client-DjT_tegg.d.cts +294 -0
  12. package/dist/compat/mod.cjs +10 -0
  13. package/dist/compat/mod.d.cts +13 -0
  14. package/dist/compat/mod.js +5 -5
  15. package/dist/compat/transformers.test.js +16 -16
  16. package/dist/compat-DmDDELst.cjs +4 -0
  17. package/dist/compat-nxUqe4Z-.js +4 -0
  18. package/dist/context-KXVF2AhH.d.cts +2261 -0
  19. package/dist/{docloader-OJ23BINE.js → docloader-Bqh-eFNP.js} +188 -8
  20. package/dist/docloader-CSB8cAnw.cjs +4862 -0
  21. package/dist/docloader-D-MrRyHl.d.cts +219 -0
  22. package/dist/{esm-CyuitQYP.js → esm-DTi75ew2.js} +1 -1
  23. package/dist/federation/builder.test.js +5 -5
  24. package/dist/federation/collection.test.js +3 -3
  25. package/dist/federation/handler.test.js +17 -17
  26. package/dist/federation/inbox.test.js +4 -4
  27. package/dist/federation/keycache.test.js +4 -4
  28. package/dist/federation/kv.test.js +4 -3
  29. package/dist/federation/middleware.test.js +18 -18
  30. package/dist/federation/mod.cjs +29 -0
  31. package/dist/federation/mod.d.cts +13 -0
  32. package/dist/federation/mod.js +15 -15
  33. package/dist/federation/mq.test.js +3 -3
  34. package/dist/federation/retry.test.js +3 -3
  35. package/dist/federation/router.test.js +3 -3
  36. package/dist/federation/send.test.js +10 -10
  37. package/dist/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
  38. package/dist/federation-H2_En3j5.cjs +244 -0
  39. package/dist/http-BDErrXSN.cjs +826 -0
  40. package/dist/http-B_zBcsai.d.cts +253 -0
  41. package/dist/{http-BptJ8gzr.js → http-BpAVdmaR.js} +2 -2
  42. package/dist/{http-CGKESoOD.js → http-DBHpjcjo.js} +6 -6
  43. package/dist/{inbox-D5YFCsS2.js → inbox-BA9sYsBf.js} +1 -1
  44. package/dist/key-2rIHnPaA.js +10 -0
  45. package/dist/{key-C_beSXh2.js → key-B27QtSbc.js} +2 -2
  46. package/dist/key-CYpTUnwf.cjs +290 -0
  47. package/dist/key-Ck4-GNm0.cjs +10 -0
  48. package/dist/{key-D7obyu6i.js → key-DSOJOcRH.js} +3 -3
  49. package/dist/{key-UR9dBv1x.js → key-sCE-TgxY.js} +5 -5
  50. package/dist/{keycache-Ocm3x-aO.js → keycache-CiW2SvJu.js} +1 -1
  51. package/dist/{keys-C0sHgFeh.js → keys-5cHW76LQ.js} +1 -1
  52. package/dist/kv-63Cil1MD.d.cts +81 -0
  53. package/dist/{ld-BP8uv8u-.js → ld-upnKn3yw.js} +2 -2
  54. package/dist/{lookup-DmESd_mM.js → lookup-B61sZAOY.js} +4 -4
  55. package/dist/lookup-BrrOs_g1.cjs +137 -0
  56. package/dist/{lookup-BrGv9cks.js → lookup-CZBG-vCx.js} +1 -1
  57. package/dist/{middleware-Sfxf2Vmo.js → middleware-CfP7UhQy.js} +28 -28
  58. package/dist/{middleware-CZ-uRVbW.js → middleware-CyUVZG3t.js} +27 -27
  59. package/dist/middleware-D8O6iKhr.js +26 -0
  60. package/dist/middleware-DI4sIaI4.js +17 -0
  61. package/dist/middleware-P3jCWk4K.cjs +4240 -0
  62. package/dist/middleware-lw0MLhVG.cjs +17 -0
  63. package/dist/mod-C2tOeRkN.d.cts +1 -0
  64. package/dist/mod-C3CGxYoF.d.cts +102 -0
  65. package/dist/mod-COw_caPC.d.cts +266 -0
  66. package/dist/mod-FZd39qVq.d.cts +1 -0
  67. package/dist/mod-NKH_G-IY.d.cts +289 -0
  68. package/dist/mod-YfAcrVbP.d.cts +80 -0
  69. package/dist/mod-jQ4OODsl.d.cts +113 -0
  70. package/dist/mod.cjs +152 -0
  71. package/dist/mod.d.cts +17 -0
  72. package/dist/mod.js +20 -20
  73. package/dist/mq-B7R1Q-M5.d.cts +140 -0
  74. package/dist/nodeinfo/client.test.js +5 -5
  75. package/dist/nodeinfo/handler.test.js +16 -16
  76. package/dist/nodeinfo/mod.cjs +13 -0
  77. package/dist/nodeinfo/mod.d.cts +5 -0
  78. package/dist/nodeinfo/mod.js +6 -6
  79. package/dist/nodeinfo/semver.test.js +3 -3
  80. package/dist/nodeinfo/types.test.js +3 -3
  81. package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
  82. package/dist/nodeinfo-DfycQ8Wf.js +4 -0
  83. package/dist/owner-C9Ry0TOI.d.cts +67 -0
  84. package/dist/{owner-C3KvPNTd.js → owner-zvsMGYzc.js} +2 -2
  85. package/dist/{proof-DmROl-2J.js → proof-BgKYSJ00.js} +2 -2
  86. package/dist/{proof-vAK-PfOK.js → proof-Bt6yHsMN.js} +6 -6
  87. package/dist/proof-CC_7UV_j.cjs +673 -0
  88. package/dist/runtime/authdocloader.test.js +9 -9
  89. package/dist/runtime/docloader.test.js +4 -4
  90. package/dist/runtime/key.test.js +5 -5
  91. package/dist/runtime/langstr.test.js +3 -3
  92. package/dist/runtime/link.test.d.ts +3 -0
  93. package/dist/runtime/link.test.js +61 -0
  94. package/dist/runtime/mod.cjs +25 -0
  95. package/dist/runtime/mod.d.cts +6 -0
  96. package/dist/runtime/mod.js +10 -10
  97. package/dist/runtime/multibase/multibase.test.js +3 -3
  98. package/dist/runtime/url.test.js +3 -3
  99. package/dist/runtime-C58AJWSv.cjs +4 -0
  100. package/dist/runtime-DPYEDf-o.js +4 -0
  101. package/dist/{send-D7brJLC6.js → send-DlqdAGHP.js} +2 -2
  102. package/dist/sig/http.test.js +8 -8
  103. package/dist/sig/key.test.js +6 -6
  104. package/dist/sig/ld.test.js +7 -7
  105. package/dist/sig/mod.cjs +30 -0
  106. package/dist/sig/mod.d.cts +8 -0
  107. package/dist/sig/mod.js +10 -10
  108. package/dist/sig/owner.test.js +7 -7
  109. package/dist/sig/proof.test.js +7 -7
  110. package/dist/sig-ByHXzqUi.cjs +4 -0
  111. package/dist/sig-Cj3tk-ig.js +4 -0
  112. package/dist/testing/docloader.test.js +3 -3
  113. package/dist/testing/mod.js +3 -3
  114. package/dist/{testing-B3ZGdVhe.js → testing-CAAJTPCt.js} +2 -2
  115. package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
  116. package/dist/transformers-CoBS-oFG.cjs +116 -0
  117. package/dist/{type-CrcgcFC3.js → type-BRNRL3aj.js} +381 -201
  118. package/dist/{types-DiyuYWAI.js → types-C8yjtF5A.js} +4 -4
  119. package/dist/types-Dz0NMslg.cjs +488 -0
  120. package/dist/vocab/actor.test.js +5 -5
  121. package/dist/vocab/lookup.test.js +4 -4
  122. package/dist/vocab/mod.cjs +87 -0
  123. package/dist/vocab/mod.d.cts +6 -0
  124. package/dist/vocab/mod.js +7 -7
  125. package/dist/vocab/type.test.js +3 -3
  126. package/dist/vocab/vocab.test.js +40 -5
  127. package/dist/vocab-BDMmyzZA.cjs +282 -0
  128. package/dist/vocab-BzGg7ltX.d.cts +14629 -0
  129. package/dist/{vocab-Dk0L2c9M.js → vocab-WpDLcZH7.js} +6 -6
  130. package/dist/webfinger/handler.test.js +16 -16
  131. package/dist/webfinger/lookup.test.js +4 -4
  132. package/dist/webfinger/mod.cjs +9 -0
  133. package/dist/webfinger/mod.d.cts +4 -0
  134. package/dist/webfinger/mod.js +6 -6
  135. package/dist/webfinger-BjOEdFPs.cjs +4 -0
  136. package/dist/webfinger-De_bU0iE.js +4 -0
  137. package/dist/x/cfworkers.cjs +100 -0
  138. package/dist/x/cfworkers.d.cts +59 -0
  139. package/dist/x/cfworkers.js +3 -3
  140. package/dist/x/cfworkers.test.js +3 -3
  141. package/dist/x/hono.cjs +61 -0
  142. package/dist/x/hono.d.cts +54 -0
  143. package/dist/x/hono.js +3 -3
  144. package/dist/x/sveltekit.cjs +69 -0
  145. package/dist/x/sveltekit.d.cts +46 -0
  146. package/dist/x/sveltekit.js +3 -3
  147. package/package.json +68 -13
  148. package/dist/compat-Bb5myD13.js +0 -4
  149. package/dist/key-D7gEThPA.js +0 -10
  150. package/dist/middleware-CtLDRgUg.js +0 -26
  151. package/dist/middleware-ww6ZuicB.js +0 -17
  152. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  153. package/dist/runtime-BSkOVUWM.js +0 -4
  154. package/dist/sig-BXJO--F9.js +0 -4
  155. package/dist/webfinger-C3GIyXIg.js +0 -4
@@ -0,0 +1,5 @@
1
+ import "../kv-63Cil1MD.cjs";
2
+ import "../docloader-D-MrRyHl.cjs";
3
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-DjT_tegg.cjs";
4
+ import "../mod-FZd39qVq.cjs";
5
+ export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -1,9 +1,9 @@
1
1
 
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import "../docloader-OJ23BINE.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-DiyuYWAI.js";
7
- import "../nodeinfo-CyEbLjHs.js";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "../docloader-Bqh-eFNP.js";
6
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-C8yjtF5A.js";
7
+ import "../nodeinfo-DfycQ8Wf.js";
8
8
 
9
9
  export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CrcgcFC3.js";
6
+ import "../type-BRNRL3aj.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 { formatSemVer, parseSemVer } from "../semver-dArNLkR9.js";
11
- import "../lookup-BrGv9cks.js";
12
- import { test } from "../testing-B3ZGdVhe.js";
11
+ import "../lookup-CZBG-vCx.js";
12
+ import { test } from "../testing-CAAJTPCt.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CrcgcFC3.js";
6
+ import "../type-BRNRL3aj.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 "../lookup-BrGv9cks.js";
11
+ import "../lookup-CZBG-vCx.js";
12
12
  import { nodeInfoToJson } from "../types-BIgY6c-l.js";
13
- import { test } from "../testing-B3ZGdVhe.js";
13
+ import { test } from "../testing-CAAJTPCt.js";
14
14
  import "../std__assert-X-_kMxKM.js";
15
15
  import "../assert_rejects-DiIiJbZn.js";
16
16
  import "../assert_is_error-BPGph1Jx.js";
@@ -0,0 +1,4 @@
1
+
2
+ const { Temporal } = require("@js-temporal/polyfill");
3
+ const { URLPattern } = require("urlpattern-polyfill");
4
+
@@ -0,0 +1,4 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
@@ -0,0 +1,67 @@
1
+ import { DocumentLoader } from "./docloader-D-MrRyHl.cjs";
2
+ import { Activity, CryptographicKey } from "./vocab-BzGg7ltX.cjs";
3
+ import { Actor } from "./actor-CHOM_AN3.cjs";
4
+ import { TracerProvider } from "@opentelemetry/api";
5
+
6
+ //#region src/sig/owner.d.ts
7
+ /**
8
+ * Options for {@link doesActorOwnKey}.
9
+ * @since 0.8.0
10
+ */
11
+ interface DoesActorOwnKeyOptions {
12
+ /**
13
+ * The document loader to use for fetching the actor.
14
+ */
15
+ documentLoader?: DocumentLoader;
16
+ /**
17
+ * The context loader to use for JSON-LD context retrieval.
18
+ */
19
+ contextLoader?: DocumentLoader;
20
+ /**
21
+ * The OpenTelemetry tracer provider to use for tracing. If omitted,
22
+ * the global tracer provider is used.
23
+ * @since 1.3.0
24
+ */
25
+ tracerProvider?: TracerProvider;
26
+ }
27
+ /**
28
+ * Checks if the actor of the given activity owns the specified key.
29
+ * @param activity The activity to check.
30
+ * @param key The public key to check.
31
+ * @param options Options for checking the key ownership.
32
+ * @returns Whether the actor is the owner of the key.
33
+ */
34
+ declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: DoesActorOwnKeyOptions): Promise<boolean>;
35
+ /**
36
+ * Options for {@link getKeyOwner}.
37
+ * @since 0.8.0
38
+ */
39
+ interface GetKeyOwnerOptions {
40
+ /**
41
+ * The document loader to use for fetching the key and its owner.
42
+ */
43
+ documentLoader?: DocumentLoader;
44
+ /**
45
+ * The context loader to use for JSON-LD context retrieval.
46
+ */
47
+ contextLoader?: DocumentLoader;
48
+ /**
49
+ * The OpenTelemetry tracer provider to use for tracing. If omitted,
50
+ * the global tracer provider is used.
51
+ * @since 1.3.0
52
+ */
53
+ tracerProvider?: TracerProvider;
54
+ }
55
+ /**
56
+ * Gets the actor that owns the specified key. Returns `null` if the key has no
57
+ * known owner.
58
+ *
59
+ * @param keyId The ID of the key to check, or the key itself.
60
+ * @param options Options for getting the key owner.
61
+ * @returns The actor that owns the key, or `null` if the key has no known
62
+ * owner.
63
+ * @since 0.7.0
64
+ */
65
+ declare function getKeyOwner(keyId: URL | CryptographicKey, options: GetKeyOwnerOptions): Promise<Actor | null>;
66
+ //#endregion
67
+ export { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-CrcgcFC3.js";
7
- import { isActor } from "./actor-Bp5E1_uo.js";
6
+ import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-BRNRL3aj.js";
7
+ import { isActor } from "./actor-BHAPrCDB.js";
8
8
  import { trace } from "@opentelemetry/api";
9
9
 
10
10
  //#region src/sig/owner.ts
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-CrcgcFC3.js";
7
- import { fetchKey, validateCryptoKey } from "./key-C_beSXh2.js";
6
+ import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-BRNRL3aj.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-B27QtSbc.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { encodeHex } from "byte-encodings/hex";
@@ -1,10 +1,10 @@
1
1
 
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { deno_default, getDocumentLoader } from "./docloader-OJ23BINE.js";
6
- import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-Bi2qvBSd.js";
7
- import { fetchKey, validateCryptoKey } from "./key-UR9dBv1x.js";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import { deno_default, getDocumentLoader } from "./docloader-Bqh-eFNP.js";
6
+ import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-ChSW_rBk.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-sCE-TgxY.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import jsonld from "jsonld";