@fedify/fedify 1.9.0-dev.1506 → 1.9.0-dev.1519

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 (88) hide show
  1. package/dist/{actor-Byv_HD8L.js → actor-C5zpbHtI.js} +1 -1
  2. package/dist/{actor-D-inLFUG.js → actor-CowWKhwM.js} +187 -187
  3. package/dist/{authdocloader-C9mak8Id.js → authdocloader-CAutnVyV.js} +3 -3
  4. package/dist/{authdocloader-Dr1pDQiM.js → authdocloader-COqOcPuV.js} +3 -3
  5. package/dist/{builder-B4b7FWEI.js → builder-xp6qNN3Z.js} +4 -4
  6. package/dist/{client-Bhgb2vl-.js → client-Lv-JlCp4.js} +2 -2
  7. package/dist/compat/mod.d.ts +3 -3
  8. package/dist/compat/transformers.test.js +16 -16
  9. package/dist/{context-DJQB_Zv4.d.ts → context-BCj0VD68.d.ts} +1 -1
  10. package/dist/{docloader-BwXMcq8o.js → docloader-DdgIx6xV.js} +1 -1
  11. package/dist/{esm-DKrUlrr5.js → esm-C23gh34S.js} +1 -1
  12. package/dist/federation/builder.test.js +5 -5
  13. package/dist/federation/collection.test.js +3 -3
  14. package/dist/federation/handler.test.js +17 -17
  15. package/dist/federation/inbox.test.js +4 -4
  16. package/dist/federation/keycache.test.js +4 -4
  17. package/dist/federation/kv.test.js +3 -3
  18. package/dist/federation/middleware.test.js +18 -18
  19. package/dist/federation/mod.d.ts +2 -2
  20. package/dist/federation/mod.js +10 -10
  21. package/dist/federation/mq.test.js +3 -3
  22. package/dist/federation/retry.test.js +3 -3
  23. package/dist/federation/router.test.js +3 -3
  24. package/dist/federation/send.test.js +10 -10
  25. package/dist/{http-CBuUBOCy.js → http-B1VeYQOk.js} +2 -2
  26. package/dist/{http-B4FHn-0k.js → http-CTH3fuIB.js} +3 -3
  27. package/dist/{inbox-5vmgxtCp.js → inbox-DBBwELwi.js} +1 -1
  28. package/dist/{key-r0qI5u21.js → key-BP0Qu_7Y.js} +3 -3
  29. package/dist/{key-C7WEk_E5.js → key-Qio8uRnD.js} +2 -2
  30. package/dist/{key-Be2jYc2l.js → key-VVOEM7HB.js} +2 -2
  31. package/dist/{key-DOWtZm0d.js → key-WwuoD3Vk.js} +4 -4
  32. package/dist/{keycache-D51Z62_m.js → keycache-ByVajzb9.js} +1 -1
  33. package/dist/{keys-b4JF9F_p.js → keys-SQa0t3k7.js} +1 -1
  34. package/dist/{ld-D6TrjlFi.js → ld-BQvrY3ye.js} +2 -2
  35. package/dist/{lookup-B760cNfI.js → lookup-9G8cSAu7.js} +2 -2
  36. package/dist/{lookup-3czM5mmU.d.ts → lookup-D3CS4Euw.d.ts} +8 -1
  37. package/dist/{lookup-O3zQWGYp.js → lookup-nVd26Mni.js} +1 -1
  38. package/dist/middleware-B9NmigXk.js +26 -0
  39. package/dist/middleware-C8LLl8LF.js +17 -0
  40. package/dist/{middleware-DoVQ64yT.js → middleware-DU358Osr.js} +10 -10
  41. package/dist/{middleware-BVhoU3V2.js → middleware-Uly-rv33.js} +13 -13
  42. package/dist/{mod-eBo9RUEr.d.ts → mod-BRq3eKtS.d.ts} +1 -1
  43. package/dist/mod.d.ts +3 -3
  44. package/dist/mod.js +10 -10
  45. package/dist/nodeinfo/client.test.js +5 -5
  46. package/dist/nodeinfo/handler.test.js +16 -16
  47. package/dist/nodeinfo/mod.js +2 -2
  48. package/dist/nodeinfo/semver.test.js +3 -3
  49. package/dist/nodeinfo/types.test.js +3 -3
  50. package/dist/{owner-BzxMoRV-.js → owner-CUJt8hVP.js} +2 -2
  51. package/dist/{proof-CsXoAOeK.js → proof-BULvhIfN.js} +2 -2
  52. package/dist/{proof-CCNA8jk3.js → proof-kdlWEd_A.js} +3 -3
  53. package/dist/runtime/authdocloader.test.js +9 -9
  54. package/dist/runtime/docloader.test.js +4 -4
  55. package/dist/runtime/key.test.js +5 -5
  56. package/dist/runtime/langstr.test.js +3 -3
  57. package/dist/runtime/mod.js +6 -6
  58. package/dist/runtime/multibase/multibase.test.js +3 -3
  59. package/dist/runtime/url.test.js +3 -3
  60. package/dist/{send-D9e2gyPn.js → send-CFJSjZqi.js} +2 -2
  61. package/dist/sig/http.test.js +8 -8
  62. package/dist/sig/key.test.js +6 -6
  63. package/dist/sig/ld.test.js +7 -7
  64. package/dist/sig/mod.js +6 -6
  65. package/dist/sig/owner.test.js +7 -7
  66. package/dist/sig/proof.test.js +7 -7
  67. package/dist/testing/docloader.test.js +3 -3
  68. package/dist/testing/mod.d.ts +8 -1
  69. package/dist/testing/mod.js +3 -3
  70. package/dist/{testing-_jbFi7mx.js → testing-DFkrsxuS.js} +2 -2
  71. package/dist/{type-DMgD2JID.js → type-giA9lCIj.js} +186 -186
  72. package/dist/{types-CpqZAZoH.js → types-CfuwD2-x.js} +2 -2
  73. package/dist/vocab/actor.test.js +5 -5
  74. package/dist/vocab/lookup.test.js +4 -4
  75. package/dist/vocab/mod.js +4 -4
  76. package/dist/vocab/type.test.js +3 -3
  77. package/dist/vocab/vocab.test.js +4 -4
  78. package/dist/{vocab-BOHsKjxC.js → vocab-Bwt2mYcz.js} +4 -4
  79. package/dist/webfinger/handler.test.js +16 -16
  80. package/dist/webfinger/lookup.test.js +4 -4
  81. package/dist/webfinger/mod.d.ts +1 -1
  82. package/dist/webfinger/mod.js +2 -2
  83. package/dist/x/cfworkers.test.js +3 -3
  84. package/dist/x/hono.d.ts +2 -2
  85. package/dist/x/sveltekit.d.ts +2 -2
  86. package/package.json +1 -1
  87. package/dist/middleware-CiQsyqzs.js +0 -17
  88. package/dist/middleware-DJyGFUQp.js +0 -26
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "../type-DMgD2JID.js";
6
+ import { CryptographicKey, Multikey } from "../type-giA9lCIj.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
- import "../lookup-B760cNfI.js";
11
- import "../actor-Byv_HD8L.js";
12
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-Be2jYc2l.js";
13
- import { mockDocumentLoader, test } from "../testing-_jbFi7mx.js";
10
+ import "../lookup-9G8cSAu7.js";
11
+ import "../actor-C5zpbHtI.js";
12
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-VVOEM7HB.js";
13
+ import { mockDocumentLoader, test } from "../testing-DFkrsxuS.js";
14
14
  import "../std__assert-X-_kMxKM.js";
15
15
  import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
16
16
  import "../assert_is_error-BPGph1Jx.js";
17
17
  import "../assert_not_equals-f3m3epl3.js";
18
18
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
19
- import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-b4JF9F_p.js";
19
+ import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-SQa0t3k7.js";
20
20
 
21
21
  //#region src/sig/key.test.ts
22
22
  test("validateCryptoKey()", async () => {
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey } from "../type-DMgD2JID.js";
6
+ import { CryptographicKey } from "../type-giA9lCIj.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
- import "../lookup-B760cNfI.js";
10
- import "../actor-Byv_HD8L.js";
11
- import { generateCryptoKeyPair } from "../key-Be2jYc2l.js";
12
- import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-D6TrjlFi.js";
13
- import { mockDocumentLoader, test } from "../testing-_jbFi7mx.js";
9
+ import "../lookup-9G8cSAu7.js";
10
+ import "../actor-C5zpbHtI.js";
11
+ import { generateCryptoKeyPair } from "../key-VVOEM7HB.js";
12
+ import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-BQvrY3ye.js";
13
+ import { mockDocumentLoader, test } from "../testing-DFkrsxuS.js";
14
14
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
16
16
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
17
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-b4JF9F_p.js";
17
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-SQa0t3k7.js";
18
18
  import { encodeBase64 } from "byte-encodings/base64";
19
19
 
20
20
  //#region src/sig/ld.test.ts
package/dist/sig/mod.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-BwXMcq8o.js";
6
- import "../actor-D-inLFUG.js";
7
- import "../lookup-O3zQWGYp.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-C7WEk_E5.js";
9
- import { signRequest, verifyRequest } from "../http-B4FHn-0k.js";
10
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-CCNA8jk3.js";
5
+ import "../docloader-DdgIx6xV.js";
6
+ import "../actor-CowWKhwM.js";
7
+ import "../lookup-nVd26Mni.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-Qio8uRnD.js";
9
+ import { signRequest, verifyRequest } from "../http-CTH3fuIB.js";
10
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-kdlWEd_A.js";
11
11
  import "../sig-BXJO--F9.js";
12
12
 
13
13
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
@@ -3,21 +3,21 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create } from "../type-DMgD2JID.js";
6
+ import { Create } from "../type-giA9lCIj.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 { lookupObject } from "../lookup-B760cNfI.js";
11
- import "../actor-Byv_HD8L.js";
12
- import "../key-Be2jYc2l.js";
13
- import { doesActorOwnKey, getKeyOwner } from "../owner-BzxMoRV-.js";
14
- import { mockDocumentLoader, test } from "../testing-_jbFi7mx.js";
10
+ import { lookupObject } from "../lookup-9G8cSAu7.js";
11
+ import "../actor-C5zpbHtI.js";
12
+ import "../key-VVOEM7HB.js";
13
+ import { doesActorOwnKey, getKeyOwner } from "../owner-CUJt8hVP.js";
14
+ import { mockDocumentLoader, test } from "../testing-DFkrsxuS.js";
15
15
  import "../std__assert-X-_kMxKM.js";
16
16
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
17
17
  import "../assert_is_error-BPGph1Jx.js";
18
18
  import "../assert_not_equals-f3m3epl3.js";
19
19
  import "../assert_throws-BOO88avQ.js";
20
- import { rsaPublicKey1, rsaPublicKey2 } from "../keys-b4JF9F_p.js";
20
+ import { rsaPublicKey1, rsaPublicKey2 } from "../keys-SQa0t3k7.js";
21
21
 
22
22
  //#region src/sig/owner.test.ts
23
23
  test("doesActorOwnKey()", async () => {
@@ -3,21 +3,21 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-DMgD2JID.js";
6
+ import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-giA9lCIj.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-B760cNfI.js";
11
- import "../actor-Byv_HD8L.js";
12
- import "../key-Be2jYc2l.js";
13
- import { createProof, signObject, verifyObject, verifyProof } from "../proof-CsXoAOeK.js";
14
- import { mockDocumentLoader, test } from "../testing-_jbFi7mx.js";
10
+ import "../lookup-9G8cSAu7.js";
11
+ import "../actor-C5zpbHtI.js";
12
+ import "../key-VVOEM7HB.js";
13
+ import { createProof, signObject, verifyObject, verifyProof } from "../proof-BULvhIfN.js";
14
+ import { mockDocumentLoader, test } from "../testing-DFkrsxuS.js";
15
15
  import "../std__assert-X-_kMxKM.js";
16
16
  import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
17
17
  import "../assert_is_error-BPGph1Jx.js";
18
18
  import "../assert_not_equals-f3m3epl3.js";
19
19
  import "../assert_throws-BOO88avQ.js";
20
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-b4JF9F_p.js";
20
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-SQa0t3k7.js";
21
21
  import { decodeHex, encodeHex } from "byte-encodings/hex";
22
22
 
23
23
  //#region src/sig/proof.test.ts
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DMgD2JID.js";
6
+ import "../type-giA9lCIj.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
- import "../lookup-B760cNfI.js";
11
- import { mockDocumentLoader, test } from "../testing-_jbFi7mx.js";
10
+ import "../lookup-9G8cSAu7.js";
11
+ import { mockDocumentLoader, test } from "../testing-DFkrsxuS.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -6970,7 +6970,7 @@ interface Link$1 {
6970
6970
  /**
6971
6971
  * A URI pointing to the target resource.
6972
6972
  */
6973
- href: string;
6973
+ href?: string;
6974
6974
  /**
6975
6975
  * Human-readable titles describing the link relation. If the language is
6976
6976
  * unknown or unspecified, the key is `"und"`.
@@ -6980,6 +6980,13 @@ interface Link$1 {
6980
6980
  * Conveys additional information about the link relation.
6981
6981
  */
6982
6982
  properties?: Record<string, string>;
6983
+ /**
6984
+ * A URI Template (RFC 6570) that can be used to construct URIs by
6985
+ * substituting variables. Used primarily for subscription endpoints
6986
+ * where parameters like account URIs need to be dynamically inserted.
6987
+ * @since 1.9.0
6988
+ */
6989
+ template?: string;
6983
6990
  }
6984
6991
  //#endregion
6985
6992
  //#region src/webfinger/lookup.d.ts
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DMgD2JID.js";
7
- import "../lookup-B760cNfI.js";
8
- import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-_jbFi7mx.js";
6
+ import "../type-giA9lCIj.js";
7
+ import "../lookup-9G8cSAu7.js";
8
+ import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-DFkrsxuS.js";
9
9
 
10
10
  export { createInboxContext, createRequestContext, test, testDefinitions };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __require, lookupWebFinger } from "./type-DMgD2JID.js";
7
- import { RouterError, lookupObject, traverseCollection } from "./lookup-B760cNfI.js";
6
+ import { __require, lookupWebFinger } from "./type-giA9lCIj.js";
7
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-9G8cSAu7.js";
8
8
  import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
9
9
  import { trace } from "@opentelemetry/api";
10
10