@fedify/fedify 1.9.0-pr.378.1394 → 1.9.0-pr.381.1398

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 (97) hide show
  1. package/dist/{actor-Uh1YDuVl.d.ts → actor-Ch5yFYFG.d.ts} +1 -1
  2. package/dist/{actor-B7EOS7sj.js → actor-CvjaNhYs.js} +1 -1
  3. package/dist/{actor-DVhqV33k.js → actor-DRDJEBUm.js} +1299 -179
  4. package/dist/{authdocloader-C4Z-T6r4.js → authdocloader-1KhcjRRl.js} +3 -3
  5. package/dist/{authdocloader-C3NOxWC4.js → authdocloader-C0Im6QL6.js} +3 -3
  6. package/dist/{builder-DWbYd7Uz.js → builder-rkyhg-s7.js} +4 -4
  7. package/dist/{client-MeYeu6QM.js → client-B9jM_drO.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-CnveeHUR.d.ts → context-DJQB_Zv4.d.ts} +5 -5
  11. package/dist/{docloader-lRn6Iz9h.js → docloader-BQtOKgp6.js} +35 -1
  12. package/dist/{esm-Cbcf_ekH.js → esm-g239S2Ho.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 +18 -18
  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-jsbQZmEx.js → http-BHElg0Zi.js} +2 -2
  27. package/dist/{http-Xaq8uKR0.js → http-BOuae4s3.js} +3 -3
  28. package/dist/{http-DtG44GdM.d.ts → http-D8Q4xH0d.d.ts} +1 -1
  29. package/dist/{inbox-Bvgh0p3t.js → inbox-D5dxkCHy.js} +1 -1
  30. package/dist/{key-7GjX3d6i.js → key-CaDE-DZJ.js} +4 -4
  31. package/dist/{key-B_hS87hg.js → key-GTNy56PR.js} +3 -3
  32. package/dist/{key-CGiIDuCb.js → key-K4Y2MI7Z.js} +2 -2
  33. package/dist/{key-BA-VESrE.js → key-s4qnG2im.js} +2 -2
  34. package/dist/{keycache-CaGRPD2D.js → keycache-BGB_9pQd.js} +1 -1
  35. package/dist/{keys-n8TnpEvl.js → keys-BUyXSB_1.js} +1 -1
  36. package/dist/{ld-536I1uoS.js → ld-Dabq6u87.js} +2 -2
  37. package/dist/{lookup-CpQFwuYT.js → lookup-BKAM4uhR.js} +1 -1
  38. package/dist/{lookup-B51nxTWE.js → lookup-DXOeAoau.js} +1 -1
  39. package/dist/{middleware-AR3RfTfO.js → middleware-BYNtLu8k.js} +13 -13
  40. package/dist/middleware-Bf_V-JrI.js +26 -0
  41. package/dist/middleware-Bgydml_r.js +17 -0
  42. package/dist/{middleware-D550um_p.js → middleware-DcV1Nix0.js} +10 -10
  43. package/dist/{mod-tQVUxQ_D.d.ts → mod-B7Pc0I7F.d.ts} +2 -2
  44. package/dist/{mod-mSMqo9JU.d.ts → mod-BAuhKa9d.d.ts} +1 -1
  45. package/dist/{mod-cz-tNIqP.d.ts → mod-Cy6pkZSn.d.ts} +1 -1
  46. package/dist/{mod-DPpunL8j.d.ts → mod-eBo9RUEr.d.ts} +2 -2
  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-C12klfeG.d.ts → owner-D38zBIMc.d.ts} +2 -2
  55. package/dist/{owner-Dp73PxeY.js → owner-DgH6uc6t.js} +2 -2
  56. package/dist/{proof-DKtgyz5B.js → proof-B7pkRLUq.js} +3 -3
  57. package/dist/{proof-DWJpYhi0.js → proof-BQUVJRUu.js} +2 -2
  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 +3 -3
  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-DucL-V0N.js → send-Be2DM7RK.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/src/vocab/collection.yaml +72 -0
  75. package/dist/testing/docloader.test.js +3 -3
  76. package/dist/testing/mod.d.ts +176 -0
  77. package/dist/testing/mod.js +3 -3
  78. package/dist/{testing-CjUbycJE.js → testing-oVc8Ak7R.js} +2 -2
  79. package/dist/{type-CQXrP5Lt.js → type-kbhcBjln.js} +1408 -254
  80. package/dist/{types-CCNn1tuL.js → types-PmGJGovd.js} +1 -1
  81. package/dist/vocab/actor.test.js +5 -5
  82. package/dist/vocab/lookup.test.js +4 -4
  83. package/dist/vocab/mod.d.ts +3 -3
  84. package/dist/vocab/mod.js +4 -4
  85. package/dist/vocab/type.test.js +3 -3
  86. package/dist/vocab/vocab.test.js +14 -4
  87. package/dist/{vocab-Ukxjz3TM.d.ts → vocab-BEEm2I6u.d.ts} +176 -0
  88. package/dist/{vocab-Dqyc86T5.js → vocab-NEiwL26k.js} +3 -3
  89. package/dist/webfinger/handler.test.js +16 -16
  90. package/dist/webfinger/lookup.test.js +4 -4
  91. package/dist/webfinger/mod.js +2 -2
  92. package/dist/x/cfworkers.test.js +3 -3
  93. package/dist/x/hono.d.ts +6 -6
  94. package/dist/x/sveltekit.d.ts +6 -6
  95. package/package.json +1 -1
  96. package/dist/middleware-DLmV3Z7C.js +0 -26
  97. package/dist/middleware-JbhBHf-6.js +0 -17
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { LanguageString } from "../type-CQXrP5Lt.js";
6
+ import { LanguageString } from "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import { test } from "../testing-CjUbycJE.js";
10
+ import "../lookup-BKAM4uhR.js";
11
+ import { test } from "../testing-oVc8Ak7R.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-CxWcuWqQ.js";
5
- import { LanguageString } from "../vocab-Ukxjz3TM.js";
6
- import "../http-DtG44GdM.js";
7
- import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-mSMqo9JU.js";
5
+ import { LanguageString } from "../vocab-BEEm2I6u.js";
6
+ import "../http-D8Q4xH0d.js";
7
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-BAuhKa9d.js";
8
8
  export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, LanguageString, RemoteDocument, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
@@ -2,12 +2,12 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-lRn6Iz9h.js";
6
- import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-DVhqV33k.js";
7
- import "../lookup-B51nxTWE.js";
8
- import "../key-CGiIDuCb.js";
9
- import "../http-Xaq8uKR0.js";
10
- import { getAuthenticatedDocumentLoader } from "../authdocloader-C4Z-T6r4.js";
5
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-BQtOKgp6.js";
6
+ import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-DRDJEBUm.js";
7
+ import "../lookup-DXOeAoau.js";
8
+ import "../key-K4Y2MI7Z.js";
9
+ import "../http-BOuae4s3.js";
10
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-1KhcjRRl.js";
11
11
  import "../runtime-BSkOVUWM.js";
12
12
 
13
13
  export { FetchError, LanguageString, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { codes, decode, decodeText, encode, encodeText, names } from "../../type-CQXrP5Lt.js";
6
+ import { codes, decode, decodeText, encode, encodeText, names } from "../../type-kbhcBjln.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-CpQFwuYT.js";
11
- import { test } from "../../testing-CjUbycJE.js";
10
+ import "../../lookup-BKAM4uhR.js";
11
+ import { test } from "../../testing-oVc8Ak7R.js";
12
12
  import "../../std__assert-X-_kMxKM.js";
13
13
  import "../../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 { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-CQXrP5Lt.js";
6
+ import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-kbhcBjln.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
- import "../lookup-CpQFwuYT.js";
10
- import { test } from "../testing-CjUbycJE.js";
9
+ import "../lookup-BKAM4uhR.js";
10
+ import { test } from "../testing-oVc8Ak7R.js";
11
11
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
12
12
  import "../assert_is_error-BPGph1Jx.js";
13
13
 
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./type-CQXrP5Lt.js";
7
- import { doubleKnock } from "./http-jsbQZmEx.js";
6
+ import { deno_default } from "./type-kbhcBjln.js";
7
+ import { doubleKnock } from "./http-BHElg0Zi.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -3,22 +3,22 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { exportSpki } from "../type-CQXrP5Lt.js";
6
+ import { exportSpki } from "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import "../actor-B7EOS7sj.js";
12
- import { exportJwk } from "../key-BA-VESrE.js";
13
- import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-jsbQZmEx.js";
14
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
10
+ import "../lookup-BKAM4uhR.js";
11
+ import "../actor-CvjaNhYs.js";
12
+ import { exportJwk } from "../key-s4qnG2im.js";
13
+ import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-BHElg0Zi.js";
14
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.js";
15
15
  import { assertExists, assertStringIncludes } from "../std__assert-X-_kMxKM.js";
16
16
  import { assertFalse, 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 { assertThrows } from "../assert_throws-BOO88avQ.js";
20
- import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-n8TnpEvl.js";
21
- import { esm_default } from "../esm-Cbcf_ekH.js";
20
+ import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-BUyXSB_1.js";
21
+ import { esm_default } from "../esm-g239S2Ho.js";
22
22
  import { encodeBase64 } from "byte-encodings/base64";
23
23
 
24
24
  //#region src/sig/http.test.ts
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "../type-CQXrP5Lt.js";
6
+ import { CryptographicKey, Multikey } from "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import "../actor-B7EOS7sj.js";
12
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-BA-VESrE.js";
13
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
10
+ import "../lookup-BKAM4uhR.js";
11
+ import "../actor-CvjaNhYs.js";
12
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-s4qnG2im.js";
13
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.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-n8TnpEvl.js";
19
+ import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-BUyXSB_1.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-CQXrP5Lt.js";
6
+ import { CryptographicKey } from "../type-kbhcBjln.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
- import "../lookup-CpQFwuYT.js";
10
- import "../actor-B7EOS7sj.js";
11
- import { generateCryptoKeyPair } from "../key-BA-VESrE.js";
12
- import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-536I1uoS.js";
13
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
9
+ import "../lookup-BKAM4uhR.js";
10
+ import "../actor-CvjaNhYs.js";
11
+ import { generateCryptoKeyPair } from "../key-s4qnG2im.js";
12
+ import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-Dabq6u87.js";
13
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.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-n8TnpEvl.js";
17
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BUyXSB_1.js";
18
18
  import { encodeBase64 } from "byte-encodings/base64";
19
19
 
20
20
  //#region src/sig/ld.test.ts
package/dist/sig/mod.d.ts CHANGED
@@ -2,9 +2,9 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import "../docloader-CxWcuWqQ.js";
5
- import "../vocab-Ukxjz3TM.js";
6
- import "../actor-Uh1YDuVl.js";
7
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-DtG44GdM.js";
8
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-C12klfeG.js";
9
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-tQVUxQ_D.js";
5
+ import "../vocab-BEEm2I6u.js";
6
+ import "../actor-Ch5yFYFG.js";
7
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-D8Q4xH0d.js";
8
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-D38zBIMc.js";
9
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-B7Pc0I7F.js";
10
10
  export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
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-lRn6Iz9h.js";
6
- import "../actor-DVhqV33k.js";
7
- import "../lookup-B51nxTWE.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-CGiIDuCb.js";
9
- import { signRequest, verifyRequest } from "../http-Xaq8uKR0.js";
10
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-DKtgyz5B.js";
5
+ import "../docloader-BQtOKgp6.js";
6
+ import "../actor-DRDJEBUm.js";
7
+ import "../lookup-DXOeAoau.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-K4Y2MI7Z.js";
9
+ import { signRequest, verifyRequest } from "../http-BOuae4s3.js";
10
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-B7pkRLUq.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-CQXrP5Lt.js";
6
+ import { Create } from "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import "../actor-B7EOS7sj.js";
12
- import "../key-BA-VESrE.js";
13
- import { doesActorOwnKey, getKeyOwner } from "../owner-Dp73PxeY.js";
14
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
10
+ import { lookupObject } from "../lookup-BKAM4uhR.js";
11
+ import "../actor-CvjaNhYs.js";
12
+ import "../key-s4qnG2im.js";
13
+ import { doesActorOwnKey, getKeyOwner } from "../owner-DgH6uc6t.js";
14
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.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-n8TnpEvl.js";
20
+ import { rsaPublicKey1, rsaPublicKey2 } from "../keys-BUyXSB_1.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-CQXrP5Lt.js";
6
+ import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import "../actor-B7EOS7sj.js";
12
- import "../key-BA-VESrE.js";
13
- import { createProof, signObject, verifyObject, verifyProof } from "../proof-DWJpYhi0.js";
14
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
10
+ import "../lookup-BKAM4uhR.js";
11
+ import "../actor-CvjaNhYs.js";
12
+ import "../key-s4qnG2im.js";
13
+ import { createProof, signObject, verifyObject, verifyProof } from "../proof-BQUVJRUu.js";
14
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.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-n8TnpEvl.js";
20
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BUyXSB_1.js";
21
21
  import { decodeHex, encodeHex } from "byte-encodings/hex";
22
22
 
23
23
  //#region src/sig/proof.test.ts
@@ -80,3 +80,75 @@ properties:
80
80
  range:
81
81
  - "https://www.w3.org/ns/activitystreams#Object"
82
82
  - "https://www.w3.org/ns/activitystreams#Link"
83
+
84
+ - singularName: likesOf
85
+ functional: true
86
+ compactName: likesOf
87
+ uri: "https://w3id.org/fep/5711#likesOf"
88
+ description: |
89
+ Defines an object for which the collection is the value of the likes property.
90
+ range:
91
+ - "https://www.w3.org/ns/activitystreams#Object"
92
+
93
+ - singularName: sharesOf
94
+ functional: true
95
+ compactName: sharesOf
96
+ uri: "https://w3id.org/fep/5711#sharesOf"
97
+ description: |
98
+ Defines an object for which the collection is the value of the shares property.
99
+ range:
100
+ - "https://www.w3.org/ns/activitystreams#Object"
101
+
102
+ - singularName: repliesOf
103
+ functional: true
104
+ compactName: repliesOf
105
+ uri: "https://w3id.org/fep/5711#repliesOf"
106
+ description: |
107
+ Defines an object for which the collection is the value of the replies property.
108
+ range:
109
+ - "https://www.w3.org/ns/activitystreams#Object"
110
+
111
+ - singularName: inboxOf
112
+ functional: true
113
+ compactName: inboxOf
114
+ uri: "https://w3id.org/fep/5711#inboxOf"
115
+ description: |
116
+ Defines an actor for which the collection is the value of the inbox property.
117
+ range:
118
+ - "https://www.w3.org/ns/activitystreams#Object"
119
+
120
+ - singularName: outboxOf
121
+ functional: true
122
+ compactName: outboxOf
123
+ uri: "https://w3id.org/fep/5711#outboxOf"
124
+ description: |
125
+ Defines an actor for which the collection is the value of the outbox property.
126
+ range:
127
+ - "https://www.w3.org/ns/activitystreams#Object"
128
+
129
+ - singularName: followersOf
130
+ functional: true
131
+ compactName: followersOf
132
+ uri: "https://w3id.org/fep/5711#followersOf"
133
+ description: |
134
+ Defines an actor for which the collection is the value of the followers property.
135
+ range:
136
+ - "https://www.w3.org/ns/activitystreams#Object"
137
+
138
+ - singularName: followingOf
139
+ functional: true
140
+ compactName: followingOf
141
+ uri: "https://w3id.org/fep/5711#followingOf"
142
+ description: |
143
+ Defines an actor for which the collection is the value of the following property.
144
+ range:
145
+ - "https://www.w3.org/ns/activitystreams#Object"
146
+
147
+ - singularName: likedOf
148
+ functional: true
149
+ compactName: likedOf
150
+ uri: "https://w3id.org/fep/5711#likedOf"
151
+ description: |
152
+ Defines an actor for which the collection is the value of the liked property.
153
+ range:
154
+ - "https://www.w3.org/ns/activitystreams#Object"
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CQXrP5Lt.js";
6
+ import "../type-kbhcBjln.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-CpQFwuYT.js";
11
- import { mockDocumentLoader, test } from "../testing-CjUbycJE.js";
10
+ import "../lookup-BKAM4uhR.js";
11
+ import { mockDocumentLoader, test } from "../testing-oVc8Ak7R.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -2814,6 +2814,14 @@ declare class Collection extends Object$1 {
2814
2814
  first?: CollectionPage | URL | null;
2815
2815
  last?: CollectionPage | URL | null;
2816
2816
  items?: (Object$1 | Link | URL)[];
2817
+ likesOf?: Object$1 | URL | null;
2818
+ sharesOf?: Object$1 | URL | null;
2819
+ repliesOf?: Object$1 | URL | null;
2820
+ inboxOf?: Object$1 | URL | null;
2821
+ outboxOf?: Object$1 | URL | null;
2822
+ followersOf?: Object$1 | URL | null;
2823
+ followingOf?: Object$1 | URL | null;
2824
+ likedOf?: Object$1 | URL | null;
2817
2825
  }, options?: {
2818
2826
  documentLoader?: DocumentLoader;
2819
2827
  contextLoader?: DocumentLoader;
@@ -2880,6 +2888,14 @@ declare class Collection extends Object$1 {
2880
2888
  first?: CollectionPage | URL | null;
2881
2889
  last?: CollectionPage | URL | null;
2882
2890
  items?: (Object$1 | Link | URL)[];
2891
+ likesOf?: Object$1 | URL | null;
2892
+ sharesOf?: Object$1 | URL | null;
2893
+ repliesOf?: Object$1 | URL | null;
2894
+ inboxOf?: Object$1 | URL | null;
2895
+ outboxOf?: Object$1 | URL | null;
2896
+ followersOf?: Object$1 | URL | null;
2897
+ followingOf?: Object$1 | URL | null;
2898
+ likedOf?: Object$1 | URL | null;
2883
2899
  }, options?: {
2884
2900
  documentLoader?: DocumentLoader;
2885
2901
  contextLoader?: DocumentLoader;
@@ -2949,6 +2965,118 @@ declare class Collection extends Object$1 {
2949
2965
  suppressError?: boolean;
2950
2966
  tracerProvider?: TracerProvider;
2951
2967
  }): AsyncIterable<Object$1 | Link>;
2968
+ /**
2969
+ * Similar to
2970
+ * {@link Collection.getLikesOf},
2971
+ * but returns its `@id` URL instead of the object itself.
2972
+ */
2973
+ get likesOfId(): URL | null;
2974
+ /** Defines an object for which the collection is the value of the likes property.
2975
+ */
2976
+ getLikesOf(options?: {
2977
+ documentLoader?: DocumentLoader;
2978
+ contextLoader?: DocumentLoader;
2979
+ suppressError?: boolean;
2980
+ tracerProvider?: TracerProvider;
2981
+ }): Promise<Object$1 | null>;
2982
+ /**
2983
+ * Similar to
2984
+ * {@link Collection.getSharesOf},
2985
+ * but returns its `@id` URL instead of the object itself.
2986
+ */
2987
+ get sharesOfId(): URL | null;
2988
+ /** Defines an object for which the collection is the value of the shares property.
2989
+ */
2990
+ getSharesOf(options?: {
2991
+ documentLoader?: DocumentLoader;
2992
+ contextLoader?: DocumentLoader;
2993
+ suppressError?: boolean;
2994
+ tracerProvider?: TracerProvider;
2995
+ }): Promise<Object$1 | null>;
2996
+ /**
2997
+ * Similar to
2998
+ * {@link Collection.getRepliesOf},
2999
+ * but returns its `@id` URL instead of the object itself.
3000
+ */
3001
+ get repliesOfId(): URL | null;
3002
+ /** Defines an object for which the collection is the value of the replies property.
3003
+ */
3004
+ getRepliesOf(options?: {
3005
+ documentLoader?: DocumentLoader;
3006
+ contextLoader?: DocumentLoader;
3007
+ suppressError?: boolean;
3008
+ tracerProvider?: TracerProvider;
3009
+ }): Promise<Object$1 | null>;
3010
+ /**
3011
+ * Similar to
3012
+ * {@link Collection.getInboxOf},
3013
+ * but returns its `@id` URL instead of the object itself.
3014
+ */
3015
+ get inboxOfId(): URL | null;
3016
+ /** Defines an actor for which the collection is the value of the inbox property.
3017
+ */
3018
+ getInboxOf(options?: {
3019
+ documentLoader?: DocumentLoader;
3020
+ contextLoader?: DocumentLoader;
3021
+ suppressError?: boolean;
3022
+ tracerProvider?: TracerProvider;
3023
+ }): Promise<Object$1 | null>;
3024
+ /**
3025
+ * Similar to
3026
+ * {@link Collection.getOutboxOf},
3027
+ * but returns its `@id` URL instead of the object itself.
3028
+ */
3029
+ get outboxOfId(): URL | null;
3030
+ /** Defines an actor for which the collection is the value of the outbox property.
3031
+ */
3032
+ getOutboxOf(options?: {
3033
+ documentLoader?: DocumentLoader;
3034
+ contextLoader?: DocumentLoader;
3035
+ suppressError?: boolean;
3036
+ tracerProvider?: TracerProvider;
3037
+ }): Promise<Object$1 | null>;
3038
+ /**
3039
+ * Similar to
3040
+ * {@link Collection.getFollowersOf},
3041
+ * but returns its `@id` URL instead of the object itself.
3042
+ */
3043
+ get followersOfId(): URL | null;
3044
+ /** Defines an actor for which the collection is the value of the followers property.
3045
+ */
3046
+ getFollowersOf(options?: {
3047
+ documentLoader?: DocumentLoader;
3048
+ contextLoader?: DocumentLoader;
3049
+ suppressError?: boolean;
3050
+ tracerProvider?: TracerProvider;
3051
+ }): Promise<Object$1 | null>;
3052
+ /**
3053
+ * Similar to
3054
+ * {@link Collection.getFollowingOf},
3055
+ * but returns its `@id` URL instead of the object itself.
3056
+ */
3057
+ get followingOfId(): URL | null;
3058
+ /** Defines an actor for which the collection is the value of the following property.
3059
+ */
3060
+ getFollowingOf(options?: {
3061
+ documentLoader?: DocumentLoader;
3062
+ contextLoader?: DocumentLoader;
3063
+ suppressError?: boolean;
3064
+ tracerProvider?: TracerProvider;
3065
+ }): Promise<Object$1 | null>;
3066
+ /**
3067
+ * Similar to
3068
+ * {@link Collection.getLikedOf},
3069
+ * but returns its `@id` URL instead of the object itself.
3070
+ */
3071
+ get likedOfId(): URL | null;
3072
+ /** Defines an actor for which the collection is the value of the liked property.
3073
+ */
3074
+ getLikedOf(options?: {
3075
+ documentLoader?: DocumentLoader;
3076
+ contextLoader?: DocumentLoader;
3077
+ suppressError?: boolean;
3078
+ tracerProvider?: TracerProvider;
3079
+ }): Promise<Object$1 | null>;
2952
3080
  /**
2953
3081
  * Converts this object to a JSON-LD structure.
2954
3082
  * @param options The options to use.
@@ -3058,6 +3186,14 @@ declare class CollectionPage extends Collection {
3058
3186
  first?: CollectionPage | URL | null;
3059
3187
  last?: CollectionPage | URL | null;
3060
3188
  items?: (Object$1 | Link | URL)[];
3189
+ likesOf?: Object$1 | URL | null;
3190
+ sharesOf?: Object$1 | URL | null;
3191
+ repliesOf?: Object$1 | URL | null;
3192
+ inboxOf?: Object$1 | URL | null;
3193
+ outboxOf?: Object$1 | URL | null;
3194
+ followersOf?: Object$1 | URL | null;
3195
+ followingOf?: Object$1 | URL | null;
3196
+ likedOf?: Object$1 | URL | null;
3061
3197
  partOf?: Collection | URL | null;
3062
3198
  next?: CollectionPage | URL | null;
3063
3199
  prev?: CollectionPage | URL | null;
@@ -3127,6 +3263,14 @@ declare class CollectionPage extends Collection {
3127
3263
  first?: CollectionPage | URL | null;
3128
3264
  last?: CollectionPage | URL | null;
3129
3265
  items?: (Object$1 | Link | URL)[];
3266
+ likesOf?: Object$1 | URL | null;
3267
+ sharesOf?: Object$1 | URL | null;
3268
+ repliesOf?: Object$1 | URL | null;
3269
+ inboxOf?: Object$1 | URL | null;
3270
+ outboxOf?: Object$1 | URL | null;
3271
+ followersOf?: Object$1 | URL | null;
3272
+ followingOf?: Object$1 | URL | null;
3273
+ likedOf?: Object$1 | URL | null;
3130
3274
  partOf?: Collection | URL | null;
3131
3275
  next?: CollectionPage | URL | null;
3132
3276
  prev?: CollectionPage | URL | null;
@@ -4427,6 +4571,14 @@ declare class OrderedCollection extends Collection {
4427
4571
  current?: CollectionPage | URL | null;
4428
4572
  first?: CollectionPage | URL | null;
4429
4573
  last?: CollectionPage | URL | null;
4574
+ likesOf?: Object$1 | URL | null;
4575
+ sharesOf?: Object$1 | URL | null;
4576
+ repliesOf?: Object$1 | URL | null;
4577
+ inboxOf?: Object$1 | URL | null;
4578
+ outboxOf?: Object$1 | URL | null;
4579
+ followersOf?: Object$1 | URL | null;
4580
+ followingOf?: Object$1 | URL | null;
4581
+ likedOf?: Object$1 | URL | null;
4430
4582
  items?: (Object$1 | Link | URL)[];
4431
4583
  }, options?: {
4432
4584
  documentLoader?: DocumentLoader;
@@ -4493,6 +4645,14 @@ declare class OrderedCollection extends Collection {
4493
4645
  current?: CollectionPage | URL | null;
4494
4646
  first?: CollectionPage | URL | null;
4495
4647
  last?: CollectionPage | URL | null;
4648
+ likesOf?: Object$1 | URL | null;
4649
+ sharesOf?: Object$1 | URL | null;
4650
+ repliesOf?: Object$1 | URL | null;
4651
+ inboxOf?: Object$1 | URL | null;
4652
+ outboxOf?: Object$1 | URL | null;
4653
+ followersOf?: Object$1 | URL | null;
4654
+ followingOf?: Object$1 | URL | null;
4655
+ likedOf?: Object$1 | URL | null;
4496
4656
  items?: (Object$1 | Link | URL)[];
4497
4657
  }, options?: {
4498
4658
  documentLoader?: DocumentLoader;
@@ -4621,6 +4781,14 @@ declare class OrderedCollectionPage extends CollectionPage {
4621
4781
  current?: CollectionPage | URL | null;
4622
4782
  first?: CollectionPage | URL | null;
4623
4783
  last?: CollectionPage | URL | null;
4784
+ likesOf?: Object$1 | URL | null;
4785
+ sharesOf?: Object$1 | URL | null;
4786
+ repliesOf?: Object$1 | URL | null;
4787
+ inboxOf?: Object$1 | URL | null;
4788
+ outboxOf?: Object$1 | URL | null;
4789
+ followersOf?: Object$1 | URL | null;
4790
+ followingOf?: Object$1 | URL | null;
4791
+ likedOf?: Object$1 | URL | null;
4624
4792
  partOf?: Collection | URL | null;
4625
4793
  next?: CollectionPage | URL | null;
4626
4794
  prev?: CollectionPage | URL | null;
@@ -4691,6 +4859,14 @@ declare class OrderedCollectionPage extends CollectionPage {
4691
4859
  current?: CollectionPage | URL | null;
4692
4860
  first?: CollectionPage | URL | null;
4693
4861
  last?: CollectionPage | URL | null;
4862
+ likesOf?: Object$1 | URL | null;
4863
+ sharesOf?: Object$1 | URL | null;
4864
+ repliesOf?: Object$1 | URL | null;
4865
+ inboxOf?: Object$1 | URL | null;
4866
+ outboxOf?: Object$1 | URL | null;
4867
+ followersOf?: Object$1 | URL | null;
4868
+ followingOf?: Object$1 | URL | null;
4869
+ likedOf?: Object$1 | URL | null;
4694
4870
  partOf?: Collection | URL | null;
4695
4871
  next?: CollectionPage | URL | null;
4696
4872
  prev?: CollectionPage | URL | null;
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CQXrP5Lt.js";
7
- import "../lookup-CpQFwuYT.js";
8
- import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-CjUbycJE.js";
6
+ import "../type-kbhcBjln.js";
7
+ import "../lookup-BKAM4uhR.js";
8
+ import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-oVc8Ak7R.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-CQXrP5Lt.js";
7
- import { RouterError, lookupObject, traverseCollection } from "./lookup-CpQFwuYT.js";
6
+ import { __require, lookupWebFinger } from "./type-kbhcBjln.js";
7
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-BKAM4uhR.js";
8
8
  import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
9
9
  import { trace } from "@opentelemetry/api";
10
10