@fedify/fedify 2.0.0-dev.1485 → 2.0.0-dev.150

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 (311) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +38 -18
  3. package/dist/actor-Bhc5FasL.cjs +42079 -0
  4. package/dist/{actor-7ivEf1H3.js → actor-C6cDxaJJ.js} +4 -1
  5. package/dist/{actor-DXTdNCfp.js → actor-DPvScYuz.js} +7058 -2722
  6. package/dist/{actor-C22bXuuC.d.ts → actor-DqFajh9s.d.ts} +2 -2
  7. package/dist/actor-f2NtjyCg.d.cts +128 -0
  8. package/dist/{assert-MZs1qjMx.js → assert-Dp5_aoAs.js} +1 -1
  9. package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-D1m8F7x0.js} +1 -1
  10. package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-B2R_8p36.js} +1 -1
  11. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-BoKYY0g1.js} +2 -2
  12. package/dist/{assert_is_error-BPGph1Jx.js → assert_throws-DjkXin1a.js} +32 -2
  13. package/dist/{builder-BPGqEvtB.js → builder-DcDoTCBH.js} +20 -8
  14. package/dist/chunk-DqRYRqnO.cjs +34 -0
  15. package/dist/chunk-HsBuZ-b2.js +41 -0
  16. package/dist/client-94iWEfQa.d.cts +222 -0
  17. package/dist/{client-DF8anIB5.d.ts → client-BsGzbnV-.d.ts} +3 -75
  18. package/dist/{client-g2FDBoeY.js → client-CD87uCL_.js} +4 -23
  19. package/dist/compat/mod.cjs +10 -0
  20. package/dist/compat/mod.d.cts +11 -0
  21. package/dist/compat/mod.d.ts +10 -12
  22. package/dist/compat/mod.js +5 -5
  23. package/dist/compat/transformers.test.js +29 -24
  24. package/dist/compat-DmDDELst.cjs +4 -0
  25. package/dist/compat-nxUqe4Z-.js +4 -0
  26. package/dist/context-DBQ7nMCw.d.cts +2449 -0
  27. package/dist/context-DpN-0qNU.js +109 -0
  28. package/dist/{context-DmlbRh9p.d.ts → context-mM0Nu5yo.d.ts} +335 -134
  29. package/dist/deno-DHmnBq8X.js +131 -0
  30. package/dist/{testing-BG_8Fyas.js → dist-lStjlyET.js} +73 -114
  31. package/dist/{authdocloader-D_IvQE4z.js → docloader-C2QNrF7j.js} +17 -8
  32. package/dist/{esm-CPZhxxGc.js → esm-B52TuumP.js} +32 -17
  33. package/dist/federation/builder.test.js +16 -16
  34. package/dist/federation/collection.test.js +9 -12
  35. package/dist/federation/handler.test.js +123 -152
  36. package/dist/federation/idempotency.test.js +206 -0
  37. package/dist/federation/inbox.test.js +7 -7
  38. package/dist/federation/keycache.test.js +7 -8
  39. package/dist/federation/kv.test.js +64 -12
  40. package/dist/federation/middleware.test.js +281 -99
  41. package/dist/federation/mod.cjs +27 -0
  42. package/dist/federation/mod.d.cts +11 -0
  43. package/dist/federation/mod.d.ts +11 -13
  44. package/dist/federation/mod.js +13 -15
  45. package/dist/federation/mq.test.js +12 -13
  46. package/dist/federation/negotiation.test.js +25 -0
  47. package/dist/federation/retry.test.js +4 -6
  48. package/dist/federation/router.test.js +9 -11
  49. package/dist/federation/send.test.js +61 -18
  50. package/dist/federation-CoW-KDKv.cjs +266 -0
  51. package/dist/{federation-CMX7WzeL.js → federation-D0hkM4T7.js} +25 -3
  52. package/dist/{http-zsOxPKCt.js → http-B1d-Jhbj.js} +260 -10
  53. package/dist/{http-DqSNLFNY.d.ts → http-BbO0ejuk.d.ts} +2 -2
  54. package/dist/http-CS6iqtXa.cjs +1106 -0
  55. package/dist/http-M8k5mKc0.d.cts +253 -0
  56. package/dist/{http-C7rxW7Kh.js → http-b10BrywC.js} +4 -3
  57. package/dist/{inbox-eK2W2MF3.js → inbox-gPnuScsy.js} +26 -7
  58. package/dist/{key-CYOcZ9G5.js → key-W6YaI4J_.js} +4 -2
  59. package/dist/{keycache-BLq6GT4_.js → keycache-DkTZcjkH.js} +1 -1
  60. package/dist/{keys-BIwlbtMN.js → keys-CfcSjjys.js} +2 -1
  61. package/dist/{kv-C7sopW2E.d.ts → kv-BpJND1Hr.d.ts} +30 -1
  62. package/dist/{kv-CRZrzyXm.js → kv-DaWUKuhD.js} +22 -0
  63. package/dist/kv-cD_d4hg-.d.cts +110 -0
  64. package/dist/kv-cache-C6NrTtII.js +107 -0
  65. package/dist/kv-cache-DhRe6qxQ.js +122 -0
  66. package/dist/kv-cache-a7LD3ze0.cjs +134 -0
  67. package/dist/{ld-DWwLYT4e.js → ld-UYagkye9.js} +7 -4
  68. package/dist/lookup-C-ajaa9S.js +256 -0
  69. package/dist/{lookup-DNQyH8UQ.js → lookup-CjgzNtAk.js} +33 -125
  70. package/dist/lookup-DI7YTXtl.cjs +268 -0
  71. package/dist/{lookup-BHYMosdS.js → lookup-DP8Hm9oD.js} +3 -1
  72. package/dist/middleware-Botvlnr6.js +31 -0
  73. package/dist/{middleware-DakCaqXu.js → middleware-C2V0Hmj1.js} +105 -188
  74. package/dist/middleware-D5o8ITlx.cjs +4237 -0
  75. package/dist/middleware-ESmU0CBL.cjs +15 -0
  76. package/dist/middleware-JqrIzuk6.js +15 -0
  77. package/dist/{middleware-BcVqlHyD.js → middleware-V7PNM-lv.js} +143 -136
  78. package/dist/mod-B-hUPT2N.d.cts +1 -0
  79. package/dist/{mod-Cxt4Kpf6.d.ts → mod-BlVovdcy.d.ts} +20 -2
  80. package/dist/mod-BxRCHTz-.d.cts +307 -0
  81. package/dist/mod-C58MZ7Wx.d.cts +113 -0
  82. package/dist/mod-CAdoBu0x.d.ts +109 -0
  83. package/dist/mod-CcDPcLJW.d.cts +1 -0
  84. package/dist/{mod-Drmz72EK.d.ts → mod-D5Z2tISD.d.ts} +3 -3
  85. package/dist/mod-DgxG-byT.d.cts +266 -0
  86. package/dist/{lookup-3czM5mmU.d.ts → mod-Ds0mpFZU.d.ts} +9 -2
  87. package/dist/mod-Dy2fJtmN.d.cts +80 -0
  88. package/dist/{mod-0EysZ-dJ.d.ts → mod-GetHzY6F.d.ts} +2 -2
  89. package/dist/mod-fxr25Gv7.d.cts +107 -0
  90. package/dist/mod.cjs +137 -0
  91. package/dist/mod.d.cts +15 -0
  92. package/dist/mod.d.ts +15 -18
  93. package/dist/mod.js +19 -21
  94. package/dist/negotiation-B4NJHk1f.js +71 -0
  95. package/dist/nodeinfo/client.test.js +32 -114
  96. package/dist/nodeinfo/handler.test.js +35 -30
  97. package/dist/nodeinfo/mod.cjs +10 -0
  98. package/dist/nodeinfo/mod.d.cts +3 -0
  99. package/dist/nodeinfo/mod.d.ts +3 -5
  100. package/dist/nodeinfo/mod.js +6 -7
  101. package/dist/nodeinfo/types.test.js +10 -18
  102. package/dist/nodeinfo-BnthBobC.js +4 -0
  103. package/dist/nodeinfo-CdN0rEnZ.cjs +4 -0
  104. package/dist/otel/exporter.test.js +899 -0
  105. package/dist/otel/mod.cjs +262 -0
  106. package/dist/otel/mod.d.cts +230 -0
  107. package/dist/otel/mod.d.ts +232 -0
  108. package/dist/otel/mod.js +261 -0
  109. package/dist/owner-B4HbyP8s.d.cts +67 -0
  110. package/dist/{owner-smArESGi.js → owner-DgNCw_Z-.js} +46 -8
  111. package/dist/{owner-CQPnQVtf.d.ts → owner-kQRGVXG1.d.ts} +3 -3
  112. package/dist/{proof-C6z-uqeO.js → proof-BwleRoo3.js} +5 -3
  113. package/dist/proof-M11sS3Oq.cjs +710 -0
  114. package/dist/{proof-CT1SITRP.js → proof-TlLZC_r7.js} +53 -16
  115. package/dist/router-CVRQXlZi.js +118 -0
  116. package/dist/{send-1zdmNlUo.js → send-BMU9B7Sm.js} +9 -4
  117. package/dist/sig/http.test.js +19 -17
  118. package/dist/sig/key.test.js +15 -14
  119. package/dist/sig/ld.test.js +13 -12
  120. package/dist/sig/mod.cjs +28 -0
  121. package/dist/sig/mod.d.cts +6 -0
  122. package/dist/sig/mod.d.ts +5 -7
  123. package/dist/sig/mod.js +8 -10
  124. package/dist/sig/owner.test.js +40 -15
  125. package/dist/sig/proof.test.js +19 -17
  126. package/dist/sig-C34-oHBl.js +4 -0
  127. package/dist/sig-YYj5tCnr.cjs +4 -0
  128. package/dist/{std__assert-X-_kMxKM.js → std__assert-Cm-MfI66.js} +1 -1
  129. package/dist/testing/mod.d.ts +410 -232
  130. package/dist/testing/mod.js +9 -4
  131. package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
  132. package/dist/transformers-CoBS-oFG.cjs +116 -0
  133. package/dist/type-BSNcIxTd.js +14 -0
  134. package/dist/{types-BzyGRkRt.js → types-BtUjyi5y.js} +9 -170
  135. package/dist/types-CWgzGaqk.cjs +315 -0
  136. package/dist/{types-BIgY6c-l.js → types-D2jhK2VG.js} +1 -3
  137. package/dist/{runtime/authdocloader.test.js → utils/docloader.test.js} +20 -18
  138. package/dist/utils/kv-cache.test.js +211 -0
  139. package/dist/utils/mod.cjs +12 -0
  140. package/dist/utils/mod.d.cts +5 -0
  141. package/dist/utils/mod.d.ts +7 -0
  142. package/dist/utils/mod.js +11 -0
  143. package/dist/utils-D-Va7aXC.js +4 -0
  144. package/dist/utils-DyRU1gdZ.cjs +4 -0
  145. package/dist/vocab/actor.test.js +15 -13
  146. package/dist/vocab/lookup.test.js +285 -12
  147. package/dist/vocab/mod.cjs +86 -0
  148. package/dist/vocab/mod.d.cts +4 -0
  149. package/dist/vocab/mod.d.ts +3 -5
  150. package/dist/vocab/mod.js +6 -7
  151. package/dist/vocab/type.test.js +4 -4
  152. package/dist/vocab/vocab.test.js +8058 -1987
  153. package/dist/{vocab-SOE1ifCr.d.ts → vocab-BCWe1Ih5.d.ts} +292 -21
  154. package/dist/vocab-CeDBzu-f.d.cts +14903 -0
  155. package/dist/{type-I68qwqmo.js → vocab-Durhw0Gx.js} +6947 -7381
  156. package/dist/{vocab-Bg1J3mu4.js → vocab-NOF1dCjQ.js} +32 -18
  157. package/dist/vocab-Vw1RxMp6.cjs +296 -0
  158. package/dist/webfinger/handler.test.js +62 -29
  159. package/dist/webfinger/lookup.test.js +11 -12
  160. package/dist/webfinger/mod.cjs +8 -0
  161. package/dist/webfinger/mod.d.cts +2 -0
  162. package/dist/webfinger/mod.d.ts +1 -4
  163. package/dist/webfinger/mod.js +5 -6
  164. package/dist/webfinger-C72Y8lrh.js +4 -0
  165. package/dist/webfinger-vAtLmxOF.cjs +4 -0
  166. package/package.json +81 -45
  167. package/dist/assert_throws-BOO88avQ.js +0 -39
  168. package/dist/authdocloader-Bq0gEHRj.js +0 -52
  169. package/dist/compat-Bb5myD13.js +0 -4
  170. package/dist/denokv-Bv33Xxea.js +0 -57
  171. package/dist/docloader-BlVueewg.js +0 -4615
  172. package/dist/docloader-CxWcuWqQ.d.ts +0 -221
  173. package/dist/fixtures/activitypub.academy/users/brauca_darradiul.json +0 -83
  174. package/dist/fixtures/example.com/announce.json +0 -6
  175. package/dist/fixtures/example.com/collection.json +0 -19
  176. package/dist/fixtures/example.com/create.json +0 -6
  177. package/dist/fixtures/example.com/cross-origin-actor.json +0 -6
  178. package/dist/fixtures/example.com/hong-gildong.json +0 -11
  179. package/dist/fixtures/example.com/invite.json +0 -7
  180. package/dist/fixtures/example.com/key.json +0 -7
  181. package/dist/fixtures/example.com/key2.json +0 -6
  182. package/dist/fixtures/example.com/object.json +0 -6
  183. package/dist/fixtures/example.com/orderedcollectionpage.json +0 -24
  184. package/dist/fixtures/example.com/paged/a.json +0 -13
  185. package/dist/fixtures/example.com/paged/b.json +0 -16
  186. package/dist/fixtures/example.com/paged-collection.json +0 -6
  187. package/dist/fixtures/example.com/person.json +0 -22
  188. package/dist/fixtures/example.com/person2.json +0 -40
  189. package/dist/fixtures/example.com/test.json +0 -5
  190. package/dist/fixtures/example.com/users/handle.json +0 -16
  191. package/dist/fixtures/example.com/wrong-type.json +0 -3
  192. package/dist/fixtures/oeee.cafe/ap/users/3609fd4e-d51d-4db8-9f04-4189815864dd.json +0 -24
  193. package/dist/fixtures/remote.domain/users/bob.json +0 -20
  194. package/dist/fixtures/server.example/users/alice.json +0 -20
  195. package/dist/fixtures/w3id.org/identity/v1.json +0 -152
  196. package/dist/fixtures/w3id.org/security/data-integrity/v1.json +0 -74
  197. package/dist/fixtures/w3id.org/security/multikey/v1.json +0 -35
  198. package/dist/fixtures/w3id.org/security/v1.json +0 -50
  199. package/dist/fixtures/wizard.casa/users/hongminhee.json +0 -69
  200. package/dist/fixtures/www.w3.org/ns/activitystreams.json +0 -379
  201. package/dist/fixtures/www.w3.org/ns/did/v1.json +0 -58
  202. package/dist/key-Dn7Lram-.js +0 -260
  203. package/dist/key-S7WllAWz.js +0 -10
  204. package/dist/key-rRCUafNm.js +0 -10
  205. package/dist/middleware-CWbGhXnl.js +0 -26
  206. package/dist/middleware-D-OlNiyj.js +0 -17
  207. package/dist/mod-TFoH2Ql8.d.ts +0 -104
  208. package/dist/mod-g0xFzAP9.d.ts +0 -2
  209. package/dist/mq-CRGm1e_F.d.ts +0 -143
  210. package/dist/nodeinfo/semver.test.js +0 -143
  211. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  212. package/dist/runtime/docloader.test.js +0 -522
  213. package/dist/runtime/key.test.js +0 -103
  214. package/dist/runtime/langstr.test.d.ts +0 -3
  215. package/dist/runtime/langstr.test.js +0 -39
  216. package/dist/runtime/mod.d.ts +0 -8
  217. package/dist/runtime/mod.js +0 -13
  218. package/dist/runtime/multibase/multibase.test.d.ts +0 -3
  219. package/dist/runtime/multibase/multibase.test.js +0 -358
  220. package/dist/runtime/url.test.d.ts +0 -3
  221. package/dist/runtime/url.test.js +0 -45
  222. package/dist/runtime-BSkOVUWM.js +0 -4
  223. package/dist/semver-dArNLkR9.js +0 -149
  224. package/dist/sig-BXJO--F9.js +0 -4
  225. package/dist/src/vocab/accept.yaml +0 -15
  226. package/dist/src/vocab/activity.yaml +0 -98
  227. package/dist/src/vocab/add.yaml +0 -16
  228. package/dist/src/vocab/announce.yaml +0 -30
  229. package/dist/src/vocab/application.yaml +0 -324
  230. package/dist/src/vocab/arrive.yaml +0 -15
  231. package/dist/src/vocab/article.yaml +0 -46
  232. package/dist/src/vocab/audio.yaml +0 -11
  233. package/dist/src/vocab/block.yaml +0 -16
  234. package/dist/src/vocab/chatmessage.yaml +0 -50
  235. package/dist/src/vocab/collection.yaml +0 -154
  236. package/dist/src/vocab/collectionpage.yaml +0 -55
  237. package/dist/src/vocab/create.yaml +0 -28
  238. package/dist/src/vocab/dataintegrityproof.yaml +0 -56
  239. package/dist/src/vocab/delete.yaml +0 -27
  240. package/dist/src/vocab/didservice.yaml +0 -22
  241. package/dist/src/vocab/dislike.yaml +0 -14
  242. package/dist/src/vocab/document.yaml +0 -31
  243. package/dist/src/vocab/emoji.yaml +0 -12
  244. package/dist/src/vocab/emojireact.yaml +0 -17
  245. package/dist/src/vocab/endpoints.yaml +0 -85
  246. package/dist/src/vocab/event.yaml +0 -11
  247. package/dist/src/vocab/export.yaml +0 -9
  248. package/dist/src/vocab/flag.yaml +0 -15
  249. package/dist/src/vocab/follow.yaml +0 -19
  250. package/dist/src/vocab/group.yaml +0 -324
  251. package/dist/src/vocab/hashtag.yaml +0 -14
  252. package/dist/src/vocab/ignore.yaml +0 -14
  253. package/dist/src/vocab/image.yaml +0 -9
  254. package/dist/src/vocab/intransitiveactivity.yaml +0 -15
  255. package/dist/src/vocab/invite.yaml +0 -14
  256. package/dist/src/vocab/join.yaml +0 -14
  257. package/dist/src/vocab/key.yaml +0 -28
  258. package/dist/src/vocab/leave.yaml +0 -14
  259. package/dist/src/vocab/like.yaml +0 -16
  260. package/dist/src/vocab/link.yaml +0 -101
  261. package/dist/src/vocab/listen.yaml +0 -12
  262. package/dist/src/vocab/mention.yaml +0 -9
  263. package/dist/src/vocab/move.yaml +0 -15
  264. package/dist/src/vocab/multikey.yaml +0 -36
  265. package/dist/src/vocab/note.yaml +0 -48
  266. package/dist/src/vocab/object.yaml +0 -404
  267. package/dist/src/vocab/offer.yaml +0 -15
  268. package/dist/src/vocab/orderedcollection.yaml +0 -39
  269. package/dist/src/vocab/orderedcollectionpage.yaml +0 -50
  270. package/dist/src/vocab/organization.yaml +0 -324
  271. package/dist/src/vocab/page.yaml +0 -11
  272. package/dist/src/vocab/person.yaml +0 -324
  273. package/dist/src/vocab/place.yaml +0 -75
  274. package/dist/src/vocab/profile.yaml +0 -26
  275. package/dist/src/vocab/propertyvalue.yaml +0 -32
  276. package/dist/src/vocab/question.yaml +0 -103
  277. package/dist/src/vocab/read.yaml +0 -13
  278. package/dist/src/vocab/reject.yaml +0 -14
  279. package/dist/src/vocab/relationship.yaml +0 -52
  280. package/dist/src/vocab/remove.yaml +0 -14
  281. package/dist/src/vocab/service.yaml +0 -324
  282. package/dist/src/vocab/source.yaml +0 -26
  283. package/dist/src/vocab/tentativeaccept.yaml +0 -14
  284. package/dist/src/vocab/tentativereject.yaml +0 -14
  285. package/dist/src/vocab/tombstone.yaml +0 -24
  286. package/dist/src/vocab/travel.yaml +0 -16
  287. package/dist/src/vocab/undo.yaml +0 -26
  288. package/dist/src/vocab/update.yaml +0 -58
  289. package/dist/src/vocab/video.yaml +0 -11
  290. package/dist/src/vocab/view.yaml +0 -13
  291. package/dist/testing/docloader.test.js +0 -24
  292. package/dist/vocab/schema.yaml +0 -247
  293. package/dist/webfinger-C3GIyXIg.js +0 -4
  294. package/dist/x/cfworkers.d.ts +0 -61
  295. package/dist/x/cfworkers.js +0 -98
  296. package/dist/x/cfworkers.test.d.ts +0 -3
  297. package/dist/x/cfworkers.test.js +0 -179
  298. package/dist/x/hono.d.ts +0 -56
  299. package/dist/x/hono.js +0 -60
  300. package/dist/x/sveltekit.d.ts +0 -48
  301. package/dist/x/sveltekit.js +0 -68
  302. /package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Gbplq4lg.js} +0 -0
  303. /package/dist/{collection-CSzG2j1P.js → collection-CrkRM5Ep.js} +0 -0
  304. /package/dist/{nodeinfo/semver.test.d.ts → federation/idempotency.test.d.ts} +0 -0
  305. /package/dist/{runtime/authdocloader.test.d.ts → federation/negotiation.test.d.ts} +0 -0
  306. /package/dist/{mod-1pDWKvUL.d.ts → mod-CVgZgliM.d.ts} +0 -0
  307. /package/dist/{mod-GIh5OYxW.d.ts → mod-bjzj5QIb.d.ts} +0 -0
  308. /package/dist/{runtime/docloader.test.d.ts → otel/exporter.test.d.ts} +0 -0
  309. /package/dist/{retry-D4GJ670a.js → retry-Bz5pP75o.js} +0 -0
  310. /package/dist/{testing → utils}/docloader.test.d.ts +0 -0
  311. /package/dist/{runtime/key.test.d.ts → utils/kv-cache.test.d.ts} +0 -0
@@ -1,101 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
+ import { DocumentLoader, GetUserAgentOptions, LanguageString } from "@fedify/vocab-runtime";
4
5
  import { Span, TracerProvider } from "@opentelemetry/api";
6
+ export * from "@fedify/fixture";
5
7
 
6
- //#region src/runtime/docloader.d.ts
7
- /**
8
- * A remote JSON-LD document and its context fetched by
9
- * a {@link DocumentLoader}.
10
- */
11
- interface RemoteDocument {
12
- /**
13
- * The URL of the context document.
14
- */
15
- contextUrl: string | null;
16
- /**
17
- * The fetched JSON-LD document.
18
- */
19
- document: unknown;
20
- /**
21
- * The URL of the fetched document.
22
- */
23
- documentUrl: string;
24
- }
25
- /**
26
- * Options for {@link DocumentLoader}.
27
- * @since 1.8.0
28
- */
29
- interface DocumentLoaderOptions {
30
- /**
31
- * An `AbortSignal` for cancellation.
32
- * @since 1.8.0
33
- */
34
- signal?: AbortSignal;
35
- }
36
- /**
37
- * A JSON-LD document loader that fetches documents from the Web.
38
- * @param url The URL of the document to load.
39
- * @param options The options for the document loader.
40
- * @returns The loaded remote document.
41
- */
42
- type DocumentLoader = (url: string, options?: DocumentLoaderOptions) => Promise<RemoteDocument>;
43
- /**
44
- * A factory function that creates a {@link DocumentLoader} with options.
45
- * @param options The options for the document loader.
46
- * @returns The document loader.
47
- * @since 1.4.0
48
- */
49
-
50
- /**
51
- * Options for making `User-Agent` string.
52
- * @see {@link getUserAgent}
53
- * @since 1.3.0
54
- */
55
- interface GetUserAgentOptions {
56
- /**
57
- * An optional software name and version, e.g., `"Hollo/1.0.0"`.
58
- */
59
- software?: string | null;
60
- /**
61
- * An optional URL to append to the user agent string.
62
- * Usually the URL of the ActivityPub instance.
63
- */
64
- url?: string | URL | null;
65
- }
66
- /**
67
- * Gets the user agent string for the given application and URL.
68
- * @param options The options for making the user agent string.
69
- * @returns The user agent string.
70
- * @since 1.3.0
71
- */
72
- //#endregion
73
- //#region src/nodeinfo/semver.d.ts
74
- /**
75
- * A SemVer object parsed into its constituent parts.
76
- * @since 1.2.0
77
- */
78
- interface SemVer {
79
- /** The major version */
80
- major: number;
81
- /** The minor version */
82
- minor: number;
83
- /** The patch version */
84
- patch: number;
85
- /**
86
- * The prerelease version
87
- *
88
- * @default {[]}
89
- */
90
- prerelease?: (string | number)[];
91
- /**
92
- * The build metadata
93
- *
94
- * @default {[]}
95
- */
96
- build?: string[];
97
- }
98
- //#endregion
99
8
  //#region src/nodeinfo/types.d.ts
100
9
  /**
101
10
  * The type of the result of parsing JSON.
@@ -145,9 +54,8 @@ interface Software {
145
54
  name: string;
146
55
  /**
147
56
  * The version of this server software.
148
- * @see {@link parseSemVer}
149
57
  */
150
- version: SemVer;
58
+ version: string;
151
59
  /**
152
60
  * The URL of the source code repository of this server software.
153
61
  */
@@ -275,25 +183,6 @@ interface GetNodeInfoOptions {
275
183
  * @since 1.2.0
276
184
  */
277
185
  //#endregion
278
- //#region src/runtime/langstr.d.ts
279
- /**
280
- * A language-tagged string which corresponds to the `rdf:langString` type.
281
- */
282
- declare class LanguageString extends String {
283
- /**
284
- * The locale of the string.
285
- * @since 2.0.0
286
- */
287
- readonly locale: Intl.Locale;
288
- /**
289
- * Constructs a new `LanguageString`.
290
- * @param value A string value written in the given language.
291
- * @param locale The language of the string. If a string is given, it will
292
- * be parsed as a `Intl.Locale` object.
293
- */
294
- constructor(value: string, language: Intl.Locale | string);
295
- }
296
- //#endregion
297
186
  //#region src/vocab/vocab.d.ts
298
187
  /** Describes an object of any kind. The Object type serves as the base type for
299
188
  * most of the other kinds of objects defined in the Activity Vocabulary,
@@ -453,6 +342,7 @@ declare class Object$1 {
453
342
  contextLoader?: DocumentLoader;
454
343
  suppressError?: boolean;
455
344
  tracerProvider?: TracerProvider;
345
+ crossOrigin?: "ignore" | "throw" | "trust";
456
346
  }): AsyncIterable<Object$1 | Link | PropertyValue>;
457
347
  /**
458
348
  * Similar to
@@ -469,6 +359,7 @@ declare class Object$1 {
469
359
  contextLoader?: DocumentLoader;
470
360
  suppressError?: boolean;
471
361
  tracerProvider?: TracerProvider;
362
+ crossOrigin?: "ignore" | "throw" | "trust";
472
363
  }): Promise<Application | Group | Organization | Person | Service | null>;
473
364
  /**
474
365
  * Similar to
@@ -485,6 +376,7 @@ declare class Object$1 {
485
376
  contextLoader?: DocumentLoader;
486
377
  suppressError?: boolean;
487
378
  tracerProvider?: TracerProvider;
379
+ crossOrigin?: "ignore" | "throw" | "trust";
488
380
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
489
381
  /**
490
382
  * Similar to
@@ -500,6 +392,7 @@ declare class Object$1 {
500
392
  contextLoader?: DocumentLoader;
501
393
  suppressError?: boolean;
502
394
  tracerProvider?: TracerProvider;
395
+ crossOrigin?: "ignore" | "throw" | "trust";
503
396
  }): Promise<Object$1 | null>;
504
397
  /**
505
398
  * Similar to
@@ -515,6 +408,7 @@ declare class Object$1 {
515
408
  contextLoader?: DocumentLoader;
516
409
  suppressError?: boolean;
517
410
  tracerProvider?: TracerProvider;
411
+ crossOrigin?: "ignore" | "throw" | "trust";
518
412
  }): AsyncIterable<Object$1>;
519
413
  /** The content or textual representation of the Object encoded as a JSON
520
414
  * string. By default, the value of `content` is HTML. The `mediaType`
@@ -549,6 +443,7 @@ declare class Object$1 {
549
443
  contextLoader?: DocumentLoader;
550
444
  suppressError?: boolean;
551
445
  tracerProvider?: TracerProvider;
446
+ crossOrigin?: "ignore" | "throw" | "trust";
552
447
  }): AsyncIterable<Object$1 | Link>;
553
448
  /** A simple, human-readable, plain-text name for the object. HTML markup MUST
554
449
  * NOT be included. The name MAY be expressed using multiple language-tagged
@@ -579,6 +474,7 @@ declare class Object$1 {
579
474
  contextLoader?: DocumentLoader;
580
475
  suppressError?: boolean;
581
476
  tracerProvider?: TracerProvider;
477
+ crossOrigin?: "ignore" | "throw" | "trust";
582
478
  }): AsyncIterable<Object$1 | Link>;
583
479
  /**
584
480
  * Similar to
@@ -595,6 +491,7 @@ declare class Object$1 {
595
491
  contextLoader?: DocumentLoader;
596
492
  suppressError?: boolean;
597
493
  tracerProvider?: TracerProvider;
494
+ crossOrigin?: "ignore" | "throw" | "trust";
598
495
  }): Promise<Image | null>;
599
496
  /**
600
497
  * Similar to
@@ -611,6 +508,7 @@ declare class Object$1 {
611
508
  contextLoader?: DocumentLoader;
612
509
  suppressError?: boolean;
613
510
  tracerProvider?: TracerProvider;
511
+ crossOrigin?: "ignore" | "throw" | "trust";
614
512
  }): AsyncIterable<Image>;
615
513
  /**
616
514
  * Similar to
@@ -627,6 +525,7 @@ declare class Object$1 {
627
525
  contextLoader?: DocumentLoader;
628
526
  suppressError?: boolean;
629
527
  tracerProvider?: TracerProvider;
528
+ crossOrigin?: "ignore" | "throw" | "trust";
630
529
  }): Promise<Image | null>;
631
530
  /**
632
531
  * Similar to
@@ -643,6 +542,7 @@ declare class Object$1 {
643
542
  contextLoader?: DocumentLoader;
644
543
  suppressError?: boolean;
645
544
  tracerProvider?: TracerProvider;
545
+ crossOrigin?: "ignore" | "throw" | "trust";
646
546
  }): AsyncIterable<Image>;
647
547
  /**
648
548
  * Similar to
@@ -658,6 +558,7 @@ declare class Object$1 {
658
558
  contextLoader?: DocumentLoader;
659
559
  suppressError?: boolean;
660
560
  tracerProvider?: TracerProvider;
561
+ crossOrigin?: "ignore" | "throw" | "trust";
661
562
  }): Promise<Object$1 | Link | null>;
662
563
  /**
663
564
  * Similar to
@@ -673,6 +574,7 @@ declare class Object$1 {
673
574
  contextLoader?: DocumentLoader;
674
575
  suppressError?: boolean;
675
576
  tracerProvider?: TracerProvider;
577
+ crossOrigin?: "ignore" | "throw" | "trust";
676
578
  }): AsyncIterable<Object$1 | Link>;
677
579
  /**
678
580
  * Similar to
@@ -688,6 +590,7 @@ declare class Object$1 {
688
590
  contextLoader?: DocumentLoader;
689
591
  suppressError?: boolean;
690
592
  tracerProvider?: TracerProvider;
593
+ crossOrigin?: "ignore" | "throw" | "trust";
691
594
  }): Promise<Object$1 | Link | null>;
692
595
  /**
693
596
  * Similar to
@@ -703,6 +606,7 @@ declare class Object$1 {
703
606
  contextLoader?: DocumentLoader;
704
607
  suppressError?: boolean;
705
608
  tracerProvider?: TracerProvider;
609
+ crossOrigin?: "ignore" | "throw" | "trust";
706
610
  }): AsyncIterable<Object$1 | Link>;
707
611
  /**
708
612
  * Similar to
@@ -717,6 +621,7 @@ declare class Object$1 {
717
621
  contextLoader?: DocumentLoader;
718
622
  suppressError?: boolean;
719
623
  tracerProvider?: TracerProvider;
624
+ crossOrigin?: "ignore" | "throw" | "trust";
720
625
  }): Promise<Link | Object$1 | null>;
721
626
  /**
722
627
  * Similar to
@@ -731,6 +636,7 @@ declare class Object$1 {
731
636
  contextLoader?: DocumentLoader;
732
637
  suppressError?: boolean;
733
638
  tracerProvider?: TracerProvider;
639
+ crossOrigin?: "ignore" | "throw" | "trust";
734
640
  }): AsyncIterable<Link | Object$1>;
735
641
  /** The date and time at which the object was published.
736
642
  */
@@ -749,6 +655,7 @@ declare class Object$1 {
749
655
  contextLoader?: DocumentLoader;
750
656
  suppressError?: boolean;
751
657
  tracerProvider?: TracerProvider;
658
+ crossOrigin?: "ignore" | "throw" | "trust";
752
659
  }): Promise<Collection | null>;
753
660
  /**
754
661
  * Similar to
@@ -770,6 +677,7 @@ declare class Object$1 {
770
677
  contextLoader?: DocumentLoader;
771
678
  suppressError?: boolean;
772
679
  tracerProvider?: TracerProvider;
680
+ crossOrigin?: "ignore" | "throw" | "trust";
773
681
  }): Promise<Collection | null>;
774
682
  /**
775
683
  * Similar to
@@ -791,6 +699,7 @@ declare class Object$1 {
791
699
  contextLoader?: DocumentLoader;
792
700
  suppressError?: boolean;
793
701
  tracerProvider?: TracerProvider;
702
+ crossOrigin?: "ignore" | "throw" | "trust";
794
703
  }): Promise<Collection | null>;
795
704
  /**
796
705
  * Similar to
@@ -806,6 +715,7 @@ declare class Object$1 {
806
715
  contextLoader?: DocumentLoader;
807
716
  suppressError?: boolean;
808
717
  tracerProvider?: TracerProvider;
718
+ crossOrigin?: "ignore" | "throw" | "trust";
809
719
  }): Promise<Collection | null>;
810
720
  /** The date and time describing the actual or expected starting time of
811
721
  * the object. When used with an {@link Activity} object, for instance,
@@ -837,6 +747,7 @@ declare class Object$1 {
837
747
  contextLoader?: DocumentLoader;
838
748
  suppressError?: boolean;
839
749
  tracerProvider?: TracerProvider;
750
+ crossOrigin?: "ignore" | "throw" | "trust";
840
751
  }): AsyncIterable<Object$1 | Link>;
841
752
  /** The date and time at which the object was updated.
842
753
  */
@@ -861,6 +772,7 @@ declare class Object$1 {
861
772
  contextLoader?: DocumentLoader;
862
773
  suppressError?: boolean;
863
774
  tracerProvider?: TracerProvider;
775
+ crossOrigin?: "ignore" | "throw" | "trust";
864
776
  }): Promise<Object$1 | null>;
865
777
  /**
866
778
  * Similar to
@@ -876,6 +788,7 @@ declare class Object$1 {
876
788
  contextLoader?: DocumentLoader;
877
789
  suppressError?: boolean;
878
790
  tracerProvider?: TracerProvider;
791
+ crossOrigin?: "ignore" | "throw" | "trust";
879
792
  }): AsyncIterable<Object$1>;
880
793
  /**
881
794
  * Similar to
@@ -891,6 +804,7 @@ declare class Object$1 {
891
804
  contextLoader?: DocumentLoader;
892
805
  suppressError?: boolean;
893
806
  tracerProvider?: TracerProvider;
807
+ crossOrigin?: "ignore" | "throw" | "trust";
894
808
  }): Promise<Object$1 | null>;
895
809
  /**
896
810
  * Similar to
@@ -906,6 +820,7 @@ declare class Object$1 {
906
820
  contextLoader?: DocumentLoader;
907
821
  suppressError?: boolean;
908
822
  tracerProvider?: TracerProvider;
823
+ crossOrigin?: "ignore" | "throw" | "trust";
909
824
  }): AsyncIterable<Object$1>;
910
825
  /**
911
826
  * Similar to
@@ -921,6 +836,7 @@ declare class Object$1 {
921
836
  contextLoader?: DocumentLoader;
922
837
  suppressError?: boolean;
923
838
  tracerProvider?: TracerProvider;
839
+ crossOrigin?: "ignore" | "throw" | "trust";
924
840
  }): Promise<Object$1 | null>;
925
841
  /**
926
842
  * Similar to
@@ -936,6 +852,7 @@ declare class Object$1 {
936
852
  contextLoader?: DocumentLoader;
937
853
  suppressError?: boolean;
938
854
  tracerProvider?: TracerProvider;
855
+ crossOrigin?: "ignore" | "throw" | "trust";
939
856
  }): AsyncIterable<Object$1>;
940
857
  /**
941
858
  * Similar to
@@ -951,6 +868,7 @@ declare class Object$1 {
951
868
  contextLoader?: DocumentLoader;
952
869
  suppressError?: boolean;
953
870
  tracerProvider?: TracerProvider;
871
+ crossOrigin?: "ignore" | "throw" | "trust";
954
872
  }): Promise<Object$1 | null>;
955
873
  /**
956
874
  * Similar to
@@ -966,6 +884,7 @@ declare class Object$1 {
966
884
  contextLoader?: DocumentLoader;
967
885
  suppressError?: boolean;
968
886
  tracerProvider?: TracerProvider;
887
+ crossOrigin?: "ignore" | "throw" | "trust";
969
888
  }): AsyncIterable<Object$1>;
970
889
  /** When used on an {@link Object}, identifies the MIME media type of the value
971
890
  * of the `content` property. If not specified, the `content` property is
@@ -1001,6 +920,7 @@ declare class Object$1 {
1001
920
  contextLoader?: DocumentLoader;
1002
921
  suppressError?: boolean;
1003
922
  tracerProvider?: TracerProvider;
923
+ crossOrigin?: "ignore" | "throw" | "trust";
1004
924
  }): Promise<DataIntegrityProof | null>;
1005
925
  /**
1006
926
  * Similar to
@@ -1015,6 +935,7 @@ declare class Object$1 {
1015
935
  contextLoader?: DocumentLoader;
1016
936
  suppressError?: boolean;
1017
937
  tracerProvider?: TracerProvider;
938
+ crossOrigin?: "ignore" | "throw" | "trust";
1018
939
  }): AsyncIterable<DataIntegrityProof>;
1019
940
  /**
1020
941
  * Converts this object to a JSON-LD structure.
@@ -1047,11 +968,13 @@ declare class Object$1 {
1047
968
  documentLoader?: DocumentLoader;
1048
969
  contextLoader?: DocumentLoader;
1049
970
  tracerProvider?: TracerProvider;
971
+ baseUrl?: URL;
1050
972
  }): Promise<Object$1>;
1051
973
  protected static __fromJsonLd__Object__(json: unknown, span: Span, options?: {
1052
974
  documentLoader?: DocumentLoader;
1053
975
  contextLoader?: DocumentLoader;
1054
976
  tracerProvider?: TracerProvider;
977
+ baseUrl?: URL;
1055
978
  }): Promise<Object$1>;
1056
979
  protected _getCustomInspectProxy(): Record<string, unknown>;
1057
980
  }
@@ -1229,6 +1152,7 @@ declare class Activity extends Object$1 {
1229
1152
  contextLoader?: DocumentLoader;
1230
1153
  suppressError?: boolean;
1231
1154
  tracerProvider?: TracerProvider;
1155
+ crossOrigin?: "ignore" | "throw" | "trust";
1232
1156
  }): Promise<Application | Group | Organization | Person | Service | null>;
1233
1157
  /**
1234
1158
  * Similar to
@@ -1245,6 +1169,7 @@ declare class Activity extends Object$1 {
1245
1169
  contextLoader?: DocumentLoader;
1246
1170
  suppressError?: boolean;
1247
1171
  tracerProvider?: TracerProvider;
1172
+ crossOrigin?: "ignore" | "throw" | "trust";
1248
1173
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
1249
1174
  /**
1250
1175
  * Similar to
@@ -1261,6 +1186,7 @@ declare class Activity extends Object$1 {
1261
1186
  contextLoader?: DocumentLoader;
1262
1187
  suppressError?: boolean;
1263
1188
  tracerProvider?: TracerProvider;
1189
+ crossOrigin?: "ignore" | "throw" | "trust";
1264
1190
  }): Promise<Object$1 | null>;
1265
1191
  /**
1266
1192
  * Similar to
@@ -1277,6 +1203,7 @@ declare class Activity extends Object$1 {
1277
1203
  contextLoader?: DocumentLoader;
1278
1204
  suppressError?: boolean;
1279
1205
  tracerProvider?: TracerProvider;
1206
+ crossOrigin?: "ignore" | "throw" | "trust";
1280
1207
  }): AsyncIterable<Object$1>;
1281
1208
  /**
1282
1209
  * Similar to
@@ -1296,6 +1223,7 @@ declare class Activity extends Object$1 {
1296
1223
  contextLoader?: DocumentLoader;
1297
1224
  suppressError?: boolean;
1298
1225
  tracerProvider?: TracerProvider;
1226
+ crossOrigin?: "ignore" | "throw" | "trust";
1299
1227
  }): Promise<Object$1 | null>;
1300
1228
  /**
1301
1229
  * Similar to
@@ -1315,6 +1243,7 @@ declare class Activity extends Object$1 {
1315
1243
  contextLoader?: DocumentLoader;
1316
1244
  suppressError?: boolean;
1317
1245
  tracerProvider?: TracerProvider;
1246
+ crossOrigin?: "ignore" | "throw" | "trust";
1318
1247
  }): AsyncIterable<Object$1>;
1319
1248
  /**
1320
1249
  * Similar to
@@ -1331,6 +1260,7 @@ declare class Activity extends Object$1 {
1331
1260
  contextLoader?: DocumentLoader;
1332
1261
  suppressError?: boolean;
1333
1262
  tracerProvider?: TracerProvider;
1263
+ crossOrigin?: "ignore" | "throw" | "trust";
1334
1264
  }): Promise<Object$1 | null>;
1335
1265
  /**
1336
1266
  * Similar to
@@ -1347,6 +1277,7 @@ declare class Activity extends Object$1 {
1347
1277
  contextLoader?: DocumentLoader;
1348
1278
  suppressError?: boolean;
1349
1279
  tracerProvider?: TracerProvider;
1280
+ crossOrigin?: "ignore" | "throw" | "trust";
1350
1281
  }): AsyncIterable<Object$1>;
1351
1282
  /**
1352
1283
  * Similar to
@@ -1364,6 +1295,7 @@ declare class Activity extends Object$1 {
1364
1295
  contextLoader?: DocumentLoader;
1365
1296
  suppressError?: boolean;
1366
1297
  tracerProvider?: TracerProvider;
1298
+ crossOrigin?: "ignore" | "throw" | "trust";
1367
1299
  }): Promise<Object$1 | null>;
1368
1300
  /**
1369
1301
  * Similar to
@@ -1381,6 +1313,7 @@ declare class Activity extends Object$1 {
1381
1313
  contextLoader?: DocumentLoader;
1382
1314
  suppressError?: boolean;
1383
1315
  tracerProvider?: TracerProvider;
1316
+ crossOrigin?: "ignore" | "throw" | "trust";
1384
1317
  }): AsyncIterable<Object$1>;
1385
1318
  /**
1386
1319
  * Similar to
@@ -1396,6 +1329,7 @@ declare class Activity extends Object$1 {
1396
1329
  contextLoader?: DocumentLoader;
1397
1330
  suppressError?: boolean;
1398
1331
  tracerProvider?: TracerProvider;
1332
+ crossOrigin?: "ignore" | "throw" | "trust";
1399
1333
  }): Promise<Object$1 | null>;
1400
1334
  /**
1401
1335
  * Similar to
@@ -1411,6 +1345,7 @@ declare class Activity extends Object$1 {
1411
1345
  contextLoader?: DocumentLoader;
1412
1346
  suppressError?: boolean;
1413
1347
  tracerProvider?: TracerProvider;
1348
+ crossOrigin?: "ignore" | "throw" | "trust";
1414
1349
  }): AsyncIterable<Object$1>;
1415
1350
  /**
1416
1351
  * Converts this object to a JSON-LD structure.
@@ -1443,11 +1378,13 @@ declare class Activity extends Object$1 {
1443
1378
  documentLoader?: DocumentLoader;
1444
1379
  contextLoader?: DocumentLoader;
1445
1380
  tracerProvider?: TracerProvider;
1381
+ baseUrl?: URL;
1446
1382
  }): Promise<Activity>;
1447
1383
  protected static __fromJsonLd__Activity__(json: unknown, span: Span, options?: {
1448
1384
  documentLoader?: DocumentLoader;
1449
1385
  contextLoader?: DocumentLoader;
1450
1386
  tracerProvider?: TracerProvider;
1387
+ baseUrl?: URL;
1451
1388
  }): Promise<Activity>;
1452
1389
  protected _getCustomInspectProxy(): Record<string, unknown>;
1453
1390
  }
@@ -1538,11 +1475,13 @@ declare class PropertyValue {
1538
1475
  documentLoader?: DocumentLoader;
1539
1476
  contextLoader?: DocumentLoader;
1540
1477
  tracerProvider?: TracerProvider;
1478
+ baseUrl?: URL;
1541
1479
  }): Promise<PropertyValue>;
1542
1480
  protected static __fromJsonLd__PropertyValue__(json: unknown, span: Span, options?: {
1543
1481
  documentLoader?: DocumentLoader;
1544
1482
  contextLoader?: DocumentLoader;
1545
1483
  tracerProvider?: TracerProvider;
1484
+ baseUrl?: URL;
1546
1485
  }): Promise<PropertyValue>;
1547
1486
  protected _getCustomInspectProxy(): Record<string, unknown>;
1548
1487
  }
@@ -1635,11 +1574,13 @@ declare class DidService {
1635
1574
  documentLoader?: DocumentLoader;
1636
1575
  contextLoader?: DocumentLoader;
1637
1576
  tracerProvider?: TracerProvider;
1577
+ baseUrl?: URL;
1638
1578
  }): Promise<DidService>;
1639
1579
  protected static __fromJsonLd__DidService__(json: unknown, span: Span, options?: {
1640
1580
  documentLoader?: DocumentLoader;
1641
1581
  contextLoader?: DocumentLoader;
1642
1582
  tracerProvider?: TracerProvider;
1583
+ baseUrl?: URL;
1643
1584
  }): Promise<DidService>;
1644
1585
  protected _getCustomInspectProxy(): Record<string, unknown>;
1645
1586
  }
@@ -1719,6 +1660,7 @@ declare class DataIntegrityProof {
1719
1660
  contextLoader?: DocumentLoader;
1720
1661
  suppressError?: boolean;
1721
1662
  tracerProvider?: TracerProvider;
1663
+ crossOrigin?: "ignore" | "throw" | "trust";
1722
1664
  }): Promise<Multikey | null>;
1723
1665
  /** The reason the proof was created.
1724
1666
  *
@@ -1766,11 +1708,13 @@ declare class DataIntegrityProof {
1766
1708
  documentLoader?: DocumentLoader;
1767
1709
  contextLoader?: DocumentLoader;
1768
1710
  tracerProvider?: TracerProvider;
1711
+ baseUrl?: URL;
1769
1712
  }): Promise<DataIntegrityProof>;
1770
1713
  protected static __fromJsonLd__DataIntegrityProof__(json: unknown, span: Span, options?: {
1771
1714
  documentLoader?: DocumentLoader;
1772
1715
  contextLoader?: DocumentLoader;
1773
1716
  tracerProvider?: TracerProvider;
1717
+ baseUrl?: URL;
1774
1718
  }): Promise<DataIntegrityProof>;
1775
1719
  protected _getCustomInspectProxy(): Record<string, unknown>;
1776
1720
  }
@@ -1834,6 +1778,7 @@ declare class CryptographicKey {
1834
1778
  contextLoader?: DocumentLoader;
1835
1779
  suppressError?: boolean;
1836
1780
  tracerProvider?: TracerProvider;
1781
+ crossOrigin?: "ignore" | "throw" | "trust";
1837
1782
  }): Promise<Application | Group | Organization | Person | Service | null>;
1838
1783
  /** A PEM-encoded public key.
1839
1784
  */
@@ -1869,11 +1814,13 @@ declare class CryptographicKey {
1869
1814
  documentLoader?: DocumentLoader;
1870
1815
  contextLoader?: DocumentLoader;
1871
1816
  tracerProvider?: TracerProvider;
1817
+ baseUrl?: URL;
1872
1818
  }): Promise<CryptographicKey>;
1873
1819
  protected static __fromJsonLd__CryptographicKey__(json: unknown, span: Span, options?: {
1874
1820
  documentLoader?: DocumentLoader;
1875
1821
  contextLoader?: DocumentLoader;
1876
1822
  tracerProvider?: TracerProvider;
1823
+ baseUrl?: URL;
1877
1824
  }): Promise<CryptographicKey>;
1878
1825
  protected _getCustomInspectProxy(): Record<string, unknown>;
1879
1826
  }
@@ -1940,6 +1887,7 @@ declare class Multikey {
1940
1887
  contextLoader?: DocumentLoader;
1941
1888
  suppressError?: boolean;
1942
1889
  tracerProvider?: TracerProvider;
1890
+ crossOrigin?: "ignore" | "throw" | "trust";
1943
1891
  }): Promise<Application | Group | Organization | Person | Service | null>;
1944
1892
  /** A [Multibase]-encoded value of a [Multicodec] prefix and the key.
1945
1893
  *
@@ -1978,11 +1926,13 @@ declare class Multikey {
1978
1926
  documentLoader?: DocumentLoader;
1979
1927
  contextLoader?: DocumentLoader;
1980
1928
  tracerProvider?: TracerProvider;
1929
+ baseUrl?: URL;
1981
1930
  }): Promise<Multikey>;
1982
1931
  protected static __fromJsonLd__Multikey__(json: unknown, span: Span, options?: {
1983
1932
  documentLoader?: DocumentLoader;
1984
1933
  contextLoader?: DocumentLoader;
1985
1934
  tracerProvider?: TracerProvider;
1935
+ baseUrl?: URL;
1986
1936
  }): Promise<Multikey>;
1987
1937
  protected _getCustomInspectProxy(): Record<string, unknown>;
1988
1938
  }
@@ -2194,6 +2144,7 @@ declare class Application extends Object$1 {
2194
2144
  contextLoader?: DocumentLoader;
2195
2145
  suppressError?: boolean;
2196
2146
  tracerProvider?: TracerProvider;
2147
+ crossOrigin?: "ignore" | "throw" | "trust";
2197
2148
  }): Promise<CryptographicKey | null>;
2198
2149
  /**
2199
2150
  * Similar to
@@ -2208,6 +2159,7 @@ declare class Application extends Object$1 {
2208
2159
  contextLoader?: DocumentLoader;
2209
2160
  suppressError?: boolean;
2210
2161
  tracerProvider?: TracerProvider;
2162
+ crossOrigin?: "ignore" | "throw" | "trust";
2211
2163
  }): AsyncIterable<CryptographicKey>;
2212
2164
  /**
2213
2165
  * Similar to
@@ -2225,6 +2177,7 @@ declare class Application extends Object$1 {
2225
2177
  contextLoader?: DocumentLoader;
2226
2178
  suppressError?: boolean;
2227
2179
  tracerProvider?: TracerProvider;
2180
+ crossOrigin?: "ignore" | "throw" | "trust";
2228
2181
  }): Promise<Multikey | null>;
2229
2182
  /**
2230
2183
  * Similar to
@@ -2242,6 +2195,7 @@ declare class Application extends Object$1 {
2242
2195
  contextLoader?: DocumentLoader;
2243
2196
  suppressError?: boolean;
2244
2197
  tracerProvider?: TracerProvider;
2198
+ crossOrigin?: "ignore" | "throw" | "trust";
2245
2199
  }): AsyncIterable<Multikey>;
2246
2200
  /** When `true`, conveys that for this actor, follow requests are not usually
2247
2201
  * automatically approved, but instead are examined by a person who may accept
@@ -2276,6 +2230,7 @@ declare class Application extends Object$1 {
2276
2230
  contextLoader?: DocumentLoader;
2277
2231
  suppressError?: boolean;
2278
2232
  tracerProvider?: TracerProvider;
2233
+ crossOrigin?: "ignore" | "throw" | "trust";
2279
2234
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2280
2235
  /**
2281
2236
  * Similar to
@@ -2299,6 +2254,7 @@ declare class Application extends Object$1 {
2299
2254
  contextLoader?: DocumentLoader;
2300
2255
  suppressError?: boolean;
2301
2256
  tracerProvider?: TracerProvider;
2257
+ crossOrigin?: "ignore" | "throw" | "trust";
2302
2258
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2303
2259
  /**
2304
2260
  * Similar to
@@ -2317,6 +2273,7 @@ declare class Application extends Object$1 {
2317
2273
  contextLoader?: DocumentLoader;
2318
2274
  suppressError?: boolean;
2319
2275
  tracerProvider?: TracerProvider;
2276
+ crossOrigin?: "ignore" | "throw" | "trust";
2320
2277
  }): Promise<Collection | null>;
2321
2278
  /**
2322
2279
  * Similar to
@@ -2338,6 +2295,7 @@ declare class Application extends Object$1 {
2338
2295
  contextLoader?: DocumentLoader;
2339
2296
  suppressError?: boolean;
2340
2297
  tracerProvider?: TracerProvider;
2298
+ crossOrigin?: "ignore" | "throw" | "trust";
2341
2299
  }): Promise<Collection | null>;
2342
2300
  /**
2343
2301
  * Similar to
@@ -2357,6 +2315,7 @@ declare class Application extends Object$1 {
2357
2315
  contextLoader?: DocumentLoader;
2358
2316
  suppressError?: boolean;
2359
2317
  tracerProvider?: TracerProvider;
2318
+ crossOrigin?: "ignore" | "throw" | "trust";
2360
2319
  }): Promise<Collection | null>;
2361
2320
  /**
2362
2321
  * Similar to
@@ -2374,6 +2333,7 @@ declare class Application extends Object$1 {
2374
2333
  contextLoader?: DocumentLoader;
2375
2334
  suppressError?: boolean;
2376
2335
  tracerProvider?: TracerProvider;
2336
+ crossOrigin?: "ignore" | "throw" | "trust";
2377
2337
  }): Promise<Collection | null>;
2378
2338
  /**
2379
2339
  * Similar to
@@ -2391,6 +2351,7 @@ declare class Application extends Object$1 {
2391
2351
  contextLoader?: DocumentLoader;
2392
2352
  suppressError?: boolean;
2393
2353
  tracerProvider?: TracerProvider;
2354
+ crossOrigin?: "ignore" | "throw" | "trust";
2394
2355
  }): Promise<Collection | null>;
2395
2356
  /**
2396
2357
  * Similar to
@@ -2405,6 +2366,7 @@ declare class Application extends Object$1 {
2405
2366
  contextLoader?: DocumentLoader;
2406
2367
  suppressError?: boolean;
2407
2368
  tracerProvider?: TracerProvider;
2369
+ crossOrigin?: "ignore" | "throw" | "trust";
2408
2370
  }): AsyncIterable<Collection>;
2409
2371
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
2410
2372
  * which may be useful either for this actor or someone referencing this actor.
@@ -2441,6 +2403,7 @@ declare class Application extends Object$1 {
2441
2403
  contextLoader?: DocumentLoader;
2442
2404
  suppressError?: boolean;
2443
2405
  tracerProvider?: TracerProvider;
2406
+ crossOrigin?: "ignore" | "throw" | "trust";
2444
2407
  }): Promise<Application | Group | Organization | Person | Service | null>;
2445
2408
  /**
2446
2409
  * Similar to
@@ -2458,6 +2421,7 @@ declare class Application extends Object$1 {
2458
2421
  contextLoader?: DocumentLoader;
2459
2422
  suppressError?: boolean;
2460
2423
  tracerProvider?: TracerProvider;
2424
+ crossOrigin?: "ignore" | "throw" | "trust";
2461
2425
  }): Promise<Application | Group | Organization | Person | Service | null>;
2462
2426
  /**
2463
2427
  * Similar to
@@ -2475,6 +2439,7 @@ declare class Application extends Object$1 {
2475
2439
  contextLoader?: DocumentLoader;
2476
2440
  suppressError?: boolean;
2477
2441
  tracerProvider?: TracerProvider;
2442
+ crossOrigin?: "ignore" | "throw" | "trust";
2478
2443
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
2479
2444
  /**
2480
2445
  * Similar to
@@ -2492,6 +2457,7 @@ declare class Application extends Object$1 {
2492
2457
  contextLoader?: DocumentLoader;
2493
2458
  suppressError?: boolean;
2494
2459
  tracerProvider?: TracerProvider;
2460
+ crossOrigin?: "ignore" | "throw" | "trust";
2495
2461
  }): Promise<DidService | null>;
2496
2462
  /**
2497
2463
  * Similar to
@@ -2509,6 +2475,7 @@ declare class Application extends Object$1 {
2509
2475
  contextLoader?: DocumentLoader;
2510
2476
  suppressError?: boolean;
2511
2477
  tracerProvider?: TracerProvider;
2478
+ crossOrigin?: "ignore" | "throw" | "trust";
2512
2479
  }): AsyncIterable<DidService>;
2513
2480
  /** This value is used for `Actor` type objects to show message on followed.
2514
2481
  */
@@ -2550,11 +2517,13 @@ declare class Application extends Object$1 {
2550
2517
  documentLoader?: DocumentLoader;
2551
2518
  contextLoader?: DocumentLoader;
2552
2519
  tracerProvider?: TracerProvider;
2520
+ baseUrl?: URL;
2553
2521
  }): Promise<Application>;
2554
2522
  protected static __fromJsonLd__Application__(json: unknown, span: Span, options?: {
2555
2523
  documentLoader?: DocumentLoader;
2556
2524
  contextLoader?: DocumentLoader;
2557
2525
  tracerProvider?: TracerProvider;
2526
+ baseUrl?: URL;
2558
2527
  }): Promise<Application>;
2559
2528
  protected _getCustomInspectProxy(): Record<string, unknown>;
2560
2529
  }
@@ -2734,11 +2703,13 @@ declare class Document extends Object$1 {
2734
2703
  documentLoader?: DocumentLoader;
2735
2704
  contextLoader?: DocumentLoader;
2736
2705
  tracerProvider?: TracerProvider;
2706
+ baseUrl?: URL;
2737
2707
  }): Promise<Document>;
2738
2708
  protected static __fromJsonLd__Document__(json: unknown, span: Span, options?: {
2739
2709
  documentLoader?: DocumentLoader;
2740
2710
  contextLoader?: DocumentLoader;
2741
2711
  tracerProvider?: TracerProvider;
2712
+ baseUrl?: URL;
2742
2713
  }): Promise<Document>;
2743
2714
  protected _getCustomInspectProxy(): Record<string, unknown>;
2744
2715
  }
@@ -2922,6 +2893,7 @@ declare class Collection extends Object$1 {
2922
2893
  contextLoader?: DocumentLoader;
2923
2894
  suppressError?: boolean;
2924
2895
  tracerProvider?: TracerProvider;
2896
+ crossOrigin?: "ignore" | "throw" | "trust";
2925
2897
  }): Promise<CollectionPage | null>;
2926
2898
  /**
2927
2899
  * Similar to
@@ -2937,6 +2909,7 @@ declare class Collection extends Object$1 {
2937
2909
  contextLoader?: DocumentLoader;
2938
2910
  suppressError?: boolean;
2939
2911
  tracerProvider?: TracerProvider;
2912
+ crossOrigin?: "ignore" | "throw" | "trust";
2940
2913
  }): Promise<CollectionPage | null>;
2941
2914
  /**
2942
2915
  * Similar to
@@ -2952,6 +2925,7 @@ declare class Collection extends Object$1 {
2952
2925
  contextLoader?: DocumentLoader;
2953
2926
  suppressError?: boolean;
2954
2927
  tracerProvider?: TracerProvider;
2928
+ crossOrigin?: "ignore" | "throw" | "trust";
2955
2929
  }): Promise<CollectionPage | null>;
2956
2930
  /**
2957
2931
  * Similar to
@@ -2967,6 +2941,7 @@ declare class Collection extends Object$1 {
2967
2941
  contextLoader?: DocumentLoader;
2968
2942
  suppressError?: boolean;
2969
2943
  tracerProvider?: TracerProvider;
2944
+ crossOrigin?: "ignore" | "throw" | "trust";
2970
2945
  }): AsyncIterable<Object$1 | Link>;
2971
2946
  /**
2972
2947
  * Similar to
@@ -2981,6 +2956,7 @@ declare class Collection extends Object$1 {
2981
2956
  contextLoader?: DocumentLoader;
2982
2957
  suppressError?: boolean;
2983
2958
  tracerProvider?: TracerProvider;
2959
+ crossOrigin?: "ignore" | "throw" | "trust";
2984
2960
  }): Promise<Object$1 | null>;
2985
2961
  /**
2986
2962
  * Similar to
@@ -2995,6 +2971,7 @@ declare class Collection extends Object$1 {
2995
2971
  contextLoader?: DocumentLoader;
2996
2972
  suppressError?: boolean;
2997
2973
  tracerProvider?: TracerProvider;
2974
+ crossOrigin?: "ignore" | "throw" | "trust";
2998
2975
  }): Promise<Object$1 | null>;
2999
2976
  /**
3000
2977
  * Similar to
@@ -3009,6 +2986,7 @@ declare class Collection extends Object$1 {
3009
2986
  contextLoader?: DocumentLoader;
3010
2987
  suppressError?: boolean;
3011
2988
  tracerProvider?: TracerProvider;
2989
+ crossOrigin?: "ignore" | "throw" | "trust";
3012
2990
  }): Promise<Object$1 | null>;
3013
2991
  /**
3014
2992
  * Similar to
@@ -3023,6 +3001,7 @@ declare class Collection extends Object$1 {
3023
3001
  contextLoader?: DocumentLoader;
3024
3002
  suppressError?: boolean;
3025
3003
  tracerProvider?: TracerProvider;
3004
+ crossOrigin?: "ignore" | "throw" | "trust";
3026
3005
  }): Promise<Object$1 | null>;
3027
3006
  /**
3028
3007
  * Similar to
@@ -3037,6 +3016,7 @@ declare class Collection extends Object$1 {
3037
3016
  contextLoader?: DocumentLoader;
3038
3017
  suppressError?: boolean;
3039
3018
  tracerProvider?: TracerProvider;
3019
+ crossOrigin?: "ignore" | "throw" | "trust";
3040
3020
  }): Promise<Object$1 | null>;
3041
3021
  /**
3042
3022
  * Similar to
@@ -3051,6 +3031,7 @@ declare class Collection extends Object$1 {
3051
3031
  contextLoader?: DocumentLoader;
3052
3032
  suppressError?: boolean;
3053
3033
  tracerProvider?: TracerProvider;
3034
+ crossOrigin?: "ignore" | "throw" | "trust";
3054
3035
  }): Promise<Object$1 | null>;
3055
3036
  /**
3056
3037
  * Similar to
@@ -3065,6 +3046,7 @@ declare class Collection extends Object$1 {
3065
3046
  contextLoader?: DocumentLoader;
3066
3047
  suppressError?: boolean;
3067
3048
  tracerProvider?: TracerProvider;
3049
+ crossOrigin?: "ignore" | "throw" | "trust";
3068
3050
  }): Promise<Object$1 | null>;
3069
3051
  /**
3070
3052
  * Similar to
@@ -3079,6 +3061,7 @@ declare class Collection extends Object$1 {
3079
3061
  contextLoader?: DocumentLoader;
3080
3062
  suppressError?: boolean;
3081
3063
  tracerProvider?: TracerProvider;
3064
+ crossOrigin?: "ignore" | "throw" | "trust";
3082
3065
  }): Promise<Object$1 | null>;
3083
3066
  /**
3084
3067
  * Converts this object to a JSON-LD structure.
@@ -3111,11 +3094,13 @@ declare class Collection extends Object$1 {
3111
3094
  documentLoader?: DocumentLoader;
3112
3095
  contextLoader?: DocumentLoader;
3113
3096
  tracerProvider?: TracerProvider;
3097
+ baseUrl?: URL;
3114
3098
  }): Promise<Collection>;
3115
3099
  protected static __fromJsonLd__Collection__(json: unknown, span: Span, options?: {
3116
3100
  documentLoader?: DocumentLoader;
3117
3101
  contextLoader?: DocumentLoader;
3118
3102
  tracerProvider?: TracerProvider;
3103
+ baseUrl?: URL;
3119
3104
  }): Promise<Collection>;
3120
3105
  protected _getCustomInspectProxy(): Record<string, unknown>;
3121
3106
  }
@@ -3295,6 +3280,7 @@ declare class CollectionPage extends Collection {
3295
3280
  contextLoader?: DocumentLoader;
3296
3281
  suppressError?: boolean;
3297
3282
  tracerProvider?: TracerProvider;
3283
+ crossOrigin?: "ignore" | "throw" | "trust";
3298
3284
  }): Promise<Collection | null>;
3299
3285
  /**
3300
3286
  * Similar to
@@ -3309,6 +3295,7 @@ declare class CollectionPage extends Collection {
3309
3295
  contextLoader?: DocumentLoader;
3310
3296
  suppressError?: boolean;
3311
3297
  tracerProvider?: TracerProvider;
3298
+ crossOrigin?: "ignore" | "throw" | "trust";
3312
3299
  }): Promise<CollectionPage | null>;
3313
3300
  /**
3314
3301
  * Similar to
@@ -3323,6 +3310,7 @@ declare class CollectionPage extends Collection {
3323
3310
  contextLoader?: DocumentLoader;
3324
3311
  suppressError?: boolean;
3325
3312
  tracerProvider?: TracerProvider;
3313
+ crossOrigin?: "ignore" | "throw" | "trust";
3326
3314
  }): Promise<CollectionPage | null>;
3327
3315
  /**
3328
3316
  * Converts this object to a JSON-LD structure.
@@ -3355,11 +3343,13 @@ declare class CollectionPage extends Collection {
3355
3343
  documentLoader?: DocumentLoader;
3356
3344
  contextLoader?: DocumentLoader;
3357
3345
  tracerProvider?: TracerProvider;
3346
+ baseUrl?: URL;
3358
3347
  }): Promise<CollectionPage>;
3359
3348
  protected static __fromJsonLd__CollectionPage__(json: unknown, span: Span, options?: {
3360
3349
  documentLoader?: DocumentLoader;
3361
3350
  contextLoader?: DocumentLoader;
3362
3351
  tracerProvider?: TracerProvider;
3352
+ baseUrl?: URL;
3363
3353
  }): Promise<CollectionPage>;
3364
3354
  protected _getCustomInspectProxy(): Record<string, unknown>;
3365
3355
  }
@@ -3493,11 +3483,13 @@ declare class Endpoints {
3493
3483
  documentLoader?: DocumentLoader;
3494
3484
  contextLoader?: DocumentLoader;
3495
3485
  tracerProvider?: TracerProvider;
3486
+ baseUrl?: URL;
3496
3487
  }): Promise<Endpoints>;
3497
3488
  protected static __fromJsonLd__Endpoints__(json: unknown, span: Span, options?: {
3498
3489
  documentLoader?: DocumentLoader;
3499
3490
  contextLoader?: DocumentLoader;
3500
3491
  tracerProvider?: TracerProvider;
3492
+ baseUrl?: URL;
3501
3493
  }): Promise<Endpoints>;
3502
3494
  protected _getCustomInspectProxy(): Record<string, unknown>;
3503
3495
  }
@@ -3707,6 +3699,7 @@ declare class Group extends Object$1 {
3707
3699
  contextLoader?: DocumentLoader;
3708
3700
  suppressError?: boolean;
3709
3701
  tracerProvider?: TracerProvider;
3702
+ crossOrigin?: "ignore" | "throw" | "trust";
3710
3703
  }): Promise<CryptographicKey | null>;
3711
3704
  /**
3712
3705
  * Similar to
@@ -3721,6 +3714,7 @@ declare class Group extends Object$1 {
3721
3714
  contextLoader?: DocumentLoader;
3722
3715
  suppressError?: boolean;
3723
3716
  tracerProvider?: TracerProvider;
3717
+ crossOrigin?: "ignore" | "throw" | "trust";
3724
3718
  }): AsyncIterable<CryptographicKey>;
3725
3719
  /**
3726
3720
  * Similar to
@@ -3738,6 +3732,7 @@ declare class Group extends Object$1 {
3738
3732
  contextLoader?: DocumentLoader;
3739
3733
  suppressError?: boolean;
3740
3734
  tracerProvider?: TracerProvider;
3735
+ crossOrigin?: "ignore" | "throw" | "trust";
3741
3736
  }): Promise<Multikey | null>;
3742
3737
  /**
3743
3738
  * Similar to
@@ -3755,6 +3750,7 @@ declare class Group extends Object$1 {
3755
3750
  contextLoader?: DocumentLoader;
3756
3751
  suppressError?: boolean;
3757
3752
  tracerProvider?: TracerProvider;
3753
+ crossOrigin?: "ignore" | "throw" | "trust";
3758
3754
  }): AsyncIterable<Multikey>;
3759
3755
  /** When `true`, conveys that for this actor, follow requests are not usually
3760
3756
  * automatically approved, but instead are examined by a person who may accept
@@ -3789,6 +3785,7 @@ declare class Group extends Object$1 {
3789
3785
  contextLoader?: DocumentLoader;
3790
3786
  suppressError?: boolean;
3791
3787
  tracerProvider?: TracerProvider;
3788
+ crossOrigin?: "ignore" | "throw" | "trust";
3792
3789
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3793
3790
  /**
3794
3791
  * Similar to
@@ -3812,6 +3809,7 @@ declare class Group extends Object$1 {
3812
3809
  contextLoader?: DocumentLoader;
3813
3810
  suppressError?: boolean;
3814
3811
  tracerProvider?: TracerProvider;
3812
+ crossOrigin?: "ignore" | "throw" | "trust";
3815
3813
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3816
3814
  /**
3817
3815
  * Similar to
@@ -3830,6 +3828,7 @@ declare class Group extends Object$1 {
3830
3828
  contextLoader?: DocumentLoader;
3831
3829
  suppressError?: boolean;
3832
3830
  tracerProvider?: TracerProvider;
3831
+ crossOrigin?: "ignore" | "throw" | "trust";
3833
3832
  }): Promise<Collection | null>;
3834
3833
  /**
3835
3834
  * Similar to
@@ -3851,6 +3850,7 @@ declare class Group extends Object$1 {
3851
3850
  contextLoader?: DocumentLoader;
3852
3851
  suppressError?: boolean;
3853
3852
  tracerProvider?: TracerProvider;
3853
+ crossOrigin?: "ignore" | "throw" | "trust";
3854
3854
  }): Promise<Collection | null>;
3855
3855
  /**
3856
3856
  * Similar to
@@ -3870,6 +3870,7 @@ declare class Group extends Object$1 {
3870
3870
  contextLoader?: DocumentLoader;
3871
3871
  suppressError?: boolean;
3872
3872
  tracerProvider?: TracerProvider;
3873
+ crossOrigin?: "ignore" | "throw" | "trust";
3873
3874
  }): Promise<Collection | null>;
3874
3875
  /**
3875
3876
  * Similar to
@@ -3887,6 +3888,7 @@ declare class Group extends Object$1 {
3887
3888
  contextLoader?: DocumentLoader;
3888
3889
  suppressError?: boolean;
3889
3890
  tracerProvider?: TracerProvider;
3891
+ crossOrigin?: "ignore" | "throw" | "trust";
3890
3892
  }): Promise<Collection | null>;
3891
3893
  /**
3892
3894
  * Similar to
@@ -3904,6 +3906,7 @@ declare class Group extends Object$1 {
3904
3906
  contextLoader?: DocumentLoader;
3905
3907
  suppressError?: boolean;
3906
3908
  tracerProvider?: TracerProvider;
3909
+ crossOrigin?: "ignore" | "throw" | "trust";
3907
3910
  }): Promise<Collection | null>;
3908
3911
  /**
3909
3912
  * Similar to
@@ -3918,6 +3921,7 @@ declare class Group extends Object$1 {
3918
3921
  contextLoader?: DocumentLoader;
3919
3922
  suppressError?: boolean;
3920
3923
  tracerProvider?: TracerProvider;
3924
+ crossOrigin?: "ignore" | "throw" | "trust";
3921
3925
  }): AsyncIterable<Collection>;
3922
3926
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
3923
3927
  * which may be useful either for this actor or someone referencing this actor.
@@ -3954,6 +3958,7 @@ declare class Group extends Object$1 {
3954
3958
  contextLoader?: DocumentLoader;
3955
3959
  suppressError?: boolean;
3956
3960
  tracerProvider?: TracerProvider;
3961
+ crossOrigin?: "ignore" | "throw" | "trust";
3957
3962
  }): Promise<Application | Group | Organization | Person | Service | null>;
3958
3963
  /**
3959
3964
  * Similar to
@@ -3971,6 +3976,7 @@ declare class Group extends Object$1 {
3971
3976
  contextLoader?: DocumentLoader;
3972
3977
  suppressError?: boolean;
3973
3978
  tracerProvider?: TracerProvider;
3979
+ crossOrigin?: "ignore" | "throw" | "trust";
3974
3980
  }): Promise<Application | Group | Organization | Person | Service | null>;
3975
3981
  /**
3976
3982
  * Similar to
@@ -3988,6 +3994,7 @@ declare class Group extends Object$1 {
3988
3994
  contextLoader?: DocumentLoader;
3989
3995
  suppressError?: boolean;
3990
3996
  tracerProvider?: TracerProvider;
3997
+ crossOrigin?: "ignore" | "throw" | "trust";
3991
3998
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
3992
3999
  /**
3993
4000
  * Similar to
@@ -4005,6 +4012,7 @@ declare class Group extends Object$1 {
4005
4012
  contextLoader?: DocumentLoader;
4006
4013
  suppressError?: boolean;
4007
4014
  tracerProvider?: TracerProvider;
4015
+ crossOrigin?: "ignore" | "throw" | "trust";
4008
4016
  }): Promise<DidService | null>;
4009
4017
  /**
4010
4018
  * Similar to
@@ -4022,6 +4030,7 @@ declare class Group extends Object$1 {
4022
4030
  contextLoader?: DocumentLoader;
4023
4031
  suppressError?: boolean;
4024
4032
  tracerProvider?: TracerProvider;
4033
+ crossOrigin?: "ignore" | "throw" | "trust";
4025
4034
  }): AsyncIterable<DidService>;
4026
4035
  /** This value is used for `Actor` type objects to show message on followed.
4027
4036
  */
@@ -4063,11 +4072,13 @@ declare class Group extends Object$1 {
4063
4072
  documentLoader?: DocumentLoader;
4064
4073
  contextLoader?: DocumentLoader;
4065
4074
  tracerProvider?: TracerProvider;
4075
+ baseUrl?: URL;
4066
4076
  }): Promise<Group>;
4067
4077
  protected static __fromJsonLd__Group__(json: unknown, span: Span, options?: {
4068
4078
  documentLoader?: DocumentLoader;
4069
4079
  contextLoader?: DocumentLoader;
4070
4080
  tracerProvider?: TracerProvider;
4081
+ baseUrl?: URL;
4071
4082
  }): Promise<Group>;
4072
4083
  protected _getCustomInspectProxy(): Record<string, unknown>;
4073
4084
  }
@@ -4199,6 +4210,7 @@ declare class Link {
4199
4210
  contextLoader?: DocumentLoader;
4200
4211
  suppressError?: boolean;
4201
4212
  tracerProvider?: TracerProvider;
4213
+ crossOrigin?: "ignore" | "throw" | "trust";
4202
4214
  }): AsyncIterable<Link | Object$1>;
4203
4215
  /**
4204
4216
  * Converts this object to a JSON-LD structure.
@@ -4231,11 +4243,13 @@ declare class Link {
4231
4243
  documentLoader?: DocumentLoader;
4232
4244
  contextLoader?: DocumentLoader;
4233
4245
  tracerProvider?: TracerProvider;
4246
+ baseUrl?: URL;
4234
4247
  }): Promise<Link>;
4235
4248
  protected static __fromJsonLd__Link__(json: unknown, span: Span, options?: {
4236
4249
  documentLoader?: DocumentLoader;
4237
4250
  contextLoader?: DocumentLoader;
4238
4251
  tracerProvider?: TracerProvider;
4252
+ baseUrl?: URL;
4239
4253
  }): Promise<Link>;
4240
4254
  protected _getCustomInspectProxy(): Record<string, unknown>;
4241
4255
  }
@@ -4323,11 +4337,13 @@ declare class Hashtag extends Link {
4323
4337
  documentLoader?: DocumentLoader;
4324
4338
  contextLoader?: DocumentLoader;
4325
4339
  tracerProvider?: TracerProvider;
4340
+ baseUrl?: URL;
4326
4341
  }): Promise<Hashtag>;
4327
4342
  protected static __fromJsonLd__Hashtag__(json: unknown, span: Span, options?: {
4328
4343
  documentLoader?: DocumentLoader;
4329
4344
  contextLoader?: DocumentLoader;
4330
4345
  tracerProvider?: TracerProvider;
4346
+ baseUrl?: URL;
4331
4347
  }): Promise<Hashtag>;
4332
4348
  protected _getCustomInspectProxy(): Record<string, unknown>;
4333
4349
  }
@@ -4493,11 +4509,13 @@ declare class Image extends Document {
4493
4509
  documentLoader?: DocumentLoader;
4494
4510
  contextLoader?: DocumentLoader;
4495
4511
  tracerProvider?: TracerProvider;
4512
+ baseUrl?: URL;
4496
4513
  }): Promise<Image>;
4497
4514
  protected static __fromJsonLd__Image__(json: unknown, span: Span, options?: {
4498
4515
  documentLoader?: DocumentLoader;
4499
4516
  contextLoader?: DocumentLoader;
4500
4517
  tracerProvider?: TracerProvider;
4518
+ baseUrl?: URL;
4501
4519
  }): Promise<Image>;
4502
4520
  protected _getCustomInspectProxy(): Record<string, unknown>;
4503
4521
  }
@@ -4675,6 +4693,7 @@ declare class OrderedCollection extends Collection {
4675
4693
  contextLoader?: DocumentLoader;
4676
4694
  suppressError?: boolean;
4677
4695
  tracerProvider?: TracerProvider;
4696
+ crossOrigin?: "ignore" | "throw" | "trust";
4678
4697
  }): AsyncIterable<Object$1 | Link>;
4679
4698
  /**
4680
4699
  * Converts this object to a JSON-LD structure.
@@ -4707,11 +4726,13 @@ declare class OrderedCollection extends Collection {
4707
4726
  documentLoader?: DocumentLoader;
4708
4727
  contextLoader?: DocumentLoader;
4709
4728
  tracerProvider?: TracerProvider;
4729
+ baseUrl?: URL;
4710
4730
  }): Promise<OrderedCollection>;
4711
4731
  protected static __fromJsonLd__OrderedCollection__(json: unknown, span: Span, options?: {
4712
4732
  documentLoader?: DocumentLoader;
4713
4733
  contextLoader?: DocumentLoader;
4714
4734
  tracerProvider?: TracerProvider;
4735
+ baseUrl?: URL;
4715
4736
  }): Promise<OrderedCollection>;
4716
4737
  protected _getCustomInspectProxy(): Record<string, unknown>;
4717
4738
  }
@@ -4893,6 +4914,7 @@ declare class OrderedCollectionPage extends CollectionPage {
4893
4914
  contextLoader?: DocumentLoader;
4894
4915
  suppressError?: boolean;
4895
4916
  tracerProvider?: TracerProvider;
4917
+ crossOrigin?: "ignore" | "throw" | "trust";
4896
4918
  }): AsyncIterable<Object$1 | Link>;
4897
4919
  /** A non-negative integer value identifying the relative position within
4898
4920
  * the logical view of a strictly ordered collection.
@@ -4929,11 +4951,13 @@ declare class OrderedCollectionPage extends CollectionPage {
4929
4951
  documentLoader?: DocumentLoader;
4930
4952
  contextLoader?: DocumentLoader;
4931
4953
  tracerProvider?: TracerProvider;
4954
+ baseUrl?: URL;
4932
4955
  }): Promise<OrderedCollectionPage>;
4933
4956
  protected static __fromJsonLd__OrderedCollectionPage__(json: unknown, span: Span, options?: {
4934
4957
  documentLoader?: DocumentLoader;
4935
4958
  contextLoader?: DocumentLoader;
4936
4959
  tracerProvider?: TracerProvider;
4960
+ baseUrl?: URL;
4937
4961
  }): Promise<OrderedCollectionPage>;
4938
4962
  protected _getCustomInspectProxy(): Record<string, unknown>;
4939
4963
  }
@@ -5140,6 +5164,7 @@ declare class Organization extends Object$1 {
5140
5164
  contextLoader?: DocumentLoader;
5141
5165
  suppressError?: boolean;
5142
5166
  tracerProvider?: TracerProvider;
5167
+ crossOrigin?: "ignore" | "throw" | "trust";
5143
5168
  }): Promise<CryptographicKey | null>;
5144
5169
  /**
5145
5170
  * Similar to
@@ -5154,6 +5179,7 @@ declare class Organization extends Object$1 {
5154
5179
  contextLoader?: DocumentLoader;
5155
5180
  suppressError?: boolean;
5156
5181
  tracerProvider?: TracerProvider;
5182
+ crossOrigin?: "ignore" | "throw" | "trust";
5157
5183
  }): AsyncIterable<CryptographicKey>;
5158
5184
  /**
5159
5185
  * Similar to
@@ -5171,6 +5197,7 @@ declare class Organization extends Object$1 {
5171
5197
  contextLoader?: DocumentLoader;
5172
5198
  suppressError?: boolean;
5173
5199
  tracerProvider?: TracerProvider;
5200
+ crossOrigin?: "ignore" | "throw" | "trust";
5174
5201
  }): Promise<Multikey | null>;
5175
5202
  /**
5176
5203
  * Similar to
@@ -5188,6 +5215,7 @@ declare class Organization extends Object$1 {
5188
5215
  contextLoader?: DocumentLoader;
5189
5216
  suppressError?: boolean;
5190
5217
  tracerProvider?: TracerProvider;
5218
+ crossOrigin?: "ignore" | "throw" | "trust";
5191
5219
  }): AsyncIterable<Multikey>;
5192
5220
  /** When `true`, conveys that for this actor, follow requests are not usually
5193
5221
  * automatically approved, but instead are examined by a person who may accept
@@ -5222,6 +5250,7 @@ declare class Organization extends Object$1 {
5222
5250
  contextLoader?: DocumentLoader;
5223
5251
  suppressError?: boolean;
5224
5252
  tracerProvider?: TracerProvider;
5253
+ crossOrigin?: "ignore" | "throw" | "trust";
5225
5254
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5226
5255
  /**
5227
5256
  * Similar to
@@ -5245,6 +5274,7 @@ declare class Organization extends Object$1 {
5245
5274
  contextLoader?: DocumentLoader;
5246
5275
  suppressError?: boolean;
5247
5276
  tracerProvider?: TracerProvider;
5277
+ crossOrigin?: "ignore" | "throw" | "trust";
5248
5278
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5249
5279
  /**
5250
5280
  * Similar to
@@ -5263,6 +5293,7 @@ declare class Organization extends Object$1 {
5263
5293
  contextLoader?: DocumentLoader;
5264
5294
  suppressError?: boolean;
5265
5295
  tracerProvider?: TracerProvider;
5296
+ crossOrigin?: "ignore" | "throw" | "trust";
5266
5297
  }): Promise<Collection | null>;
5267
5298
  /**
5268
5299
  * Similar to
@@ -5284,6 +5315,7 @@ declare class Organization extends Object$1 {
5284
5315
  contextLoader?: DocumentLoader;
5285
5316
  suppressError?: boolean;
5286
5317
  tracerProvider?: TracerProvider;
5318
+ crossOrigin?: "ignore" | "throw" | "trust";
5287
5319
  }): Promise<Collection | null>;
5288
5320
  /**
5289
5321
  * Similar to
@@ -5303,6 +5335,7 @@ declare class Organization extends Object$1 {
5303
5335
  contextLoader?: DocumentLoader;
5304
5336
  suppressError?: boolean;
5305
5337
  tracerProvider?: TracerProvider;
5338
+ crossOrigin?: "ignore" | "throw" | "trust";
5306
5339
  }): Promise<Collection | null>;
5307
5340
  /**
5308
5341
  * Similar to
@@ -5320,6 +5353,7 @@ declare class Organization extends Object$1 {
5320
5353
  contextLoader?: DocumentLoader;
5321
5354
  suppressError?: boolean;
5322
5355
  tracerProvider?: TracerProvider;
5356
+ crossOrigin?: "ignore" | "throw" | "trust";
5323
5357
  }): Promise<Collection | null>;
5324
5358
  /**
5325
5359
  * Similar to
@@ -5337,6 +5371,7 @@ declare class Organization extends Object$1 {
5337
5371
  contextLoader?: DocumentLoader;
5338
5372
  suppressError?: boolean;
5339
5373
  tracerProvider?: TracerProvider;
5374
+ crossOrigin?: "ignore" | "throw" | "trust";
5340
5375
  }): Promise<Collection | null>;
5341
5376
  /**
5342
5377
  * Similar to
@@ -5351,6 +5386,7 @@ declare class Organization extends Object$1 {
5351
5386
  contextLoader?: DocumentLoader;
5352
5387
  suppressError?: boolean;
5353
5388
  tracerProvider?: TracerProvider;
5389
+ crossOrigin?: "ignore" | "throw" | "trust";
5354
5390
  }): AsyncIterable<Collection>;
5355
5391
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
5356
5392
  * which may be useful either for this actor or someone referencing this actor.
@@ -5387,6 +5423,7 @@ declare class Organization extends Object$1 {
5387
5423
  contextLoader?: DocumentLoader;
5388
5424
  suppressError?: boolean;
5389
5425
  tracerProvider?: TracerProvider;
5426
+ crossOrigin?: "ignore" | "throw" | "trust";
5390
5427
  }): Promise<Application | Group | Organization | Person | Service | null>;
5391
5428
  /**
5392
5429
  * Similar to
@@ -5404,6 +5441,7 @@ declare class Organization extends Object$1 {
5404
5441
  contextLoader?: DocumentLoader;
5405
5442
  suppressError?: boolean;
5406
5443
  tracerProvider?: TracerProvider;
5444
+ crossOrigin?: "ignore" | "throw" | "trust";
5407
5445
  }): Promise<Application | Group | Organization | Person | Service | null>;
5408
5446
  /**
5409
5447
  * Similar to
@@ -5421,6 +5459,7 @@ declare class Organization extends Object$1 {
5421
5459
  contextLoader?: DocumentLoader;
5422
5460
  suppressError?: boolean;
5423
5461
  tracerProvider?: TracerProvider;
5462
+ crossOrigin?: "ignore" | "throw" | "trust";
5424
5463
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
5425
5464
  /**
5426
5465
  * Similar to
@@ -5438,6 +5477,7 @@ declare class Organization extends Object$1 {
5438
5477
  contextLoader?: DocumentLoader;
5439
5478
  suppressError?: boolean;
5440
5479
  tracerProvider?: TracerProvider;
5480
+ crossOrigin?: "ignore" | "throw" | "trust";
5441
5481
  }): Promise<DidService | null>;
5442
5482
  /**
5443
5483
  * Similar to
@@ -5455,6 +5495,7 @@ declare class Organization extends Object$1 {
5455
5495
  contextLoader?: DocumentLoader;
5456
5496
  suppressError?: boolean;
5457
5497
  tracerProvider?: TracerProvider;
5498
+ crossOrigin?: "ignore" | "throw" | "trust";
5458
5499
  }): AsyncIterable<DidService>;
5459
5500
  /** This value is used for `Actor` type objects to show message on followed.
5460
5501
  */
@@ -5496,11 +5537,13 @@ declare class Organization extends Object$1 {
5496
5537
  documentLoader?: DocumentLoader;
5497
5538
  contextLoader?: DocumentLoader;
5498
5539
  tracerProvider?: TracerProvider;
5540
+ baseUrl?: URL;
5499
5541
  }): Promise<Organization>;
5500
5542
  protected static __fromJsonLd__Organization__(json: unknown, span: Span, options?: {
5501
5543
  documentLoader?: DocumentLoader;
5502
5544
  contextLoader?: DocumentLoader;
5503
5545
  tracerProvider?: TracerProvider;
5546
+ baseUrl?: URL;
5504
5547
  }): Promise<Organization>;
5505
5548
  protected _getCustomInspectProxy(): Record<string, unknown>;
5506
5549
  }
@@ -5710,6 +5753,7 @@ declare class Person extends Object$1 {
5710
5753
  contextLoader?: DocumentLoader;
5711
5754
  suppressError?: boolean;
5712
5755
  tracerProvider?: TracerProvider;
5756
+ crossOrigin?: "ignore" | "throw" | "trust";
5713
5757
  }): Promise<CryptographicKey | null>;
5714
5758
  /**
5715
5759
  * Similar to
@@ -5724,6 +5768,7 @@ declare class Person extends Object$1 {
5724
5768
  contextLoader?: DocumentLoader;
5725
5769
  suppressError?: boolean;
5726
5770
  tracerProvider?: TracerProvider;
5771
+ crossOrigin?: "ignore" | "throw" | "trust";
5727
5772
  }): AsyncIterable<CryptographicKey>;
5728
5773
  /**
5729
5774
  * Similar to
@@ -5741,6 +5786,7 @@ declare class Person extends Object$1 {
5741
5786
  contextLoader?: DocumentLoader;
5742
5787
  suppressError?: boolean;
5743
5788
  tracerProvider?: TracerProvider;
5789
+ crossOrigin?: "ignore" | "throw" | "trust";
5744
5790
  }): Promise<Multikey | null>;
5745
5791
  /**
5746
5792
  * Similar to
@@ -5758,6 +5804,7 @@ declare class Person extends Object$1 {
5758
5804
  contextLoader?: DocumentLoader;
5759
5805
  suppressError?: boolean;
5760
5806
  tracerProvider?: TracerProvider;
5807
+ crossOrigin?: "ignore" | "throw" | "trust";
5761
5808
  }): AsyncIterable<Multikey>;
5762
5809
  /** When `true`, conveys that for this actor, follow requests are not usually
5763
5810
  * automatically approved, but instead are examined by a person who may accept
@@ -5792,6 +5839,7 @@ declare class Person extends Object$1 {
5792
5839
  contextLoader?: DocumentLoader;
5793
5840
  suppressError?: boolean;
5794
5841
  tracerProvider?: TracerProvider;
5842
+ crossOrigin?: "ignore" | "throw" | "trust";
5795
5843
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5796
5844
  /**
5797
5845
  * Similar to
@@ -5815,6 +5863,7 @@ declare class Person extends Object$1 {
5815
5863
  contextLoader?: DocumentLoader;
5816
5864
  suppressError?: boolean;
5817
5865
  tracerProvider?: TracerProvider;
5866
+ crossOrigin?: "ignore" | "throw" | "trust";
5818
5867
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5819
5868
  /**
5820
5869
  * Similar to
@@ -5833,6 +5882,7 @@ declare class Person extends Object$1 {
5833
5882
  contextLoader?: DocumentLoader;
5834
5883
  suppressError?: boolean;
5835
5884
  tracerProvider?: TracerProvider;
5885
+ crossOrigin?: "ignore" | "throw" | "trust";
5836
5886
  }): Promise<Collection | null>;
5837
5887
  /**
5838
5888
  * Similar to
@@ -5854,6 +5904,7 @@ declare class Person extends Object$1 {
5854
5904
  contextLoader?: DocumentLoader;
5855
5905
  suppressError?: boolean;
5856
5906
  tracerProvider?: TracerProvider;
5907
+ crossOrigin?: "ignore" | "throw" | "trust";
5857
5908
  }): Promise<Collection | null>;
5858
5909
  /**
5859
5910
  * Similar to
@@ -5873,6 +5924,7 @@ declare class Person extends Object$1 {
5873
5924
  contextLoader?: DocumentLoader;
5874
5925
  suppressError?: boolean;
5875
5926
  tracerProvider?: TracerProvider;
5927
+ crossOrigin?: "ignore" | "throw" | "trust";
5876
5928
  }): Promise<Collection | null>;
5877
5929
  /**
5878
5930
  * Similar to
@@ -5890,6 +5942,7 @@ declare class Person extends Object$1 {
5890
5942
  contextLoader?: DocumentLoader;
5891
5943
  suppressError?: boolean;
5892
5944
  tracerProvider?: TracerProvider;
5945
+ crossOrigin?: "ignore" | "throw" | "trust";
5893
5946
  }): Promise<Collection | null>;
5894
5947
  /**
5895
5948
  * Similar to
@@ -5907,6 +5960,7 @@ declare class Person extends Object$1 {
5907
5960
  contextLoader?: DocumentLoader;
5908
5961
  suppressError?: boolean;
5909
5962
  tracerProvider?: TracerProvider;
5963
+ crossOrigin?: "ignore" | "throw" | "trust";
5910
5964
  }): Promise<Collection | null>;
5911
5965
  /**
5912
5966
  * Similar to
@@ -5921,6 +5975,7 @@ declare class Person extends Object$1 {
5921
5975
  contextLoader?: DocumentLoader;
5922
5976
  suppressError?: boolean;
5923
5977
  tracerProvider?: TracerProvider;
5978
+ crossOrigin?: "ignore" | "throw" | "trust";
5924
5979
  }): AsyncIterable<Collection>;
5925
5980
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
5926
5981
  * which may be useful either for this actor or someone referencing this actor.
@@ -5957,6 +6012,7 @@ declare class Person extends Object$1 {
5957
6012
  contextLoader?: DocumentLoader;
5958
6013
  suppressError?: boolean;
5959
6014
  tracerProvider?: TracerProvider;
6015
+ crossOrigin?: "ignore" | "throw" | "trust";
5960
6016
  }): Promise<Application | Group | Organization | Person | Service | null>;
5961
6017
  /**
5962
6018
  * Similar to
@@ -5974,6 +6030,7 @@ declare class Person extends Object$1 {
5974
6030
  contextLoader?: DocumentLoader;
5975
6031
  suppressError?: boolean;
5976
6032
  tracerProvider?: TracerProvider;
6033
+ crossOrigin?: "ignore" | "throw" | "trust";
5977
6034
  }): Promise<Application | Group | Organization | Person | Service | null>;
5978
6035
  /**
5979
6036
  * Similar to
@@ -5991,6 +6048,7 @@ declare class Person extends Object$1 {
5991
6048
  contextLoader?: DocumentLoader;
5992
6049
  suppressError?: boolean;
5993
6050
  tracerProvider?: TracerProvider;
6051
+ crossOrigin?: "ignore" | "throw" | "trust";
5994
6052
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
5995
6053
  /**
5996
6054
  * Similar to
@@ -6008,6 +6066,7 @@ declare class Person extends Object$1 {
6008
6066
  contextLoader?: DocumentLoader;
6009
6067
  suppressError?: boolean;
6010
6068
  tracerProvider?: TracerProvider;
6069
+ crossOrigin?: "ignore" | "throw" | "trust";
6011
6070
  }): Promise<DidService | null>;
6012
6071
  /**
6013
6072
  * Similar to
@@ -6025,6 +6084,7 @@ declare class Person extends Object$1 {
6025
6084
  contextLoader?: DocumentLoader;
6026
6085
  suppressError?: boolean;
6027
6086
  tracerProvider?: TracerProvider;
6087
+ crossOrigin?: "ignore" | "throw" | "trust";
6028
6088
  }): AsyncIterable<DidService>;
6029
6089
  /** This value is used for `Actor` type objects to show message on followed.
6030
6090
  */
@@ -6066,11 +6126,13 @@ declare class Person extends Object$1 {
6066
6126
  documentLoader?: DocumentLoader;
6067
6127
  contextLoader?: DocumentLoader;
6068
6128
  tracerProvider?: TracerProvider;
6129
+ baseUrl?: URL;
6069
6130
  }): Promise<Person>;
6070
6131
  protected static __fromJsonLd__Person__(json: unknown, span: Span, options?: {
6071
6132
  documentLoader?: DocumentLoader;
6072
6133
  contextLoader?: DocumentLoader;
6073
6134
  tracerProvider?: TracerProvider;
6135
+ baseUrl?: URL;
6074
6136
  }): Promise<Person>;
6075
6137
  protected _getCustomInspectProxy(): Record<string, unknown>;
6076
6138
  }
@@ -6282,6 +6344,7 @@ declare class Service extends Object$1 {
6282
6344
  contextLoader?: DocumentLoader;
6283
6345
  suppressError?: boolean;
6284
6346
  tracerProvider?: TracerProvider;
6347
+ crossOrigin?: "ignore" | "throw" | "trust";
6285
6348
  }): Promise<CryptographicKey | null>;
6286
6349
  /**
6287
6350
  * Similar to
@@ -6296,6 +6359,7 @@ declare class Service extends Object$1 {
6296
6359
  contextLoader?: DocumentLoader;
6297
6360
  suppressError?: boolean;
6298
6361
  tracerProvider?: TracerProvider;
6362
+ crossOrigin?: "ignore" | "throw" | "trust";
6299
6363
  }): AsyncIterable<CryptographicKey>;
6300
6364
  /**
6301
6365
  * Similar to
@@ -6313,6 +6377,7 @@ declare class Service extends Object$1 {
6313
6377
  contextLoader?: DocumentLoader;
6314
6378
  suppressError?: boolean;
6315
6379
  tracerProvider?: TracerProvider;
6380
+ crossOrigin?: "ignore" | "throw" | "trust";
6316
6381
  }): Promise<Multikey | null>;
6317
6382
  /**
6318
6383
  * Similar to
@@ -6330,6 +6395,7 @@ declare class Service extends Object$1 {
6330
6395
  contextLoader?: DocumentLoader;
6331
6396
  suppressError?: boolean;
6332
6397
  tracerProvider?: TracerProvider;
6398
+ crossOrigin?: "ignore" | "throw" | "trust";
6333
6399
  }): AsyncIterable<Multikey>;
6334
6400
  /** When `true`, conveys that for this actor, follow requests are not usually
6335
6401
  * automatically approved, but instead are examined by a person who may accept
@@ -6364,6 +6430,7 @@ declare class Service extends Object$1 {
6364
6430
  contextLoader?: DocumentLoader;
6365
6431
  suppressError?: boolean;
6366
6432
  tracerProvider?: TracerProvider;
6433
+ crossOrigin?: "ignore" | "throw" | "trust";
6367
6434
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6368
6435
  /**
6369
6436
  * Similar to
@@ -6387,6 +6454,7 @@ declare class Service extends Object$1 {
6387
6454
  contextLoader?: DocumentLoader;
6388
6455
  suppressError?: boolean;
6389
6456
  tracerProvider?: TracerProvider;
6457
+ crossOrigin?: "ignore" | "throw" | "trust";
6390
6458
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6391
6459
  /**
6392
6460
  * Similar to
@@ -6405,6 +6473,7 @@ declare class Service extends Object$1 {
6405
6473
  contextLoader?: DocumentLoader;
6406
6474
  suppressError?: boolean;
6407
6475
  tracerProvider?: TracerProvider;
6476
+ crossOrigin?: "ignore" | "throw" | "trust";
6408
6477
  }): Promise<Collection | null>;
6409
6478
  /**
6410
6479
  * Similar to
@@ -6426,6 +6495,7 @@ declare class Service extends Object$1 {
6426
6495
  contextLoader?: DocumentLoader;
6427
6496
  suppressError?: boolean;
6428
6497
  tracerProvider?: TracerProvider;
6498
+ crossOrigin?: "ignore" | "throw" | "trust";
6429
6499
  }): Promise<Collection | null>;
6430
6500
  /**
6431
6501
  * Similar to
@@ -6445,6 +6515,7 @@ declare class Service extends Object$1 {
6445
6515
  contextLoader?: DocumentLoader;
6446
6516
  suppressError?: boolean;
6447
6517
  tracerProvider?: TracerProvider;
6518
+ crossOrigin?: "ignore" | "throw" | "trust";
6448
6519
  }): Promise<Collection | null>;
6449
6520
  /**
6450
6521
  * Similar to
@@ -6462,6 +6533,7 @@ declare class Service extends Object$1 {
6462
6533
  contextLoader?: DocumentLoader;
6463
6534
  suppressError?: boolean;
6464
6535
  tracerProvider?: TracerProvider;
6536
+ crossOrigin?: "ignore" | "throw" | "trust";
6465
6537
  }): Promise<Collection | null>;
6466
6538
  /**
6467
6539
  * Similar to
@@ -6479,6 +6551,7 @@ declare class Service extends Object$1 {
6479
6551
  contextLoader?: DocumentLoader;
6480
6552
  suppressError?: boolean;
6481
6553
  tracerProvider?: TracerProvider;
6554
+ crossOrigin?: "ignore" | "throw" | "trust";
6482
6555
  }): Promise<Collection | null>;
6483
6556
  /**
6484
6557
  * Similar to
@@ -6493,6 +6566,7 @@ declare class Service extends Object$1 {
6493
6566
  contextLoader?: DocumentLoader;
6494
6567
  suppressError?: boolean;
6495
6568
  tracerProvider?: TracerProvider;
6569
+ crossOrigin?: "ignore" | "throw" | "trust";
6496
6570
  }): AsyncIterable<Collection>;
6497
6571
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
6498
6572
  * which may be useful either for this actor or someone referencing this actor.
@@ -6529,6 +6603,7 @@ declare class Service extends Object$1 {
6529
6603
  contextLoader?: DocumentLoader;
6530
6604
  suppressError?: boolean;
6531
6605
  tracerProvider?: TracerProvider;
6606
+ crossOrigin?: "ignore" | "throw" | "trust";
6532
6607
  }): Promise<Application | Group | Organization | Person | Service | null>;
6533
6608
  /**
6534
6609
  * Similar to
@@ -6546,6 +6621,7 @@ declare class Service extends Object$1 {
6546
6621
  contextLoader?: DocumentLoader;
6547
6622
  suppressError?: boolean;
6548
6623
  tracerProvider?: TracerProvider;
6624
+ crossOrigin?: "ignore" | "throw" | "trust";
6549
6625
  }): Promise<Application | Group | Organization | Person | Service | null>;
6550
6626
  /**
6551
6627
  * Similar to
@@ -6563,6 +6639,7 @@ declare class Service extends Object$1 {
6563
6639
  contextLoader?: DocumentLoader;
6564
6640
  suppressError?: boolean;
6565
6641
  tracerProvider?: TracerProvider;
6642
+ crossOrigin?: "ignore" | "throw" | "trust";
6566
6643
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
6567
6644
  /**
6568
6645
  * Similar to
@@ -6580,6 +6657,7 @@ declare class Service extends Object$1 {
6580
6657
  contextLoader?: DocumentLoader;
6581
6658
  suppressError?: boolean;
6582
6659
  tracerProvider?: TracerProvider;
6660
+ crossOrigin?: "ignore" | "throw" | "trust";
6583
6661
  }): Promise<DidService | null>;
6584
6662
  /**
6585
6663
  * Similar to
@@ -6597,6 +6675,7 @@ declare class Service extends Object$1 {
6597
6675
  contextLoader?: DocumentLoader;
6598
6676
  suppressError?: boolean;
6599
6677
  tracerProvider?: TracerProvider;
6678
+ crossOrigin?: "ignore" | "throw" | "trust";
6600
6679
  }): AsyncIterable<DidService>;
6601
6680
  /** This value is used for `Actor` type objects to show message on followed.
6602
6681
  */
@@ -6638,11 +6717,13 @@ declare class Service extends Object$1 {
6638
6717
  documentLoader?: DocumentLoader;
6639
6718
  contextLoader?: DocumentLoader;
6640
6719
  tracerProvider?: TracerProvider;
6720
+ baseUrl?: URL;
6641
6721
  }): Promise<Service>;
6642
6722
  protected static __fromJsonLd__Service__(json: unknown, span: Span, options?: {
6643
6723
  documentLoader?: DocumentLoader;
6644
6724
  contextLoader?: DocumentLoader;
6645
6725
  tracerProvider?: TracerProvider;
6726
+ baseUrl?: URL;
6646
6727
  }): Promise<Service>;
6647
6728
  protected _getCustomInspectProxy(): Record<string, unknown>;
6648
6729
  }
@@ -6735,11 +6816,13 @@ declare class Source {
6735
6816
  documentLoader?: DocumentLoader;
6736
6817
  contextLoader?: DocumentLoader;
6737
6818
  tracerProvider?: TracerProvider;
6819
+ baseUrl?: URL;
6738
6820
  }): Promise<Source>;
6739
6821
  protected static __fromJsonLd__Source__(json: unknown, span: Span, options?: {
6740
6822
  documentLoader?: DocumentLoader;
6741
6823
  contextLoader?: DocumentLoader;
6742
6824
  tracerProvider?: TracerProvider;
6825
+ baseUrl?: URL;
6743
6826
  }): Promise<Source>;
6744
6827
  protected _getCustomInspectProxy(): Record<string, unknown>;
6745
6828
  }
@@ -6832,6 +6915,24 @@ interface LookupObjectOptions {
6832
6915
  * @since 0.8.0
6833
6916
  */
6834
6917
  contextLoader?: DocumentLoader;
6918
+ /**
6919
+ * Whether to allow fetching an object with an `@id` having a different
6920
+ * origin than the object's URL. This is not recommended, as it may
6921
+ * lead to security issues. Only use this option if you know what you
6922
+ * are doing.
6923
+ *
6924
+ * How to handle the case when an object's `@id` has a different origin
6925
+ * than the object's URL:
6926
+ *
6927
+ * - `"ignore"` (default): Do not return the object, and log a warning.
6928
+ * - `"throw"`: Throw an error.
6929
+ * - `"trust"`: Bypass the check and return the object anyway. This
6930
+ * is not recommended, as it may lead to security issues. Only use
6931
+ * this option if you know what you are doing.
6932
+ *
6933
+ * @since 1.9.0
6934
+ */
6935
+ crossOrigin?: "ignore" | "throw" | "trust";
6835
6936
  /**
6836
6937
  * The options for making `User-Agent` header.
6837
6938
  * If a string is given, it is used as the `User-Agent` header value.
@@ -6973,7 +7074,7 @@ interface Link$1 {
6973
7074
  /**
6974
7075
  * A URI pointing to the target resource.
6975
7076
  */
6976
- href: string;
7077
+ href?: string;
6977
7078
  /**
6978
7079
  * Human-readable titles describing the link relation. If the language is
6979
7080
  * unknown or unspecified, the key is `"und"`.
@@ -6983,6 +7084,13 @@ interface Link$1 {
6983
7084
  * Conveys additional information about the link relation.
6984
7085
  */
6985
7086
  properties?: Record<string, string>;
7087
+ /**
7088
+ * A URI Template (RFC 6570) that can be used to construct URIs by
7089
+ * substituting variables. Used primarily for subscription endpoints
7090
+ * where parameters like account URIs need to be dynamically inserted.
7091
+ * @since 1.9.0
7092
+ */
7093
+ template?: string;
6986
7094
  }
6987
7095
  //#endregion
6988
7096
  //#region src/webfinger/lookup.d.ts
@@ -7077,6 +7185,14 @@ interface SenderKeyPair {
7077
7185
  * @template TContextData The context data to pass to the {@link Context}.
7078
7186
  */
7079
7187
  type NodeInfoDispatcher<TContextData> = (context: RequestContext<TContextData>) => NodeInfo | Promise<NodeInfo>;
7188
+ /**
7189
+ * A callback that dispatches a array of {@link Link}.
7190
+ *
7191
+ * @template TContextData The context data to pass to the {@link Context}.
7192
+ * @param resource The URL queried via WebFinger.
7193
+ * @returns Links related to the queried resource.
7194
+ */
7195
+ type WebFingerLinksDispatcher<TContextData> = (context: RequestContext<TContextData>, resource: URL) => readonly Link$1[] | Promise<readonly Link$1[]>;
7080
7196
  /**
7081
7197
  * A callback that dispatches an {@link Actor} object.
7082
7198
  *
@@ -7279,7 +7395,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
7279
7395
  * the entire collection without pagination.
7280
7396
  * @since 1.8.0
7281
7397
  */
7282
- type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams, cursor: string | null) => PageItems<TItem> | null | Promise<PageItems<TItem> | null>;
7398
+ type CustomCollectionDispatcher<TItem, TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>, cursor: string | null) => PageItems<TItem> | null | Promise<PageItems<TItem> | null>;
7283
7399
  /**
7284
7400
  * A callback that counts the number of items in a custom collection.
7285
7401
  *
@@ -7289,7 +7405,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
7289
7405
  * @param values The parameters of the requested URL.
7290
7406
  * @since 1.8.0
7291
7407
  */
7292
- type CustomCollectionCounter<TParams extends Record<string, string>, TContextData> = (context: RequestContext<TContextData>, values: TParams) => number | bigint | null | Promise<number | bigint | null>;
7408
+ type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
7293
7409
  /**
7294
7410
  * A callback that returns a cursor for a custom collection.
7295
7411
  *
@@ -7302,7 +7418,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
7302
7418
  * @param values The parameters of the requested URL.
7303
7419
  * @since 1.8.0
7304
7420
  */
7305
- type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
7421
+ type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
7306
7422
  //#endregion
7307
7423
  //#region src/federation/queue.d.ts
7308
7424
  interface SenderKeyJwkPair {
@@ -7394,6 +7510,11 @@ interface Federatable<TContextData> {
7394
7510
  * @throws {RouterError} Thrown if the path pattern is invalid.
7395
7511
  */
7396
7512
  setNodeInfoDispatcher(path: string, dispatcher: NodeInfoDispatcher<TContextData>): void;
7513
+ /**
7514
+ * Registers a links dispatcher to WebFinger
7515
+ * @param dispatcher A links dispatcher callback to register.
7516
+ */
7517
+ setWebFingerLinksDispatcher(dispatcher: WebFingerLinksDispatcher<TContextData>): void;
7397
7518
  /**
7398
7519
  * Registers an actor dispatcher.
7399
7520
  *
@@ -7418,7 +7539,7 @@ interface Federatable<TContextData> {
7418
7539
  * @returns An object with methods to set other actor dispatcher callbacks.
7419
7540
  * @throws {RouterError} Thrown if the path pattern is invalid.
7420
7541
  */
7421
- setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7542
+ setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7422
7543
  /**
7423
7544
  * Registers an object dispatcher.
7424
7545
  *
@@ -7432,9 +7553,7 @@ interface Federatable<TContextData> {
7432
7553
  * must have one or more variables.
7433
7554
  * @param dispatcher An object dispatcher callback to register.
7434
7555
  */
7435
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7436
- typeId: URL;
7437
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7556
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7438
7557
  /**
7439
7558
  * Registers an object dispatcher.
7440
7559
  *
@@ -7448,9 +7567,7 @@ interface Federatable<TContextData> {
7448
7567
  * must have one or more variables.
7449
7568
  * @param dispatcher An object dispatcher callback to register.
7450
7569
  */
7451
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7452
- typeId: URL;
7453
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7570
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7454
7571
  /**
7455
7572
  * Registers an object dispatcher.
7456
7573
  *
@@ -7464,9 +7581,7 @@ interface Federatable<TContextData> {
7464
7581
  * must have one or more variables.
7465
7582
  * @param dispatcher An object dispatcher callback to register.
7466
7583
  */
7467
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7468
- typeId: URL;
7469
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7584
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7470
7585
  /**
7471
7586
  * Registers an object dispatcher.
7472
7587
  *
@@ -7480,9 +7595,7 @@ interface Federatable<TContextData> {
7480
7595
  * must have one or more variables.
7481
7596
  * @param dispatcher An object dispatcher callback to register.
7482
7597
  */
7483
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7484
- typeId: URL;
7485
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7598
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7486
7599
  /**
7487
7600
  * Registers an object dispatcher.
7488
7601
  *
@@ -7496,9 +7609,7 @@ interface Federatable<TContextData> {
7496
7609
  * must have one or more variables.
7497
7610
  * @param dispatcher An object dispatcher callback to register.
7498
7611
  */
7499
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7500
- typeId: URL;
7501
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7612
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7502
7613
  /**
7503
7614
  * Registers an object dispatcher.
7504
7615
  *
@@ -7512,9 +7623,7 @@ interface Federatable<TContextData> {
7512
7623
  * must have one or more variables.
7513
7624
  * @param dispatcher An object dispatcher callback to register.
7514
7625
  */
7515
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7516
- typeId: URL;
7517
- }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7626
+ setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7518
7627
  /**
7519
7628
  * Registers an inbox dispatcher.
7520
7629
  *
@@ -7526,7 +7635,7 @@ interface Federatable<TContextData> {
7526
7635
  * @param dispatcher An inbox dispatcher callback to register.
7527
7636
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7528
7637
  */
7529
- setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7638
+ setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7530
7639
  /**
7531
7640
  * Registers an outbox dispatcher.
7532
7641
  *
@@ -7550,7 +7659,7 @@ interface Federatable<TContextData> {
7550
7659
  * @param dispatcher An outbox dispatcher callback to register.
7551
7660
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7552
7661
  */
7553
- setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7662
+ setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7554
7663
  /**
7555
7664
  * Registers a following collection dispatcher.
7556
7665
  * @param path The URI path pattern for the following collection. The syntax
@@ -7562,7 +7671,7 @@ interface Federatable<TContextData> {
7562
7671
  * callbacks.
7563
7672
  * @throws {RouterError} Thrown if the path pattern is invalid.
7564
7673
  */
7565
- setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7674
+ setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7566
7675
  /**
7567
7676
  * Registers a followers collection dispatcher.
7568
7677
  * @param path The URI path pattern for the followers collection. The syntax
@@ -7574,7 +7683,7 @@ interface Federatable<TContextData> {
7574
7683
  * callbacks.
7575
7684
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7576
7685
  */
7577
- setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7686
+ setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7578
7687
  /**
7579
7688
  * Registers a liked collection dispatcher.
7580
7689
  * @param path The URI path pattern for the liked collection. The syntax
@@ -7586,7 +7695,7 @@ interface Federatable<TContextData> {
7586
7695
  * callbacks.
7587
7696
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7588
7697
  */
7589
- setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7698
+ setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7590
7699
  /**
7591
7700
  * Registers a featured collection dispatcher.
7592
7701
  * @param path The URI path pattern for the featured collection. The syntax
@@ -7598,7 +7707,7 @@ interface Federatable<TContextData> {
7598
7707
  * callbacks.
7599
7708
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7600
7709
  */
7601
- setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7710
+ setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7602
7711
  /**
7603
7712
  * Registers a featured tags collection dispatcher.
7604
7713
  * @param path The URI path pattern for the featured tags collection.
@@ -7610,7 +7719,7 @@ interface Federatable<TContextData> {
7610
7719
  * callbacks.
7611
7720
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7612
7721
  */
7613
- setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7722
+ setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7614
7723
  /**
7615
7724
  * Assigns the URL path for the inbox and starts setting inbox listeners.
7616
7725
  *
@@ -7640,7 +7749,37 @@ interface Federatable<TContextData> {
7640
7749
  * @returns An object to register inbox listeners.
7641
7750
  * @throws {RouteError} Thrown if the path pattern is invalid.
7642
7751
  */
7643
- setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7752
+ setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7753
+ /**
7754
+ * Registers a collection of objects dispatcher.
7755
+ *
7756
+ * @template TContextData The context data to pass to the {@link Context}.
7757
+ * @template TObject The type of objects to dispatch.
7758
+ * @template TParam The parameter names of the requested URL.
7759
+ * @param name A unique name for the collection dispatcher.
7760
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7761
+ * @param path The URI path pattern for the collection dispatcher.
7762
+ * The syntax is based on URI Template
7763
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7764
+ * The path must have one or more variables.
7765
+ * @param dispatcher A collection dispatcher callback to register.
7766
+ */
7767
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7768
+ /**
7769
+ * Registers a collection of objects dispatcher.
7770
+ *
7771
+ * @template TContextData The context data to pass to the {@link Context}.
7772
+ * @template TObject The type of objects to dispatch.
7773
+ * @template TParam The parameter names of the requested URL.
7774
+ * @param name A unique name for the collection dispatcher.
7775
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7776
+ * @param path The URI path pattern for the collection dispatcher.
7777
+ * The syntax is based on URI Template
7778
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7779
+ * The path must have one or more variables.
7780
+ * @param dispatcher A collection dispatcher callback to register.
7781
+ */
7782
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7644
7783
  /**
7645
7784
  * Registers a collection of objects dispatcher.
7646
7785
  *
@@ -7655,7 +7794,22 @@ interface Federatable<TContextData> {
7655
7794
  * The path must have one or more variables.
7656
7795
  * @param dispatcher A collection dispatcher callback to register.
7657
7796
  */
7658
- setCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
7797
+ setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7798
+ /**
7799
+ * Registers an ordered collection of objects dispatcher.
7800
+ *
7801
+ * @template TContextData The context data to pass to the {@link Context}.
7802
+ * @template TObject The type of objects to dispatch.
7803
+ * @template TParam The parameter names of the requested URL.
7804
+ * @param name A unique name for the collection dispatcher.
7805
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7806
+ * @param path The URI path pattern for the collection dispatcher.
7807
+ * The syntax is based on URI Template
7808
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7809
+ * The path must have one or more variables.
7810
+ * @param dispatcher A collection dispatcher callback to register.
7811
+ */
7812
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7659
7813
  /**
7660
7814
  * Registers an ordered collection of objects dispatcher.
7661
7815
  *
@@ -7670,7 +7824,22 @@ interface Federatable<TContextData> {
7670
7824
  * The path must have one or more variables.
7671
7825
  * @param dispatcher A collection dispatcher callback to register.
7672
7826
  */
7673
- setOrderedCollectionDispatcher<TObject extends Object$1, TParams extends Record<string, string>>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: ParamsKeyPath<TParams>, dispatcher: CustomCollectionDispatcher<TObject, TParams, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParams, RequestContext<TContextData>, TContextData>;
7827
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7828
+ /**
7829
+ * Registers an ordered collection of objects dispatcher.
7830
+ *
7831
+ * @template TContextData The context data to pass to the {@link Context}.
7832
+ * @template TObject The type of objects to dispatch.
7833
+ * @template TParam The parameter names of the requested URL.
7834
+ * @param name A unique name for the collection dispatcher.
7835
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7836
+ * @param path The URI path pattern for the collection dispatcher.
7837
+ * The syntax is based on URI Template
7838
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7839
+ * The path must have one or more variables.
7840
+ * @param dispatcher A collection dispatcher callback to register.
7841
+ */
7842
+ setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
7674
7843
  }
7675
7844
  /**
7676
7845
  * An object that registers federation-related business logic and dispatches
@@ -7841,6 +8010,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
7841
8010
  */
7842
8011
  authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
7843
8012
  }
8013
+ /**
8014
+ * The strategy for handling activity idempotency in inbox processing.
8015
+ *
8016
+ * - `"global"`: Activities are deduplicated globally across all inboxes and
8017
+ * origins. The same activity ID will be processed only once, regardless
8018
+ * of which inbox receives it or which server sent it.
8019
+ *
8020
+ * - `"per-origin"`: Activities are deduplicated per receiving server's origin.
8021
+ * The same activity ID will be processed only once on each receiving server,
8022
+ * but can be processed separately on different receiving servers. This had
8023
+ * been the default behavior in Fedify 1.x versions.
8024
+ *
8025
+ * - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
8026
+ * ID can be processed once per inbox, allowing the same activity to be
8027
+ * delivered to multiple inboxes independently. This follows standard
8028
+ * ActivityPub behavior and is the default strategy since Fedify 2.0.0.
8029
+ *
8030
+ * @since 1.9.0
8031
+ */
8032
+ type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
8033
+ /**
8034
+ * A callback to generate a custom idempotency key for an activity.
8035
+ * Returns the cache key to use, or null to skip idempotency checking.
8036
+ * @template TContextData The context data to pass to the {@link InboxContext}.
8037
+ * @param ctx The inbox context.
8038
+ * @param activity The activity being processed.
8039
+ * @returns The idempotency key to use for caching, or null to skip caching.
8040
+ * @since 1.9.0
8041
+ */
8042
+ type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
7844
8043
  /**
7845
8044
  * Registry for inbox listeners for different activity types.
7846
8045
  */
@@ -7871,6 +8070,36 @@ interface InboxListenerSetters<TContextData> {
7871
8070
  * @since 0.11.0
7872
8071
  */
7873
8072
  setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
8073
+ /**
8074
+ * Configures the strategy for handling activity idempotency in inbox processing.
8075
+ *
8076
+ * @example
8077
+ * Use per-inbox strategy (standard ActivityPub behavior):
8078
+ * ```
8079
+ * federation
8080
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8081
+ * .withIdempotency("per-inbox");
8082
+ * ```
8083
+ *
8084
+ * Use custom strategy:
8085
+ * ```
8086
+ * federation
8087
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8088
+ * .withIdempotency((ctx, activity) => {
8089
+ * // Return null to skip idempotency
8090
+ * return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
8091
+ * });
8092
+ * ```
8093
+ *
8094
+ * @param strategy The idempotency strategy to use. Can be:
8095
+ * - `"global"`: Activities are deduplicated across all inboxes and origins
8096
+ * - `"per-origin"`: Activities are deduplicated per inbox origin
8097
+ * - `"per-inbox"`: Activities are deduplicated per inbox
8098
+ * - A custom callback function that returns the cache key to use
8099
+ * @returns The setters object so that settings can be chained.
8100
+ * @since 1.9.0
8101
+ */
8102
+ withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
7874
8103
  }
7875
8104
  /**
7876
8105
  * Parameters of {@link Federation.fetch} method.
@@ -7909,38 +8138,38 @@ interface FederationFetchOptions<TContextData> {
7909
8138
  /**
7910
8139
  * Additional settings for a custom collection dispatcher.
7911
8140
  *
7912
- * @template TParams The type of the parameters in the URL path.
8141
+ * @template TParam The type of the parameters in the URL path.
7913
8142
  * @template TContext The type of the context. {@link Context} or
7914
8143
  * {@link RequestContext}.
7915
8144
  * @template TContextData The context data to pass to the {@link Context}.
7916
8145
  * @template TFilter The type of filter for the collection.
7917
8146
  */
7918
- interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> {
8147
+ interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
7919
8148
  /**
7920
8149
  * Sets the counter for the custom collection.
7921
8150
  * @param counter A callback that returns the number of items in the custom collection.
7922
8151
  * @returns The setters object so that settings can be chained.
7923
8152
  */
7924
- setCounter(counter: CustomCollectionCounter<TParams, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8153
+ setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7925
8154
  /**
7926
8155
  * Sets the first cursor for the custom collection.
7927
8156
  * @param cursor The cursor for the first item in the custom collection.
7928
8157
  * @returns The setters object so that settings can be chained.
7929
8158
  */
7930
- setFirstCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8159
+ setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7931
8160
  /**
7932
8161
  * Sets the last cursor for the custom collection.
7933
8162
  * @param cursor The cursor for the last item in the custom collection.
7934
8163
  * @returns The setters object so that settings can be chained.
7935
8164
  */
7936
- setLastCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8165
+ setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7937
8166
  /**
7938
8167
  * Specifies the conditions under which requests are authorized.
7939
8168
  * @param predicate A callback that returns whether a request is authorized.
7940
8169
  * @returns The setters object so that settings can be chained.
7941
8170
  * @since 0.7.0
7942
8171
  */
7943
- authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8172
+ authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7944
8173
  }
7945
8174
  /**
7946
8175
  * Represents an object with a type ID, which is either a constructor or an
@@ -7952,73 +8181,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
7952
8181
  typeId: URL;
7953
8182
  };
7954
8183
  /**
7955
- * Represents a path from the key of parameter objects.
7956
- * @param Params - A record of parameters where keys are parameter names and
7957
- * values are their string representations.
7958
- * @returns A string representing the path with all parameters.
7959
- * @example
7960
- * ```ts
7961
- * type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
7962
- * let userPostPath: UserPostPath;
7963
- * // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
7964
- * // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
7965
- * userPostPath = "/users/{userId}/posts/{postId}"; // valid
7966
- * userPostPath = "/posts/{postId}/users/{userId}"; // valid
7967
- * ```
7968
- */
7969
- type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
7970
- /**
7971
- * Represents a path with multiple parameters.
7972
- * All permutations of the parameters are included in the union type.
7973
- * The path must have all parameters in the form of `{paramName}`.
7974
- * @param Params - A union of parameter names.
7975
- * @returns A string representing the path with all parameters.
7976
- * @example
7977
- * ```ts
7978
- * type UserPostPath = ParamsPath<"userId" | "postId">;
7979
- * // = `${string}{userId}${string}` & `${string}{postId}${string}`
7980
- * // =
7981
- * // | `${string}{userId}${string}{postId}${string}`
7982
- * // | `${string}{postId}${string}{userId}${string}`
7983
- * let userPostPath: UserPostPath;
7984
- * userPostPath = "/users/posts"; // ❌ invalid
7985
- * userPostPath = "/users/{userId}"; // ❌ invalid
7986
- * userPostPath = "/posts/{postId}"; // ❌ invalid
7987
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
7988
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
7989
- */
7990
- type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
7991
- /**
7992
- * Represents a path with a single parameter.
7993
- * The path must have at least one of the parameters in the form of `{paramName}`.
7994
- * @param Param - The name of the parameter.
7995
- * @returns A string representing the path with the parameter.
7996
- * @example
7997
- * ```ts
7998
- * type UserPostPath = ParamPath<"userId" | "postId">;
7999
- * // = `${string}{userId}${string}` | `${string}{postId}${string}`
8000
- * let userPostPath: UserPostPath;
8001
- * userPostPath = "/users/posts"; // ❌ invalid
8002
- * userPostPath = "/users/{userId}"; // ✅ valid
8003
- * userPostPath = "/posts/{postId}"; // ✅ valid
8004
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
8005
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
8006
- */
8007
- type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
8008
- /**
8009
- * Converts union types to intersection types.
8184
+ * Defines a union of all valid RFC 6570 URI Template expressions for a given
8185
+ * parameter name.
8186
+ *
8187
+ * RFC 6570 specifies a syntax for URI templates, allowing for variable
8188
+ * expansion. This type captures all Level 1-4 operator expressions for a
8189
+ * single, named variable.
8190
+ *
8191
+ * The supported expression types are:
8192
+ * - `{Param}`: Simple string expansion
8193
+ * - `+{Param}`: Reserved string expansion
8194
+ * - `#{Param}`: Fragment expansion
8195
+ * - `{.Param}`: Label expansion with a dot-prefix
8196
+ * - `{/Param}`: Path segment expansion
8197
+ * - `{;Param}`: Path-style parameter expansion
8198
+ * - `{?Param}`: Query component expansion
8199
+ * - `{&Param}`: Query continuation expansion
8010
8200
  *
8011
- * @template U - The union type to convert.
8012
- * @returns The intersection type of the union.
8201
+ * @template Param The name of the parameter to be used in the expressions.
8013
8202
  * @example
8014
8203
  * ```ts
8015
- * type A = { a: string };
8016
- * type B = { b: number };
8017
- * type AorB = A | B;
8018
- * type AandB = UnionToIntersection<AorB>;
8019
- * // AandB = { a: string; b: number }
8204
+ * type UserIdExpression = Rfc6570Expression<"userId">;
8205
+ *
8206
+ * // The variable `userPath` can be assigned any of the valid expressions.
8207
+ * const userPath: UserIdExpression = "{/userId}";
8208
+ * ```
8209
+ * @see {@link https://tools.ietf.org/html/rfc6570} for the full specification.
8020
8210
  */
8021
- type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
8211
+ type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
8022
8212
  //#endregion
8023
8213
  //#region src/federation/context.d.ts
8024
8214
  /**
@@ -8107,9 +8297,7 @@ interface Context<TContextData> {
8107
8297
  * @throws {TypeError} If values are invalid.
8108
8298
  * @since 0.7.0
8109
8299
  */
8110
- getObjectUri<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8111
- typeId: URL;
8112
- }, values: Record<string, string>): URL;
8300
+ getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
8113
8301
  /**
8114
8302
  * Builds the URI of an actor's outbox with the given identifier.
8115
8303
  * @param identifier The actor's identifier.
@@ -8423,9 +8611,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
8423
8611
  * @throws {TypeError} If values are invalid.
8424
8612
  * @since 0.7.0
8425
8613
  */
8426
- getObject<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8427
- typeId: URL;
8428
- }, values: Record<string, string>): Promise<TObject | null>;
8614
+ getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
8429
8615
  /**
8430
8616
  * Gets the public key of the sender, if any exists and it is verified.
8431
8617
  * Otherwise, `null` is returned.
@@ -8569,9 +8755,7 @@ type ParseUriResult =
8569
8755
  * The case of an object URI.
8570
8756
  */ | {
8571
8757
  readonly type: "object";
8572
- readonly class: (new (...args: any[]) => Object$1) & {
8573
- typeId: URL;
8574
- };
8758
+ readonly class: ConstructorWithTypeId<Object$1>;
8575
8759
  readonly typeId: URL;
8576
8760
  readonly values: Record<string, string>;
8577
8761
  }
@@ -8802,10 +8986,4 @@ declare function createInboxContext<TContextData>(args: Partial<InboxContext<TCo
8802
8986
  federation: Federation<TContextData>;
8803
8987
  }): InboxContext<TContextData>;
8804
8988
  //#endregion
8805
- //#region src/testing/mod.d.ts
8806
- declare const testDefinitions: Deno.TestDefinition[];
8807
- declare function test(options: Deno.TestDefinition): void;
8808
- declare function test(name: string, fn: (t: Deno.TestContext) => void | Promise<void>): void;
8809
- declare function test(name: string, options: Omit<Deno.TestDefinition, "fn" | "name">, fn: (t: Deno.TestContext) => void | Promise<void>): void;
8810
- //#endregion
8811
- export { createInboxContext, createRequestContext, test, testDefinitions };
8989
+ export { createInboxContext, createRequestContext };