@fedify/fedify 1.8.1-pr.347.1259 → 1.8.1-pr.348.1272

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 (191) hide show
  1. package/README.md +12 -12
  2. package/dist/{actor-CWNAGvnO.d.ts → actor-C2nhWp6O.d.ts} +3 -3
  3. package/dist/{actor-DdO-fOAW.js → actor-DFZ9DT9s.js} +189 -189
  4. package/dist/{actor-kSqW2m9s.js → actor-DoqKuu1d.js} +2 -2
  5. package/dist/{assert-DwEa6glZ.js → assert-MZs1qjMx.js} +2 -2
  6. package/dist/{assert_equals-C5gKCm6A.js → assert_equals-DSbWqCm3.js} +9 -9
  7. package/dist/{assert_instance_of-C9QtN-X9.js → assert_instance_of-DHz7EHNU.js} +2 -2
  8. package/dist/{assert_is_error-CeVBLPsZ.js → assert_is_error-BPGph1Jx.js} +2 -2
  9. package/dist/{assert_not_equals-D2R2nl5h.js → assert_not_equals-f3m3epl3.js} +2 -2
  10. package/dist/{assert_rejects-AjlKk-Vo.js → assert_rejects-DiIiJbZn.js} +4 -4
  11. package/dist/{assert_throws-CqMKbTh_.js → assert_throws-BOO88avQ.js} +3 -3
  12. package/dist/{authdocloader-BgOsGnB8.js → authdocloader-BY72RD14.js} +4 -4
  13. package/dist/{authdocloader-DYYMt196.js → authdocloader-Cj8aQaAh.js} +4 -4
  14. package/dist/{builder-CuALdUQk.js → builder-Bm7BksTx.js} +5 -5
  15. package/dist/{client-BCk5jxWY.js → client-CJkecID_.js} +3 -3
  16. package/dist/{client-B0IOer6B.d.ts → client-D2tgjFk3.d.ts} +4 -4
  17. package/dist/{collection-D5V3UzU3.js → collection-CSzG2j1P.js} +1 -1
  18. package/dist/compat/mod.d.ts +12 -12
  19. package/dist/compat/mod.js +1 -1
  20. package/dist/compat/transformers.test.js +25 -25
  21. package/dist/{context-BNA3vzcr.d.ts → context-BBD2ZH_P.d.ts} +22 -22
  22. package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
  23. package/dist/{docloader-CLolPVL_.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
  24. package/dist/{docloader-DHjlz7X5.js → docloader-CfyWzSEu.js} +34 -34
  25. package/dist/{esm-Cvi3LpEg.js → esm-CjTjptC8.js} +15 -15
  26. package/dist/federation/builder.test.js +16 -16
  27. package/dist/federation/collection.test.js +13 -13
  28. package/dist/federation/handler.test.js +31 -31
  29. package/dist/federation/inbox.test.js +8 -8
  30. package/dist/federation/keycache.test.js +9 -9
  31. package/dist/federation/kv.test.js +13 -13
  32. package/dist/federation/middleware.test.js +34 -34
  33. package/dist/federation/mod.d.ts +11 -11
  34. package/dist/federation/mod.js +12 -12
  35. package/dist/federation/mq.test.js +15 -15
  36. package/dist/federation/retry.test.js +7 -7
  37. package/dist/federation/router.test.js +12 -12
  38. package/dist/federation/send.test.js +19 -19
  39. package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
  40. package/dist/{http-Dg492DpA.js → http-Rstqz4A-.js} +3 -3
  41. package/dist/{http-C9-_WlFq.js → http-ZrQ5PzoV.js} +4 -4
  42. package/dist/{http-COez3YdK.d.ts → http-l4uEvaAw.d.ts} +4 -4
  43. package/dist/{inbox-D9x-aduD.js → inbox-CdNWEgOl.js} +2 -2
  44. package/dist/{key-CDj47wth.js → key-CEQ4r8bQ.js} +3 -3
  45. package/dist/{key-BCBR3lGB.js → key-DbOvPjOz.js} +3 -3
  46. package/dist/{key-oFx3pQ1W.js → key-IYWKz1vL.js} +3 -3
  47. package/dist/{key-DVxtiWyj.js → key-Og0C6fan.js} +4 -4
  48. package/dist/{keycache-DaVhPHNQ.js → keycache-CH8zDqBu.js} +2 -2
  49. package/dist/{keys-CZDFaFde.js → keys-Cro0zXtI.js} +2 -2
  50. package/dist/{kv-BqOK6zss.d.ts → kv-C7sopW2E.d.ts} +1 -1
  51. package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
  52. package/dist/{ld-C0RaYcmD.js → ld-C__07wHE.js} +3 -3
  53. package/dist/{lookup-tSXYzgYs.d.ts → lookup-BJelGpWr.d.ts} +3 -3
  54. package/dist/{lookup-CeJx40Ll.js → lookup-CM2Ey7X1.js} +4 -4
  55. package/dist/{lookup-4V3xc-t2.js → lookup-CSqoSI-Y.js} +2 -2
  56. package/dist/{middleware-CseqBfnM.js → middleware-B3aEP28I.js} +23 -23
  57. package/dist/middleware-BseSNvvB.js +17 -0
  58. package/dist/middleware-C3AP34UG.js +26 -0
  59. package/dist/{middleware-CxCCJY-Y.js → middleware-CS36fMG_.js} +23 -23
  60. package/dist/{mod-C2jQirfr.d.ts → mod-D79SaXL-.d.ts} +6 -6
  61. package/dist/{mod-CxD6XXBN.d.ts → mod-DDwnlIlm.d.ts} +3 -3
  62. package/dist/{mod-UTC30uNC.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
  63. package/dist/{mod-Bf-mThHd.d.ts → mod-DwquBB1g.d.ts} +5 -5
  64. package/dist/mod.d.ts +14 -14
  65. package/dist/mod.js +12 -12
  66. package/dist/{mq-DYKDDJmp.d.ts → mq-CRGm1e_F.d.ts} +1 -1
  67. package/dist/nodeinfo/client.test.js +15 -15
  68. package/dist/nodeinfo/handler.test.js +30 -30
  69. package/dist/nodeinfo/mod.d.ts +3 -3
  70. package/dist/nodeinfo/mod.js +2 -2
  71. package/dist/nodeinfo/semver.test.js +13 -13
  72. package/dist/nodeinfo/types.test.js +14 -14
  73. package/dist/{owner-COtZOSiN.js → owner-Dx-6q6Tm.js} +3 -3
  74. package/dist/{owner-BlxMNrL4.d.ts → owner-fFqUg4lq.d.ts} +4 -4
  75. package/dist/{proof-B9SPQtgj.js → proof-CEdkdQ36.js} +3 -3
  76. package/dist/{proof-BZR52iDB.js → proof-Q5ET7ZZH.js} +6 -6
  77. package/dist/{retry-BnpVRGFC.js → retry-D4GJ670a.js} +1 -1
  78. package/dist/runtime/authdocloader.test.js +18 -18
  79. package/dist/runtime/docloader.test.js +14 -14
  80. package/dist/runtime/key.test.js +14 -14
  81. package/dist/runtime/langstr.test.js +12 -12
  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 +12 -12
  85. package/dist/runtime/url.test.js +8 -8
  86. package/dist/{semver-DCqorrj5.js → semver-dArNLkR9.js} +1 -1
  87. package/dist/{send-CyqH9Cwb.js → send-fwhV2JRq.js} +3 -3
  88. package/dist/sig/http.test.js +17 -17
  89. package/dist/sig/key.test.js +15 -15
  90. package/dist/sig/ld.test.js +13 -13
  91. package/dist/sig/mod.d.ts +7 -7
  92. package/dist/sig/mod.js +6 -6
  93. package/dist/sig/owner.test.js +16 -16
  94. package/dist/sig/proof.test.js +16 -16
  95. package/dist/{std__assert-BQdmxyzF.js → std__assert-X-_kMxKM.js} +6 -6
  96. package/dist/testing/docloader.test.js +12 -12
  97. package/dist/testing/mod.d.ts +19 -19
  98. package/dist/testing/mod.js +3 -3
  99. package/dist/{testing-lEZnBSp7.js → testing-B1DcRr-r.js} +5 -5
  100. package/dist/{transformers-DJRB0yFF.js → transformers-Dna8Fg7k.js} +1 -1
  101. package/dist/{type-CvULFGVI.js → type-ClTaanks.js} +221 -221
  102. package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
  103. package/dist/{types-DbIPF4hQ.js → types-CmbptM4x.js} +4 -4
  104. package/dist/vocab/actor.test.js +143 -143
  105. package/dist/vocab/lookup.test.js +13 -13
  106. package/dist/vocab/mod.d.ts +5 -5
  107. package/dist/vocab/mod.js +4 -4
  108. package/dist/vocab/type.test.js +5 -5
  109. package/dist/vocab/vocab.test.js +54 -54
  110. package/dist/{vocab-Cyrb7_co.d.ts → vocab-CA7YwVEz.d.ts} +3 -3
  111. package/dist/{vocab-B9ftirjB.js → vocab-CpRYbb89.js} +6 -6
  112. package/dist/webfinger/handler.test.js +30 -30
  113. package/dist/webfinger/lookup.test.js +13 -13
  114. package/dist/webfinger/mod.d.ts +3 -3
  115. package/dist/webfinger/mod.js +2 -2
  116. package/dist/x/cfworkers.d.ts +3 -3
  117. package/dist/x/cfworkers.js +1 -1
  118. package/dist/x/cfworkers.test.js +13 -13
  119. package/dist/x/hono.d.ts +12 -12
  120. package/dist/x/hono.js +1 -1
  121. package/dist/x/sveltekit.d.ts +12 -12
  122. package/dist/x/sveltekit.js +1 -1
  123. package/package.json +3 -3
  124. package/dist/middleware-BOSQXbo8.js +0 -17
  125. package/dist/middleware-BuLigY8C.js +0 -26
  126. /package/dist/{vocab → src/vocab}/accept.yaml +0 -0
  127. /package/dist/{vocab → src/vocab}/activity.yaml +0 -0
  128. /package/dist/{vocab → src/vocab}/add.yaml +0 -0
  129. /package/dist/{vocab → src/vocab}/announce.yaml +0 -0
  130. /package/dist/{vocab → src/vocab}/application.yaml +0 -0
  131. /package/dist/{vocab → src/vocab}/arrive.yaml +0 -0
  132. /package/dist/{vocab → src/vocab}/article.yaml +0 -0
  133. /package/dist/{vocab → src/vocab}/audio.yaml +0 -0
  134. /package/dist/{vocab → src/vocab}/block.yaml +0 -0
  135. /package/dist/{vocab → src/vocab}/chatmessage.yaml +0 -0
  136. /package/dist/{vocab → src/vocab}/collection.yaml +0 -0
  137. /package/dist/{vocab → src/vocab}/collectionpage.yaml +0 -0
  138. /package/dist/{vocab → src/vocab}/create.yaml +0 -0
  139. /package/dist/{vocab → src/vocab}/dataintegrityproof.yaml +0 -0
  140. /package/dist/{vocab → src/vocab}/delete.yaml +0 -0
  141. /package/dist/{vocab → src/vocab}/didservice.yaml +0 -0
  142. /package/dist/{vocab → src/vocab}/dislike.yaml +0 -0
  143. /package/dist/{vocab → src/vocab}/document.yaml +0 -0
  144. /package/dist/{vocab → src/vocab}/emoji.yaml +0 -0
  145. /package/dist/{vocab → src/vocab}/emojireact.yaml +0 -0
  146. /package/dist/{vocab → src/vocab}/endpoints.yaml +0 -0
  147. /package/dist/{vocab → src/vocab}/event.yaml +0 -0
  148. /package/dist/{vocab → src/vocab}/export.yaml +0 -0
  149. /package/dist/{vocab → src/vocab}/flag.yaml +0 -0
  150. /package/dist/{vocab → src/vocab}/follow.yaml +0 -0
  151. /package/dist/{vocab → src/vocab}/group.yaml +0 -0
  152. /package/dist/{vocab → src/vocab}/hashtag.yaml +0 -0
  153. /package/dist/{vocab → src/vocab}/ignore.yaml +0 -0
  154. /package/dist/{vocab → src/vocab}/image.yaml +0 -0
  155. /package/dist/{vocab → src/vocab}/intransitiveactivity.yaml +0 -0
  156. /package/dist/{vocab → src/vocab}/invite.yaml +0 -0
  157. /package/dist/{vocab → src/vocab}/join.yaml +0 -0
  158. /package/dist/{vocab → src/vocab}/key.yaml +0 -0
  159. /package/dist/{vocab → src/vocab}/leave.yaml +0 -0
  160. /package/dist/{vocab → src/vocab}/like.yaml +0 -0
  161. /package/dist/{vocab → src/vocab}/link.yaml +0 -0
  162. /package/dist/{vocab → src/vocab}/listen.yaml +0 -0
  163. /package/dist/{vocab → src/vocab}/mention.yaml +0 -0
  164. /package/dist/{vocab → src/vocab}/move.yaml +0 -0
  165. /package/dist/{vocab → src/vocab}/multikey.yaml +0 -0
  166. /package/dist/{vocab → src/vocab}/note.yaml +0 -0
  167. /package/dist/{vocab → src/vocab}/object.yaml +0 -0
  168. /package/dist/{vocab → src/vocab}/offer.yaml +0 -0
  169. /package/dist/{vocab → src/vocab}/orderedcollection.yaml +0 -0
  170. /package/dist/{vocab → src/vocab}/orderedcollectionpage.yaml +0 -0
  171. /package/dist/{vocab → src/vocab}/organization.yaml +0 -0
  172. /package/dist/{vocab → src/vocab}/page.yaml +0 -0
  173. /package/dist/{vocab → src/vocab}/person.yaml +0 -0
  174. /package/dist/{vocab → src/vocab}/place.yaml +0 -0
  175. /package/dist/{vocab → src/vocab}/profile.yaml +0 -0
  176. /package/dist/{vocab → src/vocab}/propertyvalue.yaml +0 -0
  177. /package/dist/{vocab → src/vocab}/question.yaml +0 -0
  178. /package/dist/{vocab → src/vocab}/read.yaml +0 -0
  179. /package/dist/{vocab → src/vocab}/reject.yaml +0 -0
  180. /package/dist/{vocab → src/vocab}/relationship.yaml +0 -0
  181. /package/dist/{vocab → src/vocab}/remove.yaml +0 -0
  182. /package/dist/{vocab → src/vocab}/service.yaml +0 -0
  183. /package/dist/{vocab → src/vocab}/source.yaml +0 -0
  184. /package/dist/{vocab → src/vocab}/tentativeaccept.yaml +0 -0
  185. /package/dist/{vocab → src/vocab}/tentativereject.yaml +0 -0
  186. /package/dist/{vocab → src/vocab}/tombstone.yaml +0 -0
  187. /package/dist/{vocab → src/vocab}/travel.yaml +0 -0
  188. /package/dist/{vocab → src/vocab}/undo.yaml +0 -0
  189. /package/dist/{vocab → src/vocab}/update.yaml +0 -0
  190. /package/dist/{vocab → src/vocab}/video.yaml +0 -0
  191. /package/dist/{vocab → src/vocab}/view.yaml +0 -0
@@ -0,0 +1,17 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "./transformers-Dna8Fg7k.js";
6
+ import "./docloader-CfyWzSEu.js";
7
+ import "./actor-DFZ9DT9s.js";
8
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B3aEP28I.js";
9
+ import "./lookup-CSqoSI-Y.js";
10
+ import "./key-IYWKz1vL.js";
11
+ import "./http-ZrQ5PzoV.js";
12
+ import "./proof-Q5ET7ZZH.js";
13
+ import "./types-CmbptM4x.js";
14
+ import "./authdocloader-Cj8aQaAh.js";
15
+ import "./vocab-CpRYbb89.js";
16
+
17
+ export { FederationImpl };
@@ -0,0 +1,26 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import "./type-ClTaanks.js";
7
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CS36fMG_.js";
8
+ import "./semver-dArNLkR9.js";
9
+ import "./client-CJkecID_.js";
10
+ import "./lookup-CM2Ey7X1.js";
11
+ import "./types-BIgY6c-l.js";
12
+ import "./actor-DoqKuu1d.js";
13
+ import "./key-CEQ4r8bQ.js";
14
+ import "./http-Rstqz4A-.js";
15
+ import "./authdocloader-BY72RD14.js";
16
+ import "./ld-C__07wHE.js";
17
+ import "./owner-Dx-6q6Tm.js";
18
+ import "./proof-CEdkdQ36.js";
19
+ import "./inbox-CdNWEgOl.js";
20
+ import "./builder-Bm7BksTx.js";
21
+ import "./collection-CSzG2j1P.js";
22
+ import "./keycache-CH8zDqBu.js";
23
+ import "./retry-D4GJ670a.js";
24
+ import "./send-fwhV2JRq.js";
25
+
26
+ export { FederationImpl };
@@ -3,28 +3,28 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-CvULFGVI.js";
7
- import { getNodeInfo } from "./client-BCk5jxWY.js";
8
- import { RouterError, lookupObject, traverseCollection } from "./lookup-CeJx40Ll.js";
9
- import { nodeInfoToJson } from "./types-n7HI7VFr.js";
10
- import { exportJwk, importJwk, validateCryptoKey } from "./key-CDj47wth.js";
11
- import { verifyRequest } from "./http-Dg492DpA.js";
12
- import { getAuthenticatedDocumentLoader } from "./authdocloader-BgOsGnB8.js";
13
- import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-C0RaYcmD.js";
14
- import { doesActorOwnKey, getKeyOwner } from "./owner-COtZOSiN.js";
15
- import { signObject, verifyObject } from "./proof-B9SPQtgj.js";
16
- import { routeActivity } from "./inbox-D9x-aduD.js";
17
- import { FederationBuilderImpl } from "./builder-CuALdUQk.js";
18
- import { buildCollectionSynchronizationHeader } from "./collection-D5V3UzU3.js";
19
- import { KvKeyCache } from "./keycache-DaVhPHNQ.js";
20
- import { createExponentialBackoffPolicy } from "./retry-BnpVRGFC.js";
21
- import { extractInboxes, sendActivity } from "./send-CyqH9Cwb.js";
6
+ import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-ClTaanks.js";
7
+ import { getNodeInfo } from "./client-CJkecID_.js";
8
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-CM2Ey7X1.js";
9
+ import { nodeInfoToJson } from "./types-BIgY6c-l.js";
10
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-CEQ4r8bQ.js";
11
+ import { verifyRequest } from "./http-Rstqz4A-.js";
12
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-BY72RD14.js";
13
+ import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-C__07wHE.js";
14
+ import { doesActorOwnKey, getKeyOwner } from "./owner-Dx-6q6Tm.js";
15
+ import { signObject, verifyObject } from "./proof-CEdkdQ36.js";
16
+ import { routeActivity } from "./inbox-CdNWEgOl.js";
17
+ import { FederationBuilderImpl } from "./builder-Bm7BksTx.js";
18
+ import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
19
+ import { KvKeyCache } from "./keycache-CH8zDqBu.js";
20
+ import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
21
+ import { extractInboxes, sendActivity } from "./send-fwhV2JRq.js";
22
22
  import { getLogger, withContext } from "@logtape/logtape";
23
23
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
24
24
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
25
25
  import { domainToASCII } from "node:url";
26
26
 
27
- //#region compat/transformers.ts
27
+ //#region src/compat/transformers.ts
28
28
  const logger$1 = getLogger([
29
29
  "fedify",
30
30
  "compat",
@@ -115,7 +115,7 @@ function getDefaultActivityTransformers() {
115
115
  }
116
116
 
117
117
  //#endregion
118
- //#region nodeinfo/handler.ts
118
+ //#region src/nodeinfo/handler.ts
119
119
  /**
120
120
  * Handles a NodeInfo request. You would not typically call this function
121
121
  * directly, but instead use {@link Federation.handle} method.
@@ -153,7 +153,7 @@ function handleNodeInfoJrd(_request, context$1) {
153
153
  }
154
154
 
155
155
  //#endregion
156
- //#region vocab/constants.ts
156
+ //#region src/vocab/constants.ts
157
157
  /**
158
158
  * The special public collection for [public addressing]. *Do not mutate this
159
159
  * object.*
@@ -165,7 +165,7 @@ function handleNodeInfoJrd(_request, context$1) {
165
165
  const PUBLIC_COLLECTION = new URL("https://www.w3.org/ns/activitystreams#Public");
166
166
 
167
167
  //#endregion
168
- //#region webfinger/handler.ts
168
+ //#region src/webfinger/handler.ts
169
169
  const logger = getLogger([
170
170
  "fedify",
171
171
  "webfinger",
@@ -295,7 +295,7 @@ async function handleWebFingerInternal(request, { context: context$1, host, acto
295
295
  }
296
296
 
297
297
  //#endregion
298
- //#region federation/negotiation.ts
298
+ //#region src/federation/negotiation.ts
299
299
  function compareSpecs(a, b) {
300
300
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
301
301
  }
@@ -353,7 +353,7 @@ function preferredMediaTypes(accept) {
353
353
  }
354
354
 
355
355
  //#endregion
356
- //#region federation/handler.ts
356
+ //#region src/federation/handler.ts
357
357
  function acceptsJsonLd(request) {
358
358
  const accept = request.headers.get("Accept");
359
359
  const types = accept ? preferredMediaTypes(accept) : ["*/*"];
@@ -1366,7 +1366,7 @@ async function respondWithObjectIfAcceptable(object, request, options) {
1366
1366
  }
1367
1367
 
1368
1368
  //#endregion
1369
- //#region federation/middleware.ts
1369
+ //#region src/federation/middleware.ts
1370
1370
  /**
1371
1371
  * Create a new {@link Federation} instance.
1372
1372
  * @param parameters Parameters for initializing the instance.
@@ -1,10 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-CLolPVL_.js";
4
- import { Collection, Link, Object as Object$1 } from "./vocab-Cyrb7_co.js";
3
+ import { DocumentLoader, GetUserAgentOptions } from "./docloader-Bz56sKV5.js";
4
+ import { Collection, Link, Object as Object$1 } from "./vocab-CA7YwVEz.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
- //#region vocab/lookup.d.ts
7
+ //#region src/vocab/lookup.d.ts
8
8
  /**
9
9
  * Options for the {@link lookupObject} function.
10
10
  *
@@ -116,7 +116,7 @@ interface TraverseCollectionOptions {
116
116
  */
117
117
  declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
118
118
  //#endregion
119
- //#region vocab/constants.d.ts
119
+ //#region src/vocab/constants.d.ts
120
120
  /**
121
121
  * The special public collection for [public addressing]. *Do not mutate this
122
122
  * object.*
@@ -127,7 +127,7 @@ declare function traverseCollection(collection: Collection, options?: TraverseCo
127
127
  */
128
128
  declare const PUBLIC_COLLECTION: URL;
129
129
  //#endregion
130
- //#region vocab/handle.d.ts
130
+ //#region src/vocab/handle.d.ts
131
131
  /**
132
132
  * Represents a fediverse handle, which consists of a username and a host.
133
133
  * The username can be alphanumeric and may include special characters,
@@ -201,7 +201,7 @@ declare function isFediverseHandle(handle: string): handle is `${string}@${strin
201
201
  */
202
202
  declare function toAcctUrl(handle: string): URL | null;
203
203
  //#endregion
204
- //#region vocab/type.d.ts
204
+ //#region src/vocab/type.d.ts
205
205
  /**
206
206
  * Returns the type URI of the given object.
207
207
  *
@@ -1,9 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-Cyrb7_co.js";
4
- import { ActivityTransformer, Context } from "./context-BNA3vzcr.js";
3
+ import { Activity } from "./vocab-CA7YwVEz.js";
4
+ import { ActivityTransformer, Context } from "./context-BBD2ZH_P.js";
5
5
 
6
- //#region compat/transformers.d.ts
6
+ //#region src/compat/transformers.d.ts
7
7
 
8
8
  /**
9
9
  * An activity transformer that assigns a new random ID to an activity if it
@@ -1,10 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-CLolPVL_.js";
4
- import { HttpMessageSignaturesSpecDeterminer } from "./http-COez3YdK.js";
3
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-Bz56sKV5.js";
4
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-l4uEvaAw.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
- //#region runtime/authdocloader.d.ts
7
+ //#region src/runtime/authdocloader.d.ts
8
8
  /**
9
9
  * Options for {@link getAuthenticatedDocumentLoader}.
10
10
  * @see {@link getAuthenticatedDocumentLoader}
@@ -47,7 +47,7 @@ declare function getAuthenticatedDocumentLoader(identity: {
47
47
  tracerProvider
48
48
  }?: GetAuthenticatedDocumentLoaderOptions): DocumentLoader;
49
49
  //#endregion
50
- //#region runtime/key.d.ts
50
+ //#region src/runtime/key.d.ts
51
51
  /**
52
52
  * Imports a PEM-SPKI formatted public key.
53
53
  * @param pem The PEM-SPKI formatted public key.
@@ -1,11 +1,11 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-CLolPVL_.js";
4
- import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Cyrb7_co.js";
5
- import { KeyCache } from "./http-COez3YdK.js";
3
+ import { DocumentLoader } from "./docloader-Bz56sKV5.js";
4
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-CA7YwVEz.js";
5
+ import { KeyCache } from "./http-l4uEvaAw.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
- //#region sig/ld.d.ts
8
+ //#region src/sig/ld.d.ts
9
9
  /**
10
10
  * A signature of a JSON-LD document.
11
11
  * @since 1.0.0
@@ -144,7 +144,7 @@ interface VerifyJsonLdOptions extends VerifySignatureOptions {}
144
144
  */
145
145
  declare function verifyJsonLd(jsonLd: unknown, options?: VerifyJsonLdOptions): Promise<boolean>;
146
146
  //#endregion
147
- //#region sig/proof.d.ts
147
+ //#region src/sig/proof.d.ts
148
148
  /**
149
149
  * Options for {@link createProof}.
150
150
  * @since 0.10.0
package/dist/mod.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-BqOK6zss.js";
4
- import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CLolPVL_.js";
5
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-B0IOer6B.js";
6
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-Cyrb7_co.js";
7
- import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-CWNAGvnO.js";
8
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-COez3YdK.js";
9
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BlxMNrL4.js";
10
- import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-C2jQirfr.js";
11
- import { ResourceDescriptor, lookupWebFinger } from "./lookup-tSXYzgYs.js";
12
- import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BNA3vzcr.js";
13
- import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
14
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CxD6XXBN.js";
3
+ import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-C7sopW2E.js";
4
+ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-Bz56sKV5.js";
5
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-D2tgjFk3.js";
6
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-CA7YwVEz.js";
7
+ import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-C2nhWp6O.js";
8
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-l4uEvaAw.js";
9
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-fFqUg4lq.js";
10
+ import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-D79SaXL-.js";
11
+ import { ResourceDescriptor, lookupWebFinger } from "./lookup-BJelGpWr.js";
12
+ import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BBD2ZH_P.js";
13
+ import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-CRGm1e_F.js";
14
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DDwnlIlm.js";
15
15
  import "./mod-g0xFzAP9.js";
16
16
  import "./mod-1pDWKvUL.js";
17
- import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-UTC30uNC.js";
18
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-Bf-mThHd.js";
17
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-DM7ZpXF4.js";
18
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DwquBB1g.js";
19
19
  import "./mod-GIh5OYxW.js";
20
20
  export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
package/dist/mod.js CHANGED
@@ -2,19 +2,19 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-DJRB0yFF.js";
5
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
6
6
  import "./compat-Bb5myD13.js";
7
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DHjlz7X5.js";
8
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-DdO-fOAW.js";
9
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-CseqBfnM.js";
10
- import { lookupWebFinger } from "./lookup-4V3xc-t2.js";
11
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-oFx3pQ1W.js";
12
- import { signRequest, verifyRequest } from "./http-C9-_WlFq.js";
13
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-BZR52iDB.js";
14
- import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
15
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DbIPF4hQ.js";
16
- import { getAuthenticatedDocumentLoader } from "./authdocloader-DYYMt196.js";
17
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-B9ftirjB.js";
7
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CfyWzSEu.js";
8
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-DFZ9DT9s.js";
9
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-B3aEP28I.js";
10
+ import { lookupWebFinger } from "./lookup-CSqoSI-Y.js";
11
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-IYWKz1vL.js";
12
+ import { signRequest, verifyRequest } from "./http-ZrQ5PzoV.js";
13
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-Q5ET7ZZH.js";
14
+ import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-CMX7WzeL.js";
15
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-CmbptM4x.js";
16
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-Cj8aQaAh.js";
17
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-CpRYbb89.js";
18
18
  import "./nodeinfo-CyEbLjHs.js";
19
19
  import "./runtime-BSkOVUWM.js";
20
20
  import "./sig-BXJO--F9.js";
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
 
4
- //#region federation/mq.d.ts
4
+ //#region src/federation/mq.d.ts
5
5
  /**
6
6
  * Additional options for enqueuing a message in a queue.
7
7
  *
@@ -3,22 +3,22 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CvULFGVI.js";
7
- import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../assert-DwEa6glZ.js";
9
- import "../assert_instance_of-C9QtN-X9.js";
10
- import "../semver-DCqorrj5.js";
11
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-BCk5jxWY.js";
12
- import "../lookup-CeJx40Ll.js";
13
- import { test } from "../testing-lEZnBSp7.js";
14
- import "../std__assert-BQdmxyzF.js";
15
- import "../assert_rejects-AjlKk-Vo.js";
16
- import "../assert_is_error-CeVBLPsZ.js";
17
- import "../assert_not_equals-D2R2nl5h.js";
18
- import "../assert_throws-CqMKbTh_.js";
19
- import { esm_default } from "../esm-Cvi3LpEg.js";
6
+ import "../type-ClTaanks.js";
7
+ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
+ import "../assert-MZs1qjMx.js";
9
+ import "../assert_instance_of-DHz7EHNU.js";
10
+ import "../semver-dArNLkR9.js";
11
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-CJkecID_.js";
12
+ import "../lookup-CM2Ey7X1.js";
13
+ import { test } from "../testing-B1DcRr-r.js";
14
+ import "../std__assert-X-_kMxKM.js";
15
+ import "../assert_rejects-DiIiJbZn.js";
16
+ import "../assert_is_error-BPGph1Jx.js";
17
+ import "../assert_not_equals-f3m3epl3.js";
18
+ import "../assert_throws-BOO88avQ.js";
19
+ import { esm_default } from "../esm-CjTjptC8.js";
20
20
 
21
- //#region nodeinfo/client.test.ts
21
+ //#region src/nodeinfo/client.test.ts
22
22
  test("getNodeInfo()", async (t) => {
23
23
  esm_default.spyGlobal();
24
24
  esm_default.get("https://example.com/.well-known/nodeinfo", { body: { links: [{
@@ -3,37 +3,37 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CvULFGVI.js";
7
- import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../assert-DwEa6glZ.js";
9
- import "../assert_instance_of-C9QtN-X9.js";
10
- import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CxCCJY-Y.js";
12
- import { parseSemVer } from "../semver-DCqorrj5.js";
13
- import "../client-BCk5jxWY.js";
14
- import "../lookup-CeJx40Ll.js";
15
- import "../types-n7HI7VFr.js";
16
- import "../actor-kSqW2m9s.js";
17
- import "../key-CDj47wth.js";
18
- import "../http-Dg492DpA.js";
19
- import "../authdocloader-BgOsGnB8.js";
20
- import "../ld-C0RaYcmD.js";
21
- import "../owner-COtZOSiN.js";
22
- import "../proof-B9SPQtgj.js";
23
- import "../inbox-D9x-aduD.js";
24
- import "../builder-CuALdUQk.js";
25
- import "../collection-D5V3UzU3.js";
26
- import "../keycache-DaVhPHNQ.js";
27
- import "../retry-BnpVRGFC.js";
28
- import "../send-CyqH9Cwb.js";
29
- import { createRequestContext, test } from "../testing-lEZnBSp7.js";
30
- import "../std__assert-BQdmxyzF.js";
31
- import "../assert_rejects-AjlKk-Vo.js";
32
- import "../assert_is_error-CeVBLPsZ.js";
33
- import "../assert_not_equals-D2R2nl5h.js";
34
- import "../assert_throws-CqMKbTh_.js";
6
+ import "../type-ClTaanks.js";
7
+ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
+ import "../assert-MZs1qjMx.js";
9
+ import "../assert_instance_of-DHz7EHNU.js";
10
+ import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CS36fMG_.js";
12
+ import { parseSemVer } from "../semver-dArNLkR9.js";
13
+ import "../client-CJkecID_.js";
14
+ import "../lookup-CM2Ey7X1.js";
15
+ import "../types-BIgY6c-l.js";
16
+ import "../actor-DoqKuu1d.js";
17
+ import "../key-CEQ4r8bQ.js";
18
+ import "../http-Rstqz4A-.js";
19
+ import "../authdocloader-BY72RD14.js";
20
+ import "../ld-C__07wHE.js";
21
+ import "../owner-Dx-6q6Tm.js";
22
+ import "../proof-CEdkdQ36.js";
23
+ import "../inbox-CdNWEgOl.js";
24
+ import "../builder-Bm7BksTx.js";
25
+ import "../collection-CSzG2j1P.js";
26
+ import "../keycache-CH8zDqBu.js";
27
+ import "../retry-D4GJ670a.js";
28
+ import "../send-fwhV2JRq.js";
29
+ import { createRequestContext, test } from "../testing-B1DcRr-r.js";
30
+ import "../std__assert-X-_kMxKM.js";
31
+ import "../assert_rejects-DiIiJbZn.js";
32
+ import "../assert_is_error-BPGph1Jx.js";
33
+ import "../assert_not_equals-f3m3epl3.js";
34
+ import "../assert_throws-BOO88avQ.js";
35
35
 
36
- //#region nodeinfo/handler.test.ts
36
+ //#region src/nodeinfo/handler.test.ts
37
37
  test("handleNodeInfo()", async () => {
38
38
  const request = new Request("https://example.com/nodeinfo/2.1");
39
39
  const federation = createFederation({ kv: new MemoryKvStore() });
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "../kv-BqOK6zss.js";
4
- import "../docloader-CLolPVL_.js";
5
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-B0IOer6B.js";
3
+ import "../kv-C7sopW2E.js";
4
+ import "../docloader-Bz56sKV5.js";
5
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-D2tgjFk3.js";
6
6
  import "../mod-1pDWKvUL.js";
7
7
  export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-DHjlz7X5.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-DbIPF4hQ.js";
5
+ import "../docloader-CfyWzSEu.js";
6
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-CmbptM4x.js";
7
7
  import "../nodeinfo-CyEbLjHs.js";
8
8
 
9
9
  export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CvULFGVI.js";
7
- import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../assert-DwEa6glZ.js";
9
- import "../assert_instance_of-C9QtN-X9.js";
10
- import { formatSemVer, parseSemVer } from "../semver-DCqorrj5.js";
11
- import "../lookup-CeJx40Ll.js";
12
- import { test } from "../testing-lEZnBSp7.js";
13
- import "../std__assert-BQdmxyzF.js";
14
- import "../assert_rejects-AjlKk-Vo.js";
15
- import "../assert_is_error-CeVBLPsZ.js";
16
- import "../assert_not_equals-D2R2nl5h.js";
17
- import { assertThrows } from "../assert_throws-CqMKbTh_.js";
6
+ import "../type-ClTaanks.js";
7
+ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
+ import "../assert-MZs1qjMx.js";
9
+ import "../assert_instance_of-DHz7EHNU.js";
10
+ import { formatSemVer, parseSemVer } from "../semver-dArNLkR9.js";
11
+ import "../lookup-CM2Ey7X1.js";
12
+ import { test } from "../testing-B1DcRr-r.js";
13
+ import "../std__assert-X-_kMxKM.js";
14
+ import "../assert_rejects-DiIiJbZn.js";
15
+ import "../assert_is_error-BPGph1Jx.js";
16
+ import "../assert_not_equals-f3m3epl3.js";
17
+ import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
18
 
19
- //#region nodeinfo/semver.test.ts
19
+ //#region src/nodeinfo/semver.test.ts
20
20
  test("parseSemVer() handles major", async (t) => {
21
21
  const versions = [
22
22
  ["1.2.3", 1],
@@ -3,21 +3,21 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-CvULFGVI.js";
7
- import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../assert-DwEa6glZ.js";
9
- import "../assert_instance_of-C9QtN-X9.js";
10
- import "../semver-DCqorrj5.js";
11
- import "../lookup-CeJx40Ll.js";
12
- import { nodeInfoToJson } from "../types-n7HI7VFr.js";
13
- import { test } from "../testing-lEZnBSp7.js";
14
- import "../std__assert-BQdmxyzF.js";
15
- import "../assert_rejects-AjlKk-Vo.js";
16
- import "../assert_is_error-CeVBLPsZ.js";
17
- import "../assert_not_equals-D2R2nl5h.js";
18
- import { assertThrows } from "../assert_throws-CqMKbTh_.js";
6
+ import "../type-ClTaanks.js";
7
+ import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
+ import "../assert-MZs1qjMx.js";
9
+ import "../assert_instance_of-DHz7EHNU.js";
10
+ import "../semver-dArNLkR9.js";
11
+ import "../lookup-CM2Ey7X1.js";
12
+ import { nodeInfoToJson } from "../types-BIgY6c-l.js";
13
+ import { test } from "../testing-B1DcRr-r.js";
14
+ import "../std__assert-X-_kMxKM.js";
15
+ import "../assert_rejects-DiIiJbZn.js";
16
+ import "../assert_is_error-BPGph1Jx.js";
17
+ import "../assert_not_equals-f3m3epl3.js";
18
+ import { assertThrows } from "../assert_throws-BOO88avQ.js";
19
19
 
20
- //#region nodeinfo/types.test.ts
20
+ //#region src/nodeinfo/types.test.ts
21
21
  test("nodeInfoToJson()", () => {
22
22
  const validInfo = {
23
23
  software: {
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-CvULFGVI.js";
7
- import { isActor } from "./actor-kSqW2m9s.js";
6
+ import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-ClTaanks.js";
7
+ import { isActor } from "./actor-DoqKuu1d.js";
8
8
  import { trace } from "@opentelemetry/api";
9
9
 
10
- //#region sig/owner.ts
10
+ //#region src/sig/owner.ts
11
11
  /**
12
12
  * Checks if the actor of the given activity owns the specified key.
13
13
  * @param activity The activity to check.
@@ -1,11 +1,11 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-CLolPVL_.js";
4
- import { Activity, CryptographicKey } from "./vocab-Cyrb7_co.js";
5
- import { Actor } from "./actor-CWNAGvnO.js";
3
+ import { DocumentLoader } from "./docloader-Bz56sKV5.js";
4
+ import { Activity, CryptographicKey } from "./vocab-CA7YwVEz.js";
5
+ import { Actor } from "./actor-C2nhWp6O.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
- //#region sig/owner.d.ts
8
+ //#region src/sig/owner.d.ts
9
9
  /**
10
10
  * Options for {@link doesActorOwnKey}.
11
11
  * @since 0.8.0
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-CvULFGVI.js";
7
- import { fetchKey, validateCryptoKey } from "./key-CDj47wth.js";
6
+ import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-ClTaanks.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CEQ4r8bQ.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { encodeHex } from "byte-encodings/hex";
11
11
  import serialize from "json-canon";
12
12
 
13
- //#region sig/proof.ts
13
+ //#region src/sig/proof.ts
14
14
  const logger = getLogger([
15
15
  "fedify",
16
16
  "sig",