@fedify/fedify 2.0.0-pr.412.1559 → 2.0.0-pr.412.1794

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 (204) hide show
  1. package/README.md +3 -0
  2. package/dist/{actor-Cc6B76eG.js → actor-BXHc5r-q.js} +1 -1
  3. package/dist/actor-Ba9Z1eNJ.cjs +42079 -0
  4. package/dist/{actor-C22bXuuC.d.ts → actor-DqFajh9s.d.ts} +2 -2
  5. package/dist/{actor-CTAuCsWy.js → actor-DzhunPC_.js} +7058 -2722
  6. package/dist/actor-f2NtjyCg.d.cts +128 -0
  7. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-Ce45JcFg.js} +1 -1
  8. package/dist/{assert_is_error-BPGph1Jx.js → assert_throws-BNXdRGWP.js} +31 -1
  9. package/dist/{builder-BOEBObR8.js → builder-u7usRsT3.js} +13 -8
  10. package/dist/chunk-DqRYRqnO.cjs +34 -0
  11. package/dist/client-94iWEfQa.d.cts +222 -0
  12. package/dist/{client-DF8anIB5.d.ts → client-BsGzbnV-.d.ts} +3 -75
  13. package/dist/{client-De-z2UnN.js → client-pY7-3icS.js} +3 -22
  14. package/dist/compat/mod.cjs +10 -0
  15. package/dist/compat/mod.d.cts +12 -0
  16. package/dist/compat/mod.d.ts +11 -12
  17. package/dist/compat/mod.js +5 -5
  18. package/dist/compat/transformers.test.js +20 -20
  19. package/dist/compat-DmDDELst.cjs +4 -0
  20. package/dist/compat-nxUqe4Z-.js +4 -0
  21. package/dist/{context-9gCpIkiz.d.ts → context-DG0huGW-.d.ts} +184 -127
  22. package/dist/context-DJ8aSy2Q.d.cts +2312 -0
  23. package/dist/{authdocloader-CLgDGafZ.js → docloader-CrbAy9Oc.js} +17 -8
  24. package/dist/{esm-CHdxdkuH.js → esm-C-Qa1zEM.js} +11 -11
  25. package/dist/federation/builder.test.js +9 -12
  26. package/dist/federation/collection.test.js +7 -9
  27. package/dist/federation/handler.test.js +27 -148
  28. package/dist/federation/idempotency.test.js +201 -0
  29. package/dist/federation/inbox.test.js +4 -6
  30. package/dist/federation/keycache.test.js +3 -4
  31. package/dist/federation/kv.test.js +7 -8
  32. package/dist/federation/middleware.test.js +242 -64
  33. package/dist/federation/mod.cjs +27 -0
  34. package/dist/federation/mod.d.cts +12 -0
  35. package/dist/federation/mod.d.ts +12 -13
  36. package/dist/federation/mod.js +13 -15
  37. package/dist/federation/mq.test.js +8 -10
  38. package/dist/federation/negotiation.test.js +26 -0
  39. package/dist/federation/retry.test.js +4 -5
  40. package/dist/federation/router.test.js +6 -8
  41. package/dist/federation/send.test.js +13 -15
  42. package/dist/federation-CRpdnOMS.cjs +244 -0
  43. package/dist/{federation-CMX7WzeL.js → federation-jcR8-ZxP.js} +3 -3
  44. package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
  45. package/dist/{http-DqSNLFNY.d.ts → http-BbO0ejuk.d.ts} +2 -2
  46. package/dist/{http-l0TEupZK.js → http-CUVx-vzb.js} +260 -10
  47. package/dist/{http-CcdM1brU.js → http-D2kIm9la.js} +3 -3
  48. package/dist/http-Dofes42e.cjs +1106 -0
  49. package/dist/http-M8k5mKc0.d.cts +253 -0
  50. package/dist/{inbox-B6DZbGNf.js → inbox-HjG5peXY.js} +24 -7
  51. package/dist/{key-CzLv1phF.js → key-CxdLUFS6.js} +3 -2
  52. package/dist/{keycache-B8HdZJSt.js → keycache-bU7COwsh.js} +1 -1
  53. package/dist/{keys-zZwiKkfx.js → keys-DMHs8XNn.js} +2 -1
  54. package/dist/kv-Bxr0Q87_.d.cts +81 -0
  55. package/dist/kv-cache-CGXcDejL.js +122 -0
  56. package/dist/kv-cache-DN9pfMBe.js +94 -0
  57. package/dist/kv-cache-Dkvbn6rg.cjs +134 -0
  58. package/dist/{ld-CBcQdZ6N.js → ld-CIhvSCCr.js} +5 -4
  59. package/dist/lookup-CHkCVZTU.js +260 -0
  60. package/dist/lookup-CfFkONZD.cjs +272 -0
  61. package/dist/{type-SK-d7Tbw.js → lookup-DQRtjvb1.js} +7266 -7087
  62. package/dist/middleware-Bot7EEwV.js +26 -0
  63. package/dist/middleware-CFJgmUMW.cjs +15 -0
  64. package/dist/{middleware-BRgu1IH8.js → middleware-CJlj5Olw.js} +86 -181
  65. package/dist/middleware-CjHl2NHA.js +15 -0
  66. package/dist/middleware-D74TgW2E.cjs +4225 -0
  67. package/dist/{middleware-CxEkcFW0.js → middleware-DMk2Mdn9.js} +117 -127
  68. package/dist/mod-0noXw66R.d.cts +107 -0
  69. package/dist/mod-B-hUPT2N.d.cts +1 -0
  70. package/dist/{mod-Drmz72EK.d.ts → mod-B2iOw50L.d.ts} +3 -3
  71. package/dist/mod-B9M-8jm2.d.ts +109 -0
  72. package/dist/{mod-Cxt4Kpf6.d.ts → mod-BlVovdcy.d.ts} +20 -2
  73. package/dist/{mod-Bqxcp7eN.d.ts → mod-BoHnwOCs.d.ts} +2 -2
  74. package/dist/mod-BxRCHTz-.d.cts +307 -0
  75. package/dist/mod-C2tOeRkN.d.cts +1 -0
  76. package/dist/mod-C58MZ7Wx.d.cts +113 -0
  77. package/dist/mod-DJcZDvjA.d.cts +80 -0
  78. package/dist/mod-DgdBYYa0.d.cts +266 -0
  79. package/dist/{mod-DBzN0aCM.d.ts → mod-Ds0mpFZU.d.ts} +1 -1
  80. package/dist/mod.cjs +137 -0
  81. package/dist/mod.d.cts +16 -0
  82. package/dist/mod.d.ts +16 -17
  83. package/dist/mod.js +19 -21
  84. package/dist/mq-DcJPkXD5.d.cts +140 -0
  85. package/dist/negotiation-C4nFufNk.js +71 -0
  86. package/dist/nodeinfo/client.test.js +30 -111
  87. package/dist/nodeinfo/handler.test.js +25 -26
  88. package/dist/nodeinfo/mod.cjs +10 -0
  89. package/dist/nodeinfo/mod.d.cts +3 -0
  90. package/dist/nodeinfo/mod.d.ts +3 -5
  91. package/dist/nodeinfo/mod.js +6 -7
  92. package/dist/nodeinfo/types.test.js +8 -15
  93. package/dist/nodeinfo-BnthBobC.js +4 -0
  94. package/dist/nodeinfo-CdN0rEnZ.cjs +4 -0
  95. package/dist/owner-B4HbyP8s.d.cts +67 -0
  96. package/dist/{owner-VEIjmR8r.js → owner-Dvh7mBvr.js} +3 -2
  97. package/dist/{owner-CQPnQVtf.d.ts → owner-kQRGVXG1.d.ts} +3 -3
  98. package/dist/proof-D0uThUvD.cjs +674 -0
  99. package/dist/{proof-DoSQAGkE.js → proof-Dgy35fzc.js} +3 -3
  100. package/dist/{proof-tgUlT8hw.js → proof-fqzaMJ4g.js} +11 -10
  101. package/dist/{send-BzS7w-QF.js → send-Drp20VO9.js} +2 -2
  102. package/dist/sig/http.test.js +13 -14
  103. package/dist/sig/key.test.js +9 -11
  104. package/dist/sig/ld.test.js +8 -10
  105. package/dist/sig/mod.cjs +28 -0
  106. package/dist/sig/mod.d.cts +6 -0
  107. package/dist/sig/mod.d.ts +5 -7
  108. package/dist/sig/mod.js +8 -10
  109. package/dist/sig/owner.test.js +10 -12
  110. package/dist/sig/proof.test.js +13 -14
  111. package/dist/sig-C34-oHBl.js +4 -0
  112. package/dist/sig-YYj5tCnr.cjs +4 -0
  113. package/dist/testing/docloader.test.js +6 -8
  114. package/dist/testing/mod.d.ts +387 -224
  115. package/dist/testing/mod.js +2 -3
  116. package/dist/{testing-Z2omCvKy.js → testing-g4UC4liW.js} +1 -2
  117. package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
  118. package/dist/transformers-CoBS-oFG.cjs +116 -0
  119. package/dist/{types-DgPvoUWN.js → types-BtUjyi5y.js} +8 -169
  120. package/dist/{types-BIgY6c-l.js → types-C2XVl6gj.js} +1 -3
  121. package/dist/types-CWgzGaqk.cjs +315 -0
  122. package/dist/{runtime/authdocloader.test.js → utils/docloader.test.js} +14 -15
  123. package/dist/utils/kv-cache.test.js +209 -0
  124. package/dist/utils/mod.cjs +12 -0
  125. package/dist/utils/mod.d.cts +5 -0
  126. package/dist/utils/mod.d.ts +7 -0
  127. package/dist/utils/mod.js +11 -0
  128. package/dist/utils-D-Va7aXC.js +4 -0
  129. package/dist/utils-DyRU1gdZ.cjs +4 -0
  130. package/dist/vocab/actor.test.js +8 -10
  131. package/dist/vocab/lookup.test.js +257 -9
  132. package/dist/vocab/mod.cjs +86 -0
  133. package/dist/vocab/mod.d.cts +4 -0
  134. package/dist/vocab/mod.d.ts +3 -5
  135. package/dist/vocab/mod.js +6 -7
  136. package/dist/vocab/type.test.js +2 -3
  137. package/dist/vocab/vocab.test.js +438 -15
  138. package/dist/{vocab-SOE1ifCr.d.ts → vocab-BCWe1Ih5.d.ts} +292 -21
  139. package/dist/{vocab-CvD6Vbml.js → vocab-BnR3nIU9.js} +26 -17
  140. package/dist/vocab-CeDBzu-f.d.cts +14903 -0
  141. package/dist/{lookup-Bn_HEC_d.js → vocab-DFaWWYDn.cjs} +108 -139
  142. package/dist/webfinger/handler.test.js +24 -25
  143. package/dist/webfinger/lookup.test.js +7 -9
  144. package/dist/webfinger/mod.cjs +8 -0
  145. package/dist/webfinger/mod.d.cts +2 -0
  146. package/dist/webfinger/mod.d.ts +1 -3
  147. package/dist/webfinger/mod.js +5 -6
  148. package/dist/webfinger-C72Y8lrh.js +4 -0
  149. package/dist/webfinger-vAtLmxOF.cjs +4 -0
  150. package/dist/x/cfworkers.cjs +100 -0
  151. package/dist/x/cfworkers.d.cts +59 -0
  152. package/dist/x/cfworkers.d.ts +2 -2
  153. package/dist/x/cfworkers.js +3 -3
  154. package/dist/x/cfworkers.test.js +6 -8
  155. package/dist/x/hono.cjs +61 -0
  156. package/dist/x/hono.d.cts +53 -0
  157. package/dist/x/hono.d.ts +10 -11
  158. package/dist/x/hono.js +3 -3
  159. package/dist/x/sveltekit.cjs +69 -0
  160. package/dist/x/sveltekit.d.cts +45 -0
  161. package/dist/x/sveltekit.d.ts +10 -11
  162. package/dist/x/sveltekit.js +3 -3
  163. package/package.json +79 -23
  164. package/dist/assert_throws-BOO88avQ.js +0 -39
  165. package/dist/authdocloader-BFVqUbyo.js +0 -52
  166. package/dist/compat-Bb5myD13.js +0 -4
  167. package/dist/docloader-CxWcuWqQ.d.ts +0 -221
  168. package/dist/docloader-DEhniCVa.js +0 -4615
  169. package/dist/key-CUZQgVlf.js +0 -10
  170. package/dist/key-Deb0_wWL.js +0 -10
  171. package/dist/key-DxA6xRtZ.js +0 -260
  172. package/dist/lookup-dtdr2ftf.js +0 -131
  173. package/dist/middleware-BE_geSiJ.js +0 -17
  174. package/dist/middleware-BnU6hzVp.js +0 -26
  175. package/dist/mod-TFoH2Ql8.d.ts +0 -104
  176. package/dist/nodeinfo/semver.test.js +0 -143
  177. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  178. package/dist/runtime/docloader.test.js +0 -522
  179. package/dist/runtime/key.test.js +0 -103
  180. package/dist/runtime/langstr.test.d.ts +0 -3
  181. package/dist/runtime/langstr.test.js +0 -39
  182. package/dist/runtime/mod.d.ts +0 -8
  183. package/dist/runtime/mod.js +0 -13
  184. package/dist/runtime/multibase/multibase.test.d.ts +0 -3
  185. package/dist/runtime/multibase/multibase.test.js +0 -358
  186. package/dist/runtime/url.test.d.ts +0 -3
  187. package/dist/runtime/url.test.js +0 -45
  188. package/dist/runtime-BSkOVUWM.js +0 -4
  189. package/dist/semver-dArNLkR9.js +0 -149
  190. package/dist/sig-BXJO--F9.js +0 -4
  191. package/dist/webfinger-C3GIyXIg.js +0 -4
  192. /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
  193. /package/dist/{collection-CSzG2j1P.js → collection-BzWsN9pB.js} +0 -0
  194. /package/dist/{denokv-Bv33Xxea.js → denokv-CCssOzMJ.js} +0 -0
  195. /package/dist/{nodeinfo/semver.test.d.ts → federation/idempotency.test.d.ts} +0 -0
  196. /package/dist/{runtime/authdocloader.test.d.ts → federation/negotiation.test.d.ts} +0 -0
  197. /package/dist/{kv-C7sopW2E.d.ts → kv-BKNZ-Tb-.d.ts} +0 -0
  198. /package/dist/{mod-1pDWKvUL.d.ts → mod-CVgZgliM.d.ts} +0 -0
  199. /package/dist/{mod-g0xFzAP9.d.ts → mod-xIj-IT58.d.ts} +0 -0
  200. /package/dist/{mq-CRGm1e_F.d.ts → mq-CUKlBw08.d.ts} +0 -0
  201. /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
  202. /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
  203. /package/dist/{runtime → utils}/docloader.test.d.ts +0 -0
  204. /package/dist/{runtime/key.test.d.ts → utils/kv-cache.test.d.ts} +0 -0
@@ -1,101 +1,9 @@
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";
5
6
 
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
7
  //#region src/nodeinfo/types.d.ts
100
8
  /**
101
9
  * The type of the result of parsing JSON.
@@ -145,9 +53,8 @@ interface Software {
145
53
  name: string;
146
54
  /**
147
55
  * The version of this server software.
148
- * @see {@link parseSemVer}
149
56
  */
150
- version: SemVer;
57
+ version: string;
151
58
  /**
152
59
  * The URL of the source code repository of this server software.
153
60
  */
@@ -275,25 +182,6 @@ interface GetNodeInfoOptions {
275
182
  * @since 1.2.0
276
183
  */
277
184
  //#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
185
  //#region src/vocab/vocab.d.ts
298
186
  /** Describes an object of any kind. The Object type serves as the base type for
299
187
  * most of the other kinds of objects defined in the Activity Vocabulary,
@@ -453,6 +341,7 @@ declare class Object$1 {
453
341
  contextLoader?: DocumentLoader;
454
342
  suppressError?: boolean;
455
343
  tracerProvider?: TracerProvider;
344
+ crossOrigin?: "ignore" | "throw" | "trust";
456
345
  }): AsyncIterable<Object$1 | Link | PropertyValue>;
457
346
  /**
458
347
  * Similar to
@@ -469,6 +358,7 @@ declare class Object$1 {
469
358
  contextLoader?: DocumentLoader;
470
359
  suppressError?: boolean;
471
360
  tracerProvider?: TracerProvider;
361
+ crossOrigin?: "ignore" | "throw" | "trust";
472
362
  }): Promise<Application | Group | Organization | Person | Service | null>;
473
363
  /**
474
364
  * Similar to
@@ -485,6 +375,7 @@ declare class Object$1 {
485
375
  contextLoader?: DocumentLoader;
486
376
  suppressError?: boolean;
487
377
  tracerProvider?: TracerProvider;
378
+ crossOrigin?: "ignore" | "throw" | "trust";
488
379
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
489
380
  /**
490
381
  * Similar to
@@ -500,6 +391,7 @@ declare class Object$1 {
500
391
  contextLoader?: DocumentLoader;
501
392
  suppressError?: boolean;
502
393
  tracerProvider?: TracerProvider;
394
+ crossOrigin?: "ignore" | "throw" | "trust";
503
395
  }): Promise<Object$1 | null>;
504
396
  /**
505
397
  * Similar to
@@ -515,6 +407,7 @@ declare class Object$1 {
515
407
  contextLoader?: DocumentLoader;
516
408
  suppressError?: boolean;
517
409
  tracerProvider?: TracerProvider;
410
+ crossOrigin?: "ignore" | "throw" | "trust";
518
411
  }): AsyncIterable<Object$1>;
519
412
  /** The content or textual representation of the Object encoded as a JSON
520
413
  * string. By default, the value of `content` is HTML. The `mediaType`
@@ -549,6 +442,7 @@ declare class Object$1 {
549
442
  contextLoader?: DocumentLoader;
550
443
  suppressError?: boolean;
551
444
  tracerProvider?: TracerProvider;
445
+ crossOrigin?: "ignore" | "throw" | "trust";
552
446
  }): AsyncIterable<Object$1 | Link>;
553
447
  /** A simple, human-readable, plain-text name for the object. HTML markup MUST
554
448
  * NOT be included. The name MAY be expressed using multiple language-tagged
@@ -579,6 +473,7 @@ declare class Object$1 {
579
473
  contextLoader?: DocumentLoader;
580
474
  suppressError?: boolean;
581
475
  tracerProvider?: TracerProvider;
476
+ crossOrigin?: "ignore" | "throw" | "trust";
582
477
  }): AsyncIterable<Object$1 | Link>;
583
478
  /**
584
479
  * Similar to
@@ -595,6 +490,7 @@ declare class Object$1 {
595
490
  contextLoader?: DocumentLoader;
596
491
  suppressError?: boolean;
597
492
  tracerProvider?: TracerProvider;
493
+ crossOrigin?: "ignore" | "throw" | "trust";
598
494
  }): Promise<Image | null>;
599
495
  /**
600
496
  * Similar to
@@ -611,6 +507,7 @@ declare class Object$1 {
611
507
  contextLoader?: DocumentLoader;
612
508
  suppressError?: boolean;
613
509
  tracerProvider?: TracerProvider;
510
+ crossOrigin?: "ignore" | "throw" | "trust";
614
511
  }): AsyncIterable<Image>;
615
512
  /**
616
513
  * Similar to
@@ -627,6 +524,7 @@ declare class Object$1 {
627
524
  contextLoader?: DocumentLoader;
628
525
  suppressError?: boolean;
629
526
  tracerProvider?: TracerProvider;
527
+ crossOrigin?: "ignore" | "throw" | "trust";
630
528
  }): Promise<Image | null>;
631
529
  /**
632
530
  * Similar to
@@ -643,6 +541,7 @@ declare class Object$1 {
643
541
  contextLoader?: DocumentLoader;
644
542
  suppressError?: boolean;
645
543
  tracerProvider?: TracerProvider;
544
+ crossOrigin?: "ignore" | "throw" | "trust";
646
545
  }): AsyncIterable<Image>;
647
546
  /**
648
547
  * Similar to
@@ -658,6 +557,7 @@ declare class Object$1 {
658
557
  contextLoader?: DocumentLoader;
659
558
  suppressError?: boolean;
660
559
  tracerProvider?: TracerProvider;
560
+ crossOrigin?: "ignore" | "throw" | "trust";
661
561
  }): Promise<Object$1 | Link | null>;
662
562
  /**
663
563
  * Similar to
@@ -673,6 +573,7 @@ declare class Object$1 {
673
573
  contextLoader?: DocumentLoader;
674
574
  suppressError?: boolean;
675
575
  tracerProvider?: TracerProvider;
576
+ crossOrigin?: "ignore" | "throw" | "trust";
676
577
  }): AsyncIterable<Object$1 | Link>;
677
578
  /**
678
579
  * Similar to
@@ -688,6 +589,7 @@ declare class Object$1 {
688
589
  contextLoader?: DocumentLoader;
689
590
  suppressError?: boolean;
690
591
  tracerProvider?: TracerProvider;
592
+ crossOrigin?: "ignore" | "throw" | "trust";
691
593
  }): Promise<Object$1 | Link | null>;
692
594
  /**
693
595
  * Similar to
@@ -703,6 +605,7 @@ declare class Object$1 {
703
605
  contextLoader?: DocumentLoader;
704
606
  suppressError?: boolean;
705
607
  tracerProvider?: TracerProvider;
608
+ crossOrigin?: "ignore" | "throw" | "trust";
706
609
  }): AsyncIterable<Object$1 | Link>;
707
610
  /**
708
611
  * Similar to
@@ -717,6 +620,7 @@ declare class Object$1 {
717
620
  contextLoader?: DocumentLoader;
718
621
  suppressError?: boolean;
719
622
  tracerProvider?: TracerProvider;
623
+ crossOrigin?: "ignore" | "throw" | "trust";
720
624
  }): Promise<Link | Object$1 | null>;
721
625
  /**
722
626
  * Similar to
@@ -731,6 +635,7 @@ declare class Object$1 {
731
635
  contextLoader?: DocumentLoader;
732
636
  suppressError?: boolean;
733
637
  tracerProvider?: TracerProvider;
638
+ crossOrigin?: "ignore" | "throw" | "trust";
734
639
  }): AsyncIterable<Link | Object$1>;
735
640
  /** The date and time at which the object was published.
736
641
  */
@@ -749,6 +654,7 @@ declare class Object$1 {
749
654
  contextLoader?: DocumentLoader;
750
655
  suppressError?: boolean;
751
656
  tracerProvider?: TracerProvider;
657
+ crossOrigin?: "ignore" | "throw" | "trust";
752
658
  }): Promise<Collection | null>;
753
659
  /**
754
660
  * Similar to
@@ -770,6 +676,7 @@ declare class Object$1 {
770
676
  contextLoader?: DocumentLoader;
771
677
  suppressError?: boolean;
772
678
  tracerProvider?: TracerProvider;
679
+ crossOrigin?: "ignore" | "throw" | "trust";
773
680
  }): Promise<Collection | null>;
774
681
  /**
775
682
  * Similar to
@@ -791,6 +698,7 @@ declare class Object$1 {
791
698
  contextLoader?: DocumentLoader;
792
699
  suppressError?: boolean;
793
700
  tracerProvider?: TracerProvider;
701
+ crossOrigin?: "ignore" | "throw" | "trust";
794
702
  }): Promise<Collection | null>;
795
703
  /**
796
704
  * Similar to
@@ -806,6 +714,7 @@ declare class Object$1 {
806
714
  contextLoader?: DocumentLoader;
807
715
  suppressError?: boolean;
808
716
  tracerProvider?: TracerProvider;
717
+ crossOrigin?: "ignore" | "throw" | "trust";
809
718
  }): Promise<Collection | null>;
810
719
  /** The date and time describing the actual or expected starting time of
811
720
  * the object. When used with an {@link Activity} object, for instance,
@@ -837,6 +746,7 @@ declare class Object$1 {
837
746
  contextLoader?: DocumentLoader;
838
747
  suppressError?: boolean;
839
748
  tracerProvider?: TracerProvider;
749
+ crossOrigin?: "ignore" | "throw" | "trust";
840
750
  }): AsyncIterable<Object$1 | Link>;
841
751
  /** The date and time at which the object was updated.
842
752
  */
@@ -861,6 +771,7 @@ declare class Object$1 {
861
771
  contextLoader?: DocumentLoader;
862
772
  suppressError?: boolean;
863
773
  tracerProvider?: TracerProvider;
774
+ crossOrigin?: "ignore" | "throw" | "trust";
864
775
  }): Promise<Object$1 | null>;
865
776
  /**
866
777
  * Similar to
@@ -876,6 +787,7 @@ declare class Object$1 {
876
787
  contextLoader?: DocumentLoader;
877
788
  suppressError?: boolean;
878
789
  tracerProvider?: TracerProvider;
790
+ crossOrigin?: "ignore" | "throw" | "trust";
879
791
  }): AsyncIterable<Object$1>;
880
792
  /**
881
793
  * Similar to
@@ -891,6 +803,7 @@ declare class Object$1 {
891
803
  contextLoader?: DocumentLoader;
892
804
  suppressError?: boolean;
893
805
  tracerProvider?: TracerProvider;
806
+ crossOrigin?: "ignore" | "throw" | "trust";
894
807
  }): Promise<Object$1 | null>;
895
808
  /**
896
809
  * Similar to
@@ -906,6 +819,7 @@ declare class Object$1 {
906
819
  contextLoader?: DocumentLoader;
907
820
  suppressError?: boolean;
908
821
  tracerProvider?: TracerProvider;
822
+ crossOrigin?: "ignore" | "throw" | "trust";
909
823
  }): AsyncIterable<Object$1>;
910
824
  /**
911
825
  * Similar to
@@ -921,6 +835,7 @@ declare class Object$1 {
921
835
  contextLoader?: DocumentLoader;
922
836
  suppressError?: boolean;
923
837
  tracerProvider?: TracerProvider;
838
+ crossOrigin?: "ignore" | "throw" | "trust";
924
839
  }): Promise<Object$1 | null>;
925
840
  /**
926
841
  * Similar to
@@ -936,6 +851,7 @@ declare class Object$1 {
936
851
  contextLoader?: DocumentLoader;
937
852
  suppressError?: boolean;
938
853
  tracerProvider?: TracerProvider;
854
+ crossOrigin?: "ignore" | "throw" | "trust";
939
855
  }): AsyncIterable<Object$1>;
940
856
  /**
941
857
  * Similar to
@@ -951,6 +867,7 @@ declare class Object$1 {
951
867
  contextLoader?: DocumentLoader;
952
868
  suppressError?: boolean;
953
869
  tracerProvider?: TracerProvider;
870
+ crossOrigin?: "ignore" | "throw" | "trust";
954
871
  }): Promise<Object$1 | null>;
955
872
  /**
956
873
  * Similar to
@@ -966,6 +883,7 @@ declare class Object$1 {
966
883
  contextLoader?: DocumentLoader;
967
884
  suppressError?: boolean;
968
885
  tracerProvider?: TracerProvider;
886
+ crossOrigin?: "ignore" | "throw" | "trust";
969
887
  }): AsyncIterable<Object$1>;
970
888
  /** When used on an {@link Object}, identifies the MIME media type of the value
971
889
  * of the `content` property. If not specified, the `content` property is
@@ -1001,6 +919,7 @@ declare class Object$1 {
1001
919
  contextLoader?: DocumentLoader;
1002
920
  suppressError?: boolean;
1003
921
  tracerProvider?: TracerProvider;
922
+ crossOrigin?: "ignore" | "throw" | "trust";
1004
923
  }): Promise<DataIntegrityProof | null>;
1005
924
  /**
1006
925
  * Similar to
@@ -1015,6 +934,7 @@ declare class Object$1 {
1015
934
  contextLoader?: DocumentLoader;
1016
935
  suppressError?: boolean;
1017
936
  tracerProvider?: TracerProvider;
937
+ crossOrigin?: "ignore" | "throw" | "trust";
1018
938
  }): AsyncIterable<DataIntegrityProof>;
1019
939
  /**
1020
940
  * Converts this object to a JSON-LD structure.
@@ -1047,11 +967,13 @@ declare class Object$1 {
1047
967
  documentLoader?: DocumentLoader;
1048
968
  contextLoader?: DocumentLoader;
1049
969
  tracerProvider?: TracerProvider;
970
+ baseUrl?: URL;
1050
971
  }): Promise<Object$1>;
1051
972
  protected static __fromJsonLd__Object__(json: unknown, span: Span, options?: {
1052
973
  documentLoader?: DocumentLoader;
1053
974
  contextLoader?: DocumentLoader;
1054
975
  tracerProvider?: TracerProvider;
976
+ baseUrl?: URL;
1055
977
  }): Promise<Object$1>;
1056
978
  protected _getCustomInspectProxy(): Record<string, unknown>;
1057
979
  }
@@ -1229,6 +1151,7 @@ declare class Activity extends Object$1 {
1229
1151
  contextLoader?: DocumentLoader;
1230
1152
  suppressError?: boolean;
1231
1153
  tracerProvider?: TracerProvider;
1154
+ crossOrigin?: "ignore" | "throw" | "trust";
1232
1155
  }): Promise<Application | Group | Organization | Person | Service | null>;
1233
1156
  /**
1234
1157
  * Similar to
@@ -1245,6 +1168,7 @@ declare class Activity extends Object$1 {
1245
1168
  contextLoader?: DocumentLoader;
1246
1169
  suppressError?: boolean;
1247
1170
  tracerProvider?: TracerProvider;
1171
+ crossOrigin?: "ignore" | "throw" | "trust";
1248
1172
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
1249
1173
  /**
1250
1174
  * Similar to
@@ -1261,6 +1185,7 @@ declare class Activity extends Object$1 {
1261
1185
  contextLoader?: DocumentLoader;
1262
1186
  suppressError?: boolean;
1263
1187
  tracerProvider?: TracerProvider;
1188
+ crossOrigin?: "ignore" | "throw" | "trust";
1264
1189
  }): Promise<Object$1 | null>;
1265
1190
  /**
1266
1191
  * Similar to
@@ -1277,6 +1202,7 @@ declare class Activity extends Object$1 {
1277
1202
  contextLoader?: DocumentLoader;
1278
1203
  suppressError?: boolean;
1279
1204
  tracerProvider?: TracerProvider;
1205
+ crossOrigin?: "ignore" | "throw" | "trust";
1280
1206
  }): AsyncIterable<Object$1>;
1281
1207
  /**
1282
1208
  * Similar to
@@ -1296,6 +1222,7 @@ declare class Activity extends Object$1 {
1296
1222
  contextLoader?: DocumentLoader;
1297
1223
  suppressError?: boolean;
1298
1224
  tracerProvider?: TracerProvider;
1225
+ crossOrigin?: "ignore" | "throw" | "trust";
1299
1226
  }): Promise<Object$1 | null>;
1300
1227
  /**
1301
1228
  * Similar to
@@ -1315,6 +1242,7 @@ declare class Activity extends Object$1 {
1315
1242
  contextLoader?: DocumentLoader;
1316
1243
  suppressError?: boolean;
1317
1244
  tracerProvider?: TracerProvider;
1245
+ crossOrigin?: "ignore" | "throw" | "trust";
1318
1246
  }): AsyncIterable<Object$1>;
1319
1247
  /**
1320
1248
  * Similar to
@@ -1331,6 +1259,7 @@ declare class Activity extends Object$1 {
1331
1259
  contextLoader?: DocumentLoader;
1332
1260
  suppressError?: boolean;
1333
1261
  tracerProvider?: TracerProvider;
1262
+ crossOrigin?: "ignore" | "throw" | "trust";
1334
1263
  }): Promise<Object$1 | null>;
1335
1264
  /**
1336
1265
  * Similar to
@@ -1347,6 +1276,7 @@ declare class Activity extends Object$1 {
1347
1276
  contextLoader?: DocumentLoader;
1348
1277
  suppressError?: boolean;
1349
1278
  tracerProvider?: TracerProvider;
1279
+ crossOrigin?: "ignore" | "throw" | "trust";
1350
1280
  }): AsyncIterable<Object$1>;
1351
1281
  /**
1352
1282
  * Similar to
@@ -1364,6 +1294,7 @@ declare class Activity extends Object$1 {
1364
1294
  contextLoader?: DocumentLoader;
1365
1295
  suppressError?: boolean;
1366
1296
  tracerProvider?: TracerProvider;
1297
+ crossOrigin?: "ignore" | "throw" | "trust";
1367
1298
  }): Promise<Object$1 | null>;
1368
1299
  /**
1369
1300
  * Similar to
@@ -1381,6 +1312,7 @@ declare class Activity extends Object$1 {
1381
1312
  contextLoader?: DocumentLoader;
1382
1313
  suppressError?: boolean;
1383
1314
  tracerProvider?: TracerProvider;
1315
+ crossOrigin?: "ignore" | "throw" | "trust";
1384
1316
  }): AsyncIterable<Object$1>;
1385
1317
  /**
1386
1318
  * Similar to
@@ -1396,6 +1328,7 @@ declare class Activity extends Object$1 {
1396
1328
  contextLoader?: DocumentLoader;
1397
1329
  suppressError?: boolean;
1398
1330
  tracerProvider?: TracerProvider;
1331
+ crossOrigin?: "ignore" | "throw" | "trust";
1399
1332
  }): Promise<Object$1 | null>;
1400
1333
  /**
1401
1334
  * Similar to
@@ -1411,6 +1344,7 @@ declare class Activity extends Object$1 {
1411
1344
  contextLoader?: DocumentLoader;
1412
1345
  suppressError?: boolean;
1413
1346
  tracerProvider?: TracerProvider;
1347
+ crossOrigin?: "ignore" | "throw" | "trust";
1414
1348
  }): AsyncIterable<Object$1>;
1415
1349
  /**
1416
1350
  * Converts this object to a JSON-LD structure.
@@ -1443,11 +1377,13 @@ declare class Activity extends Object$1 {
1443
1377
  documentLoader?: DocumentLoader;
1444
1378
  contextLoader?: DocumentLoader;
1445
1379
  tracerProvider?: TracerProvider;
1380
+ baseUrl?: URL;
1446
1381
  }): Promise<Activity>;
1447
1382
  protected static __fromJsonLd__Activity__(json: unknown, span: Span, options?: {
1448
1383
  documentLoader?: DocumentLoader;
1449
1384
  contextLoader?: DocumentLoader;
1450
1385
  tracerProvider?: TracerProvider;
1386
+ baseUrl?: URL;
1451
1387
  }): Promise<Activity>;
1452
1388
  protected _getCustomInspectProxy(): Record<string, unknown>;
1453
1389
  }
@@ -1538,11 +1474,13 @@ declare class PropertyValue {
1538
1474
  documentLoader?: DocumentLoader;
1539
1475
  contextLoader?: DocumentLoader;
1540
1476
  tracerProvider?: TracerProvider;
1477
+ baseUrl?: URL;
1541
1478
  }): Promise<PropertyValue>;
1542
1479
  protected static __fromJsonLd__PropertyValue__(json: unknown, span: Span, options?: {
1543
1480
  documentLoader?: DocumentLoader;
1544
1481
  contextLoader?: DocumentLoader;
1545
1482
  tracerProvider?: TracerProvider;
1483
+ baseUrl?: URL;
1546
1484
  }): Promise<PropertyValue>;
1547
1485
  protected _getCustomInspectProxy(): Record<string, unknown>;
1548
1486
  }
@@ -1635,11 +1573,13 @@ declare class DidService {
1635
1573
  documentLoader?: DocumentLoader;
1636
1574
  contextLoader?: DocumentLoader;
1637
1575
  tracerProvider?: TracerProvider;
1576
+ baseUrl?: URL;
1638
1577
  }): Promise<DidService>;
1639
1578
  protected static __fromJsonLd__DidService__(json: unknown, span: Span, options?: {
1640
1579
  documentLoader?: DocumentLoader;
1641
1580
  contextLoader?: DocumentLoader;
1642
1581
  tracerProvider?: TracerProvider;
1582
+ baseUrl?: URL;
1643
1583
  }): Promise<DidService>;
1644
1584
  protected _getCustomInspectProxy(): Record<string, unknown>;
1645
1585
  }
@@ -1719,6 +1659,7 @@ declare class DataIntegrityProof {
1719
1659
  contextLoader?: DocumentLoader;
1720
1660
  suppressError?: boolean;
1721
1661
  tracerProvider?: TracerProvider;
1662
+ crossOrigin?: "ignore" | "throw" | "trust";
1722
1663
  }): Promise<Multikey | null>;
1723
1664
  /** The reason the proof was created.
1724
1665
  *
@@ -1766,11 +1707,13 @@ declare class DataIntegrityProof {
1766
1707
  documentLoader?: DocumentLoader;
1767
1708
  contextLoader?: DocumentLoader;
1768
1709
  tracerProvider?: TracerProvider;
1710
+ baseUrl?: URL;
1769
1711
  }): Promise<DataIntegrityProof>;
1770
1712
  protected static __fromJsonLd__DataIntegrityProof__(json: unknown, span: Span, options?: {
1771
1713
  documentLoader?: DocumentLoader;
1772
1714
  contextLoader?: DocumentLoader;
1773
1715
  tracerProvider?: TracerProvider;
1716
+ baseUrl?: URL;
1774
1717
  }): Promise<DataIntegrityProof>;
1775
1718
  protected _getCustomInspectProxy(): Record<string, unknown>;
1776
1719
  }
@@ -1834,6 +1777,7 @@ declare class CryptographicKey {
1834
1777
  contextLoader?: DocumentLoader;
1835
1778
  suppressError?: boolean;
1836
1779
  tracerProvider?: TracerProvider;
1780
+ crossOrigin?: "ignore" | "throw" | "trust";
1837
1781
  }): Promise<Application | Group | Organization | Person | Service | null>;
1838
1782
  /** A PEM-encoded public key.
1839
1783
  */
@@ -1869,11 +1813,13 @@ declare class CryptographicKey {
1869
1813
  documentLoader?: DocumentLoader;
1870
1814
  contextLoader?: DocumentLoader;
1871
1815
  tracerProvider?: TracerProvider;
1816
+ baseUrl?: URL;
1872
1817
  }): Promise<CryptographicKey>;
1873
1818
  protected static __fromJsonLd__CryptographicKey__(json: unknown, span: Span, options?: {
1874
1819
  documentLoader?: DocumentLoader;
1875
1820
  contextLoader?: DocumentLoader;
1876
1821
  tracerProvider?: TracerProvider;
1822
+ baseUrl?: URL;
1877
1823
  }): Promise<CryptographicKey>;
1878
1824
  protected _getCustomInspectProxy(): Record<string, unknown>;
1879
1825
  }
@@ -1940,6 +1886,7 @@ declare class Multikey {
1940
1886
  contextLoader?: DocumentLoader;
1941
1887
  suppressError?: boolean;
1942
1888
  tracerProvider?: TracerProvider;
1889
+ crossOrigin?: "ignore" | "throw" | "trust";
1943
1890
  }): Promise<Application | Group | Organization | Person | Service | null>;
1944
1891
  /** A [Multibase]-encoded value of a [Multicodec] prefix and the key.
1945
1892
  *
@@ -1978,11 +1925,13 @@ declare class Multikey {
1978
1925
  documentLoader?: DocumentLoader;
1979
1926
  contextLoader?: DocumentLoader;
1980
1927
  tracerProvider?: TracerProvider;
1928
+ baseUrl?: URL;
1981
1929
  }): Promise<Multikey>;
1982
1930
  protected static __fromJsonLd__Multikey__(json: unknown, span: Span, options?: {
1983
1931
  documentLoader?: DocumentLoader;
1984
1932
  contextLoader?: DocumentLoader;
1985
1933
  tracerProvider?: TracerProvider;
1934
+ baseUrl?: URL;
1986
1935
  }): Promise<Multikey>;
1987
1936
  protected _getCustomInspectProxy(): Record<string, unknown>;
1988
1937
  }
@@ -2194,6 +2143,7 @@ declare class Application extends Object$1 {
2194
2143
  contextLoader?: DocumentLoader;
2195
2144
  suppressError?: boolean;
2196
2145
  tracerProvider?: TracerProvider;
2146
+ crossOrigin?: "ignore" | "throw" | "trust";
2197
2147
  }): Promise<CryptographicKey | null>;
2198
2148
  /**
2199
2149
  * Similar to
@@ -2208,6 +2158,7 @@ declare class Application extends Object$1 {
2208
2158
  contextLoader?: DocumentLoader;
2209
2159
  suppressError?: boolean;
2210
2160
  tracerProvider?: TracerProvider;
2161
+ crossOrigin?: "ignore" | "throw" | "trust";
2211
2162
  }): AsyncIterable<CryptographicKey>;
2212
2163
  /**
2213
2164
  * Similar to
@@ -2225,6 +2176,7 @@ declare class Application extends Object$1 {
2225
2176
  contextLoader?: DocumentLoader;
2226
2177
  suppressError?: boolean;
2227
2178
  tracerProvider?: TracerProvider;
2179
+ crossOrigin?: "ignore" | "throw" | "trust";
2228
2180
  }): Promise<Multikey | null>;
2229
2181
  /**
2230
2182
  * Similar to
@@ -2242,6 +2194,7 @@ declare class Application extends Object$1 {
2242
2194
  contextLoader?: DocumentLoader;
2243
2195
  suppressError?: boolean;
2244
2196
  tracerProvider?: TracerProvider;
2197
+ crossOrigin?: "ignore" | "throw" | "trust";
2245
2198
  }): AsyncIterable<Multikey>;
2246
2199
  /** When `true`, conveys that for this actor, follow requests are not usually
2247
2200
  * automatically approved, but instead are examined by a person who may accept
@@ -2276,6 +2229,7 @@ declare class Application extends Object$1 {
2276
2229
  contextLoader?: DocumentLoader;
2277
2230
  suppressError?: boolean;
2278
2231
  tracerProvider?: TracerProvider;
2232
+ crossOrigin?: "ignore" | "throw" | "trust";
2279
2233
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2280
2234
  /**
2281
2235
  * Similar to
@@ -2299,6 +2253,7 @@ declare class Application extends Object$1 {
2299
2253
  contextLoader?: DocumentLoader;
2300
2254
  suppressError?: boolean;
2301
2255
  tracerProvider?: TracerProvider;
2256
+ crossOrigin?: "ignore" | "throw" | "trust";
2302
2257
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2303
2258
  /**
2304
2259
  * Similar to
@@ -2317,6 +2272,7 @@ declare class Application extends Object$1 {
2317
2272
  contextLoader?: DocumentLoader;
2318
2273
  suppressError?: boolean;
2319
2274
  tracerProvider?: TracerProvider;
2275
+ crossOrigin?: "ignore" | "throw" | "trust";
2320
2276
  }): Promise<Collection | null>;
2321
2277
  /**
2322
2278
  * Similar to
@@ -2338,6 +2294,7 @@ declare class Application extends Object$1 {
2338
2294
  contextLoader?: DocumentLoader;
2339
2295
  suppressError?: boolean;
2340
2296
  tracerProvider?: TracerProvider;
2297
+ crossOrigin?: "ignore" | "throw" | "trust";
2341
2298
  }): Promise<Collection | null>;
2342
2299
  /**
2343
2300
  * Similar to
@@ -2357,6 +2314,7 @@ declare class Application extends Object$1 {
2357
2314
  contextLoader?: DocumentLoader;
2358
2315
  suppressError?: boolean;
2359
2316
  tracerProvider?: TracerProvider;
2317
+ crossOrigin?: "ignore" | "throw" | "trust";
2360
2318
  }): Promise<Collection | null>;
2361
2319
  /**
2362
2320
  * Similar to
@@ -2374,6 +2332,7 @@ declare class Application extends Object$1 {
2374
2332
  contextLoader?: DocumentLoader;
2375
2333
  suppressError?: boolean;
2376
2334
  tracerProvider?: TracerProvider;
2335
+ crossOrigin?: "ignore" | "throw" | "trust";
2377
2336
  }): Promise<Collection | null>;
2378
2337
  /**
2379
2338
  * Similar to
@@ -2391,6 +2350,7 @@ declare class Application extends Object$1 {
2391
2350
  contextLoader?: DocumentLoader;
2392
2351
  suppressError?: boolean;
2393
2352
  tracerProvider?: TracerProvider;
2353
+ crossOrigin?: "ignore" | "throw" | "trust";
2394
2354
  }): Promise<Collection | null>;
2395
2355
  /**
2396
2356
  * Similar to
@@ -2405,6 +2365,7 @@ declare class Application extends Object$1 {
2405
2365
  contextLoader?: DocumentLoader;
2406
2366
  suppressError?: boolean;
2407
2367
  tracerProvider?: TracerProvider;
2368
+ crossOrigin?: "ignore" | "throw" | "trust";
2408
2369
  }): AsyncIterable<Collection>;
2409
2370
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
2410
2371
  * which may be useful either for this actor or someone referencing this actor.
@@ -2441,6 +2402,7 @@ declare class Application extends Object$1 {
2441
2402
  contextLoader?: DocumentLoader;
2442
2403
  suppressError?: boolean;
2443
2404
  tracerProvider?: TracerProvider;
2405
+ crossOrigin?: "ignore" | "throw" | "trust";
2444
2406
  }): Promise<Application | Group | Organization | Person | Service | null>;
2445
2407
  /**
2446
2408
  * Similar to
@@ -2458,6 +2420,7 @@ declare class Application extends Object$1 {
2458
2420
  contextLoader?: DocumentLoader;
2459
2421
  suppressError?: boolean;
2460
2422
  tracerProvider?: TracerProvider;
2423
+ crossOrigin?: "ignore" | "throw" | "trust";
2461
2424
  }): Promise<Application | Group | Organization | Person | Service | null>;
2462
2425
  /**
2463
2426
  * Similar to
@@ -2475,6 +2438,7 @@ declare class Application extends Object$1 {
2475
2438
  contextLoader?: DocumentLoader;
2476
2439
  suppressError?: boolean;
2477
2440
  tracerProvider?: TracerProvider;
2441
+ crossOrigin?: "ignore" | "throw" | "trust";
2478
2442
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
2479
2443
  /**
2480
2444
  * Similar to
@@ -2492,6 +2456,7 @@ declare class Application extends Object$1 {
2492
2456
  contextLoader?: DocumentLoader;
2493
2457
  suppressError?: boolean;
2494
2458
  tracerProvider?: TracerProvider;
2459
+ crossOrigin?: "ignore" | "throw" | "trust";
2495
2460
  }): Promise<DidService | null>;
2496
2461
  /**
2497
2462
  * Similar to
@@ -2509,6 +2474,7 @@ declare class Application extends Object$1 {
2509
2474
  contextLoader?: DocumentLoader;
2510
2475
  suppressError?: boolean;
2511
2476
  tracerProvider?: TracerProvider;
2477
+ crossOrigin?: "ignore" | "throw" | "trust";
2512
2478
  }): AsyncIterable<DidService>;
2513
2479
  /** This value is used for `Actor` type objects to show message on followed.
2514
2480
  */
@@ -2550,11 +2516,13 @@ declare class Application extends Object$1 {
2550
2516
  documentLoader?: DocumentLoader;
2551
2517
  contextLoader?: DocumentLoader;
2552
2518
  tracerProvider?: TracerProvider;
2519
+ baseUrl?: URL;
2553
2520
  }): Promise<Application>;
2554
2521
  protected static __fromJsonLd__Application__(json: unknown, span: Span, options?: {
2555
2522
  documentLoader?: DocumentLoader;
2556
2523
  contextLoader?: DocumentLoader;
2557
2524
  tracerProvider?: TracerProvider;
2525
+ baseUrl?: URL;
2558
2526
  }): Promise<Application>;
2559
2527
  protected _getCustomInspectProxy(): Record<string, unknown>;
2560
2528
  }
@@ -2734,11 +2702,13 @@ declare class Document extends Object$1 {
2734
2702
  documentLoader?: DocumentLoader;
2735
2703
  contextLoader?: DocumentLoader;
2736
2704
  tracerProvider?: TracerProvider;
2705
+ baseUrl?: URL;
2737
2706
  }): Promise<Document>;
2738
2707
  protected static __fromJsonLd__Document__(json: unknown, span: Span, options?: {
2739
2708
  documentLoader?: DocumentLoader;
2740
2709
  contextLoader?: DocumentLoader;
2741
2710
  tracerProvider?: TracerProvider;
2711
+ baseUrl?: URL;
2742
2712
  }): Promise<Document>;
2743
2713
  protected _getCustomInspectProxy(): Record<string, unknown>;
2744
2714
  }
@@ -2922,6 +2892,7 @@ declare class Collection extends Object$1 {
2922
2892
  contextLoader?: DocumentLoader;
2923
2893
  suppressError?: boolean;
2924
2894
  tracerProvider?: TracerProvider;
2895
+ crossOrigin?: "ignore" | "throw" | "trust";
2925
2896
  }): Promise<CollectionPage | null>;
2926
2897
  /**
2927
2898
  * Similar to
@@ -2937,6 +2908,7 @@ declare class Collection extends Object$1 {
2937
2908
  contextLoader?: DocumentLoader;
2938
2909
  suppressError?: boolean;
2939
2910
  tracerProvider?: TracerProvider;
2911
+ crossOrigin?: "ignore" | "throw" | "trust";
2940
2912
  }): Promise<CollectionPage | null>;
2941
2913
  /**
2942
2914
  * Similar to
@@ -2952,6 +2924,7 @@ declare class Collection extends Object$1 {
2952
2924
  contextLoader?: DocumentLoader;
2953
2925
  suppressError?: boolean;
2954
2926
  tracerProvider?: TracerProvider;
2927
+ crossOrigin?: "ignore" | "throw" | "trust";
2955
2928
  }): Promise<CollectionPage | null>;
2956
2929
  /**
2957
2930
  * Similar to
@@ -2967,6 +2940,7 @@ declare class Collection extends Object$1 {
2967
2940
  contextLoader?: DocumentLoader;
2968
2941
  suppressError?: boolean;
2969
2942
  tracerProvider?: TracerProvider;
2943
+ crossOrigin?: "ignore" | "throw" | "trust";
2970
2944
  }): AsyncIterable<Object$1 | Link>;
2971
2945
  /**
2972
2946
  * Similar to
@@ -2981,6 +2955,7 @@ declare class Collection extends Object$1 {
2981
2955
  contextLoader?: DocumentLoader;
2982
2956
  suppressError?: boolean;
2983
2957
  tracerProvider?: TracerProvider;
2958
+ crossOrigin?: "ignore" | "throw" | "trust";
2984
2959
  }): Promise<Object$1 | null>;
2985
2960
  /**
2986
2961
  * Similar to
@@ -2995,6 +2970,7 @@ declare class Collection extends Object$1 {
2995
2970
  contextLoader?: DocumentLoader;
2996
2971
  suppressError?: boolean;
2997
2972
  tracerProvider?: TracerProvider;
2973
+ crossOrigin?: "ignore" | "throw" | "trust";
2998
2974
  }): Promise<Object$1 | null>;
2999
2975
  /**
3000
2976
  * Similar to
@@ -3009,6 +2985,7 @@ declare class Collection extends Object$1 {
3009
2985
  contextLoader?: DocumentLoader;
3010
2986
  suppressError?: boolean;
3011
2987
  tracerProvider?: TracerProvider;
2988
+ crossOrigin?: "ignore" | "throw" | "trust";
3012
2989
  }): Promise<Object$1 | null>;
3013
2990
  /**
3014
2991
  * Similar to
@@ -3023,6 +3000,7 @@ declare class Collection extends Object$1 {
3023
3000
  contextLoader?: DocumentLoader;
3024
3001
  suppressError?: boolean;
3025
3002
  tracerProvider?: TracerProvider;
3003
+ crossOrigin?: "ignore" | "throw" | "trust";
3026
3004
  }): Promise<Object$1 | null>;
3027
3005
  /**
3028
3006
  * Similar to
@@ -3037,6 +3015,7 @@ declare class Collection extends Object$1 {
3037
3015
  contextLoader?: DocumentLoader;
3038
3016
  suppressError?: boolean;
3039
3017
  tracerProvider?: TracerProvider;
3018
+ crossOrigin?: "ignore" | "throw" | "trust";
3040
3019
  }): Promise<Object$1 | null>;
3041
3020
  /**
3042
3021
  * Similar to
@@ -3051,6 +3030,7 @@ declare class Collection extends Object$1 {
3051
3030
  contextLoader?: DocumentLoader;
3052
3031
  suppressError?: boolean;
3053
3032
  tracerProvider?: TracerProvider;
3033
+ crossOrigin?: "ignore" | "throw" | "trust";
3054
3034
  }): Promise<Object$1 | null>;
3055
3035
  /**
3056
3036
  * Similar to
@@ -3065,6 +3045,7 @@ declare class Collection extends Object$1 {
3065
3045
  contextLoader?: DocumentLoader;
3066
3046
  suppressError?: boolean;
3067
3047
  tracerProvider?: TracerProvider;
3048
+ crossOrigin?: "ignore" | "throw" | "trust";
3068
3049
  }): Promise<Object$1 | null>;
3069
3050
  /**
3070
3051
  * Similar to
@@ -3079,6 +3060,7 @@ declare class Collection extends Object$1 {
3079
3060
  contextLoader?: DocumentLoader;
3080
3061
  suppressError?: boolean;
3081
3062
  tracerProvider?: TracerProvider;
3063
+ crossOrigin?: "ignore" | "throw" | "trust";
3082
3064
  }): Promise<Object$1 | null>;
3083
3065
  /**
3084
3066
  * Converts this object to a JSON-LD structure.
@@ -3111,11 +3093,13 @@ declare class Collection extends Object$1 {
3111
3093
  documentLoader?: DocumentLoader;
3112
3094
  contextLoader?: DocumentLoader;
3113
3095
  tracerProvider?: TracerProvider;
3096
+ baseUrl?: URL;
3114
3097
  }): Promise<Collection>;
3115
3098
  protected static __fromJsonLd__Collection__(json: unknown, span: Span, options?: {
3116
3099
  documentLoader?: DocumentLoader;
3117
3100
  contextLoader?: DocumentLoader;
3118
3101
  tracerProvider?: TracerProvider;
3102
+ baseUrl?: URL;
3119
3103
  }): Promise<Collection>;
3120
3104
  protected _getCustomInspectProxy(): Record<string, unknown>;
3121
3105
  }
@@ -3295,6 +3279,7 @@ declare class CollectionPage extends Collection {
3295
3279
  contextLoader?: DocumentLoader;
3296
3280
  suppressError?: boolean;
3297
3281
  tracerProvider?: TracerProvider;
3282
+ crossOrigin?: "ignore" | "throw" | "trust";
3298
3283
  }): Promise<Collection | null>;
3299
3284
  /**
3300
3285
  * Similar to
@@ -3309,6 +3294,7 @@ declare class CollectionPage extends Collection {
3309
3294
  contextLoader?: DocumentLoader;
3310
3295
  suppressError?: boolean;
3311
3296
  tracerProvider?: TracerProvider;
3297
+ crossOrigin?: "ignore" | "throw" | "trust";
3312
3298
  }): Promise<CollectionPage | null>;
3313
3299
  /**
3314
3300
  * Similar to
@@ -3323,6 +3309,7 @@ declare class CollectionPage extends Collection {
3323
3309
  contextLoader?: DocumentLoader;
3324
3310
  suppressError?: boolean;
3325
3311
  tracerProvider?: TracerProvider;
3312
+ crossOrigin?: "ignore" | "throw" | "trust";
3326
3313
  }): Promise<CollectionPage | null>;
3327
3314
  /**
3328
3315
  * Converts this object to a JSON-LD structure.
@@ -3355,11 +3342,13 @@ declare class CollectionPage extends Collection {
3355
3342
  documentLoader?: DocumentLoader;
3356
3343
  contextLoader?: DocumentLoader;
3357
3344
  tracerProvider?: TracerProvider;
3345
+ baseUrl?: URL;
3358
3346
  }): Promise<CollectionPage>;
3359
3347
  protected static __fromJsonLd__CollectionPage__(json: unknown, span: Span, options?: {
3360
3348
  documentLoader?: DocumentLoader;
3361
3349
  contextLoader?: DocumentLoader;
3362
3350
  tracerProvider?: TracerProvider;
3351
+ baseUrl?: URL;
3363
3352
  }): Promise<CollectionPage>;
3364
3353
  protected _getCustomInspectProxy(): Record<string, unknown>;
3365
3354
  }
@@ -3493,11 +3482,13 @@ declare class Endpoints {
3493
3482
  documentLoader?: DocumentLoader;
3494
3483
  contextLoader?: DocumentLoader;
3495
3484
  tracerProvider?: TracerProvider;
3485
+ baseUrl?: URL;
3496
3486
  }): Promise<Endpoints>;
3497
3487
  protected static __fromJsonLd__Endpoints__(json: unknown, span: Span, options?: {
3498
3488
  documentLoader?: DocumentLoader;
3499
3489
  contextLoader?: DocumentLoader;
3500
3490
  tracerProvider?: TracerProvider;
3491
+ baseUrl?: URL;
3501
3492
  }): Promise<Endpoints>;
3502
3493
  protected _getCustomInspectProxy(): Record<string, unknown>;
3503
3494
  }
@@ -3707,6 +3698,7 @@ declare class Group extends Object$1 {
3707
3698
  contextLoader?: DocumentLoader;
3708
3699
  suppressError?: boolean;
3709
3700
  tracerProvider?: TracerProvider;
3701
+ crossOrigin?: "ignore" | "throw" | "trust";
3710
3702
  }): Promise<CryptographicKey | null>;
3711
3703
  /**
3712
3704
  * Similar to
@@ -3721,6 +3713,7 @@ declare class Group extends Object$1 {
3721
3713
  contextLoader?: DocumentLoader;
3722
3714
  suppressError?: boolean;
3723
3715
  tracerProvider?: TracerProvider;
3716
+ crossOrigin?: "ignore" | "throw" | "trust";
3724
3717
  }): AsyncIterable<CryptographicKey>;
3725
3718
  /**
3726
3719
  * Similar to
@@ -3738,6 +3731,7 @@ declare class Group extends Object$1 {
3738
3731
  contextLoader?: DocumentLoader;
3739
3732
  suppressError?: boolean;
3740
3733
  tracerProvider?: TracerProvider;
3734
+ crossOrigin?: "ignore" | "throw" | "trust";
3741
3735
  }): Promise<Multikey | null>;
3742
3736
  /**
3743
3737
  * Similar to
@@ -3755,6 +3749,7 @@ declare class Group extends Object$1 {
3755
3749
  contextLoader?: DocumentLoader;
3756
3750
  suppressError?: boolean;
3757
3751
  tracerProvider?: TracerProvider;
3752
+ crossOrigin?: "ignore" | "throw" | "trust";
3758
3753
  }): AsyncIterable<Multikey>;
3759
3754
  /** When `true`, conveys that for this actor, follow requests are not usually
3760
3755
  * automatically approved, but instead are examined by a person who may accept
@@ -3789,6 +3784,7 @@ declare class Group extends Object$1 {
3789
3784
  contextLoader?: DocumentLoader;
3790
3785
  suppressError?: boolean;
3791
3786
  tracerProvider?: TracerProvider;
3787
+ crossOrigin?: "ignore" | "throw" | "trust";
3792
3788
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3793
3789
  /**
3794
3790
  * Similar to
@@ -3812,6 +3808,7 @@ declare class Group extends Object$1 {
3812
3808
  contextLoader?: DocumentLoader;
3813
3809
  suppressError?: boolean;
3814
3810
  tracerProvider?: TracerProvider;
3811
+ crossOrigin?: "ignore" | "throw" | "trust";
3815
3812
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3816
3813
  /**
3817
3814
  * Similar to
@@ -3830,6 +3827,7 @@ declare class Group extends Object$1 {
3830
3827
  contextLoader?: DocumentLoader;
3831
3828
  suppressError?: boolean;
3832
3829
  tracerProvider?: TracerProvider;
3830
+ crossOrigin?: "ignore" | "throw" | "trust";
3833
3831
  }): Promise<Collection | null>;
3834
3832
  /**
3835
3833
  * Similar to
@@ -3851,6 +3849,7 @@ declare class Group extends Object$1 {
3851
3849
  contextLoader?: DocumentLoader;
3852
3850
  suppressError?: boolean;
3853
3851
  tracerProvider?: TracerProvider;
3852
+ crossOrigin?: "ignore" | "throw" | "trust";
3854
3853
  }): Promise<Collection | null>;
3855
3854
  /**
3856
3855
  * Similar to
@@ -3870,6 +3869,7 @@ declare class Group extends Object$1 {
3870
3869
  contextLoader?: DocumentLoader;
3871
3870
  suppressError?: boolean;
3872
3871
  tracerProvider?: TracerProvider;
3872
+ crossOrigin?: "ignore" | "throw" | "trust";
3873
3873
  }): Promise<Collection | null>;
3874
3874
  /**
3875
3875
  * Similar to
@@ -3887,6 +3887,7 @@ declare class Group extends Object$1 {
3887
3887
  contextLoader?: DocumentLoader;
3888
3888
  suppressError?: boolean;
3889
3889
  tracerProvider?: TracerProvider;
3890
+ crossOrigin?: "ignore" | "throw" | "trust";
3890
3891
  }): Promise<Collection | null>;
3891
3892
  /**
3892
3893
  * Similar to
@@ -3904,6 +3905,7 @@ declare class Group extends Object$1 {
3904
3905
  contextLoader?: DocumentLoader;
3905
3906
  suppressError?: boolean;
3906
3907
  tracerProvider?: TracerProvider;
3908
+ crossOrigin?: "ignore" | "throw" | "trust";
3907
3909
  }): Promise<Collection | null>;
3908
3910
  /**
3909
3911
  * Similar to
@@ -3918,6 +3920,7 @@ declare class Group extends Object$1 {
3918
3920
  contextLoader?: DocumentLoader;
3919
3921
  suppressError?: boolean;
3920
3922
  tracerProvider?: TracerProvider;
3923
+ crossOrigin?: "ignore" | "throw" | "trust";
3921
3924
  }): AsyncIterable<Collection>;
3922
3925
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
3923
3926
  * which may be useful either for this actor or someone referencing this actor.
@@ -3954,6 +3957,7 @@ declare class Group extends Object$1 {
3954
3957
  contextLoader?: DocumentLoader;
3955
3958
  suppressError?: boolean;
3956
3959
  tracerProvider?: TracerProvider;
3960
+ crossOrigin?: "ignore" | "throw" | "trust";
3957
3961
  }): Promise<Application | Group | Organization | Person | Service | null>;
3958
3962
  /**
3959
3963
  * Similar to
@@ -3971,6 +3975,7 @@ declare class Group extends Object$1 {
3971
3975
  contextLoader?: DocumentLoader;
3972
3976
  suppressError?: boolean;
3973
3977
  tracerProvider?: TracerProvider;
3978
+ crossOrigin?: "ignore" | "throw" | "trust";
3974
3979
  }): Promise<Application | Group | Organization | Person | Service | null>;
3975
3980
  /**
3976
3981
  * Similar to
@@ -3988,6 +3993,7 @@ declare class Group extends Object$1 {
3988
3993
  contextLoader?: DocumentLoader;
3989
3994
  suppressError?: boolean;
3990
3995
  tracerProvider?: TracerProvider;
3996
+ crossOrigin?: "ignore" | "throw" | "trust";
3991
3997
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
3992
3998
  /**
3993
3999
  * Similar to
@@ -4005,6 +4011,7 @@ declare class Group extends Object$1 {
4005
4011
  contextLoader?: DocumentLoader;
4006
4012
  suppressError?: boolean;
4007
4013
  tracerProvider?: TracerProvider;
4014
+ crossOrigin?: "ignore" | "throw" | "trust";
4008
4015
  }): Promise<DidService | null>;
4009
4016
  /**
4010
4017
  * Similar to
@@ -4022,6 +4029,7 @@ declare class Group extends Object$1 {
4022
4029
  contextLoader?: DocumentLoader;
4023
4030
  suppressError?: boolean;
4024
4031
  tracerProvider?: TracerProvider;
4032
+ crossOrigin?: "ignore" | "throw" | "trust";
4025
4033
  }): AsyncIterable<DidService>;
4026
4034
  /** This value is used for `Actor` type objects to show message on followed.
4027
4035
  */
@@ -4063,11 +4071,13 @@ declare class Group extends Object$1 {
4063
4071
  documentLoader?: DocumentLoader;
4064
4072
  contextLoader?: DocumentLoader;
4065
4073
  tracerProvider?: TracerProvider;
4074
+ baseUrl?: URL;
4066
4075
  }): Promise<Group>;
4067
4076
  protected static __fromJsonLd__Group__(json: unknown, span: Span, options?: {
4068
4077
  documentLoader?: DocumentLoader;
4069
4078
  contextLoader?: DocumentLoader;
4070
4079
  tracerProvider?: TracerProvider;
4080
+ baseUrl?: URL;
4071
4081
  }): Promise<Group>;
4072
4082
  protected _getCustomInspectProxy(): Record<string, unknown>;
4073
4083
  }
@@ -4199,6 +4209,7 @@ declare class Link {
4199
4209
  contextLoader?: DocumentLoader;
4200
4210
  suppressError?: boolean;
4201
4211
  tracerProvider?: TracerProvider;
4212
+ crossOrigin?: "ignore" | "throw" | "trust";
4202
4213
  }): AsyncIterable<Link | Object$1>;
4203
4214
  /**
4204
4215
  * Converts this object to a JSON-LD structure.
@@ -4231,11 +4242,13 @@ declare class Link {
4231
4242
  documentLoader?: DocumentLoader;
4232
4243
  contextLoader?: DocumentLoader;
4233
4244
  tracerProvider?: TracerProvider;
4245
+ baseUrl?: URL;
4234
4246
  }): Promise<Link>;
4235
4247
  protected static __fromJsonLd__Link__(json: unknown, span: Span, options?: {
4236
4248
  documentLoader?: DocumentLoader;
4237
4249
  contextLoader?: DocumentLoader;
4238
4250
  tracerProvider?: TracerProvider;
4251
+ baseUrl?: URL;
4239
4252
  }): Promise<Link>;
4240
4253
  protected _getCustomInspectProxy(): Record<string, unknown>;
4241
4254
  }
@@ -4323,11 +4336,13 @@ declare class Hashtag extends Link {
4323
4336
  documentLoader?: DocumentLoader;
4324
4337
  contextLoader?: DocumentLoader;
4325
4338
  tracerProvider?: TracerProvider;
4339
+ baseUrl?: URL;
4326
4340
  }): Promise<Hashtag>;
4327
4341
  protected static __fromJsonLd__Hashtag__(json: unknown, span: Span, options?: {
4328
4342
  documentLoader?: DocumentLoader;
4329
4343
  contextLoader?: DocumentLoader;
4330
4344
  tracerProvider?: TracerProvider;
4345
+ baseUrl?: URL;
4331
4346
  }): Promise<Hashtag>;
4332
4347
  protected _getCustomInspectProxy(): Record<string, unknown>;
4333
4348
  }
@@ -4493,11 +4508,13 @@ declare class Image extends Document {
4493
4508
  documentLoader?: DocumentLoader;
4494
4509
  contextLoader?: DocumentLoader;
4495
4510
  tracerProvider?: TracerProvider;
4511
+ baseUrl?: URL;
4496
4512
  }): Promise<Image>;
4497
4513
  protected static __fromJsonLd__Image__(json: unknown, span: Span, options?: {
4498
4514
  documentLoader?: DocumentLoader;
4499
4515
  contextLoader?: DocumentLoader;
4500
4516
  tracerProvider?: TracerProvider;
4517
+ baseUrl?: URL;
4501
4518
  }): Promise<Image>;
4502
4519
  protected _getCustomInspectProxy(): Record<string, unknown>;
4503
4520
  }
@@ -4675,6 +4692,7 @@ declare class OrderedCollection extends Collection {
4675
4692
  contextLoader?: DocumentLoader;
4676
4693
  suppressError?: boolean;
4677
4694
  tracerProvider?: TracerProvider;
4695
+ crossOrigin?: "ignore" | "throw" | "trust";
4678
4696
  }): AsyncIterable<Object$1 | Link>;
4679
4697
  /**
4680
4698
  * Converts this object to a JSON-LD structure.
@@ -4707,11 +4725,13 @@ declare class OrderedCollection extends Collection {
4707
4725
  documentLoader?: DocumentLoader;
4708
4726
  contextLoader?: DocumentLoader;
4709
4727
  tracerProvider?: TracerProvider;
4728
+ baseUrl?: URL;
4710
4729
  }): Promise<OrderedCollection>;
4711
4730
  protected static __fromJsonLd__OrderedCollection__(json: unknown, span: Span, options?: {
4712
4731
  documentLoader?: DocumentLoader;
4713
4732
  contextLoader?: DocumentLoader;
4714
4733
  tracerProvider?: TracerProvider;
4734
+ baseUrl?: URL;
4715
4735
  }): Promise<OrderedCollection>;
4716
4736
  protected _getCustomInspectProxy(): Record<string, unknown>;
4717
4737
  }
@@ -4893,6 +4913,7 @@ declare class OrderedCollectionPage extends CollectionPage {
4893
4913
  contextLoader?: DocumentLoader;
4894
4914
  suppressError?: boolean;
4895
4915
  tracerProvider?: TracerProvider;
4916
+ crossOrigin?: "ignore" | "throw" | "trust";
4896
4917
  }): AsyncIterable<Object$1 | Link>;
4897
4918
  /** A non-negative integer value identifying the relative position within
4898
4919
  * the logical view of a strictly ordered collection.
@@ -4929,11 +4950,13 @@ declare class OrderedCollectionPage extends CollectionPage {
4929
4950
  documentLoader?: DocumentLoader;
4930
4951
  contextLoader?: DocumentLoader;
4931
4952
  tracerProvider?: TracerProvider;
4953
+ baseUrl?: URL;
4932
4954
  }): Promise<OrderedCollectionPage>;
4933
4955
  protected static __fromJsonLd__OrderedCollectionPage__(json: unknown, span: Span, options?: {
4934
4956
  documentLoader?: DocumentLoader;
4935
4957
  contextLoader?: DocumentLoader;
4936
4958
  tracerProvider?: TracerProvider;
4959
+ baseUrl?: URL;
4937
4960
  }): Promise<OrderedCollectionPage>;
4938
4961
  protected _getCustomInspectProxy(): Record<string, unknown>;
4939
4962
  }
@@ -5140,6 +5163,7 @@ declare class Organization extends Object$1 {
5140
5163
  contextLoader?: DocumentLoader;
5141
5164
  suppressError?: boolean;
5142
5165
  tracerProvider?: TracerProvider;
5166
+ crossOrigin?: "ignore" | "throw" | "trust";
5143
5167
  }): Promise<CryptographicKey | null>;
5144
5168
  /**
5145
5169
  * Similar to
@@ -5154,6 +5178,7 @@ declare class Organization extends Object$1 {
5154
5178
  contextLoader?: DocumentLoader;
5155
5179
  suppressError?: boolean;
5156
5180
  tracerProvider?: TracerProvider;
5181
+ crossOrigin?: "ignore" | "throw" | "trust";
5157
5182
  }): AsyncIterable<CryptographicKey>;
5158
5183
  /**
5159
5184
  * Similar to
@@ -5171,6 +5196,7 @@ declare class Organization extends Object$1 {
5171
5196
  contextLoader?: DocumentLoader;
5172
5197
  suppressError?: boolean;
5173
5198
  tracerProvider?: TracerProvider;
5199
+ crossOrigin?: "ignore" | "throw" | "trust";
5174
5200
  }): Promise<Multikey | null>;
5175
5201
  /**
5176
5202
  * Similar to
@@ -5188,6 +5214,7 @@ declare class Organization extends Object$1 {
5188
5214
  contextLoader?: DocumentLoader;
5189
5215
  suppressError?: boolean;
5190
5216
  tracerProvider?: TracerProvider;
5217
+ crossOrigin?: "ignore" | "throw" | "trust";
5191
5218
  }): AsyncIterable<Multikey>;
5192
5219
  /** When `true`, conveys that for this actor, follow requests are not usually
5193
5220
  * automatically approved, but instead are examined by a person who may accept
@@ -5222,6 +5249,7 @@ declare class Organization extends Object$1 {
5222
5249
  contextLoader?: DocumentLoader;
5223
5250
  suppressError?: boolean;
5224
5251
  tracerProvider?: TracerProvider;
5252
+ crossOrigin?: "ignore" | "throw" | "trust";
5225
5253
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5226
5254
  /**
5227
5255
  * Similar to
@@ -5245,6 +5273,7 @@ declare class Organization extends Object$1 {
5245
5273
  contextLoader?: DocumentLoader;
5246
5274
  suppressError?: boolean;
5247
5275
  tracerProvider?: TracerProvider;
5276
+ crossOrigin?: "ignore" | "throw" | "trust";
5248
5277
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5249
5278
  /**
5250
5279
  * Similar to
@@ -5263,6 +5292,7 @@ declare class Organization extends Object$1 {
5263
5292
  contextLoader?: DocumentLoader;
5264
5293
  suppressError?: boolean;
5265
5294
  tracerProvider?: TracerProvider;
5295
+ crossOrigin?: "ignore" | "throw" | "trust";
5266
5296
  }): Promise<Collection | null>;
5267
5297
  /**
5268
5298
  * Similar to
@@ -5284,6 +5314,7 @@ declare class Organization extends Object$1 {
5284
5314
  contextLoader?: DocumentLoader;
5285
5315
  suppressError?: boolean;
5286
5316
  tracerProvider?: TracerProvider;
5317
+ crossOrigin?: "ignore" | "throw" | "trust";
5287
5318
  }): Promise<Collection | null>;
5288
5319
  /**
5289
5320
  * Similar to
@@ -5303,6 +5334,7 @@ declare class Organization extends Object$1 {
5303
5334
  contextLoader?: DocumentLoader;
5304
5335
  suppressError?: boolean;
5305
5336
  tracerProvider?: TracerProvider;
5337
+ crossOrigin?: "ignore" | "throw" | "trust";
5306
5338
  }): Promise<Collection | null>;
5307
5339
  /**
5308
5340
  * Similar to
@@ -5320,6 +5352,7 @@ declare class Organization extends Object$1 {
5320
5352
  contextLoader?: DocumentLoader;
5321
5353
  suppressError?: boolean;
5322
5354
  tracerProvider?: TracerProvider;
5355
+ crossOrigin?: "ignore" | "throw" | "trust";
5323
5356
  }): Promise<Collection | null>;
5324
5357
  /**
5325
5358
  * Similar to
@@ -5337,6 +5370,7 @@ declare class Organization extends Object$1 {
5337
5370
  contextLoader?: DocumentLoader;
5338
5371
  suppressError?: boolean;
5339
5372
  tracerProvider?: TracerProvider;
5373
+ crossOrigin?: "ignore" | "throw" | "trust";
5340
5374
  }): Promise<Collection | null>;
5341
5375
  /**
5342
5376
  * Similar to
@@ -5351,6 +5385,7 @@ declare class Organization extends Object$1 {
5351
5385
  contextLoader?: DocumentLoader;
5352
5386
  suppressError?: boolean;
5353
5387
  tracerProvider?: TracerProvider;
5388
+ crossOrigin?: "ignore" | "throw" | "trust";
5354
5389
  }): AsyncIterable<Collection>;
5355
5390
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
5356
5391
  * which may be useful either for this actor or someone referencing this actor.
@@ -5387,6 +5422,7 @@ declare class Organization extends Object$1 {
5387
5422
  contextLoader?: DocumentLoader;
5388
5423
  suppressError?: boolean;
5389
5424
  tracerProvider?: TracerProvider;
5425
+ crossOrigin?: "ignore" | "throw" | "trust";
5390
5426
  }): Promise<Application | Group | Organization | Person | Service | null>;
5391
5427
  /**
5392
5428
  * Similar to
@@ -5404,6 +5440,7 @@ declare class Organization extends Object$1 {
5404
5440
  contextLoader?: DocumentLoader;
5405
5441
  suppressError?: boolean;
5406
5442
  tracerProvider?: TracerProvider;
5443
+ crossOrigin?: "ignore" | "throw" | "trust";
5407
5444
  }): Promise<Application | Group | Organization | Person | Service | null>;
5408
5445
  /**
5409
5446
  * Similar to
@@ -5421,6 +5458,7 @@ declare class Organization extends Object$1 {
5421
5458
  contextLoader?: DocumentLoader;
5422
5459
  suppressError?: boolean;
5423
5460
  tracerProvider?: TracerProvider;
5461
+ crossOrigin?: "ignore" | "throw" | "trust";
5424
5462
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
5425
5463
  /**
5426
5464
  * Similar to
@@ -5438,6 +5476,7 @@ declare class Organization extends Object$1 {
5438
5476
  contextLoader?: DocumentLoader;
5439
5477
  suppressError?: boolean;
5440
5478
  tracerProvider?: TracerProvider;
5479
+ crossOrigin?: "ignore" | "throw" | "trust";
5441
5480
  }): Promise<DidService | null>;
5442
5481
  /**
5443
5482
  * Similar to
@@ -5455,6 +5494,7 @@ declare class Organization extends Object$1 {
5455
5494
  contextLoader?: DocumentLoader;
5456
5495
  suppressError?: boolean;
5457
5496
  tracerProvider?: TracerProvider;
5497
+ crossOrigin?: "ignore" | "throw" | "trust";
5458
5498
  }): AsyncIterable<DidService>;
5459
5499
  /** This value is used for `Actor` type objects to show message on followed.
5460
5500
  */
@@ -5496,11 +5536,13 @@ declare class Organization extends Object$1 {
5496
5536
  documentLoader?: DocumentLoader;
5497
5537
  contextLoader?: DocumentLoader;
5498
5538
  tracerProvider?: TracerProvider;
5539
+ baseUrl?: URL;
5499
5540
  }): Promise<Organization>;
5500
5541
  protected static __fromJsonLd__Organization__(json: unknown, span: Span, options?: {
5501
5542
  documentLoader?: DocumentLoader;
5502
5543
  contextLoader?: DocumentLoader;
5503
5544
  tracerProvider?: TracerProvider;
5545
+ baseUrl?: URL;
5504
5546
  }): Promise<Organization>;
5505
5547
  protected _getCustomInspectProxy(): Record<string, unknown>;
5506
5548
  }
@@ -5710,6 +5752,7 @@ declare class Person extends Object$1 {
5710
5752
  contextLoader?: DocumentLoader;
5711
5753
  suppressError?: boolean;
5712
5754
  tracerProvider?: TracerProvider;
5755
+ crossOrigin?: "ignore" | "throw" | "trust";
5713
5756
  }): Promise<CryptographicKey | null>;
5714
5757
  /**
5715
5758
  * Similar to
@@ -5724,6 +5767,7 @@ declare class Person extends Object$1 {
5724
5767
  contextLoader?: DocumentLoader;
5725
5768
  suppressError?: boolean;
5726
5769
  tracerProvider?: TracerProvider;
5770
+ crossOrigin?: "ignore" | "throw" | "trust";
5727
5771
  }): AsyncIterable<CryptographicKey>;
5728
5772
  /**
5729
5773
  * Similar to
@@ -5741,6 +5785,7 @@ declare class Person extends Object$1 {
5741
5785
  contextLoader?: DocumentLoader;
5742
5786
  suppressError?: boolean;
5743
5787
  tracerProvider?: TracerProvider;
5788
+ crossOrigin?: "ignore" | "throw" | "trust";
5744
5789
  }): Promise<Multikey | null>;
5745
5790
  /**
5746
5791
  * Similar to
@@ -5758,6 +5803,7 @@ declare class Person extends Object$1 {
5758
5803
  contextLoader?: DocumentLoader;
5759
5804
  suppressError?: boolean;
5760
5805
  tracerProvider?: TracerProvider;
5806
+ crossOrigin?: "ignore" | "throw" | "trust";
5761
5807
  }): AsyncIterable<Multikey>;
5762
5808
  /** When `true`, conveys that for this actor, follow requests are not usually
5763
5809
  * automatically approved, but instead are examined by a person who may accept
@@ -5792,6 +5838,7 @@ declare class Person extends Object$1 {
5792
5838
  contextLoader?: DocumentLoader;
5793
5839
  suppressError?: boolean;
5794
5840
  tracerProvider?: TracerProvider;
5841
+ crossOrigin?: "ignore" | "throw" | "trust";
5795
5842
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5796
5843
  /**
5797
5844
  * Similar to
@@ -5815,6 +5862,7 @@ declare class Person extends Object$1 {
5815
5862
  contextLoader?: DocumentLoader;
5816
5863
  suppressError?: boolean;
5817
5864
  tracerProvider?: TracerProvider;
5865
+ crossOrigin?: "ignore" | "throw" | "trust";
5818
5866
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5819
5867
  /**
5820
5868
  * Similar to
@@ -5833,6 +5881,7 @@ declare class Person extends Object$1 {
5833
5881
  contextLoader?: DocumentLoader;
5834
5882
  suppressError?: boolean;
5835
5883
  tracerProvider?: TracerProvider;
5884
+ crossOrigin?: "ignore" | "throw" | "trust";
5836
5885
  }): Promise<Collection | null>;
5837
5886
  /**
5838
5887
  * Similar to
@@ -5854,6 +5903,7 @@ declare class Person extends Object$1 {
5854
5903
  contextLoader?: DocumentLoader;
5855
5904
  suppressError?: boolean;
5856
5905
  tracerProvider?: TracerProvider;
5906
+ crossOrigin?: "ignore" | "throw" | "trust";
5857
5907
  }): Promise<Collection | null>;
5858
5908
  /**
5859
5909
  * Similar to
@@ -5873,6 +5923,7 @@ declare class Person extends Object$1 {
5873
5923
  contextLoader?: DocumentLoader;
5874
5924
  suppressError?: boolean;
5875
5925
  tracerProvider?: TracerProvider;
5926
+ crossOrigin?: "ignore" | "throw" | "trust";
5876
5927
  }): Promise<Collection | null>;
5877
5928
  /**
5878
5929
  * Similar to
@@ -5890,6 +5941,7 @@ declare class Person extends Object$1 {
5890
5941
  contextLoader?: DocumentLoader;
5891
5942
  suppressError?: boolean;
5892
5943
  tracerProvider?: TracerProvider;
5944
+ crossOrigin?: "ignore" | "throw" | "trust";
5893
5945
  }): Promise<Collection | null>;
5894
5946
  /**
5895
5947
  * Similar to
@@ -5907,6 +5959,7 @@ declare class Person extends Object$1 {
5907
5959
  contextLoader?: DocumentLoader;
5908
5960
  suppressError?: boolean;
5909
5961
  tracerProvider?: TracerProvider;
5962
+ crossOrigin?: "ignore" | "throw" | "trust";
5910
5963
  }): Promise<Collection | null>;
5911
5964
  /**
5912
5965
  * Similar to
@@ -5921,6 +5974,7 @@ declare class Person extends Object$1 {
5921
5974
  contextLoader?: DocumentLoader;
5922
5975
  suppressError?: boolean;
5923
5976
  tracerProvider?: TracerProvider;
5977
+ crossOrigin?: "ignore" | "throw" | "trust";
5924
5978
  }): AsyncIterable<Collection>;
5925
5979
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
5926
5980
  * which may be useful either for this actor or someone referencing this actor.
@@ -5957,6 +6011,7 @@ declare class Person extends Object$1 {
5957
6011
  contextLoader?: DocumentLoader;
5958
6012
  suppressError?: boolean;
5959
6013
  tracerProvider?: TracerProvider;
6014
+ crossOrigin?: "ignore" | "throw" | "trust";
5960
6015
  }): Promise<Application | Group | Organization | Person | Service | null>;
5961
6016
  /**
5962
6017
  * Similar to
@@ -5974,6 +6029,7 @@ declare class Person extends Object$1 {
5974
6029
  contextLoader?: DocumentLoader;
5975
6030
  suppressError?: boolean;
5976
6031
  tracerProvider?: TracerProvider;
6032
+ crossOrigin?: "ignore" | "throw" | "trust";
5977
6033
  }): Promise<Application | Group | Organization | Person | Service | null>;
5978
6034
  /**
5979
6035
  * Similar to
@@ -5991,6 +6047,7 @@ declare class Person extends Object$1 {
5991
6047
  contextLoader?: DocumentLoader;
5992
6048
  suppressError?: boolean;
5993
6049
  tracerProvider?: TracerProvider;
6050
+ crossOrigin?: "ignore" | "throw" | "trust";
5994
6051
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
5995
6052
  /**
5996
6053
  * Similar to
@@ -6008,6 +6065,7 @@ declare class Person extends Object$1 {
6008
6065
  contextLoader?: DocumentLoader;
6009
6066
  suppressError?: boolean;
6010
6067
  tracerProvider?: TracerProvider;
6068
+ crossOrigin?: "ignore" | "throw" | "trust";
6011
6069
  }): Promise<DidService | null>;
6012
6070
  /**
6013
6071
  * Similar to
@@ -6025,6 +6083,7 @@ declare class Person extends Object$1 {
6025
6083
  contextLoader?: DocumentLoader;
6026
6084
  suppressError?: boolean;
6027
6085
  tracerProvider?: TracerProvider;
6086
+ crossOrigin?: "ignore" | "throw" | "trust";
6028
6087
  }): AsyncIterable<DidService>;
6029
6088
  /** This value is used for `Actor` type objects to show message on followed.
6030
6089
  */
@@ -6066,11 +6125,13 @@ declare class Person extends Object$1 {
6066
6125
  documentLoader?: DocumentLoader;
6067
6126
  contextLoader?: DocumentLoader;
6068
6127
  tracerProvider?: TracerProvider;
6128
+ baseUrl?: URL;
6069
6129
  }): Promise<Person>;
6070
6130
  protected static __fromJsonLd__Person__(json: unknown, span: Span, options?: {
6071
6131
  documentLoader?: DocumentLoader;
6072
6132
  contextLoader?: DocumentLoader;
6073
6133
  tracerProvider?: TracerProvider;
6134
+ baseUrl?: URL;
6074
6135
  }): Promise<Person>;
6075
6136
  protected _getCustomInspectProxy(): Record<string, unknown>;
6076
6137
  }
@@ -6282,6 +6343,7 @@ declare class Service extends Object$1 {
6282
6343
  contextLoader?: DocumentLoader;
6283
6344
  suppressError?: boolean;
6284
6345
  tracerProvider?: TracerProvider;
6346
+ crossOrigin?: "ignore" | "throw" | "trust";
6285
6347
  }): Promise<CryptographicKey | null>;
6286
6348
  /**
6287
6349
  * Similar to
@@ -6296,6 +6358,7 @@ declare class Service extends Object$1 {
6296
6358
  contextLoader?: DocumentLoader;
6297
6359
  suppressError?: boolean;
6298
6360
  tracerProvider?: TracerProvider;
6361
+ crossOrigin?: "ignore" | "throw" | "trust";
6299
6362
  }): AsyncIterable<CryptographicKey>;
6300
6363
  /**
6301
6364
  * Similar to
@@ -6313,6 +6376,7 @@ declare class Service extends Object$1 {
6313
6376
  contextLoader?: DocumentLoader;
6314
6377
  suppressError?: boolean;
6315
6378
  tracerProvider?: TracerProvider;
6379
+ crossOrigin?: "ignore" | "throw" | "trust";
6316
6380
  }): Promise<Multikey | null>;
6317
6381
  /**
6318
6382
  * Similar to
@@ -6330,6 +6394,7 @@ declare class Service extends Object$1 {
6330
6394
  contextLoader?: DocumentLoader;
6331
6395
  suppressError?: boolean;
6332
6396
  tracerProvider?: TracerProvider;
6397
+ crossOrigin?: "ignore" | "throw" | "trust";
6333
6398
  }): AsyncIterable<Multikey>;
6334
6399
  /** When `true`, conveys that for this actor, follow requests are not usually
6335
6400
  * automatically approved, but instead are examined by a person who may accept
@@ -6364,6 +6429,7 @@ declare class Service extends Object$1 {
6364
6429
  contextLoader?: DocumentLoader;
6365
6430
  suppressError?: boolean;
6366
6431
  tracerProvider?: TracerProvider;
6432
+ crossOrigin?: "ignore" | "throw" | "trust";
6367
6433
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6368
6434
  /**
6369
6435
  * Similar to
@@ -6387,6 +6453,7 @@ declare class Service extends Object$1 {
6387
6453
  contextLoader?: DocumentLoader;
6388
6454
  suppressError?: boolean;
6389
6455
  tracerProvider?: TracerProvider;
6456
+ crossOrigin?: "ignore" | "throw" | "trust";
6390
6457
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6391
6458
  /**
6392
6459
  * Similar to
@@ -6405,6 +6472,7 @@ declare class Service extends Object$1 {
6405
6472
  contextLoader?: DocumentLoader;
6406
6473
  suppressError?: boolean;
6407
6474
  tracerProvider?: TracerProvider;
6475
+ crossOrigin?: "ignore" | "throw" | "trust";
6408
6476
  }): Promise<Collection | null>;
6409
6477
  /**
6410
6478
  * Similar to
@@ -6426,6 +6494,7 @@ declare class Service extends Object$1 {
6426
6494
  contextLoader?: DocumentLoader;
6427
6495
  suppressError?: boolean;
6428
6496
  tracerProvider?: TracerProvider;
6497
+ crossOrigin?: "ignore" | "throw" | "trust";
6429
6498
  }): Promise<Collection | null>;
6430
6499
  /**
6431
6500
  * Similar to
@@ -6445,6 +6514,7 @@ declare class Service extends Object$1 {
6445
6514
  contextLoader?: DocumentLoader;
6446
6515
  suppressError?: boolean;
6447
6516
  tracerProvider?: TracerProvider;
6517
+ crossOrigin?: "ignore" | "throw" | "trust";
6448
6518
  }): Promise<Collection | null>;
6449
6519
  /**
6450
6520
  * Similar to
@@ -6462,6 +6532,7 @@ declare class Service extends Object$1 {
6462
6532
  contextLoader?: DocumentLoader;
6463
6533
  suppressError?: boolean;
6464
6534
  tracerProvider?: TracerProvider;
6535
+ crossOrigin?: "ignore" | "throw" | "trust";
6465
6536
  }): Promise<Collection | null>;
6466
6537
  /**
6467
6538
  * Similar to
@@ -6479,6 +6550,7 @@ declare class Service extends Object$1 {
6479
6550
  contextLoader?: DocumentLoader;
6480
6551
  suppressError?: boolean;
6481
6552
  tracerProvider?: TracerProvider;
6553
+ crossOrigin?: "ignore" | "throw" | "trust";
6482
6554
  }): Promise<Collection | null>;
6483
6555
  /**
6484
6556
  * Similar to
@@ -6493,6 +6565,7 @@ declare class Service extends Object$1 {
6493
6565
  contextLoader?: DocumentLoader;
6494
6566
  suppressError?: boolean;
6495
6567
  tracerProvider?: TracerProvider;
6568
+ crossOrigin?: "ignore" | "throw" | "trust";
6496
6569
  }): AsyncIterable<Collection>;
6497
6570
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
6498
6571
  * which may be useful either for this actor or someone referencing this actor.
@@ -6529,6 +6602,7 @@ declare class Service extends Object$1 {
6529
6602
  contextLoader?: DocumentLoader;
6530
6603
  suppressError?: boolean;
6531
6604
  tracerProvider?: TracerProvider;
6605
+ crossOrigin?: "ignore" | "throw" | "trust";
6532
6606
  }): Promise<Application | Group | Organization | Person | Service | null>;
6533
6607
  /**
6534
6608
  * Similar to
@@ -6546,6 +6620,7 @@ declare class Service extends Object$1 {
6546
6620
  contextLoader?: DocumentLoader;
6547
6621
  suppressError?: boolean;
6548
6622
  tracerProvider?: TracerProvider;
6623
+ crossOrigin?: "ignore" | "throw" | "trust";
6549
6624
  }): Promise<Application | Group | Organization | Person | Service | null>;
6550
6625
  /**
6551
6626
  * Similar to
@@ -6563,6 +6638,7 @@ declare class Service extends Object$1 {
6563
6638
  contextLoader?: DocumentLoader;
6564
6639
  suppressError?: boolean;
6565
6640
  tracerProvider?: TracerProvider;
6641
+ crossOrigin?: "ignore" | "throw" | "trust";
6566
6642
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
6567
6643
  /**
6568
6644
  * Similar to
@@ -6580,6 +6656,7 @@ declare class Service extends Object$1 {
6580
6656
  contextLoader?: DocumentLoader;
6581
6657
  suppressError?: boolean;
6582
6658
  tracerProvider?: TracerProvider;
6659
+ crossOrigin?: "ignore" | "throw" | "trust";
6583
6660
  }): Promise<DidService | null>;
6584
6661
  /**
6585
6662
  * Similar to
@@ -6597,6 +6674,7 @@ declare class Service extends Object$1 {
6597
6674
  contextLoader?: DocumentLoader;
6598
6675
  suppressError?: boolean;
6599
6676
  tracerProvider?: TracerProvider;
6677
+ crossOrigin?: "ignore" | "throw" | "trust";
6600
6678
  }): AsyncIterable<DidService>;
6601
6679
  /** This value is used for `Actor` type objects to show message on followed.
6602
6680
  */
@@ -6638,11 +6716,13 @@ declare class Service extends Object$1 {
6638
6716
  documentLoader?: DocumentLoader;
6639
6717
  contextLoader?: DocumentLoader;
6640
6718
  tracerProvider?: TracerProvider;
6719
+ baseUrl?: URL;
6641
6720
  }): Promise<Service>;
6642
6721
  protected static __fromJsonLd__Service__(json: unknown, span: Span, options?: {
6643
6722
  documentLoader?: DocumentLoader;
6644
6723
  contextLoader?: DocumentLoader;
6645
6724
  tracerProvider?: TracerProvider;
6725
+ baseUrl?: URL;
6646
6726
  }): Promise<Service>;
6647
6727
  protected _getCustomInspectProxy(): Record<string, unknown>;
6648
6728
  }
@@ -6735,11 +6815,13 @@ declare class Source {
6735
6815
  documentLoader?: DocumentLoader;
6736
6816
  contextLoader?: DocumentLoader;
6737
6817
  tracerProvider?: TracerProvider;
6818
+ baseUrl?: URL;
6738
6819
  }): Promise<Source>;
6739
6820
  protected static __fromJsonLd__Source__(json: unknown, span: Span, options?: {
6740
6821
  documentLoader?: DocumentLoader;
6741
6822
  contextLoader?: DocumentLoader;
6742
6823
  tracerProvider?: TracerProvider;
6824
+ baseUrl?: URL;
6743
6825
  }): Promise<Source>;
6744
6826
  protected _getCustomInspectProxy(): Record<string, unknown>;
6745
6827
  }
@@ -6832,6 +6914,24 @@ interface LookupObjectOptions {
6832
6914
  * @since 0.8.0
6833
6915
  */
6834
6916
  contextLoader?: DocumentLoader;
6917
+ /**
6918
+ * Whether to allow fetching an object with an `@id` having a different
6919
+ * origin than the object's URL. This is not recommended, as it may
6920
+ * lead to security issues. Only use this option if you know what you
6921
+ * are doing.
6922
+ *
6923
+ * How to handle the case when an object's `@id` has a different origin
6924
+ * than the object's URL:
6925
+ *
6926
+ * - `"ignore"` (default): Do not return the object, and log a warning.
6927
+ * - `"throw"`: Throw an error.
6928
+ * - `"trust"`: Bypass the check and return the object anyway. This
6929
+ * is not recommended, as it may lead to security issues. Only use
6930
+ * this option if you know what you are doing.
6931
+ *
6932
+ * @since 1.9.0
6933
+ */
6934
+ crossOrigin?: "ignore" | "throw" | "trust";
6835
6935
  /**
6836
6936
  * The options for making `User-Agent` header.
6837
6937
  * If a string is given, it is used as the `User-Agent` header value.
@@ -7294,7 +7394,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
7294
7394
  * the entire collection without pagination.
7295
7395
  * @since 1.8.0
7296
7396
  */
7297
- 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>;
7397
+ 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>;
7298
7398
  /**
7299
7399
  * A callback that counts the number of items in a custom collection.
7300
7400
  *
@@ -7304,7 +7404,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
7304
7404
  * @param values The parameters of the requested URL.
7305
7405
  * @since 1.8.0
7306
7406
  */
7307
- type CustomCollectionCounter<TParams extends Record<string, string>, TContextData> = (context: RequestContext<TContextData>, values: TParams) => number | bigint | null | Promise<number | bigint | null>;
7407
+ type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
7308
7408
  /**
7309
7409
  * A callback that returns a cursor for a custom collection.
7310
7410
  *
@@ -7317,7 +7417,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
7317
7417
  * @param values The parameters of the requested URL.
7318
7418
  * @since 1.8.0
7319
7419
  */
7320
- type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
7420
+ type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
7321
7421
  //#endregion
7322
7422
  //#region src/federation/queue.d.ts
7323
7423
  interface SenderKeyJwkPair {
@@ -7438,7 +7538,7 @@ interface Federatable<TContextData> {
7438
7538
  * @returns An object with methods to set other actor dispatcher callbacks.
7439
7539
  * @throws {RouterError} Thrown if the path pattern is invalid.
7440
7540
  */
7441
- setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7541
+ setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7442
7542
  /**
7443
7543
  * Registers an object dispatcher.
7444
7544
  *
@@ -7452,9 +7552,7 @@ interface Federatable<TContextData> {
7452
7552
  * must have one or more variables.
7453
7553
  * @param dispatcher An object dispatcher callback to register.
7454
7554
  */
7455
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7456
- typeId: URL;
7457
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7555
+ 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>;
7458
7556
  /**
7459
7557
  * Registers an object dispatcher.
7460
7558
  *
@@ -7468,9 +7566,7 @@ interface Federatable<TContextData> {
7468
7566
  * must have one or more variables.
7469
7567
  * @param dispatcher An object dispatcher callback to register.
7470
7568
  */
7471
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7472
- typeId: URL;
7473
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7569
+ 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>;
7474
7570
  /**
7475
7571
  * Registers an object dispatcher.
7476
7572
  *
@@ -7484,9 +7580,7 @@ interface Federatable<TContextData> {
7484
7580
  * must have one or more variables.
7485
7581
  * @param dispatcher An object dispatcher callback to register.
7486
7582
  */
7487
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7488
- typeId: URL;
7489
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7583
+ 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>;
7490
7584
  /**
7491
7585
  * Registers an object dispatcher.
7492
7586
  *
@@ -7500,9 +7594,7 @@ interface Federatable<TContextData> {
7500
7594
  * must have one or more variables.
7501
7595
  * @param dispatcher An object dispatcher callback to register.
7502
7596
  */
7503
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7504
- typeId: URL;
7505
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7597
+ 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>;
7506
7598
  /**
7507
7599
  * Registers an object dispatcher.
7508
7600
  *
@@ -7516,9 +7608,7 @@ interface Federatable<TContextData> {
7516
7608
  * must have one or more variables.
7517
7609
  * @param dispatcher An object dispatcher callback to register.
7518
7610
  */
7519
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7520
- typeId: URL;
7521
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7611
+ 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>;
7522
7612
  /**
7523
7613
  * Registers an object dispatcher.
7524
7614
  *
@@ -7532,9 +7622,7 @@ interface Federatable<TContextData> {
7532
7622
  * must have one or more variables.
7533
7623
  * @param dispatcher An object dispatcher callback to register.
7534
7624
  */
7535
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7536
- typeId: URL;
7537
- }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7625
+ 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>;
7538
7626
  /**
7539
7627
  * Registers an inbox dispatcher.
7540
7628
  *
@@ -7546,7 +7634,7 @@ interface Federatable<TContextData> {
7546
7634
  * @param dispatcher An inbox dispatcher callback to register.
7547
7635
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7548
7636
  */
7549
- setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7637
+ setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7550
7638
  /**
7551
7639
  * Registers an outbox dispatcher.
7552
7640
  *
@@ -7570,7 +7658,7 @@ interface Federatable<TContextData> {
7570
7658
  * @param dispatcher An outbox dispatcher callback to register.
7571
7659
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7572
7660
  */
7573
- setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7661
+ setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7574
7662
  /**
7575
7663
  * Registers a following collection dispatcher.
7576
7664
  * @param path The URI path pattern for the following collection. The syntax
@@ -7582,7 +7670,7 @@ interface Federatable<TContextData> {
7582
7670
  * callbacks.
7583
7671
  * @throws {RouterError} Thrown if the path pattern is invalid.
7584
7672
  */
7585
- setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7673
+ setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7586
7674
  /**
7587
7675
  * Registers a followers collection dispatcher.
7588
7676
  * @param path The URI path pattern for the followers collection. The syntax
@@ -7594,7 +7682,7 @@ interface Federatable<TContextData> {
7594
7682
  * callbacks.
7595
7683
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7596
7684
  */
7597
- setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7685
+ setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7598
7686
  /**
7599
7687
  * Registers a liked collection dispatcher.
7600
7688
  * @param path The URI path pattern for the liked collection. The syntax
@@ -7606,7 +7694,7 @@ interface Federatable<TContextData> {
7606
7694
  * callbacks.
7607
7695
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7608
7696
  */
7609
- setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7697
+ setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7610
7698
  /**
7611
7699
  * Registers a featured collection dispatcher.
7612
7700
  * @param path The URI path pattern for the featured collection. The syntax
@@ -7618,7 +7706,7 @@ interface Federatable<TContextData> {
7618
7706
  * callbacks.
7619
7707
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7620
7708
  */
7621
- setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7709
+ setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7622
7710
  /**
7623
7711
  * Registers a featured tags collection dispatcher.
7624
7712
  * @param path The URI path pattern for the featured tags collection.
@@ -7630,7 +7718,7 @@ interface Federatable<TContextData> {
7630
7718
  * callbacks.
7631
7719
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7632
7720
  */
7633
- setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7721
+ setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7634
7722
  /**
7635
7723
  * Assigns the URL path for the inbox and starts setting inbox listeners.
7636
7724
  *
@@ -7660,7 +7748,22 @@ interface Federatable<TContextData> {
7660
7748
  * @returns An object to register inbox listeners.
7661
7749
  * @throws {RouteError} Thrown if the path pattern is invalid.
7662
7750
  */
7663
- setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7751
+ setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7752
+ /**
7753
+ * Registers a collection of objects dispatcher.
7754
+ *
7755
+ * @template TContextData The context data to pass to the {@link Context}.
7756
+ * @template TObject The type of objects to dispatch.
7757
+ * @template TParam The parameter names of the requested URL.
7758
+ * @param name A unique name for the collection dispatcher.
7759
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7760
+ * @param path The URI path pattern for the collection dispatcher.
7761
+ * The syntax is based on URI Template
7762
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7763
+ * The path must have one or more variables.
7764
+ * @param dispatcher A collection dispatcher callback to register.
7765
+ */
7766
+ 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>;
7664
7767
  /**
7665
7768
  * Registers a collection of objects dispatcher.
7666
7769
  *
@@ -7675,7 +7778,52 @@ interface Federatable<TContextData> {
7675
7778
  * The path must have one or more variables.
7676
7779
  * @param dispatcher A collection dispatcher callback to register.
7677
7780
  */
7678
- 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>;
7781
+ 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>;
7782
+ /**
7783
+ * Registers a collection of objects dispatcher.
7784
+ *
7785
+ * @template TContextData The context data to pass to the {@link Context}.
7786
+ * @template TObject The type of objects to dispatch.
7787
+ * @template TParam The parameter names of the requested URL.
7788
+ * @param name A unique name for the collection dispatcher.
7789
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7790
+ * @param path The URI path pattern for the collection dispatcher.
7791
+ * The syntax is based on URI Template
7792
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7793
+ * The path must have one or more variables.
7794
+ * @param dispatcher A collection dispatcher callback to register.
7795
+ */
7796
+ 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>;
7797
+ /**
7798
+ * Registers an ordered collection of objects dispatcher.
7799
+ *
7800
+ * @template TContextData The context data to pass to the {@link Context}.
7801
+ * @template TObject The type of objects to dispatch.
7802
+ * @template TParam The parameter names of the requested URL.
7803
+ * @param name A unique name for the collection dispatcher.
7804
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7805
+ * @param path The URI path pattern for the collection dispatcher.
7806
+ * The syntax is based on URI Template
7807
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7808
+ * The path must have one or more variables.
7809
+ * @param dispatcher A collection dispatcher callback to register.
7810
+ */
7811
+ 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>;
7812
+ /**
7813
+ * Registers an ordered collection of objects dispatcher.
7814
+ *
7815
+ * @template TContextData The context data to pass to the {@link Context}.
7816
+ * @template TObject The type of objects to dispatch.
7817
+ * @template TParam The parameter names of the requested URL.
7818
+ * @param name A unique name for the collection dispatcher.
7819
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7820
+ * @param path The URI path pattern for the collection dispatcher.
7821
+ * The syntax is based on URI Template
7822
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7823
+ * The path must have one or more variables.
7824
+ * @param dispatcher A collection dispatcher callback to register.
7825
+ */
7826
+ 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>;
7679
7827
  /**
7680
7828
  * Registers an ordered collection of objects dispatcher.
7681
7829
  *
@@ -7690,7 +7838,7 @@ interface Federatable<TContextData> {
7690
7838
  * The path must have one or more variables.
7691
7839
  * @param dispatcher A collection dispatcher callback to register.
7692
7840
  */
7693
- 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>;
7841
+ 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>;
7694
7842
  }
7695
7843
  /**
7696
7844
  * An object that registers federation-related business logic and dispatches
@@ -7861,6 +8009,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
7861
8009
  */
7862
8010
  authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
7863
8011
  }
8012
+ /**
8013
+ * The strategy for handling activity idempotency in inbox processing.
8014
+ *
8015
+ * - `"global"`: Activities are deduplicated globally across all inboxes and
8016
+ * origins. The same activity ID will be processed only once, regardless
8017
+ * of which inbox receives it or which server sent it.
8018
+ *
8019
+ * - `"per-origin"`: Activities are deduplicated per receiving server's origin.
8020
+ * The same activity ID will be processed only once on each receiving server,
8021
+ * but can be processed separately on different receiving servers. This had
8022
+ * been the default behavior in Fedify 1.x versions.
8023
+ *
8024
+ * - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
8025
+ * ID can be processed once per inbox, allowing the same activity to be
8026
+ * delivered to multiple inboxes independently. This follows standard
8027
+ * ActivityPub behavior and is the default strategy since Fedify 2.0.0.
8028
+ *
8029
+ * @since 1.9.0
8030
+ */
8031
+ type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
8032
+ /**
8033
+ * A callback to generate a custom idempotency key for an activity.
8034
+ * Returns the cache key to use, or null to skip idempotency checking.
8035
+ * @template TContextData The context data to pass to the {@link InboxContext}.
8036
+ * @param ctx The inbox context.
8037
+ * @param activity The activity being processed.
8038
+ * @returns The idempotency key to use for caching, or null to skip caching.
8039
+ * @since 1.9.0
8040
+ */
8041
+ type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
7864
8042
  /**
7865
8043
  * Registry for inbox listeners for different activity types.
7866
8044
  */
@@ -7891,6 +8069,36 @@ interface InboxListenerSetters<TContextData> {
7891
8069
  * @since 0.11.0
7892
8070
  */
7893
8071
  setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
8072
+ /**
8073
+ * Configures the strategy for handling activity idempotency in inbox processing.
8074
+ *
8075
+ * @example
8076
+ * Use per-inbox strategy (standard ActivityPub behavior):
8077
+ * ```
8078
+ * federation
8079
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8080
+ * .withIdempotency("per-inbox");
8081
+ * ```
8082
+ *
8083
+ * Use custom strategy:
8084
+ * ```
8085
+ * federation
8086
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8087
+ * .withIdempotency((ctx, activity) => {
8088
+ * // Return null to skip idempotency
8089
+ * return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
8090
+ * });
8091
+ * ```
8092
+ *
8093
+ * @param strategy The idempotency strategy to use. Can be:
8094
+ * - `"global"`: Activities are deduplicated across all inboxes and origins
8095
+ * - `"per-origin"`: Activities are deduplicated per inbox origin
8096
+ * - `"per-inbox"`: Activities are deduplicated per inbox
8097
+ * - A custom callback function that returns the cache key to use
8098
+ * @returns The setters object so that settings can be chained.
8099
+ * @since 1.9.0
8100
+ */
8101
+ withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
7894
8102
  }
7895
8103
  /**
7896
8104
  * Parameters of {@link Federation.fetch} method.
@@ -7929,38 +8137,38 @@ interface FederationFetchOptions<TContextData> {
7929
8137
  /**
7930
8138
  * Additional settings for a custom collection dispatcher.
7931
8139
  *
7932
- * @template TParams The type of the parameters in the URL path.
8140
+ * @template TParam The type of the parameters in the URL path.
7933
8141
  * @template TContext The type of the context. {@link Context} or
7934
8142
  * {@link RequestContext}.
7935
8143
  * @template TContextData The context data to pass to the {@link Context}.
7936
8144
  * @template TFilter The type of filter for the collection.
7937
8145
  */
7938
- interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> {
8146
+ interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
7939
8147
  /**
7940
8148
  * Sets the counter for the custom collection.
7941
8149
  * @param counter A callback that returns the number of items in the custom collection.
7942
8150
  * @returns The setters object so that settings can be chained.
7943
8151
  */
7944
- setCounter(counter: CustomCollectionCounter<TParams, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8152
+ setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7945
8153
  /**
7946
8154
  * Sets the first cursor for the custom collection.
7947
8155
  * @param cursor The cursor for the first item in the custom collection.
7948
8156
  * @returns The setters object so that settings can be chained.
7949
8157
  */
7950
- setFirstCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8158
+ setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7951
8159
  /**
7952
8160
  * Sets the last cursor for the custom collection.
7953
8161
  * @param cursor The cursor for the last item in the custom collection.
7954
8162
  * @returns The setters object so that settings can be chained.
7955
8163
  */
7956
- setLastCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8164
+ setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7957
8165
  /**
7958
8166
  * Specifies the conditions under which requests are authorized.
7959
8167
  * @param predicate A callback that returns whether a request is authorized.
7960
8168
  * @returns The setters object so that settings can be chained.
7961
8169
  * @since 0.7.0
7962
8170
  */
7963
- authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8171
+ authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
7964
8172
  }
7965
8173
  /**
7966
8174
  * Represents an object with a type ID, which is either a constructor or an
@@ -7972,73 +8180,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
7972
8180
  typeId: URL;
7973
8181
  };
7974
8182
  /**
7975
- * Represents a path from the key of parameter objects.
7976
- * @param Params - A record of parameters where keys are parameter names and
7977
- * values are their string representations.
7978
- * @returns A string representing the path with all parameters.
7979
- * @example
7980
- * ```ts
7981
- * type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
7982
- * let userPostPath: UserPostPath;
7983
- * // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
7984
- * // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
7985
- * userPostPath = "/users/{userId}/posts/{postId}"; // valid
7986
- * userPostPath = "/posts/{postId}/users/{userId}"; // valid
7987
- * ```
7988
- */
7989
- type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
7990
- /**
7991
- * Represents a path with multiple parameters.
7992
- * All permutations of the parameters are included in the union type.
7993
- * The path must have all parameters in the form of `{paramName}`.
7994
- * @param Params - A union of parameter names.
7995
- * @returns A string representing the path with all parameters.
7996
- * @example
7997
- * ```ts
7998
- * type UserPostPath = ParamsPath<"userId" | "postId">;
7999
- * // = `${string}{userId}${string}` & `${string}{postId}${string}`
8000
- * // =
8001
- * // | `${string}{userId}${string}{postId}${string}`
8002
- * // | `${string}{postId}${string}{userId}${string}`
8003
- * let userPostPath: UserPostPath;
8004
- * userPostPath = "/users/posts"; // ❌ invalid
8005
- * userPostPath = "/users/{userId}"; // ❌ invalid
8006
- * userPostPath = "/posts/{postId}"; // ❌ invalid
8007
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
8008
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
8009
- */
8010
- type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
8011
- /**
8012
- * Represents a path with a single parameter.
8013
- * The path must have at least one of the parameters in the form of `{paramName}`.
8014
- * @param Param - The name of the parameter.
8015
- * @returns A string representing the path with the parameter.
8016
- * @example
8017
- * ```ts
8018
- * type UserPostPath = ParamPath<"userId" | "postId">;
8019
- * // = `${string}{userId}${string}` | `${string}{postId}${string}`
8020
- * let userPostPath: UserPostPath;
8021
- * userPostPath = "/users/posts"; // ❌ invalid
8022
- * userPostPath = "/users/{userId}"; // ✅ valid
8023
- * userPostPath = "/posts/{postId}"; // ✅ valid
8024
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
8025
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
8026
- */
8027
- type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
8028
- /**
8029
- * Converts union types to intersection types.
8183
+ * Defines a union of all valid RFC 6570 URI Template expressions for a given
8184
+ * parameter name.
8185
+ *
8186
+ * RFC 6570 specifies a syntax for URI templates, allowing for variable
8187
+ * expansion. This type captures all Level 1-4 operator expressions for a
8188
+ * single, named variable.
8189
+ *
8190
+ * The supported expression types are:
8191
+ * - `{Param}`: Simple string expansion
8192
+ * - `+{Param}`: Reserved string expansion
8193
+ * - `#{Param}`: Fragment expansion
8194
+ * - `{.Param}`: Label expansion with a dot-prefix
8195
+ * - `{/Param}`: Path segment expansion
8196
+ * - `{;Param}`: Path-style parameter expansion
8197
+ * - `{?Param}`: Query component expansion
8198
+ * - `{&Param}`: Query continuation expansion
8030
8199
  *
8031
- * @template U - The union type to convert.
8032
- * @returns The intersection type of the union.
8200
+ * @template Param The name of the parameter to be used in the expressions.
8033
8201
  * @example
8034
8202
  * ```ts
8035
- * type A = { a: string };
8036
- * type B = { b: number };
8037
- * type AorB = A | B;
8038
- * type AandB = UnionToIntersection<AorB>;
8039
- * // AandB = { a: string; b: number }
8203
+ * type UserIdExpression = Rfc6570Expression<"userId">;
8204
+ *
8205
+ * // The variable `userPath` can be assigned any of the valid expressions.
8206
+ * const userPath: UserIdExpression = "{/userId}";
8207
+ * ```
8208
+ * @see {@link https://tools.ietf.org/html/rfc6570} for the full specification.
8040
8209
  */
8041
- type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
8210
+ type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
8042
8211
  //#endregion
8043
8212
  //#region src/federation/context.d.ts
8044
8213
  /**
@@ -8127,9 +8296,7 @@ interface Context<TContextData> {
8127
8296
  * @throws {TypeError} If values are invalid.
8128
8297
  * @since 0.7.0
8129
8298
  */
8130
- getObjectUri<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8131
- typeId: URL;
8132
- }, values: Record<string, string>): URL;
8299
+ getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
8133
8300
  /**
8134
8301
  * Builds the URI of an actor's outbox with the given identifier.
8135
8302
  * @param identifier The actor's identifier.
@@ -8443,9 +8610,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
8443
8610
  * @throws {TypeError} If values are invalid.
8444
8611
  * @since 0.7.0
8445
8612
  */
8446
- getObject<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8447
- typeId: URL;
8448
- }, values: Record<string, string>): Promise<TObject | null>;
8613
+ getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
8449
8614
  /**
8450
8615
  * Gets the public key of the sender, if any exists and it is verified.
8451
8616
  * Otherwise, `null` is returned.
@@ -8589,9 +8754,7 @@ type ParseUriResult =
8589
8754
  * The case of an object URI.
8590
8755
  */ | {
8591
8756
  readonly type: "object";
8592
- readonly class: (new (...args: any[]) => Object$1) & {
8593
- typeId: URL;
8594
- };
8757
+ readonly class: ConstructorWithTypeId<Object$1>;
8595
8758
  readonly typeId: URL;
8596
8759
  readonly values: Record<string, string>;
8597
8760
  }