@fedify/fedify 1.6.1-dev.869 → 1.6.1-dev.871

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/actor-CM3gfkH6.js +36173 -0
  2. package/dist/{vocab/actor.js → actor-D7NMuy45.js} +5 -4
  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-BKZDAq91.js} +5 -4
  12. package/dist/authdocloader-OfYZlI31.js +51 -0
  13. package/dist/{federation/builder.js → builder-DSTiU6ue.js} +6 -5
  14. package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
  15. package/dist/client-Dw1pCSIt.d.ts +299 -0
  16. package/dist/{nodeinfo/client.js → client-RN5A1Qgw.js} +3 -2
  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/context-CzJXjNR8.d.ts +2034 -0
  23. package/dist/{testing/context.js → context-DZKXS0DV.js} +5 -4
  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/{runtime/contexts.js → docloader-BcMxZ9JH.js} +420 -1
  27. package/dist/docloader-DDFam5Xn.js +4594 -0
  28. package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -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 +13 -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 -6
  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/{sig/http.js → http-BFvv3ZId.js} +5 -4
  57. package/dist/http-BImJcLfv.d.ts +258 -0
  58. package/dist/http-v1TqJ9Qa.js +720 -0
  59. package/dist/{federation/inbox.js → inbox-XV_W1qfB.js} +4 -3
  60. package/dist/key-BNM-ickE.js +16 -0
  61. package/dist/key-CVIQ7iUB.js +262 -0
  62. package/dist/{sig/key.js → key-DIk4Rloj.js} +2 -4
  63. package/dist/key-DiVhk5ik.js +10 -0
  64. package/dist/{federation/keycache.js → keycache-uTxsh7dt.js} +2 -1
  65. package/dist/{testing/keys.js → keys-D7lJqunm.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-bOhcKpmk.js} +6 -6
  69. package/dist/{webfinger/lookup.js → lookup-B5KVF6HM.js} +1 -3
  70. package/dist/lookup-D3xTID-6.js +131 -0
  71. package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
  72. package/dist/{vocab/lookup.js → lookup-D_v0FFGL.js} +5 -5
  73. package/dist/middleware-BFedQWFA.js +33 -0
  74. package/dist/middleware-BiYIqI0b.js +3525 -0
  75. package/dist/{federation/middleware.js → middleware-CPAfRtS5.js} +957 -105
  76. package/dist/middleware-pAGwVkRf.js +17 -0
  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/{compat/transformers.d.ts → mod-CeLnlsqE.d.ts} +3 -4
  80. package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
  81. package/dist/mod-GIh5OYxW.d.ts +2 -0
  82. package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
  83. package/dist/mod-g0xFzAP9.d.ts +2 -0
  84. package/dist/mod.d.ts +18 -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-tYPzPLFs.js} +4 -4
  99. package/dist/proof-D0cf4R25.js +595 -0
  100. package/dist/{sig/proof.js → proof-DIsZ1VTb.js} +5 -4
  101. package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
  102. package/dist/{federation/router.js → router-D_aVZZUc.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-CFBOnY61.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-D4p7qK8A.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 +4 -5
  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 +2440 -15
  152. package/dist/vocab-BSNlVPPE.js +172 -0
  153. package/dist/{vocab/vocab.js → vocab-BxrrllKY.js} +331 -182
  154. package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
  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 +49 -0
  162. package/dist/x/cfworkers.js +73 -0
  163. package/dist/x/cfworkers.test.d.ts +3 -0
  164. package/dist/x/cfworkers.test.js +153 -0
  165. package/dist/x/hono.d.ts +11 -2
  166. package/dist/x/sveltekit.d.ts +11 -2
  167. package/package.json +6 -1
  168. package/dist/codegen/fs.js +0 -23
  169. package/dist/codegen/schema.js +0 -88
  170. package/dist/codegen/type.js +0 -392
  171. package/dist/compat/types.d.ts +0 -18
  172. package/dist/deno.js +0 -137
  173. package/dist/federation/builder.d.ts +0 -19
  174. package/dist/federation/callback.d.ts +0 -211
  175. package/dist/federation/collection.d.ts +0 -36
  176. package/dist/federation/context.d.ts +0 -757
  177. package/dist/federation/federation.d.ts +0 -689
  178. package/dist/federation/handler.d.ts +0 -44
  179. package/dist/federation/handler.js +0 -543
  180. package/dist/federation/middleware.d.ts +0 -101
  181. package/dist/federation/negotiation.js +0 -63
  182. package/dist/federation/retry.d.ts +0 -71
  183. package/dist/federation/router.d.ts +0 -92
  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 -17
  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,757 +0,0 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "../runtime/docloader.js";
4
- import { JsonValue, NodeInfo } from "../nodeinfo/types.js";
5
- import { GetNodeInfoOptions } from "../nodeinfo/client.js";
6
- import { Activity$1 as Activity, Collection$1 as Collection, CryptographicKey$1 as CryptographicKey, Link$2 as Link, Multikey$1 as Multikey, Object$1 } from "../vocab/vocab.js";
7
- import { Actor, Recipient } from "../vocab/actor.js";
8
- import { GetKeyOwnerOptions } from "../sig/owner.js";
9
- import { LookupObjectOptions, TraverseCollectionOptions } from "../vocab/lookup.js";
10
- import { ResourceDescriptor } from "../webfinger/jrd.js";
11
- import { LookupWebFingerOptions } from "../webfinger/lookup.js";
12
- import { SenderKeyPair } from "./send.js";
13
- import { Federation } from "./federation.js";
14
- import { TracerProvider } from "@opentelemetry/api";
15
-
16
- //#region federation/context.d.ts
17
- /**
18
- * A context.
19
- */
20
- /**
21
- * A context.
22
- */
23
- interface Context<TContextData> {
24
- /**
25
- * The origin of the federated server, including the scheme (`http://` or
26
- * `https://`) and the host (e.g., `example.com:8080`).
27
- * @since 0.12.0
28
- */
29
- readonly origin: string;
30
- /**
31
- * The canonical origin of the federated server, including the scheme
32
- * (`http://` or `https://`) and the host (e.g., `example.com:8080`).
33
- *
34
- * When the associated {@link Federation} object does not have any explicit
35
- * canonical origin, it is the same as the {@link Context.origin}.
36
- * @since 1.5.0
37
- */
38
- readonly canonicalOrigin: string;
39
- /**
40
- * The host of the federated server, including the hostname
41
- * (e.g., `example.com`) and the port following a colon (e.g., `:8080`)
42
- * if it is not the default port for the scheme.
43
- * @since 0.12.0
44
- */
45
- readonly host: string;
46
- /**
47
- * The hostname of the federated server (e.g., `example.com`). This is
48
- * the same as the host without the port.
49
- * @since 0.12.0
50
- */
51
- readonly hostname: string;
52
- /**
53
- * The user-defined data associated with the context.
54
- */
55
- readonly data: TContextData;
56
- /**
57
- * The OpenTelemetry tracer provider.
58
- * @since 1.3.0
59
- */
60
- readonly tracerProvider: TracerProvider;
61
- /**
62
- * The document loader for loading remote JSON-LD documents.
63
- */
64
- readonly documentLoader: DocumentLoader;
65
- /**
66
- * The context loader for loading remote JSON-LD contexts.
67
- */
68
- readonly contextLoader: DocumentLoader;
69
- /**
70
- * The federation object that this context belongs to.
71
- * @since 1.6.0
72
- */
73
- readonly federation: Federation<TContextData>;
74
- /**
75
- * Creates a new context with the same properties as this one,
76
- * but with the given data.
77
- * @param data The new data to associate with the context.
78
- * @returns A new context with the same properties as this one,
79
- * but with the given data.
80
- * @since 1.6.0
81
- */
82
- clone(data: TContextData): Context<TContextData>;
83
- /**
84
- * Builds the URI of the NodeInfo document.
85
- * @returns The NodeInfo URI.
86
- * @throws {RouterError} If no NodeInfo dispatcher is available.
87
- * @since 0.2.0
88
- */
89
- getNodeInfoUri(): URL;
90
- /**
91
- * Builds the URI of an actor with the given identifier.
92
- * @param identifier The actor's identifier.
93
- * @returns The actor's URI.
94
- * @throws {RouterError} If no actor dispatcher is available.
95
- */
96
- getActorUri(identifier: string): URL;
97
- /**
98
- * Builds the URI of an object with the given class and values.
99
- * @param cls The class of the object.
100
- * @param values The values to pass to the object dispatcher.
101
- * @returns The object's URI.
102
- * @throws {RouteError} If no object dispatcher is available for the class.
103
- * @throws {TypeError} If values are invalid.
104
- * @since 0.7.0
105
- */
106
- getObjectUri<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
107
- typeId: URL;
108
- }, values: Record<string, string>): URL;
109
- /**
110
- * Builds the URI of an actor's outbox with the given identifier.
111
- * @param identifier The actor's identifier.
112
- * @returns The actor's outbox URI.
113
- * @throws {RouterError} If no outbox dispatcher is available.
114
- */
115
- getOutboxUri(identifier: string): URL;
116
- /**
117
- * Builds the URI of the shared inbox.
118
- * @returns The shared inbox URI.
119
- * @throws {RouterError} If no inbox listener is available.
120
- */
121
- getInboxUri(): URL;
122
- /**
123
- * Builds the URI of an actor's inbox with the given identifier.
124
- * @param identifier The actor's identifier.
125
- * @returns The actor's inbox URI.
126
- * @throws {RouterError} If no inbox listener is available.
127
- */
128
- getInboxUri(identifier: string): URL;
129
- /**
130
- * Builds the URI of an actor's following collection with the given
131
- * identifier.
132
- * @param identifier The actor's identifier.
133
- * @returns The actor's following collection URI.
134
- * @throws {RouterError} If no following collection is available.
135
- */
136
- getFollowingUri(identifier: string): URL;
137
- /**
138
- * Builds the URI of an actor's followers collection with the given
139
- * identifier.
140
- * @param identifier The actor's identifier.
141
- * @returns The actor's followers collection URI.
142
- * @throws {RouterError} If no followers collection is available.
143
- */
144
- getFollowersUri(identifier: string): URL;
145
- /**
146
- * Builds the URI of an actor's liked collection with the given identifier.
147
- * @param identifier The actor's identifier.
148
- * @returns The actor's liked collection URI.
149
- * @throws {RouterError} If no liked collection is available.
150
- * @since 0.11.0
151
- */
152
- getLikedUri(identifier: string): URL;
153
- /**
154
- * Builds the URI of an actor's featured collection with the given identifier.
155
- * @param identifier The actor's identifier.
156
- * @returns The actor's featured collection URI.
157
- * @throws {RouterError} If no featured collection is available.
158
- * @since 0.11.0
159
- */
160
- getFeaturedUri(identifier: string): URL;
161
- /**
162
- * Builds the URI of an actor's featured tags collection with the given
163
- * identifier.
164
- * @param identifier The actor's identifier.
165
- * @returns The actor's featured tags collection URI.
166
- * @throws {RouterError} If no featured tags collection is available.
167
- * @since 0.11.0
168
- */
169
- getFeaturedTagsUri(identifier: string): URL;
170
- /**
171
- * Determines the type of the URI and extracts the associated data.
172
- * @param uri The URI to parse.
173
- * @returns The result of parsing the URI. If `null` is given or
174
- * the URI is not recognized, `null` is returned.
175
- * @since 0.9.0
176
- */
177
- parseUri(uri: URL | null): ParseUriResult | null;
178
- /**
179
- * Gets the key pairs for an actor.
180
- * @param identifier The actor's identifier.
181
- * @returns An async iterable of the actor's key pairs. It can be empty.
182
- * @since 0.10.0
183
- */
184
- getActorKeyPairs(identifier: string): Promise<ActorKeyPair[]>;
185
- /**
186
- * Gets an authenticated {@link DocumentLoader} for the given identity.
187
- * Note that an authenticated document loader intentionally does not cache
188
- * the fetched documents.
189
- * @param identity The identity to get the document loader for.
190
- * The actor's identifier or username.
191
- * @returns The authenticated document loader.
192
- * @throws {Error} If the identity is not valid.
193
- * @throws {TypeError} If the key is invalid or unsupported.
194
- * @since 0.4.0
195
- */
196
- getDocumentLoader(identity: {
197
- identifier: string;
198
- } | {
199
- username: string;
200
- } | {
201
- handle: string;
202
- }): Promise<DocumentLoader>;
203
- /**
204
- * Gets an authenticated {@link DocumentLoader} for the given identity.
205
- * Note that an authenticated document loader intentionally does not cache
206
- * the fetched documents.
207
- * @param identity The identity to get the document loader for.
208
- * The actor's key pair.
209
- * @returns The authenticated document loader.
210
- * @throws {TypeError} If the key is invalid or unsupported.
211
- * @since 0.4.0
212
- */
213
- getDocumentLoader(identity: {
214
- keyId: URL;
215
- privateKey: CryptoKey;
216
- }): DocumentLoader;
217
- /**
218
- * Looks up an ActivityStreams object by its URI (including `acct:` URIs)
219
- * or a fediverse handle (e.g., `@user@server` or `user@server`).
220
- *
221
- * @example
222
- * ``` typescript
223
- * // Look up an actor by its fediverse handle:
224
- * await ctx.lookupObject("@hongminhee@fosstodon.org");
225
- * // returning a `Person` object.
226
- *
227
- * // A fediverse handle can omit the leading '@':
228
- * await ctx.lookupObject("hongminhee@fosstodon.org");
229
- * // returning a `Person` object.
230
- *
231
- * // A `acct:` URI can be used as well:
232
- * await ctx.lookupObject("acct:hongminhee@fosstodon.org");
233
- * // returning a `Person` object.
234
- *
235
- * // Look up an object by its URI:
236
- * await ctx.lookupObject("https://todon.eu/@hongminhee/112060633798771581");
237
- * // returning a `Note` object.
238
- *
239
- * // It can be a `URL` object as well:
240
- * await ctx.lookupObject(
241
- * new URL("https://todon.eu/@hongminhee/112060633798771581")
242
- * );
243
- * // returning a `Note` object.
244
- * ```
245
- *
246
- * It's almost the same as the {@link lookupObject} function, but it uses
247
- * the context's document loader and context loader by default.
248
- *
249
- * @param identifier The URI or fediverse handle to look up.
250
- * @param options Lookup options.
251
- * @returns The object, or `null` if not found.
252
- * @since 0.15.0
253
- */
254
- lookupObject(identifier: string | URL, options?: LookupObjectOptions): Promise<Object$1 | null>;
255
- /**
256
- * Traverses a collection, yielding each item in the collection.
257
- * If the collection is paginated, it will fetch the next page
258
- * automatically.
259
- *
260
- * @example
261
- * ``` typescript
262
- * const collection = await ctx.lookupObject(collectionUrl);
263
- * if (collection instanceof Collection) {
264
- * for await (const item of ctx.traverseCollection(collection)) {
265
- * console.log(item.id?.href);
266
- * }
267
- * }
268
- * ```
269
- *
270
- * It's almost the same as the {@link traverseCollection} function, but it
271
- * uses the context's document loader and context loader by default.
272
- * @param collection The collection to traverse.
273
- * @param options Options for traversing the collection.
274
- * @returns An async iterable of each item in the collection.
275
- * @since 1.1.0
276
- */
277
- traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
278
- /**
279
- * Fetches the NodeInfo document from the given URL.
280
- * @param url The base URL of the server. If `options.direct` is turned off
281
- * (default), the NodeInfo document will be fetched from
282
- * the `.well-known` location of this URL (hence the only origin
283
- * of the URL is used). If `options.direct` is turned on,
284
- * the NodeInfo document will be fetched from the given URL.
285
- * @param options Options for fetching the NodeInfo document.
286
- * @returns The NodeInfo document if it could be fetched successfully.
287
- * Otherwise, `undefined` is returned.
288
- * @since 1.4.0
289
- */
290
- lookupNodeInfo(url: URL | string, options?: GetNodeInfoOptions & {
291
- parse?: "strict" | "best-effort";
292
- }): Promise<NodeInfo | undefined>;
293
- /**
294
- * Fetches the NodeInfo document from the given URL.
295
- * @param url The base URL of the server. If `options.direct` is turned off
296
- * (default), the NodeInfo document will be fetched from
297
- * the `.well-known` location of this URL (hence the only origin
298
- * of the URL is used). If `options.direct` is turned on,
299
- * the NodeInfo document will be fetched from the given URL.
300
- * @param options Options for fetching the NodeInfo document.
301
- * @returns The NodeInfo document if it could be fetched successfully.
302
- * Otherwise, `undefined` is returned.
303
- * @since 1.4.0
304
- */
305
- lookupNodeInfo(url: URL | string, options?: GetNodeInfoOptions & {
306
- parse: "none";
307
- }): Promise<JsonValue | undefined>;
308
- /**
309
- * Looks up a WebFinger resource.
310
- *
311
- * It's almost the same as the {@link lookupWebFinger} function, but it uses
312
- * the context's configuration by default.
313
- *
314
- * @param resource The resource URL to look up.
315
- * @param options Extra options for looking up the resource.
316
- * @returns The resource descriptor, or `null` if not found.
317
- * @since 1.6.0
318
- */
319
- lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
320
- /**
321
- * Sends an activity to recipients' inboxes.
322
- * @param sender The sender's identifier or the sender's username or
323
- * the sender's key pair(s).
324
- * @param recipients The recipients of the activity.
325
- * @param activity The activity to send.
326
- * @param options Options for sending the activity.
327
- */
328
- sendActivity(sender: SenderKeyPair | SenderKeyPair[] | {
329
- identifier: string;
330
- } | {
331
- username: string;
332
- } | {
333
- handle: string;
334
- }, recipients: Recipient | Recipient[], activity: Activity, options?: SendActivityOptions): Promise<void>;
335
- /**
336
- * Sends an activity to the outboxes of the sender's followers.
337
- * @param sender The sender's identifier or the sender's username.
338
- * @param recipients In this case, it must be `"followers"`.
339
- * @param activity The activity to send.
340
- * @param options Options for sending the activity.
341
- * @throws {Error} If no followers collection is registered.
342
- * @since 0.14.0
343
- */
344
- sendActivity(sender: {
345
- identifier: string;
346
- } | {
347
- username: string;
348
- } | {
349
- handle: string;
350
- }, recipients: "followers", activity: Activity, options?: SendActivityOptionsForCollection): Promise<void>;
351
- /**
352
- * Manually routes an activity to the appropriate inbox listener.
353
- *
354
- * It is useful for routing an activity that is not received from the network,
355
- * or for routing an activity that is enclosed in another activity.
356
- *
357
- * Note that the activity will be verified if it has Object Integrity Proofs
358
- * or is equivalent to the actual remote object. If the activity is not
359
- * verified, it will be rejected.
360
- * @param recipient The recipient of the activity. If it is `null`,
361
- * the activity will be routed to the shared inbox.
362
- * Otherwise, the activity will be routed to the personal
363
- * inbox of the recipient with the given identifier.
364
- * @param activity The activity to route. It must have a proof or
365
- * a dereferenceable `id` to verify the activity.
366
- * @param options Options for routing the activity.
367
- * @returns `true` if the activity is successfully verified and routed.
368
- * Otherwise, `false`.
369
- * @since 1.3.0
370
- */
371
- routeActivity(recipient: string | null, activity: Activity, options?: RouteActivityOptions): Promise<boolean>;
372
- }
373
- /**
374
- * A context for a request.
375
- */
376
- interface RequestContext<TContextData> extends Context<TContextData> {
377
- /**
378
- * The request object.
379
- */
380
- readonly request: Request;
381
- /**
382
- * The URL of the request.
383
- */
384
- readonly url: URL;
385
- /**
386
- * Creates a new context with the same properties as this one,
387
- * but with the given data.
388
- * @param data The new data to associate with the context.
389
- * @returns A new context with the same properties as this one,
390
- * but with the given data.
391
- * @since 1.6.0
392
- */
393
- clone(data: TContextData): RequestContext<TContextData>;
394
- /**
395
- * Gets an {@link Actor} object for the given identifier.
396
- * @param identifier The actor's identifier.
397
- * @returns The actor object, or `null` if the actor is not found.
398
- * @throws {Error} If no actor dispatcher is available.
399
- * @since 0.7.0
400
- */
401
- getActor(identifier: string): Promise<Actor | null>;
402
- /**
403
- * Gets an object of the given class with the given values.
404
- * @param cls The class to instantiate.
405
- * @param values The values to pass to the object dispatcher.
406
- * @returns The object of the given class with the given values, or `null`
407
- * if the object is not found.
408
- * @throws {Error} If no object dispatcher is available for the class.
409
- * @throws {TypeError} If values are invalid.
410
- * @since 0.7.0
411
- */
412
- getObject<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
413
- typeId: URL;
414
- }, values: Record<string, string>): Promise<TObject | null>;
415
- /**
416
- * Gets the public key of the sender, if any exists and it is verified.
417
- * Otherwise, `null` is returned.
418
- *
419
- * This can be used for implementing [authorized fetch] (also known as
420
- * secure mode) in ActivityPub.
421
- *
422
- * [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
423
- *
424
- * @returns The public key of the sender, or `null` if the sender is not verified.
425
- * @since 0.7.0
426
- */
427
- getSignedKey(): Promise<CryptographicKey | null>;
428
- /**
429
- * Gets the public key of the sender, if any exists and it is verified.
430
- * Otherwise, `null` is returned.
431
- *
432
- * This can be used for implementing [authorized fetch] (also known as
433
- * secure mode) in ActivityPub.
434
- *
435
- * [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
436
- *
437
- * @param options Options for getting the signed key. You usually may want to
438
- * specify the custom `documentLoader` so that making
439
- * an HTTP request to the sender's server is signed with
440
- * your [instance actor].
441
- * @returns The public key of the sender, or `null` if the sender is not verified.
442
- * @since 1.5.0
443
- *
444
- * [instance actor]: https://swicg.github.io/activitypub-http-signature/#instance-actor
445
- */
446
- getSignedKey(options: GetSignedKeyOptions): Promise<CryptographicKey | null>;
447
- /**
448
- * Gets the owner of the signed key, if any exists and it is verified.
449
- * Otherwise, `null` is returned.
450
- *
451
- * This can be used for implementing [authorized fetch] (also known as
452
- * secure mode) in ActivityPub.
453
- *
454
- * [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
455
- *
456
- * @returns The owner of the signed key, or `null` if the key is not verified
457
- * or the owner is not found.
458
- * @since 0.7.0
459
- */
460
- getSignedKeyOwner(): Promise<Actor | null>;
461
- /**
462
- * Gets the owner of the signed key, if any exists and it is verified.
463
- * Otherwise, `null` is returned.
464
- *
465
- * This can be used for implementing [authorized fetch] (also known as
466
- * secure mode) in ActivityPub.
467
- *
468
- * [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
469
- *
470
- * @param options Options for getting the key owner. You usually may want to
471
- * specify the custom `documentLoader` so that making
472
- * an HTTP request to the key owner's server is signed with
473
- * your [instance actor].
474
- * @returns The owner of the signed key, or `null` if the key is not verified
475
- * or the owner is not found.
476
- * @since 1.5.0
477
- *
478
- * [instance actor]: https://swicg.github.io/activitypub-http-signature/#instance-actor
479
- */
480
- getSignedKeyOwner(options: GetKeyOwnerOptions): Promise<Actor | null>;
481
- }
482
- /**
483
- * A context for inbox listeners.
484
- * @since 1.0.0
485
- */
486
- interface InboxContext<TContextData> extends Context<TContextData> {
487
- /**
488
- * The identifier of the recipient of the inbox. If the inbox is a shared
489
- * inbox, it is `null`.
490
- * @since 1.2.0
491
- */
492
- recipient: string | null;
493
- /**
494
- * Creates a new context with the same properties as this one,
495
- * but with the given data.
496
- * @param data The new data to associate with the context.
497
- * @returns A new context with the same properties as this one,
498
- * but with the given data.
499
- * @since 1.6.0
500
- */
501
- clone(data: TContextData): InboxContext<TContextData>;
502
- /**
503
- * Forwards a received activity to the recipients' inboxes. The forwarded
504
- * activity will be signed in HTTP Signatures by the forwarder, but its
505
- * payload will not be modified, i.e., Linked Data Signatures and Object
506
- * Integrity Proofs will not be added. Therefore, if the activity is not
507
- * signed (i.e., it has neither Linked Data Signatures nor Object Integrity
508
- * Proofs), the recipient probably will not trust the activity.
509
- * @param forwarder The forwarder's identifier or the forwarder's username
510
- * or the forwarder's key pair(s).
511
- * @param recipients The recipients of the activity.
512
- * @param options Options for forwarding the activity.
513
- * @since 1.0.0
514
- */
515
- forwardActivity(forwarder: SenderKeyPair | SenderKeyPair[] | {
516
- identifier: string;
517
- } | {
518
- username: string;
519
- } | {
520
- handle: string;
521
- }, recipients: Recipient | Recipient[], options?: ForwardActivityOptions): Promise<void>;
522
- /**
523
- * Forwards a received activity to the recipients' inboxes. The forwarded
524
- * activity will be signed in HTTP Signatures by the forwarder, but its
525
- * payload will not be modified, i.e., Linked Data Signatures and Object
526
- * Integrity Proofs will not be added. Therefore, if the activity is not
527
- * signed (i.e., it has neither Linked Data Signatures nor Object Integrity
528
- * Proofs), the recipient probably will not trust the activity.
529
- * @param forwarder The forwarder's identifier or the forwarder's username.
530
- * @param recipients In this case, it must be `"followers"`.
531
- * @param options Options for forwarding the activity.
532
- * @since 1.0.0
533
- */
534
- forwardActivity(forwarder: {
535
- identifier: string;
536
- } | {
537
- username: string;
538
- } | {
539
- handle: string;
540
- }, recipients: "followers", options?: ForwardActivityOptions): Promise<void>;
541
- }
542
- /**
543
- * A result of parsing an URI.
544
- */
545
- type ParseUriResult =
546
- /**
547
- * The case of an actor URI.
548
- */
549
- {
550
- readonly type: "actor";
551
- readonly identifier: string;
552
- readonly handle: string;
553
- }
554
- /**
555
- * The case of an object URI.
556
- */ | {
557
- readonly type: "object";
558
- readonly class: (new (...args: any[]) => Object$1) & {
559
- typeId: URL;
560
- };
561
- readonly typeId: URL;
562
- readonly values: Record<string, string>;
563
- }
564
- /**
565
- * The case of an shared inbox URI.
566
- */ | {
567
- readonly type: "inbox";
568
- readonly identifier: undefined;
569
- readonly handle: undefined;
570
- }
571
- /**
572
- * The case of an personal inbox URI.
573
- */ | {
574
- readonly type: "inbox";
575
- readonly identifier: string;
576
- readonly handle: string;
577
- }
578
- /**
579
- * The case of an outbox collection URI.
580
- */ | {
581
- readonly type: "outbox";
582
- readonly identifier: string;
583
- readonly handle: string;
584
- }
585
- /**
586
- * The case of a following collection URI.
587
- */ | {
588
- readonly type: "following";
589
- readonly identifier: string;
590
- readonly handle: string;
591
- }
592
- /**
593
- * The case of a followers collection URI.
594
- */ | {
595
- readonly type: "followers";
596
- readonly identifier: string;
597
- readonly handle: string;
598
- }
599
- /**
600
- * The case of a liked collection URI.
601
- * @since 0.11.0
602
- */ | {
603
- readonly type: "liked";
604
- readonly identifier: string;
605
- readonly handle: string;
606
- }
607
- /**
608
- * The case of a featured collection URI.
609
- * @since 0.11.0
610
- */ | {
611
- readonly type: "featured";
612
- readonly identifier: string;
613
- readonly handle: string;
614
- }
615
- /**
616
- * The case of a featured tags collection URI.
617
- * @since 0.11.0
618
- */ | {
619
- readonly type: "featuredTags";
620
- readonly identifier: string;
621
- readonly handle: string;
622
- };
623
- /**
624
- * Options for {@link Context.sendActivity} method.
625
- */
626
- interface SendActivityOptions {
627
- /**
628
- * Whether to prefer the shared inbox for the recipients.
629
- */
630
- preferSharedInbox?: boolean;
631
- /**
632
- * Whether to send the activity immediately, without enqueuing it.
633
- * If `true`, the activity will be sent immediately and the retrial
634
- * policy will not be applied.
635
- *
636
- * @since 0.3.0
637
- */
638
- immediate?: boolean;
639
- /**
640
- * Determines how activities are queued when sent to multiple recipients.
641
- *
642
- * - "auto" (default): Automatically chooses optimal strategy based on
643
- * recipient count.
644
- * - "skip": Always enqueues individual messages per recipient,
645
- * bypassing the fanout queue. Use when payload needs to vary per recipient.
646
- * - "force": Always uses fanout queue regardless of recipient count.
647
- * Useful for testing or special cases.
648
- *
649
- * This option is ignored when `immediate: true` is specified, as immediate
650
- * delivery bypasses all queuing mechanisms.
651
- *
652
- * @default `"auto"`
653
- * @since 1.5.0
654
- */
655
- fanout?: "auto" | "skip" | "force";
656
- /**
657
- * The base URIs to exclude from the recipients' inboxes. It is useful
658
- * for excluding the recipients having the same shared inbox with the sender.
659
- *
660
- * Note that the only `origin` parts of the `URL`s are compared.
661
- *
662
- * @since 0.9.0
663
- */
664
- excludeBaseUris?: URL[];
665
- }
666
- /**
667
- * Options for {@link Context.sendActivity} method when sending to a collection.
668
- * @since 1.5.0
669
- */
670
- interface SendActivityOptionsForCollection extends SendActivityOptions {
671
- /**
672
- * Whether to synchronize the collection using `Collection-Synchronization`
673
- * header ([FEP-8fcf]).
674
- *
675
- * [FEP-8fcf]: https://w3id.org/fep/8fcf
676
- */
677
- syncCollection?: boolean;
678
- }
679
- /**
680
- * Options for {@link InboxContext.forwardActivity} method.
681
- * @since 1.0.0
682
- */
683
- type ForwardActivityOptions = Omit<SendActivityOptions, "fanout"> & {
684
- /**
685
- * Whether to skip forwarding the activity if it is not signed, i.e., it has
686
- * neither Linked Data Signatures nor Object Integrity Proofs.
687
- *
688
- * If the activity is not signed, the recipient probably will not trust the
689
- * activity. Therefore, it is recommended to skip forwarding the activity
690
- * if it is not signed.
691
- */
692
- skipIfUnsigned: boolean;
693
- };
694
- /**
695
- * Options for {@link Context.routeActivity} method.
696
- * @since 1.3.0
697
- */
698
- interface RouteActivityOptions {
699
- /**
700
- * Whether to skip enqueuing the activity and invoke the listener immediately.
701
- * If no inbox queue is available, this option is ignored and the activity
702
- * will be always invoked immediately.
703
- * @default false
704
- */
705
- immediate?: boolean;
706
- /**
707
- * The document loader for loading remote JSON-LD documents.
708
- */
709
- documentLoader?: DocumentLoader;
710
- /**
711
- * The context loader for loading remote JSON-LD contexts.
712
- */
713
- contextLoader?: DocumentLoader;
714
- /**
715
- * The OpenTelemetry tracer provider. If omitted, the global tracer provider
716
- * is used.
717
- */
718
- tracerProvider?: TracerProvider;
719
- }
720
- /**
721
- * Options for {@link Context.getSignedKey} method.
722
- * @since 1.5.0
723
- */
724
- interface GetSignedKeyOptions {
725
- /**
726
- * The document loader for loading remote JSON-LD documents.
727
- */
728
- documentLoader?: DocumentLoader;
729
- /**
730
- * The context loader for loading remote JSON-LD contexts.
731
- */
732
- contextLoader?: DocumentLoader;
733
- /**
734
- * The OpenTelemetry tracer provider. If omitted, the global tracer provider
735
- * is used.
736
- */
737
- tracerProvider?: TracerProvider;
738
- }
739
- /**
740
- * A pair of a public key and a private key in various formats.
741
- * @since 0.10.0
742
- */
743
- interface ActorKeyPair extends CryptoKeyPair {
744
- /**
745
- * The URI of the public key, which is used for verifying HTTP Signatures.
746
- */
747
- keyId: URL;
748
- /**
749
- * A {@link CryptographicKey} instance of the public key.
750
- */
751
- cryptographicKey: CryptographicKey;
752
- /**
753
- * A {@link Multikey} instance of the public key.
754
- */
755
- multikey: Multikey;
756
- } //#endregion
757
- export { ActorKeyPair, Context, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, ParseUriResult, RequestContext, RouteActivityOptions, SendActivityOptions, SendActivityOptionsForCollection };