@fedify/fedify 1.6.1-pr.242.867 → 1.6.1-pr.242.868

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 (457) hide show
  1. package/dist/{vocab/actor.js → actor-4RHkloLu.js} +5 -4
  2. package/dist/actor-DTAqv8mf.js +36173 -0
  3. package/dist/{vocab/actor.d.ts → actor-lFlm8FYo.d.ts} +2 -2
  4. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js → assert-Dv75vaGI.js} +2 -1
  5. package/dist/assert_equals-ClvzlhZu.js +1020 -0
  6. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js → assert_instance_of--9UCVKsi.js} +2 -1
  7. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js → assert_is_error-D162gXcM.js} +2 -2
  8. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js → assert_not_equals-Cyf5m9Ke.js} +2 -2
  9. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js → assert_rejects-FOHCtlD2.js} +23 -3
  10. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js → assert_throws-CRfQJvVx.js} +3 -2
  11. package/dist/{runtime/authdocloader.js → authdocloader-B8WXzKLO.js} +5 -4
  12. package/dist/authdocloader-DWb2O07G.js +51 -0
  13. package/dist/{federation/builder.js → builder-DmqGnXEV.js} +6 -5
  14. package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
  15. package/dist/{nodeinfo/client.js → client-BXM1Jsjk.js} +3 -2
  16. package/dist/client-Dw1pCSIt.d.ts +299 -0
  17. package/dist/{federation/collection.js → collection-QaGK9TVn.js} +1 -0
  18. package/dist/compat/mod.d.ts +12 -2
  19. package/dist/compat/mod.js +2 -1
  20. package/dist/compat/transformers.test.d.ts +2 -1
  21. package/dist/compat/transformers.test.js +32 -8
  22. package/dist/{testing/context.js → context-CNjBitqI.js} +5 -4
  23. package/dist/context-D-mAOKif.d.ts +2033 -0
  24. package/dist/{x/denokv.js → denokv-iB_ggPGm.js} +3 -1
  25. package/dist/{testing/docloader.js → docloader-09nVWLAZ.js} +1 -0
  26. package/dist/docloader-Bx3IyCbi.js +4594 -0
  27. package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -1
  28. package/dist/{runtime/contexts.js → docloader-SoTWFoGg.js} +420 -1
  29. package/dist/esm-BxIKwi-M.js +1221 -0
  30. package/dist/federation/builder.test.d.ts +2 -1
  31. package/dist/federation/builder.test.js +21 -7
  32. package/dist/federation/collection.test.d.ts +2 -1
  33. package/dist/federation/collection.test.js +11 -3
  34. package/dist/federation/handler.test.d.ts +2 -1
  35. package/dist/federation/handler.test.js +40 -12
  36. package/dist/federation/inbox.test.d.ts +2 -1
  37. package/dist/federation/inbox.test.js +12 -5
  38. package/dist/federation/keycache.test.d.ts +2 -1
  39. package/dist/federation/keycache.test.js +12 -7
  40. package/dist/federation/kv.test.d.ts +2 -1
  41. package/dist/federation/kv.test.js +11 -3
  42. package/dist/federation/middleware.test.d.ts +2 -1
  43. package/dist/federation/middleware.test.js +107 -26
  44. package/dist/federation/mod.d.ts +12 -13
  45. package/dist/federation/mod.js +12 -8
  46. package/dist/federation/mq.test.d.ts +2 -1
  47. package/dist/federation/mq.test.js +153 -6
  48. package/dist/federation/retry.test.d.ts +2 -1
  49. package/dist/federation/retry.test.js +5 -5
  50. package/dist/federation/router.test.d.ts +2 -1
  51. package/dist/federation/router.test.js +11 -4
  52. package/dist/federation/send.test.d.ts +2 -1
  53. package/dist/federation/send.test.js +25 -13
  54. package/dist/{federation/mq.js → federation-Bmj7soSg.js} +47 -1
  55. package/dist/{node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/router.js → hongminhee__deno-mock-fetch-DJKLj_H-.js} +96 -1
  56. package/dist/http-BImJcLfv.d.ts +258 -0
  57. package/dist/{sig/http.js → http-Bx8zx0B9.js} +4 -3
  58. package/dist/http-_wjASyrF.js +720 -0
  59. package/dist/{federation/inbox.js → inbox-B25fOUCE.js} +4 -3
  60. package/dist/key-BSJPc6d6.js +10 -0
  61. package/dist/key-DJR5B9MR.js +16 -0
  62. package/dist/{sig/key.js → key-DLPGtYyL.js} +2 -4
  63. package/dist/key-DMjXmsGn.js +262 -0
  64. package/dist/{federation/keycache.js → keycache-Bfb23HgF.js} +2 -1
  65. package/dist/{testing/keys.js → keys-Bpe3lo_n.js} +2 -2
  66. package/dist/{federation/kv.js → kv-DohFOP2C.js} +1 -0
  67. package/dist/{runtime/langstr.js → langstr-DbWheeIS.js} +1 -0
  68. package/dist/{sig/ld.js → ld-DnImogQ2.js} +5 -5
  69. package/dist/{vocab/lookup.js → lookup-BdqwM7q0.js} +5 -5
  70. package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
  71. package/dist/lookup-DuhsEtQ9.js +131 -0
  72. package/dist/{webfinger/lookup.js → lookup-iEX2Qf_y.js} +1 -3
  73. package/dist/middleware-BS5P5Q6N.js +33 -0
  74. package/dist/middleware-DIkN1Cw2.js +3502 -0
  75. package/dist/middleware-DXhUqEJ1.js +17 -0
  76. package/dist/{federation/middleware.js → middleware-kjMnS9e3.js} +950 -98
  77. package/dist/mod-1pDWKvUL.d.ts +2 -0
  78. package/dist/{runtime/key.d.ts → mod-BxwG4X3V.d.ts} +52 -7
  79. package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
  80. package/dist/mod-GIh5OYxW.d.ts +2 -0
  81. package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
  82. package/dist/mod-g0xFzAP9.d.ts +2 -0
  83. package/dist/{compat/transformers.d.ts → mod-zRl4tJCz.d.ts} +3 -4
  84. package/dist/mod.d.ts +17 -34
  85. package/dist/mod.js +17 -27
  86. package/dist/multibase-DeCHcK8L.js +316 -0
  87. package/dist/nodeinfo/client.test.d.ts +2 -1
  88. package/dist/nodeinfo/client.test.js +15 -4
  89. package/dist/nodeinfo/handler.test.d.ts +2 -1
  90. package/dist/nodeinfo/handler.test.js +39 -7
  91. package/dist/nodeinfo/mod.d.ts +4 -3
  92. package/dist/nodeinfo/mod.js +3 -3
  93. package/dist/nodeinfo/semver.test.d.ts +2 -1
  94. package/dist/nodeinfo/semver.test.js +11 -4
  95. package/dist/nodeinfo/types.test.d.ts +2 -1
  96. package/dist/nodeinfo/types.test.js +12 -4
  97. package/dist/{sig/owner.d.ts → owner-BjpObx-L.d.ts} +4 -6
  98. package/dist/{sig/owner.js → owner-DqE35Vly.js} +4 -4
  99. package/dist/{sig/proof.js → proof-4GVd_94h.js} +5 -4
  100. package/dist/proof-DBWAm04A.js +595 -0
  101. package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
  102. package/dist/{federation/router.js → router-BQ9wxxuz.js} +1 -0
  103. package/dist/runtime/authdocloader.test.d.ts +2 -1
  104. package/dist/runtime/authdocloader.test.js +24 -9
  105. package/dist/runtime/docloader.test.d.ts +2 -1
  106. package/dist/runtime/docloader.test.js +15 -11
  107. package/dist/runtime/key.test.d.ts +2 -1
  108. package/dist/runtime/key.test.js +19 -4
  109. package/dist/runtime/langstr.test.d.ts +2 -1
  110. package/dist/runtime/langstr.test.js +11 -3
  111. package/dist/runtime/mod.d.ts +5 -4
  112. package/dist/runtime/mod.js +7 -4
  113. package/dist/runtime/multibase/multibase.test.d.ts +2 -1
  114. package/dist/runtime/multibase/multibase.test.js +11 -5
  115. package/dist/runtime/url.test.d.ts +2 -1
  116. package/dist/runtime/url.test.js +7 -6
  117. package/dist/{nodeinfo/semver.js → semver-CbbIgUsa.js} +1 -0
  118. package/dist/{federation/send.js → send-B6r0W6TU.js} +3 -2
  119. package/dist/sig/http.test.d.ts +2 -1
  120. package/dist/sig/http.test.js +23 -12
  121. package/dist/sig/key.test.d.ts +2 -1
  122. package/dist/sig/key.test.js +21 -8
  123. package/dist/sig/ld.test.d.ts +2 -1
  124. package/dist/sig/ld.test.js +19 -11
  125. package/dist/sig/mod.d.ts +7 -5
  126. package/dist/sig/mod.js +7 -5
  127. package/dist/sig/owner.test.d.ts +2 -1
  128. package/dist/sig/owner.test.js +23 -9
  129. package/dist/sig/proof.test.d.ts +2 -1
  130. package/dist/sig/proof.test.js +22 -10
  131. package/dist/std__assert-CaBUULmX.js +151 -0
  132. package/dist/testing/docloader.test.d.ts +2 -1
  133. package/dist/testing/docloader.test.js +11 -3
  134. package/dist/testing/mod.d.ts +1 -0
  135. package/dist/testing/mod.js +2 -136
  136. package/dist/testing-jcGLO9Lp.js +143 -0
  137. package/dist/{compat/transformers.js → transformers-jxj-4o2K.js} +1 -1
  138. package/dist/{vocab/type.js → type-D2s5lmbZ.js} +1 -0
  139. package/dist/{nodeinfo/types.js → types-CqoqWDkp.js} +2 -1
  140. package/dist/types-DPKT1AqJ.js +457 -0
  141. package/dist/{runtime/url.js → url-kTAI6_KP.js} +1 -0
  142. package/dist/vocab/actor.test.d.ts +2 -1
  143. package/dist/vocab/actor.test.js +5853 -14
  144. package/dist/vocab/lookup.test.d.ts +2 -1
  145. package/dist/vocab/lookup.test.js +20 -7
  146. package/dist/vocab/mod.d.ts +5 -5
  147. package/dist/vocab/mod.js +6 -4
  148. package/dist/vocab/type.test.d.ts +2 -1
  149. package/dist/vocab/type.test.js +9 -4
  150. package/dist/vocab/vocab.test.d.ts +2 -1
  151. package/dist/vocab/vocab.test.js +2439 -14
  152. package/dist/vocab-Bkp-mLSq.js +172 -0
  153. package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
  154. package/dist/{vocab/vocab.js → vocab-DGenL1NB.js} +331 -182
  155. package/dist/webfinger/handler.test.d.ts +2 -1
  156. package/dist/webfinger/handler.test.js +39 -7
  157. package/dist/webfinger/lookup.test.d.ts +2 -1
  158. package/dist/webfinger/lookup.test.js +14 -4
  159. package/dist/webfinger/mod.d.ts +4 -2
  160. package/dist/webfinger/mod.js +3 -1
  161. package/dist/x/cfworkers.d.ts +2 -2
  162. package/dist/x/cfworkers.test.d.ts +2 -1
  163. package/dist/x/cfworkers.test.js +78 -3
  164. package/dist/x/hono.d.ts +11 -2
  165. package/dist/x/sveltekit.d.ts +11 -2
  166. package/package.json +1 -1
  167. package/dist/codegen/fs.js +0 -23
  168. package/dist/codegen/schema.js +0 -88
  169. package/dist/codegen/type.js +0 -392
  170. package/dist/compat/types.d.ts +0 -18
  171. package/dist/deno.js +0 -139
  172. package/dist/federation/builder.d.ts +0 -19
  173. package/dist/federation/callback.d.ts +0 -211
  174. package/dist/federation/collection.d.ts +0 -36
  175. package/dist/federation/context.d.ts +0 -757
  176. package/dist/federation/federation.d.ts +0 -703
  177. package/dist/federation/handler.d.ts +0 -44
  178. package/dist/federation/handler.js +0 -543
  179. package/dist/federation/middleware.d.ts +0 -101
  180. package/dist/federation/negotiation.js +0 -63
  181. package/dist/federation/queue.d.ts +0 -59
  182. package/dist/federation/retry.d.ts +0 -71
  183. package/dist/federation/router.d.ts +0 -91
  184. package/dist/federation/send.d.ts +0 -29
  185. package/dist/node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js +0 -101
  186. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js +0 -49
  187. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js +0 -32
  188. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js +0 -26
  189. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js +0 -34
  190. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js +0 -34
  191. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js +0 -53
  192. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js +0 -32
  193. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js +0 -33
  194. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js +0 -79
  195. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/mod.js +0 -19
  196. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js +0 -177
  197. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js +0 -101
  198. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js +0 -274
  199. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js +0 -148
  200. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js +0 -37
  201. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/mod.js +0 -10
  202. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js +0 -172
  203. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js +0 -11
  204. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js +0 -10
  205. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +0 -14
  206. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +0 -13
  207. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +0 -14
  208. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js +0 -60
  209. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js +0 -15
  210. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_os.js +0 -9
  211. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/extname.js +0 -4
  212. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/format.js +0 -4
  213. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js +0 -34
  214. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/glob_to_regexp.js +0 -4
  215. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/is_absolute.js +0 -4
  216. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join.js +0 -4
  217. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join_globs.js +0 -4
  218. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/mod.js +0 -5
  219. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize.js +0 -4
  220. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize_glob.js +0 -4
  221. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/parse.js +0 -4
  222. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js +0 -13
  223. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +0 -54
  224. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +0 -27
  225. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js +0 -47
  226. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +0 -59
  227. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/relative.js +0 -4
  228. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/resolve.js +0 -4
  229. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_file_url.js +0 -4
  230. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_namespaced_path.js +0 -4
  231. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +0 -31
  232. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js +0 -17
  233. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +0 -38
  234. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js +0 -36
  235. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js +0 -47
  236. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_dumper_state.js +0 -4
  237. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js +0 -884
  238. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js +0 -120
  239. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js +0 -92
  240. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js +0 -41
  241. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js +0 -58
  242. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js +0 -118
  243. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js +0 -18
  244. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js +0 -14
  245. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js +0 -23
  246. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js +0 -31
  247. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js +0 -22
  248. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js +0 -29
  249. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js +0 -14
  250. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js +0 -17
  251. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js +0 -14
  252. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js +0 -57
  253. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js +0 -24
  254. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js +0 -17
  255. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/mod.js +0 -5
  256. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js +0 -54
  257. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/stringify.js +0 -4
  258. package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.js +0 -68
  259. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js +0 -30
  260. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js +0 -203
  261. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js +0 -122
  262. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js +0 -63
  263. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js +0 -58
  264. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js +0 -136
  265. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js +0 -64
  266. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js +0 -29
  267. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js +0 -45
  268. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js +0 -74
  269. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js +0 -40
  270. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js +0 -97
  271. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js +0 -13
  272. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js +0 -17
  273. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js +0 -23
  274. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js +0 -32
  275. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js +0 -990
  276. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js +0 -98
  277. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js +0 -53
  278. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js +0 -15
  279. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js +0 -27
  280. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js +0 -24
  281. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js +0 -96
  282. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js +0 -25
  283. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js +0 -57
  284. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js +0 -26
  285. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js +0 -26
  286. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js +0 -58
  287. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js +0 -72
  288. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js +0 -16
  289. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js +0 -58
  290. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js +0 -41
  291. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js +0 -33
  292. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js +0 -37
  293. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js +0 -41
  294. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js +0 -74
  295. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js +0 -38
  296. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js +0 -47
  297. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js +0 -21
  298. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js +0 -53
  299. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js +0 -16
  300. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js +0 -16
  301. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js +0 -17
  302. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js +0 -20
  303. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js +0 -69
  304. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js +0 -18
  305. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js +0 -42
  306. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js +0 -32
  307. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js +0 -30
  308. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js +0 -22
  309. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js +0 -14
  310. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js +0 -22
  311. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js +0 -38
  312. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js +0 -24
  313. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js +0 -13
  314. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js +0 -14
  315. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js +0 -30
  316. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js +0 -27
  317. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js +0 -54
  318. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js +0 -60
  319. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js +0 -22
  320. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js +0 -22
  321. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js +0 -24
  322. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js +0 -20
  323. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js +0 -15
  324. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js +0 -15
  325. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js +0 -15
  326. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js +0 -26
  327. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js +0 -28
  328. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js +0 -26
  329. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js +0 -15
  330. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js +0 -17
  331. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js +0 -11
  332. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js +0 -31
  333. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js +0 -68
  334. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js +0 -32
  335. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js +0 -13
  336. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js +0 -15
  337. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js +0 -15
  338. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js +0 -15
  339. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js +0 -15
  340. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js +0 -47
  341. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js +0 -184
  342. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js +0 -31
  343. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js +0 -19
  344. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js +0 -12
  345. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js +0 -52
  346. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js +0 -77
  347. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js +0 -22
  348. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js +0 -61
  349. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js +0 -52
  350. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js +0 -29
  351. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js +0 -26
  352. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js +0 -61
  353. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js +0 -47
  354. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js +0 -35
  355. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js +0 -33
  356. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js +0 -12
  357. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js +0 -121
  358. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js +0 -14
  359. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js +0 -14
  360. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js +0 -116
  361. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js +0 -24
  362. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js +0 -135
  363. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js +0 -15
  364. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js +0 -48
  365. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js +0 -24
  366. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js +0 -84
  367. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js +0 -50
  368. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js +0 -28
  369. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js +0 -309
  370. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js +0 -217
  371. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js +0 -94
  372. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js +0 -143
  373. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js +0 -103
  374. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js +0 -195
  375. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js +0 -83
  376. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js +0 -137
  377. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js +0 -181
  378. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js +0 -73
  379. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js +0 -97
  380. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js +0 -11
  381. package/dist/node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js +0 -87
  382. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js +0 -20
  383. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js +0 -20
  384. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js +0 -20
  385. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js +0 -20
  386. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js +0 -32
  387. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js +0 -43
  388. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js +0 -139
  389. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js +0 -26
  390. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js +0 -14
  391. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js +0 -53
  392. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js +0 -114
  393. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js +0 -26
  394. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js +0 -83
  395. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js +0 -83
  396. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js +0 -44
  397. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js +0 -22
  398. package/dist/node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.js +0 -37
  399. package/dist/nodeinfo/client.d.ts +0 -96
  400. package/dist/nodeinfo/handler.js +0 -46
  401. package/dist/nodeinfo/semver.d.ts +0 -78
  402. package/dist/nodeinfo/types.d.ts +0 -140
  403. package/dist/runtime/authdocloader.d.ts +0 -56
  404. package/dist/runtime/docloader.js +0 -291
  405. package/dist/runtime/key.js +0 -156
  406. package/dist/runtime/langstr.d.ts +0 -24
  407. package/dist/runtime/multibase/base.js +0 -32
  408. package/dist/runtime/multibase/constants.js +0 -172
  409. package/dist/runtime/multibase/index.js +0 -57
  410. package/dist/runtime/multibase/rfc4648.js +0 -61
  411. package/dist/runtime/multibase/util.js +0 -21
  412. package/dist/sig/http.d.ts +0 -143
  413. package/dist/sig/key.d.ts +0 -125
  414. package/dist/sig/proof.d.ts +0 -134
  415. package/dist/testing/fixtures/example.com/person.js +0 -29
  416. package/dist/testing/fixtures/example.com/person2.js +0 -48
  417. package/dist/vocab/constants.d.ts +0 -24
  418. package/dist/vocab/constants.js +0 -16
  419. package/dist/vocab/type.d.ts +0 -107
  420. package/dist/webfinger/handler.js +0 -140
  421. package/dist/webfinger/lookup.d.ts +0 -47
  422. /package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_object_match.js → compat-Bb5myD13.js} +0 -0
  423. /package/dist/{testing/fixtures → fixtures}/activitypub.academy/users/brauca_darradiul.json +0 -0
  424. /package/dist/{testing/fixtures → fixtures}/example.com/announce.json +0 -0
  425. /package/dist/{testing/fixtures → fixtures}/example.com/collection.json +0 -0
  426. /package/dist/{testing/fixtures → fixtures}/example.com/create.json +0 -0
  427. /package/dist/{testing/fixtures → fixtures}/example.com/cross-origin-actor.json +0 -0
  428. /package/dist/{testing/fixtures → fixtures}/example.com/hong-gildong.json +0 -0
  429. /package/dist/{testing/fixtures → fixtures}/example.com/invite.json +0 -0
  430. /package/dist/{testing/fixtures → fixtures}/example.com/key.json +0 -0
  431. /package/dist/{testing/fixtures → fixtures}/example.com/key2.json +0 -0
  432. /package/dist/{testing/fixtures → fixtures}/example.com/object.json +0 -0
  433. /package/dist/{testing/fixtures → fixtures}/example.com/orderedcollectionpage.json +0 -0
  434. /package/dist/{testing/fixtures → fixtures}/example.com/paged/a.json +0 -0
  435. /package/dist/{testing/fixtures → fixtures}/example.com/paged/b.json +0 -0
  436. /package/dist/{testing/fixtures → fixtures}/example.com/paged-collection.json +0 -0
  437. /package/dist/{testing/fixtures → fixtures}/example.com/person.json +0 -0
  438. /package/dist/{testing/fixtures → fixtures}/example.com/person2.json +0 -0
  439. /package/dist/{testing/fixtures → fixtures}/example.com/test.json +0 -0
  440. /package/dist/{testing/fixtures → fixtures}/example.com/users/handle.json +0 -0
  441. /package/dist/{testing/fixtures → fixtures}/example.com/wrong-type.json +0 -0
  442. /package/dist/{testing/fixtures → fixtures}/remote.domain/users/bob.json +0 -0
  443. /package/dist/{testing/fixtures → fixtures}/server.example/users/alice.json +0 -0
  444. /package/dist/{testing/fixtures → fixtures}/w3id.org/identity/v1.json +0 -0
  445. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/data-integrity/v1.json +0 -0
  446. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/multikey/v1.json +0 -0
  447. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/v1.json +0 -0
  448. /package/dist/{testing/fixtures → fixtures}/wizard.casa/users/hongminhee.json +0 -0
  449. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/activitystreams.json +0 -0
  450. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/did/v1.json +0 -0
  451. /package/dist/{federation/kv.d.ts → kv-BmsWxOQ2.d.ts} +0 -0
  452. /package/dist/{federation/mq.d.ts → mq-Bue016Tz.d.ts} +0 -0
  453. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/basename.js → nodeinfo-CyEbLjHs.js} +0 -0
  454. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/common.js → runtime-BSkOVUWM.js} +0 -0
  455. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/constants.js → sig-BXJO--F9.js} +0 -0
  456. /package/dist/{codegen → vocab}/schema.yaml +0 -0
  457. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js → webfinger-C3GIyXIg.js} +0 -0
@@ -1,703 +0,0 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { KvStore } from "./kv.js";
4
- import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "../runtime/docloader.js";
5
- import { Activity$1 as Activity, Hashtag$1 as Hashtag, Object$1 } from "../vocab/vocab.js";
6
- import { Actor, Recipient } from "../vocab/actor.js";
7
- import { ActivityTransformer } from "../compat/types.js";
8
- import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler, SharedInboxKeyDispatcher } from "./callback.js";
9
- import { MessageQueue } from "./mq.js";
10
- import { Message } from "./queue.js";
11
- import { RetryPolicy } from "./retry.js";
12
- import { FederationKvPrefixes, FederationOrigin, FederationQueueOptions } from "./middleware.js";
13
- import { Context, RequestContext } from "./context.js";
14
- import { TracerProvider } from "@opentelemetry/api";
15
-
16
- //#region federation/federation.d.ts
17
- /**
18
- * Options for {@link Federation.startQueue} method.
19
- * @since 1.0.0
20
- */
21
- /**
22
- * Options for {@link Federation.startQueue} method.
23
- * @since 1.0.0
24
- */
25
- interface FederationStartQueueOptions {
26
- /**
27
- * The signal to abort the task queue.
28
- */
29
- signal?: AbortSignal;
30
- /**
31
- * Starts the task worker only for the specified queue. If unspecified,
32
- * which is the default, the task worker starts for all three queues:
33
- * inbox, outbox, and fanout.
34
- * @since 1.3.0
35
- */
36
- queue?: "inbox" | "outbox" | "fanout";
37
- }
38
- /**
39
- * A common interface between {@link Federation} and {@link FederationBuilder}.
40
- * @typeParam TContextData The context data to pass to the {@link Context}.
41
- * @since 1.6.0
42
- */
43
- interface Federatable<TContextData> {
44
- /**
45
- * Registers a NodeInfo dispatcher.
46
- * @param path The URI path pattern for the NodeInfo dispatcher. The syntax
47
- * is based on URI Template
48
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
49
- * must have no variables.
50
- * @param dispatcher A NodeInfo dispatcher callback to register.
51
- * @throws {RouterError} Thrown if the path pattern is invalid.
52
- */
53
- setNodeInfoDispatcher(path: string, dispatcher: NodeInfoDispatcher<TContextData>): void;
54
- /**
55
- * Registers an actor dispatcher.
56
- *
57
- * @example
58
- * ``` typescript
59
- * federation.setActorDispatcher(
60
- * "/users/{identifier}",
61
- * async (ctx, identifier) => {
62
- * return new Person({
63
- * id: ctx.getActorUri(identifier),
64
- * // ...
65
- * });
66
- * }
67
- * );
68
- * ```
69
- *
70
- * @param path The URI path pattern for the actor dispatcher. The syntax is
71
- * based on URI Template
72
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
73
- * must have one variable: `{identifier}`.
74
- * @param dispatcher An actor dispatcher callback to register.
75
- * @returns An object with methods to set other actor dispatcher callbacks.
76
- * @throws {RouterError} Thrown if the path pattern is invalid.
77
- */
78
- setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
79
- /**
80
- * Registers an object dispatcher.
81
- *
82
- * @typeParam TContextData The context data to pass to the {@link Context}.
83
- * @typeParam TObject The type of object to dispatch.
84
- * @typeParam TParam The parameter names of the requested URL.
85
- * @param cls The Activity Vocabulary class of the object to dispatch.
86
- * @param path The URI path pattern for the object dispatcher. The syntax is
87
- * based on URI Template
88
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
89
- * must have one or more variables.
90
- * @param dispatcher An object dispatcher callback to register.
91
- */
92
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
93
- typeId: URL;
94
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
95
- /**
96
- * Registers an object dispatcher.
97
- *
98
- * @typeParam TContextData The context data to pass to the {@link Context}.
99
- * @typeParam TObject The type of object to dispatch.
100
- * @typeParam TParam The parameter names of the requested URL.
101
- * @param cls The Activity Vocabulary class of the object to dispatch.
102
- * @param path The URI path pattern for the object dispatcher. The syntax is
103
- * based on URI Template
104
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
105
- * must have one or more variables.
106
- * @param dispatcher An object dispatcher callback to register.
107
- */
108
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
109
- typeId: URL;
110
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
111
- /**
112
- * Registers an object dispatcher.
113
- *
114
- * @typeParam TContextData The context data to pass to the {@link Context}.
115
- * @typeParam TObject The type of object to dispatch.
116
- * @typeParam TParam The parameter names of the requested URL.
117
- * @param cls The Activity Vocabulary class of the object to dispatch.
118
- * @param path The URI path pattern for the object dispatcher. The syntax is
119
- * based on URI Template
120
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
121
- * must have one or more variables.
122
- * @param dispatcher An object dispatcher callback to register.
123
- */
124
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
125
- typeId: URL;
126
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
127
- /**
128
- * Registers an object dispatcher.
129
- *
130
- * @typeParam TContextData The context data to pass to the {@link Context}.
131
- * @typeParam TObject The type of object to dispatch.
132
- * @typeParam TParam The parameter names of the requested URL.
133
- * @param cls The Activity Vocabulary class of the object to dispatch.
134
- * @param path The URI path pattern for the object dispatcher. The syntax is
135
- * based on URI Template
136
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
137
- * must have one or more variables.
138
- * @param dispatcher An object dispatcher callback to register.
139
- */
140
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
141
- typeId: URL;
142
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
143
- /**
144
- * Registers an object dispatcher.
145
- *
146
- * @typeParam TContextData The context data to pass to the {@link Context}.
147
- * @typeParam TObject The type of object to dispatch.
148
- * @typeParam TParam The parameter names of the requested URL.
149
- * @param cls The Activity Vocabulary class of the object to dispatch.
150
- * @param path The URI path pattern for the object dispatcher. The syntax is
151
- * based on URI Template
152
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
153
- * must have one or more variables.
154
- * @param dispatcher An object dispatcher callback to register.
155
- */
156
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
157
- typeId: URL;
158
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
159
- /**
160
- * Registers an object dispatcher.
161
- *
162
- * @typeParam TContextData The context data to pass to the {@link Context}.
163
- * @typeParam TObject The type of object to dispatch.
164
- * @typeParam TParam The parameter names of the requested URL.
165
- * @param cls The Activity Vocabulary class of the object to dispatch.
166
- * @param path The URI path pattern for the object dispatcher. The syntax is
167
- * based on URI Template
168
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
169
- * must have one or more variables.
170
- * @param dispatcher An object dispatcher callback to register.
171
- */
172
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
173
- typeId: URL;
174
- }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
175
- /**
176
- * Registers an inbox dispatcher.
177
- *
178
- * @param path The URI path pattern for the inbox dispatcher. The syntax is
179
- * based on URI Template
180
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
181
- * must have one variable: `{identifier}`, and must match
182
- * the inbox listener path.
183
- * @param dispatcher An inbox dispatcher callback to register.
184
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
185
- */
186
- setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
187
- /**
188
- * Registers an outbox dispatcher.
189
- *
190
- * @example
191
- * ``` typescript
192
- * federation.setOutboxDispatcher(
193
- * "/users/{identifier}/outbox",
194
- * async (ctx, identifier, options) => {
195
- * let items: Activity[];
196
- * let nextCursor: string;
197
- * // ...
198
- * return { items, nextCursor };
199
- * }
200
- * );
201
- * ```
202
- *
203
- * @param path The URI path pattern for the outbox dispatcher. The syntax is
204
- * based on URI Template
205
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
206
- * must have one variable: `{identifier}`.
207
- * @param dispatcher An outbox dispatcher callback to register.
208
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
209
- */
210
- setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
211
- /**
212
- * Registers a following collection dispatcher.
213
- * @param path The URI path pattern for the following collection. The syntax
214
- * is based on URI Template
215
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
216
- * must have one variable: `{identifier}`.
217
- * @param dispatcher A following collection callback to register.
218
- * @returns An object with methods to set other following collection
219
- * callbacks.
220
- * @throws {RouterError} Thrown if the path pattern is invalid.
221
- */
222
- setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
223
- /**
224
- * Registers a followers collection dispatcher.
225
- * @param path The URI path pattern for the followers collection. The syntax
226
- * is based on URI Template
227
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
228
- * must have one variable: `{identifier}`.
229
- * @param dispatcher A followers collection callback to register.
230
- * @returns An object with methods to set other followers collection
231
- * callbacks.
232
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
233
- */
234
- setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
235
- /**
236
- * Registers a liked collection dispatcher.
237
- * @param path The URI path pattern for the liked collection. The syntax
238
- * is based on URI Template
239
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
240
- * must have one variable: `{identifier}`.
241
- * @param dispatcher A liked collection callback to register.
242
- * @returns An object with methods to set other liked collection
243
- * callbacks.
244
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
245
- */
246
- setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
247
- /**
248
- * Registers a featured collection dispatcher.
249
- * @param path The URI path pattern for the featured collection. The syntax
250
- * is based on URI Template
251
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
252
- * must have one variable: `{identifier}`.
253
- * @param dispatcher A featured collection callback to register.
254
- * @returns An object with methods to set other featured collection
255
- * callbacks.
256
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
257
- */
258
- setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
259
- /**
260
- * Registers a featured tags collection dispatcher.
261
- * @param path The URI path pattern for the featured tags collection.
262
- * The syntax is based on URI Template
263
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
264
- * must have one variable: `{identifier}`.
265
- * @param dispatcher A featured tags collection callback to register.
266
- * @returns An object with methods to set other featured tags collection
267
- * callbacks.
268
- * @throws {@link RouterError} Thrown if the path pattern is invalid.
269
- */
270
- setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
271
- /**
272
- * Assigns the URL path for the inbox and starts setting inbox listeners.
273
- *
274
- * @example
275
- * ``` typescript
276
- * federation
277
- * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
278
- * .on(Follow, async (ctx, follow) => {
279
- * const from = await follow.getActor(ctx);
280
- * if (!isActor(from)) return;
281
- * // ...
282
- * })
283
- * .on(Undo, async (ctx, undo) => {
284
- * // ...
285
- * });
286
- * ```
287
- *
288
- * @param inboxPath The URI path pattern for the inbox. The syntax is based
289
- * on URI Template
290
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
291
- * The path must have one variable: `{identifier}`, and must
292
- * match the inbox dispatcher path.
293
- * @param sharedInboxPath An optional URI path pattern for the shared inbox.
294
- * The syntax is based on URI Template
295
- * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
296
- * The path must have no variables.
297
- * @returns An object to register inbox listeners.
298
- * @throws {RouteError} Thrown if the path pattern is invalid.
299
- */
300
- setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
301
- }
302
- /**
303
- * An object that registers federation-related business logic and dispatches
304
- * requests to the appropriate handlers.
305
- *
306
- * It also provides a middleware interface for handling requests before your
307
- * web framework's router; see {@link Federation.fetch}.
308
- * @typeParam TContextData The context data to pass to the {@link Context}.
309
- * @since 0.13.0
310
- */
311
- interface Federation<TContextData> extends Federatable<TContextData> {
312
- /**
313
- * Manually start the task queue.
314
- *
315
- * This method is useful when you set the `manuallyStartQueue` option to
316
- * `true` in the {@link createFederation} function.
317
- * @param contextData The context data to pass to the context.
318
- * @param options Additional options for starting the queue.
319
- */
320
- startQueue(contextData: TContextData, options?: FederationStartQueueOptions): Promise<void>;
321
- /**
322
- * Processes a queued message task. This method handles different types of
323
- * tasks such as fanout, outbox, and inbox messages.
324
- *
325
- * Note that you usually do not need to call this method directly unless you
326
- * are deploying your federated application on a platform that does not
327
- * support long-running processing, such as Cloudflare Workers.
328
- * @param contextData The context data to pass to the context.
329
- * @param message The message that represents the task to be processed.
330
- * @returns A promise that resolves when the message has been processed.
331
- * @since 1.6.0
332
- */
333
- processQueuedTask(contextData: TContextData, message: Message): Promise<void>;
334
- /**
335
- * Create a new context.
336
- * @param baseUrl The base URL of the server. The `pathname` remains root,
337
- * and the `search` and `hash` are stripped.
338
- * @param contextData The context data to pass to the context.
339
- * @returns The new context.
340
- */
341
- createContext(baseUrl: URL, contextData: TContextData): Context<TContextData>;
342
- /**
343
- * Create a new context for a request.
344
- * @param request The request object.
345
- * @param contextData The context data to pass to the context.
346
- * @returns The new request context.
347
- */
348
- createContext(request: Request, contextData: TContextData): RequestContext<TContextData>;
349
- /**
350
- * Handles a request related to federation. If a request is not related to
351
- * federation, the `onNotFound` or `onNotAcceptable` callback is called.
352
- *
353
- * Usually, this method is called from a server's request handler or
354
- * a web framework's middleware.
355
- *
356
- * @param request The request object.
357
- * @param parameters The parameters for handling the request.
358
- * @returns The response to the request.
359
- */
360
- fetch(request: Request, options: FederationFetchOptions<TContextData>): Promise<Response>;
361
- }
362
- /**
363
- * A builder for creating a {@link Federation} object. It defers the actual
364
- * instantiation of the {@link Federation} object until the {@link build}
365
- * method is called so that dispatchers and listeners can be registered
366
- * before the {@link Federation} object is instantiated.
367
- * @typeParam TContextData The context data to pass to the {@link Context}.
368
- * @since 1.6.0
369
- */
370
- interface FederationBuilder<TContextData> extends Federatable<TContextData> {
371
- /**
372
- * Builds the federation object.
373
- * @returns The federation object.
374
- */
375
- build(options: FederationOptions<TContextData>): Promise<Federation<TContextData>>;
376
- }
377
- /**
378
- * Options for creating a {@link Federation} object.
379
- * @typeParam TContextData The context data to pass to the {@link Context}.
380
- * @since 1.6.0
381
- */
382
- interface FederationOptions<TContextData> {
383
- /**
384
- * The key-value store used for caching, outbox queues, and inbox idempotence.
385
- */
386
- kv: KvStore;
387
- /**
388
- * Prefixes for namespacing keys in the Deno KV store. By default, all keys
389
- * are prefixed with `["_fedify"]`.
390
- */
391
- kvPrefixes?: Partial<FederationKvPrefixes>;
392
- /**
393
- * The message queue for sending and receiving activities. If not provided,
394
- * activities will not be queued and will be processed immediately.
395
- *
396
- * If a `MessageQueue` is provided, both the `inbox` and `outbox` queues
397
- * will be set to the same queue.
398
- *
399
- * If a `FederationQueueOptions` object is provided, you can set the queues
400
- * separately (since Fedify 1.3.0).
401
- */
402
- queue?: FederationQueueOptions | MessageQueue;
403
- /**
404
- * Whether to start the task queue manually or automatically.
405
- *
406
- * If `true`, the task queue will not start automatically and you need to
407
- * manually start it by calling the {@link Federation.startQueue} method.
408
- *
409
- * If `false`, the task queue will start automatically as soon as
410
- * the first task is enqueued.
411
- *
412
- * By default, the queue starts automatically.
413
- *
414
- * @since 0.12.0
415
- */
416
- manuallyStartQueue?: boolean;
417
- /**
418
- * The canonical base URL of the server. This is used for constructing
419
- * absolute URLs and fediverse handles.
420
- * @since 1.5.0
421
- */
422
- origin?: string | FederationOrigin;
423
- /**
424
- * A custom JSON-LD document loader factory. By default, this uses
425
- * the built-in cache-backed loader that fetches remote documents over
426
- * HTTP(S).
427
- * @since 1.4.0
428
- */
429
- documentLoaderFactory?: DocumentLoaderFactory;
430
- /**
431
- * A custom JSON-LD context loader factory. By default, this uses the same
432
- * loader as the document loader.
433
- * @since 1.4.0
434
- */
435
- contextLoaderFactory?: DocumentLoaderFactory;
436
- /**
437
- * A custom JSON-LD document loader. By default, this uses the built-in
438
- * cache-backed loader that fetches remote documents over HTTP(S).
439
- * @deprecated Use {@link documentLoaderFactory} instead.
440
- */
441
- documentLoader?: DocumentLoader;
442
- /**
443
- * A custom JSON-LD context loader. By default, this uses the same loader
444
- * as the document loader.
445
- * @deprecated Use {@link contextLoaderFactory} instead.
446
- */
447
- contextLoader?: DocumentLoader;
448
- /**
449
- * A factory function that creates an authenticated document loader for a
450
- * given identity. This is used for fetching documents that require
451
- * authentication.
452
- */
453
- authenticatedDocumentLoaderFactory?: AuthenticatedDocumentLoaderFactory;
454
- /**
455
- * Whether to allow fetching private network addresses in the document loader.
456
- *
457
- * If turned on, {@link CreateFederationOptions.documentLoader},
458
- * {@link CreateFederationOptions.contextLoader}, and
459
- * {@link CreateFederationOptions.authenticatedDocumentLoaderFactory}
460
- * cannot be configured.
461
- *
462
- * Mostly useful for testing purposes. *Do not use in production.*
463
- *
464
- * Turned off by default.
465
- * @since 0.15.0
466
- */
467
- allowPrivateAddress?: boolean;
468
- /**
469
- * Options for making `User-Agent` strings for HTTP requests.
470
- * If a string is provided, it is used as the `User-Agent` header.
471
- * If an object is provided, it is passed to the {@link getUserAgent}
472
- * function.
473
- * @since 1.3.0
474
- */
475
- userAgent?: GetUserAgentOptions | string;
476
- /**
477
- * A callback that handles errors during outbox processing. Note that this
478
- * callback can be called multiple times for the same activity, because
479
- * the delivery is retried according to the backoff schedule until it
480
- * succeeds or reaches the maximum retry count.
481
- *
482
- * If any errors are thrown in this callback, they are ignored.
483
- */
484
- onOutboxError?: OutboxErrorHandler;
485
- /**
486
- * The time window for verifying HTTP Signatures of incoming requests. If the
487
- * request is older or newer than this window, it is rejected. Or if it is
488
- * `false`, the request's timestamp is not checked at all.
489
- *
490
- * By default, the window is an hour.
491
- */
492
- signatureTimeWindow?: Temporal.Duration | Temporal.DurationLike | false;
493
- /**
494
- * Whether to skip HTTP Signatures verification for incoming activities.
495
- * This is useful for testing purposes, but should not be used in production.
496
- *
497
- * By default, this is `false` (i.e., signatures are verified).
498
- * @since 0.13.0
499
- */
500
- skipSignatureVerification?: boolean;
501
- /**
502
- * The retry policy for sending activities to recipients' inboxes.
503
- * By default, this uses an exponential backoff strategy with a maximum of
504
- * 10 attempts and a maximum delay of 12 hours.
505
- * @since 0.12.0
506
- */
507
- outboxRetryPolicy?: RetryPolicy;
508
- /**
509
- * The retry policy for processing incoming activities. By default, this
510
- * uses an exponential backoff strategy with a maximum of 10 attempts and a
511
- * maximum delay of 12 hours.
512
- * @since 0.12.0
513
- */
514
- inboxRetryPolicy?: RetryPolicy;
515
- /**
516
- * Activity transformers that are applied to outgoing activities. It is
517
- * useful for adjusting outgoing activities to satisfy some ActivityPub
518
- * implementations.
519
- *
520
- * By default, {@link defaultActivityTransformers} are applied.
521
- * @since 1.4.0
522
- */
523
- activityTransformers?: readonly ActivityTransformer<TContextData>[];
524
- /**
525
- * Whether the router should be insensitive to trailing slashes in the URL
526
- * paths. For example, if this option is `true`, `/foo` and `/foo/` are
527
- * treated as the same path. Turned off by default.
528
- * @since 0.12.0
529
- */
530
- trailingSlashInsensitive?: boolean;
531
- /**
532
- * The OpenTelemetry tracer provider for tracing operations. If not provided,
533
- * the default global tracer provider is used.
534
- * @since 1.3.0
535
- */
536
- tracerProvider?: TracerProvider;
537
- }
538
- /**
539
- * Additional settings for the actor dispatcher.
540
- *
541
- * ``` typescript
542
- * const federation = createFederation<void>({ ... });
543
- * federation
544
- * .setActorDispatcher("/users/{identifier}", async (ctx, identifier) => {
545
- * // ...
546
- * })
547
- * .setKeyPairsDispatcher(async (ctxData, identifier) => {
548
- * // ...
549
- * });
550
- * ```
551
- */
552
- interface ActorCallbackSetters<TContextData> {
553
- /**
554
- * Sets the key pairs dispatcher for actors.
555
- * @param dispatcher A callback that returns the key pairs for an actor.
556
- * @returns The setters object so that settings can be chained.
557
- * @since 0.10.0
558
- */
559
- setKeyPairsDispatcher(dispatcher: ActorKeyPairsDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
560
- /**
561
- * Sets the callback function that maps a WebFinger username to
562
- * the corresponding actor's identifier. If it's omitted, the identifier
563
- * is assumed to be the same as the WebFinger username, which makes your
564
- * actors have the immutable handles. If you want to let your actors change
565
- * their fediverse handles, you should set this dispatcher.
566
- * @param mapper A callback that maps a WebFinger username to
567
- * the corresponding actor's identifier.
568
- * @returns The setters object so that settings can be chained.
569
- * @since 0.15.0
570
- */
571
- mapHandle(mapper: ActorHandleMapper<TContextData>): ActorCallbackSetters<TContextData>;
572
- /**
573
- * Sets the callback function that maps a WebFinger query to the corresponding
574
- * actor's identifier or username. If it's omitted, the WebFinger handler
575
- * only supports the actor URIs and `acct:` URIs. If you want to support
576
- * other queries, you should set this dispatcher.
577
- * @param mapper A callback that maps a WebFinger query to the corresponding
578
- * actor's identifier or username.
579
- * @returns The setters object so that settings can be chained.
580
- * @since 1.4.0
581
- */
582
- mapAlias(mapper: ActorAliasMapper<TContextData>): ActorCallbackSetters<TContextData>;
583
- /**
584
- * Specifies the conditions under which requests are authorized.
585
- * @param predicate A callback that returns whether a request is authorized.
586
- * @returns The setters object so that settings can be chained.
587
- * @since 0.7.0
588
- */
589
- authorize(predicate: AuthorizePredicate<TContextData>): ActorCallbackSetters<TContextData>;
590
- }
591
- /**
592
- * Additional settings for an object dispatcher.
593
- */
594
- interface ObjectCallbackSetters<TContextData, TObject extends Object$1, TParam extends string> {
595
- /**
596
- * Specifies the conditions under which requests are authorized.
597
- * @param predicate A callback that returns whether a request is authorized.
598
- * @returns The setters object so that settings can be chained.
599
- * @since 0.7.0
600
- */
601
- authorize(predicate: ObjectAuthorizePredicate<TContextData, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
602
- }
603
- /**
604
- * Additional settings for a collection dispatcher.
605
- *
606
- * @typeParam TContext The type of the context. {@link Context} or
607
- * {@link RequestContext}.
608
- * @typeParam TContextData The context data to pass to the {@link Context}.
609
- * @typeParam TFilter The type of filter for the collection.
610
- */
611
- interface CollectionCallbackSetters<TContext extends Context<TContextData>, TContextData, TFilter> {
612
- /**
613
- * Sets the counter for the collection.
614
- * @param counter A callback that returns the number of items in the collection.
615
- * @returns The setters object so that settings can be chained.
616
- */
617
- setCounter(counter: CollectionCounter<TContextData, TFilter>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
618
- /**
619
- * Sets the first cursor for the collection.
620
- * @param cursor The cursor for the first item in the collection.
621
- * @returns The setters object so that settings can be chained.
622
- */
623
- setFirstCursor(cursor: CollectionCursor<TContext, TContextData, TFilter>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
624
- /**
625
- * Sets the last cursor for the collection.
626
- * @param cursor The cursor for the last item in the collection.
627
- * @returns The setters object so that settings can be chained.
628
- */
629
- setLastCursor(cursor: CollectionCursor<TContext, TContextData, TFilter>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
630
- /**
631
- * Specifies the conditions under which requests are authorized.
632
- * @param predicate A callback that returns whether a request is authorized.
633
- * @returns The setters object so that settings can be chained.
634
- * @since 0.7.0
635
- */
636
- authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
637
- }
638
- /**
639
- * Registry for inbox listeners for different activity types.
640
- */
641
- interface InboxListenerSetters<TContextData> {
642
- /**
643
- * Registers a listener for a specific incoming activity type.
644
- *
645
- * @param type A subclass of {@link Activity} to listen to.
646
- * @param listener A callback to handle an incoming activity.
647
- * @returns The setters object so that settings can be chained.
648
- */
649
- on<TActivity extends Activity>(type: new (...args: any[]) => TActivity, listener: InboxListener<TContextData, TActivity>): InboxListenerSetters<TContextData>;
650
- /**
651
- * Registers an error handler for inbox listeners. Any exceptions thrown
652
- * from the listeners are caught and passed to this handler.
653
- *
654
- * @param handler A callback to handle an error.
655
- * @returns The setters object so that settings can be chained.
656
- */
657
- onError(handler: InboxErrorHandler<TContextData>): InboxListenerSetters<TContextData>;
658
- /**
659
- * Configures a callback to dispatch the key pair for the authenticated
660
- * document loader of the {@link Context} passed to the shared inbox listener.
661
- *
662
- * @param dispatcher A callback to dispatch the key pair for the authenticated
663
- * document loader.
664
- * @returns The setters object so that settings can be chained.
665
- * @since 0.11.0
666
- */
667
- setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
668
- }
669
- /**
670
- * Parameters of {@link Federation.fetch} method.
671
- *
672
- * @typeParam TContextData The context data to pass to the {@link Context}.
673
- * @since 0.6.0
674
- */
675
- interface FederationFetchOptions<TContextData> {
676
- /**
677
- * The context data to pass to the {@link Context}.
678
- */
679
- contextData: TContextData;
680
- /**
681
- * A callback to handle a request when the route is not found.
682
- * If not provided, a 404 response is returned.
683
- * @param request The request object.
684
- * @returns The response to the request.
685
- */
686
- onNotFound?: (request: Request) => Response | Promise<Response>;
687
- /**
688
- * A callback to handle a request when the request's `Accept` header is not
689
- * acceptable. If not provided, a 406 response is returned.
690
- * @param request The request object.
691
- * @returns The response to the request.
692
- */
693
- onNotAcceptable?: (request: Request) => Response | Promise<Response>;
694
- /**
695
- * A callback to handle a request when the request is unauthorized.
696
- * If not provided, a 401 response is returned.
697
- * @param request The request object.
698
- * @returns The response to the request.
699
- * @since 0.7.0
700
- */
701
- onUnauthorized?: (request: Request) => Response | Promise<Response>;
702
- } //#endregion
703
- export { ActorCallbackSetters, CollectionCallbackSetters, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationOptions, FederationStartQueueOptions, InboxListenerSetters, ObjectCallbackSetters };