@fedify/fedify 1.9.0-pr.443.1681 → 1.9.0-pr.455.1742

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 (138) hide show
  1. package/dist/{actor-sT_gcgkl.d.ts → actor-C1Euqngb.d.ts} +1 -1
  2. package/dist/{actor-CX1PqLef.js → actor-CL8lYYUx.js} +1 -1
  3. package/dist/{actor-D6yXbYgY.js → actor-CYnaKz6k.js} +6169 -2946
  4. package/dist/{actor-CpDvMeh9.cjs → actor-D_0j9hMV.cjs} +6169 -2946
  5. package/dist/{actor-D8GmZX63.d.cts → actor-Ydzhc8dj.d.cts} +1 -1
  6. package/dist/{authdocloader-B02Yhk89.cjs → authdocloader-AGT1bvSf.cjs} +3 -3
  7. package/dist/{authdocloader-_-SNQ37B.js → authdocloader-BlVoSqyh.js} +3 -3
  8. package/dist/{authdocloader-CtHAAz1D.js → authdocloader-CRuH00Tu.js} +3 -3
  9. package/dist/{builder-C5KrSbKS.js → builder-CqMKWEN0.js} +14 -8
  10. package/dist/{client-DbRgEC98.js → client-BM12q1DJ.js} +1 -1
  11. package/dist/compat/mod.d.cts +7 -7
  12. package/dist/compat/mod.d.ts +7 -7
  13. package/dist/compat/transformers.test.js +16 -16
  14. package/dist/{context-Cp-kboln.d.ts → context-CXUibY4L.d.ts} +179 -116
  15. package/dist/{context-BkqGJwLI.d.cts → context-CwUAkopp.d.cts} +179 -116
  16. package/dist/{docloader-DHrLpvDa.js → docloader-BggS4E4F.js} +1 -1
  17. package/dist/{docloader-B_lWIYhZ.cjs → docloader-CLtA3Ji8.cjs} +1 -1
  18. package/dist/{esm-oDAmb3t0.js → esm-B3jpomik.js} +1 -1
  19. package/dist/federation/builder.test.js +5 -5
  20. package/dist/federation/collection.test.js +3 -3
  21. package/dist/federation/handler.test.js +17 -17
  22. package/dist/federation/idempotency.test.d.ts +3 -0
  23. package/dist/federation/idempotency.test.js +202 -0
  24. package/dist/federation/inbox.test.js +4 -4
  25. package/dist/federation/keycache.test.js +4 -4
  26. package/dist/federation/kv.test.js +3 -3
  27. package/dist/federation/middleware.test.js +18 -18
  28. package/dist/federation/mod.cjs +10 -10
  29. package/dist/federation/mod.d.cts +7 -7
  30. package/dist/federation/mod.d.ts +7 -7
  31. package/dist/federation/mod.js +10 -10
  32. package/dist/federation/mq.test.js +3 -3
  33. package/dist/federation/retry.test.js +3 -3
  34. package/dist/federation/router.test.js +3 -3
  35. package/dist/federation/send.test.js +10 -10
  36. package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
  37. package/dist/{http-BQ0XHmus.cjs → http-2m_h3SPQ.cjs} +3 -3
  38. package/dist/{http-B9UPBFJz.d.cts → http-B1_DzfAU.d.cts} +1 -1
  39. package/dist/{http-4lxNFaXA.js → http-D53H7oqD.js} +3 -3
  40. package/dist/{http-ABY5j3YT.js → http-DNkYeLxx.js} +2 -2
  41. package/dist/{http-BGqh2jzk.d.ts → http-wsGR6KkT.d.ts} +1 -1
  42. package/dist/{inbox-D34aGNh3.js → inbox-FbqGLKha.js} +29 -7
  43. package/dist/{key-DCCZ0IQz.js → key-B42BY6RL.js} +2 -2
  44. package/dist/{key-B8fuptOf.js → key-BVNVEpXg.js} +2 -2
  45. package/dist/key-CYO3d3Bc.cjs +10 -0
  46. package/dist/{key-CUhjb7ia.cjs → key-CZzEU9nv.cjs} +2 -2
  47. package/dist/{key-BvUiwgvU.js → key-Dj6-orIK.js} +3 -3
  48. package/dist/{key-D5_cYZv8.js → key-NaBDH7FK.js} +4 -4
  49. package/dist/{keycache-DPgak-bY.js → keycache-BLtGOP6f.js} +1 -1
  50. package/dist/{keys-R-SfK3nQ.js → keys-BO3n2h_L.js} +1 -1
  51. package/dist/{ld-Dng9Ri0Z.js → ld-CMWQXDty.js} +2 -2
  52. package/dist/{lookup-CgzIxSqk.js → lookup-B5jlZrQb.js} +21 -12
  53. package/dist/{lookup-Bm9ZRBwj.cjs → lookup-BsOmKssB.cjs} +1 -1
  54. package/dist/{lookup-4DHxuyI4.js → lookup-C-jJgyrW.js} +1 -1
  55. package/dist/middleware-BV1L9XDk.cjs +17 -0
  56. package/dist/{middleware-774Oifc4.js → middleware-CNAH05Vn.js} +78 -47
  57. package/dist/middleware-Cr46LoSG.js +26 -0
  58. package/dist/middleware-DAFFQX5e.js +17 -0
  59. package/dist/{middleware-CpT5VG6o.cjs → middleware-DOd67qPG.cjs} +78 -47
  60. package/dist/{middleware-B7DkslM_.js → middleware-lg47b3mK.js} +43 -40
  61. package/dist/{mod-DxjZ8kbs.d.cts → mod-BUbqxBev.d.cts} +19 -1
  62. package/dist/{mod-OfRtcQo1.d.ts → mod-BcObK1Lz.d.ts} +2 -2
  63. package/dist/{mod-CnEwcmyF.d.ts → mod-CDObsV1d.d.ts} +19 -1
  64. package/dist/{mod-TsyIDkKn.d.ts → mod-CIbqfZW0.d.ts} +1 -1
  65. package/dist/{mod-Cuem8g-I.d.ts → mod-DgcYoyZK.d.ts} +2 -2
  66. package/dist/{mod-bscaBAIo.d.cts → mod-Dt-G9ZOS.d.cts} +1 -1
  67. package/dist/{mod-BihGJmMM.d.cts → mod-fjqfsrty.d.cts} +2 -2
  68. package/dist/{mod-Ds5wiXHw.d.cts → mod-mXx9V0q5.d.cts} +2 -2
  69. package/dist/mod.cjs +10 -10
  70. package/dist/mod.d.cts +10 -10
  71. package/dist/mod.d.ts +10 -10
  72. package/dist/mod.js +10 -10
  73. package/dist/nodeinfo/client.test.js +5 -5
  74. package/dist/nodeinfo/handler.test.js +16 -16
  75. package/dist/nodeinfo/mod.cjs +2 -2
  76. package/dist/nodeinfo/mod.js +2 -2
  77. package/dist/nodeinfo/semver.test.js +3 -3
  78. package/dist/nodeinfo/types.test.js +3 -3
  79. package/dist/{owner-BYxDl2qi.d.cts → owner-6KSEp9eV.d.cts} +2 -2
  80. package/dist/{owner-DOUl7e-t.d.ts → owner-BbeUDvOu.d.ts} +2 -2
  81. package/dist/{owner-BnmJOCds.js → owner-Ch2ApIpq.js} +2 -2
  82. package/dist/{proof-QLd9LtLS.cjs → proof-BtqGVz24.cjs} +3 -3
  83. package/dist/{proof-4d4UTrId.js → proof-Cge6SysA.js} +3 -3
  84. package/dist/{proof-DRGe3kWw.js → proof-DaD7vIAi.js} +2 -2
  85. package/dist/runtime/authdocloader.test.js +9 -9
  86. package/dist/runtime/docloader.test.js +4 -4
  87. package/dist/runtime/key.test.js +5 -5
  88. package/dist/runtime/langstr.test.js +3 -3
  89. package/dist/runtime/link.test.js +3 -3
  90. package/dist/runtime/mod.cjs +6 -6
  91. package/dist/runtime/mod.d.cts +3 -3
  92. package/dist/runtime/mod.d.ts +3 -3
  93. package/dist/runtime/mod.js +6 -6
  94. package/dist/runtime/multibase/multibase.test.js +3 -3
  95. package/dist/runtime/url.test.js +3 -3
  96. package/dist/{send-VTF45d0K.js → send-DE79ptpc.js} +2 -2
  97. package/dist/sig/http.test.js +8 -8
  98. package/dist/sig/key.test.js +6 -6
  99. package/dist/sig/ld.test.js +7 -7
  100. package/dist/sig/mod.cjs +6 -6
  101. package/dist/sig/mod.d.cts +5 -5
  102. package/dist/sig/mod.d.ts +5 -5
  103. package/dist/sig/mod.js +6 -6
  104. package/dist/sig/owner.test.js +7 -7
  105. package/dist/sig/proof.test.js +7 -7
  106. package/dist/testing/docloader.test.js +3 -3
  107. package/dist/testing/mod.d.ts +341 -379
  108. package/dist/testing/mod.js +3 -3
  109. package/dist/{testing-DtlapwX9.js → testing-Bh2wmeXp.js} +2 -2
  110. package/dist/{type-BK1maiHl.js → type-Du-WE8NC.js} +6297 -3074
  111. package/dist/{types-B11Jr68m.cjs → types-B1n1v8Fa.cjs} +1 -1
  112. package/dist/{types-ChXkDqkb.js → types-ChEbJU3f.js} +1 -1
  113. package/dist/vocab/actor.test.js +5 -5
  114. package/dist/vocab/lookup.test.js +255 -5
  115. package/dist/vocab/mod.cjs +4 -4
  116. package/dist/vocab/mod.d.cts +3 -3
  117. package/dist/vocab/mod.d.ts +3 -3
  118. package/dist/vocab/mod.js +4 -4
  119. package/dist/vocab/type.test.js +3 -3
  120. package/dist/vocab/vocab.test.js +395 -8
  121. package/dist/{vocab-BW6SWH9P.d.ts → vocab-CDHNj5zp.d.ts} +158 -497
  122. package/dist/{vocab-qpRpljdS.d.cts → vocab-Cfs0937i.d.cts} +158 -497
  123. package/dist/{vocab-C2kef9JD.cjs → vocab-DY3aCxLN.cjs} +23 -14
  124. package/dist/{vocab-B7TUfvy2.js → vocab-Q8XBm9oV.js} +23 -14
  125. package/dist/webfinger/handler.test.js +16 -16
  126. package/dist/webfinger/lookup.test.js +4 -4
  127. package/dist/webfinger/mod.cjs +2 -2
  128. package/dist/webfinger/mod.js +2 -2
  129. package/dist/x/cfworkers.test.js +3 -3
  130. package/dist/x/hono.d.cts +6 -6
  131. package/dist/x/hono.d.ts +6 -6
  132. package/dist/x/sveltekit.d.cts +6 -6
  133. package/dist/x/sveltekit.d.ts +6 -6
  134. package/package.json +1 -1
  135. package/dist/key-DtzwU8SC.cjs +0 -10
  136. package/dist/middleware-CunKD_hx.js +0 -17
  137. package/dist/middleware-DpW8xh9z.cjs +0 -17
  138. package/dist/middleware-umMExV_X.js +0 -26
@@ -300,7 +300,6 @@ declare class LanguageString extends String {
300
300
  */
301
301
  declare class Object$1 {
302
302
  #private;
303
- protected readonly _baseUrl?: URL;
304
303
  readonly id: URL | null;
305
304
  protected get _documentLoader(): DocumentLoader | undefined;
306
305
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -316,10 +315,6 @@ declare class Object$1 {
316
315
  * The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
317
316
  */
318
317
  static get typeId(): URL;
319
- /**
320
- * The base URL used for resolving relative URLs in this object.
321
- */
322
- get baseUrl(): URL | undefined;
323
318
  /**
324
319
  * Constructs a new instance of Object with the given values.
325
320
  * @param values The values to initialize the instance with.
@@ -379,7 +374,6 @@ declare class Object$1 {
379
374
  documentLoader?: DocumentLoader;
380
375
  contextLoader?: DocumentLoader;
381
376
  tracerProvider?: TracerProvider;
382
- baseUrl?: URL;
383
377
  });
384
378
  /**
385
379
  * Clones this instance, optionally updating it with the given values.
@@ -456,7 +450,7 @@ declare class Object$1 {
456
450
  contextLoader?: DocumentLoader;
457
451
  suppressError?: boolean;
458
452
  tracerProvider?: TracerProvider;
459
- baseUrl?: URL;
453
+ crossOrigin?: "ignore" | "throw" | "trust";
460
454
  }): AsyncIterable<Object$1 | Link | PropertyValue>;
461
455
  /**
462
456
  * Similar to
@@ -473,7 +467,7 @@ declare class Object$1 {
473
467
  contextLoader?: DocumentLoader;
474
468
  suppressError?: boolean;
475
469
  tracerProvider?: TracerProvider;
476
- baseUrl?: URL;
470
+ crossOrigin?: "ignore" | "throw" | "trust";
477
471
  }): Promise<Application | Group | Organization | Person | Service | null>;
478
472
  /**
479
473
  * Similar to
@@ -490,7 +484,7 @@ declare class Object$1 {
490
484
  contextLoader?: DocumentLoader;
491
485
  suppressError?: boolean;
492
486
  tracerProvider?: TracerProvider;
493
- baseUrl?: URL;
487
+ crossOrigin?: "ignore" | "throw" | "trust";
494
488
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
495
489
  /**
496
490
  * Similar to
@@ -506,7 +500,7 @@ declare class Object$1 {
506
500
  contextLoader?: DocumentLoader;
507
501
  suppressError?: boolean;
508
502
  tracerProvider?: TracerProvider;
509
- baseUrl?: URL;
503
+ crossOrigin?: "ignore" | "throw" | "trust";
510
504
  }): Promise<Object$1 | null>;
511
505
  /**
512
506
  * Similar to
@@ -522,7 +516,7 @@ declare class Object$1 {
522
516
  contextLoader?: DocumentLoader;
523
517
  suppressError?: boolean;
524
518
  tracerProvider?: TracerProvider;
525
- baseUrl?: URL;
519
+ crossOrigin?: "ignore" | "throw" | "trust";
526
520
  }): AsyncIterable<Object$1>;
527
521
  /** The content or textual representation of the Object encoded as a JSON
528
522
  * string. By default, the value of `content` is HTML. The `mediaType`
@@ -557,7 +551,7 @@ declare class Object$1 {
557
551
  contextLoader?: DocumentLoader;
558
552
  suppressError?: boolean;
559
553
  tracerProvider?: TracerProvider;
560
- baseUrl?: URL;
554
+ crossOrigin?: "ignore" | "throw" | "trust";
561
555
  }): AsyncIterable<Object$1 | Link>;
562
556
  /** A simple, human-readable, plain-text name for the object. HTML markup MUST
563
557
  * NOT be included. The name MAY be expressed using multiple language-tagged
@@ -588,7 +582,7 @@ declare class Object$1 {
588
582
  contextLoader?: DocumentLoader;
589
583
  suppressError?: boolean;
590
584
  tracerProvider?: TracerProvider;
591
- baseUrl?: URL;
585
+ crossOrigin?: "ignore" | "throw" | "trust";
592
586
  }): AsyncIterable<Object$1 | Link>;
593
587
  /**
594
588
  * Similar to
@@ -605,7 +599,7 @@ declare class Object$1 {
605
599
  contextLoader?: DocumentLoader;
606
600
  suppressError?: boolean;
607
601
  tracerProvider?: TracerProvider;
608
- baseUrl?: URL;
602
+ crossOrigin?: "ignore" | "throw" | "trust";
609
603
  }): Promise<Image | null>;
610
604
  /**
611
605
  * Similar to
@@ -622,7 +616,7 @@ declare class Object$1 {
622
616
  contextLoader?: DocumentLoader;
623
617
  suppressError?: boolean;
624
618
  tracerProvider?: TracerProvider;
625
- baseUrl?: URL;
619
+ crossOrigin?: "ignore" | "throw" | "trust";
626
620
  }): AsyncIterable<Image>;
627
621
  /**
628
622
  * Similar to
@@ -639,7 +633,7 @@ declare class Object$1 {
639
633
  contextLoader?: DocumentLoader;
640
634
  suppressError?: boolean;
641
635
  tracerProvider?: TracerProvider;
642
- baseUrl?: URL;
636
+ crossOrigin?: "ignore" | "throw" | "trust";
643
637
  }): Promise<Image | null>;
644
638
  /**
645
639
  * Similar to
@@ -656,7 +650,7 @@ declare class Object$1 {
656
650
  contextLoader?: DocumentLoader;
657
651
  suppressError?: boolean;
658
652
  tracerProvider?: TracerProvider;
659
- baseUrl?: URL;
653
+ crossOrigin?: "ignore" | "throw" | "trust";
660
654
  }): AsyncIterable<Image>;
661
655
  /**
662
656
  * Similar to
@@ -672,7 +666,7 @@ declare class Object$1 {
672
666
  contextLoader?: DocumentLoader;
673
667
  suppressError?: boolean;
674
668
  tracerProvider?: TracerProvider;
675
- baseUrl?: URL;
669
+ crossOrigin?: "ignore" | "throw" | "trust";
676
670
  }): Promise<Object$1 | Link | null>;
677
671
  /**
678
672
  * Similar to
@@ -688,7 +682,7 @@ declare class Object$1 {
688
682
  contextLoader?: DocumentLoader;
689
683
  suppressError?: boolean;
690
684
  tracerProvider?: TracerProvider;
691
- baseUrl?: URL;
685
+ crossOrigin?: "ignore" | "throw" | "trust";
692
686
  }): AsyncIterable<Object$1 | Link>;
693
687
  /**
694
688
  * Similar to
@@ -704,7 +698,7 @@ declare class Object$1 {
704
698
  contextLoader?: DocumentLoader;
705
699
  suppressError?: boolean;
706
700
  tracerProvider?: TracerProvider;
707
- baseUrl?: URL;
701
+ crossOrigin?: "ignore" | "throw" | "trust";
708
702
  }): Promise<Object$1 | Link | null>;
709
703
  /**
710
704
  * Similar to
@@ -720,7 +714,7 @@ declare class Object$1 {
720
714
  contextLoader?: DocumentLoader;
721
715
  suppressError?: boolean;
722
716
  tracerProvider?: TracerProvider;
723
- baseUrl?: URL;
717
+ crossOrigin?: "ignore" | "throw" | "trust";
724
718
  }): AsyncIterable<Object$1 | Link>;
725
719
  /**
726
720
  * Similar to
@@ -735,7 +729,7 @@ declare class Object$1 {
735
729
  contextLoader?: DocumentLoader;
736
730
  suppressError?: boolean;
737
731
  tracerProvider?: TracerProvider;
738
- baseUrl?: URL;
732
+ crossOrigin?: "ignore" | "throw" | "trust";
739
733
  }): Promise<Link | Object$1 | null>;
740
734
  /**
741
735
  * Similar to
@@ -750,7 +744,7 @@ declare class Object$1 {
750
744
  contextLoader?: DocumentLoader;
751
745
  suppressError?: boolean;
752
746
  tracerProvider?: TracerProvider;
753
- baseUrl?: URL;
747
+ crossOrigin?: "ignore" | "throw" | "trust";
754
748
  }): AsyncIterable<Link | Object$1>;
755
749
  /** The date and time at which the object was published.
756
750
  */
@@ -769,7 +763,7 @@ declare class Object$1 {
769
763
  contextLoader?: DocumentLoader;
770
764
  suppressError?: boolean;
771
765
  tracerProvider?: TracerProvider;
772
- baseUrl?: URL;
766
+ crossOrigin?: "ignore" | "throw" | "trust";
773
767
  }): Promise<Collection | null>;
774
768
  /**
775
769
  * Similar to
@@ -791,7 +785,7 @@ declare class Object$1 {
791
785
  contextLoader?: DocumentLoader;
792
786
  suppressError?: boolean;
793
787
  tracerProvider?: TracerProvider;
794
- baseUrl?: URL;
788
+ crossOrigin?: "ignore" | "throw" | "trust";
795
789
  }): Promise<Collection | null>;
796
790
  /**
797
791
  * Similar to
@@ -813,7 +807,7 @@ declare class Object$1 {
813
807
  contextLoader?: DocumentLoader;
814
808
  suppressError?: boolean;
815
809
  tracerProvider?: TracerProvider;
816
- baseUrl?: URL;
810
+ crossOrigin?: "ignore" | "throw" | "trust";
817
811
  }): Promise<Collection | null>;
818
812
  /**
819
813
  * Similar to
@@ -829,7 +823,7 @@ declare class Object$1 {
829
823
  contextLoader?: DocumentLoader;
830
824
  suppressError?: boolean;
831
825
  tracerProvider?: TracerProvider;
832
- baseUrl?: URL;
826
+ crossOrigin?: "ignore" | "throw" | "trust";
833
827
  }): Promise<Collection | null>;
834
828
  /** The date and time describing the actual or expected starting time of
835
829
  * the object. When used with an {@link Activity} object, for instance,
@@ -861,7 +855,7 @@ declare class Object$1 {
861
855
  contextLoader?: DocumentLoader;
862
856
  suppressError?: boolean;
863
857
  tracerProvider?: TracerProvider;
864
- baseUrl?: URL;
858
+ crossOrigin?: "ignore" | "throw" | "trust";
865
859
  }): AsyncIterable<Object$1 | Link>;
866
860
  /** The date and time at which the object was updated.
867
861
  */
@@ -886,7 +880,7 @@ declare class Object$1 {
886
880
  contextLoader?: DocumentLoader;
887
881
  suppressError?: boolean;
888
882
  tracerProvider?: TracerProvider;
889
- baseUrl?: URL;
883
+ crossOrigin?: "ignore" | "throw" | "trust";
890
884
  }): Promise<Object$1 | null>;
891
885
  /**
892
886
  * Similar to
@@ -902,7 +896,7 @@ declare class Object$1 {
902
896
  contextLoader?: DocumentLoader;
903
897
  suppressError?: boolean;
904
898
  tracerProvider?: TracerProvider;
905
- baseUrl?: URL;
899
+ crossOrigin?: "ignore" | "throw" | "trust";
906
900
  }): AsyncIterable<Object$1>;
907
901
  /**
908
902
  * Similar to
@@ -918,7 +912,7 @@ declare class Object$1 {
918
912
  contextLoader?: DocumentLoader;
919
913
  suppressError?: boolean;
920
914
  tracerProvider?: TracerProvider;
921
- baseUrl?: URL;
915
+ crossOrigin?: "ignore" | "throw" | "trust";
922
916
  }): Promise<Object$1 | null>;
923
917
  /**
924
918
  * Similar to
@@ -934,7 +928,7 @@ declare class Object$1 {
934
928
  contextLoader?: DocumentLoader;
935
929
  suppressError?: boolean;
936
930
  tracerProvider?: TracerProvider;
937
- baseUrl?: URL;
931
+ crossOrigin?: "ignore" | "throw" | "trust";
938
932
  }): AsyncIterable<Object$1>;
939
933
  /**
940
934
  * Similar to
@@ -950,7 +944,7 @@ declare class Object$1 {
950
944
  contextLoader?: DocumentLoader;
951
945
  suppressError?: boolean;
952
946
  tracerProvider?: TracerProvider;
953
- baseUrl?: URL;
947
+ crossOrigin?: "ignore" | "throw" | "trust";
954
948
  }): Promise<Object$1 | null>;
955
949
  /**
956
950
  * Similar to
@@ -966,7 +960,7 @@ declare class Object$1 {
966
960
  contextLoader?: DocumentLoader;
967
961
  suppressError?: boolean;
968
962
  tracerProvider?: TracerProvider;
969
- baseUrl?: URL;
963
+ crossOrigin?: "ignore" | "throw" | "trust";
970
964
  }): AsyncIterable<Object$1>;
971
965
  /**
972
966
  * Similar to
@@ -982,7 +976,7 @@ declare class Object$1 {
982
976
  contextLoader?: DocumentLoader;
983
977
  suppressError?: boolean;
984
978
  tracerProvider?: TracerProvider;
985
- baseUrl?: URL;
979
+ crossOrigin?: "ignore" | "throw" | "trust";
986
980
  }): Promise<Object$1 | null>;
987
981
  /**
988
982
  * Similar to
@@ -998,7 +992,7 @@ declare class Object$1 {
998
992
  contextLoader?: DocumentLoader;
999
993
  suppressError?: boolean;
1000
994
  tracerProvider?: TracerProvider;
1001
- baseUrl?: URL;
995
+ crossOrigin?: "ignore" | "throw" | "trust";
1002
996
  }): AsyncIterable<Object$1>;
1003
997
  /** When used on an {@link Object}, identifies the MIME media type of the value
1004
998
  * of the `content` property. If not specified, the `content` property is
@@ -1034,7 +1028,7 @@ declare class Object$1 {
1034
1028
  contextLoader?: DocumentLoader;
1035
1029
  suppressError?: boolean;
1036
1030
  tracerProvider?: TracerProvider;
1037
- baseUrl?: URL;
1031
+ crossOrigin?: "ignore" | "throw" | "trust";
1038
1032
  }): Promise<DataIntegrityProof | null>;
1039
1033
  /**
1040
1034
  * Similar to
@@ -1049,7 +1043,7 @@ declare class Object$1 {
1049
1043
  contextLoader?: DocumentLoader;
1050
1044
  suppressError?: boolean;
1051
1045
  tracerProvider?: TracerProvider;
1052
- baseUrl?: URL;
1046
+ crossOrigin?: "ignore" | "throw" | "trust";
1053
1047
  }): AsyncIterable<DataIntegrityProof>;
1054
1048
  /**
1055
1049
  * Converts this object to a JSON-LD structure.
@@ -1107,10 +1101,6 @@ declare class Activity extends Object$1 {
1107
1101
  * The type URI of {@link Activity}: `https://www.w3.org/ns/activitystreams#Activity`.
1108
1102
  */
1109
1103
  static get typeId(): URL;
1110
- /**
1111
- * The base URL used for resolving relative URLs in this object.
1112
- */
1113
- get baseUrl(): URL | undefined;
1114
1104
  /**
1115
1105
  * Constructs a new instance of Activity with the given values.
1116
1106
  * @param values The values to initialize the instance with.
@@ -1182,7 +1172,6 @@ declare class Activity extends Object$1 {
1182
1172
  documentLoader?: DocumentLoader;
1183
1173
  contextLoader?: DocumentLoader;
1184
1174
  tracerProvider?: TracerProvider;
1185
- baseUrl?: URL;
1186
1175
  });
1187
1176
  /**
1188
1177
  * Clones this instance, optionally updating it with the given values.
@@ -1271,7 +1260,7 @@ declare class Activity extends Object$1 {
1271
1260
  contextLoader?: DocumentLoader;
1272
1261
  suppressError?: boolean;
1273
1262
  tracerProvider?: TracerProvider;
1274
- baseUrl?: URL;
1263
+ crossOrigin?: "ignore" | "throw" | "trust";
1275
1264
  }): Promise<Application | Group | Organization | Person | Service | null>;
1276
1265
  /**
1277
1266
  * Similar to
@@ -1288,7 +1277,7 @@ declare class Activity extends Object$1 {
1288
1277
  contextLoader?: DocumentLoader;
1289
1278
  suppressError?: boolean;
1290
1279
  tracerProvider?: TracerProvider;
1291
- baseUrl?: URL;
1280
+ crossOrigin?: "ignore" | "throw" | "trust";
1292
1281
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
1293
1282
  /**
1294
1283
  * Similar to
@@ -1305,7 +1294,7 @@ declare class Activity extends Object$1 {
1305
1294
  contextLoader?: DocumentLoader;
1306
1295
  suppressError?: boolean;
1307
1296
  tracerProvider?: TracerProvider;
1308
- baseUrl?: URL;
1297
+ crossOrigin?: "ignore" | "throw" | "trust";
1309
1298
  }): Promise<Object$1 | null>;
1310
1299
  /**
1311
1300
  * Similar to
@@ -1322,7 +1311,7 @@ declare class Activity extends Object$1 {
1322
1311
  contextLoader?: DocumentLoader;
1323
1312
  suppressError?: boolean;
1324
1313
  tracerProvider?: TracerProvider;
1325
- baseUrl?: URL;
1314
+ crossOrigin?: "ignore" | "throw" | "trust";
1326
1315
  }): AsyncIterable<Object$1>;
1327
1316
  /**
1328
1317
  * Similar to
@@ -1342,7 +1331,7 @@ declare class Activity extends Object$1 {
1342
1331
  contextLoader?: DocumentLoader;
1343
1332
  suppressError?: boolean;
1344
1333
  tracerProvider?: TracerProvider;
1345
- baseUrl?: URL;
1334
+ crossOrigin?: "ignore" | "throw" | "trust";
1346
1335
  }): Promise<Object$1 | null>;
1347
1336
  /**
1348
1337
  * Similar to
@@ -1362,7 +1351,7 @@ declare class Activity extends Object$1 {
1362
1351
  contextLoader?: DocumentLoader;
1363
1352
  suppressError?: boolean;
1364
1353
  tracerProvider?: TracerProvider;
1365
- baseUrl?: URL;
1354
+ crossOrigin?: "ignore" | "throw" | "trust";
1366
1355
  }): AsyncIterable<Object$1>;
1367
1356
  /**
1368
1357
  * Similar to
@@ -1379,7 +1368,7 @@ declare class Activity extends Object$1 {
1379
1368
  contextLoader?: DocumentLoader;
1380
1369
  suppressError?: boolean;
1381
1370
  tracerProvider?: TracerProvider;
1382
- baseUrl?: URL;
1371
+ crossOrigin?: "ignore" | "throw" | "trust";
1383
1372
  }): Promise<Object$1 | null>;
1384
1373
  /**
1385
1374
  * Similar to
@@ -1396,7 +1385,7 @@ declare class Activity extends Object$1 {
1396
1385
  contextLoader?: DocumentLoader;
1397
1386
  suppressError?: boolean;
1398
1387
  tracerProvider?: TracerProvider;
1399
- baseUrl?: URL;
1388
+ crossOrigin?: "ignore" | "throw" | "trust";
1400
1389
  }): AsyncIterable<Object$1>;
1401
1390
  /**
1402
1391
  * Similar to
@@ -1414,7 +1403,7 @@ declare class Activity extends Object$1 {
1414
1403
  contextLoader?: DocumentLoader;
1415
1404
  suppressError?: boolean;
1416
1405
  tracerProvider?: TracerProvider;
1417
- baseUrl?: URL;
1406
+ crossOrigin?: "ignore" | "throw" | "trust";
1418
1407
  }): Promise<Object$1 | null>;
1419
1408
  /**
1420
1409
  * Similar to
@@ -1432,7 +1421,7 @@ declare class Activity extends Object$1 {
1432
1421
  contextLoader?: DocumentLoader;
1433
1422
  suppressError?: boolean;
1434
1423
  tracerProvider?: TracerProvider;
1435
- baseUrl?: URL;
1424
+ crossOrigin?: "ignore" | "throw" | "trust";
1436
1425
  }): AsyncIterable<Object$1>;
1437
1426
  /**
1438
1427
  * Similar to
@@ -1448,7 +1437,7 @@ declare class Activity extends Object$1 {
1448
1437
  contextLoader?: DocumentLoader;
1449
1438
  suppressError?: boolean;
1450
1439
  tracerProvider?: TracerProvider;
1451
- baseUrl?: URL;
1440
+ crossOrigin?: "ignore" | "throw" | "trust";
1452
1441
  }): Promise<Object$1 | null>;
1453
1442
  /**
1454
1443
  * Similar to
@@ -1464,7 +1453,7 @@ declare class Activity extends Object$1 {
1464
1453
  contextLoader?: DocumentLoader;
1465
1454
  suppressError?: boolean;
1466
1455
  tracerProvider?: TracerProvider;
1467
- baseUrl?: URL;
1456
+ crossOrigin?: "ignore" | "throw" | "trust";
1468
1457
  }): AsyncIterable<Object$1>;
1469
1458
  /**
1470
1459
  * Converts this object to a JSON-LD structure.
@@ -1514,7 +1503,6 @@ declare class Activity extends Object$1 {
1514
1503
  */
1515
1504
  declare class PropertyValue {
1516
1505
  #private;
1517
- protected readonly _baseUrl?: URL;
1518
1506
  readonly id: URL | null;
1519
1507
  protected get _documentLoader(): DocumentLoader | undefined;
1520
1508
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -1530,10 +1518,6 @@ declare class PropertyValue {
1530
1518
  * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
1531
1519
  */
1532
1520
  static get typeId(): URL;
1533
- /**
1534
- * The base URL used for resolving relative URLs in this object.
1535
- */
1536
- get baseUrl(): URL | undefined;
1537
1521
  /**
1538
1522
  * Constructs a new instance of PropertyValue with the given values.
1539
1523
  * @param values The values to initialize the instance with.
@@ -1547,7 +1531,6 @@ declare class PropertyValue {
1547
1531
  documentLoader?: DocumentLoader;
1548
1532
  contextLoader?: DocumentLoader;
1549
1533
  tracerProvider?: TracerProvider;
1550
- baseUrl?: URL;
1551
1534
  });
1552
1535
  /**
1553
1536
  * Clones this instance, optionally updating it with the given values.
@@ -1617,7 +1600,6 @@ declare class PropertyValue {
1617
1600
  */
1618
1601
  declare class DidService {
1619
1602
  #private;
1620
- protected readonly _baseUrl?: URL;
1621
1603
  readonly id: URL | null;
1622
1604
  protected get _documentLoader(): DocumentLoader | undefined;
1623
1605
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -1633,10 +1615,6 @@ declare class DidService {
1633
1615
  * The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
1634
1616
  */
1635
1617
  static get typeId(): URL;
1636
- /**
1637
- * The base URL used for resolving relative URLs in this object.
1638
- */
1639
- get baseUrl(): URL | undefined;
1640
1618
  /**
1641
1619
  * Constructs a new instance of DidService with the given values.
1642
1620
  * @param values The values to initialize the instance with.
@@ -1650,7 +1628,6 @@ declare class DidService {
1650
1628
  documentLoader?: DocumentLoader;
1651
1629
  contextLoader?: DocumentLoader;
1652
1630
  tracerProvider?: TracerProvider;
1653
- baseUrl?: URL;
1654
1631
  });
1655
1632
  /**
1656
1633
  * Clones this instance, optionally updating it with the given values.
@@ -1723,7 +1700,6 @@ declare class DidService {
1723
1700
  */
1724
1701
  declare class DataIntegrityProof {
1725
1702
  #private;
1726
- protected readonly _baseUrl?: URL;
1727
1703
  readonly id: URL | null;
1728
1704
  protected get _documentLoader(): DocumentLoader | undefined;
1729
1705
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -1739,10 +1715,6 @@ declare class DataIntegrityProof {
1739
1715
  * The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
1740
1716
  */
1741
1717
  static get typeId(): URL;
1742
- /**
1743
- * The base URL used for resolving relative URLs in this object.
1744
- */
1745
- get baseUrl(): URL | undefined;
1746
1718
  /**
1747
1719
  * Constructs a new instance of DataIntegrityProof with the given values.
1748
1720
  * @param values The values to initialize the instance with.
@@ -1759,7 +1731,6 @@ declare class DataIntegrityProof {
1759
1731
  documentLoader?: DocumentLoader;
1760
1732
  contextLoader?: DocumentLoader;
1761
1733
  tracerProvider?: TracerProvider;
1762
- baseUrl?: URL;
1763
1734
  });
1764
1735
  /**
1765
1736
  * Clones this instance, optionally updating it with the given values.
@@ -1797,7 +1768,7 @@ declare class DataIntegrityProof {
1797
1768
  contextLoader?: DocumentLoader;
1798
1769
  suppressError?: boolean;
1799
1770
  tracerProvider?: TracerProvider;
1800
- baseUrl?: URL;
1771
+ crossOrigin?: "ignore" | "throw" | "trust";
1801
1772
  }): Promise<Multikey | null>;
1802
1773
  /** The reason the proof was created.
1803
1774
  *
@@ -1859,7 +1830,6 @@ declare class DataIntegrityProof {
1859
1830
  */
1860
1831
  declare class CryptographicKey {
1861
1832
  #private;
1862
- protected readonly _baseUrl?: URL;
1863
1833
  readonly id: URL | null;
1864
1834
  protected get _documentLoader(): DocumentLoader | undefined;
1865
1835
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -1875,10 +1845,6 @@ declare class CryptographicKey {
1875
1845
  * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
1876
1846
  */
1877
1847
  static get typeId(): URL;
1878
- /**
1879
- * The base URL used for resolving relative URLs in this object.
1880
- */
1881
- get baseUrl(): URL | undefined;
1882
1848
  /**
1883
1849
  * Constructs a new instance of CryptographicKey with the given values.
1884
1850
  * @param values The values to initialize the instance with.
@@ -1892,7 +1858,6 @@ declare class CryptographicKey {
1892
1858
  documentLoader?: DocumentLoader;
1893
1859
  contextLoader?: DocumentLoader;
1894
1860
  tracerProvider?: TracerProvider;
1895
- baseUrl?: URL;
1896
1861
  });
1897
1862
  /**
1898
1863
  * Clones this instance, optionally updating it with the given values.
@@ -1921,7 +1886,7 @@ declare class CryptographicKey {
1921
1886
  contextLoader?: DocumentLoader;
1922
1887
  suppressError?: boolean;
1923
1888
  tracerProvider?: TracerProvider;
1924
- baseUrl?: URL;
1889
+ crossOrigin?: "ignore" | "throw" | "trust";
1925
1890
  }): Promise<Application | Group | Organization | Person | Service | null>;
1926
1891
  /** A PEM-encoded public key.
1927
1892
  */
@@ -1974,7 +1939,6 @@ declare class CryptographicKey {
1974
1939
  */
1975
1940
  declare class Multikey {
1976
1941
  #private;
1977
- protected readonly _baseUrl?: URL;
1978
1942
  readonly id: URL | null;
1979
1943
  protected get _documentLoader(): DocumentLoader | undefined;
1980
1944
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -1990,10 +1954,6 @@ declare class Multikey {
1990
1954
  * The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
1991
1955
  */
1992
1956
  static get typeId(): URL;
1993
- /**
1994
- * The base URL used for resolving relative URLs in this object.
1995
- */
1996
- get baseUrl(): URL | undefined;
1997
1957
  /**
1998
1958
  * Constructs a new instance of Multikey with the given values.
1999
1959
  * @param values The values to initialize the instance with.
@@ -2007,7 +1967,6 @@ declare class Multikey {
2007
1967
  documentLoader?: DocumentLoader;
2008
1968
  contextLoader?: DocumentLoader;
2009
1969
  tracerProvider?: TracerProvider;
2010
- baseUrl?: URL;
2011
1970
  });
2012
1971
  /**
2013
1972
  * Clones this instance, optionally updating it with the given values.
@@ -2036,7 +1995,7 @@ declare class Multikey {
2036
1995
  contextLoader?: DocumentLoader;
2037
1996
  suppressError?: boolean;
2038
1997
  tracerProvider?: TracerProvider;
2039
- baseUrl?: URL;
1998
+ crossOrigin?: "ignore" | "throw" | "trust";
2040
1999
  }): Promise<Application | Group | Organization | Person | Service | null>;
2041
2000
  /** A [Multibase]-encoded value of a [Multicodec] prefix and the key.
2042
2001
  *
@@ -2098,10 +2057,6 @@ declare class Application extends Object$1 {
2098
2057
  * The type URI of {@link Application}: `https://www.w3.org/ns/activitystreams#Application`.
2099
2058
  */
2100
2059
  static get typeId(): URL;
2101
- /**
2102
- * The base URL used for resolving relative URLs in this object.
2103
- */
2104
- get baseUrl(): URL | undefined;
2105
2060
  /**
2106
2061
  * Constructs a new instance of Application with the given values.
2107
2062
  * @param values The values to initialize the instance with.
@@ -2188,7 +2143,6 @@ declare class Application extends Object$1 {
2188
2143
  documentLoader?: DocumentLoader;
2189
2144
  contextLoader?: DocumentLoader;
2190
2145
  tracerProvider?: TracerProvider;
2191
- baseUrl?: URL;
2192
2146
  });
2193
2147
  /**
2194
2148
  * Clones this instance, optionally updating it with the given values.
@@ -2298,7 +2252,7 @@ declare class Application extends Object$1 {
2298
2252
  contextLoader?: DocumentLoader;
2299
2253
  suppressError?: boolean;
2300
2254
  tracerProvider?: TracerProvider;
2301
- baseUrl?: URL;
2255
+ crossOrigin?: "ignore" | "throw" | "trust";
2302
2256
  }): Promise<CryptographicKey | null>;
2303
2257
  /**
2304
2258
  * Similar to
@@ -2313,7 +2267,7 @@ declare class Application extends Object$1 {
2313
2267
  contextLoader?: DocumentLoader;
2314
2268
  suppressError?: boolean;
2315
2269
  tracerProvider?: TracerProvider;
2316
- baseUrl?: URL;
2270
+ crossOrigin?: "ignore" | "throw" | "trust";
2317
2271
  }): AsyncIterable<CryptographicKey>;
2318
2272
  /**
2319
2273
  * Similar to
@@ -2331,7 +2285,7 @@ declare class Application extends Object$1 {
2331
2285
  contextLoader?: DocumentLoader;
2332
2286
  suppressError?: boolean;
2333
2287
  tracerProvider?: TracerProvider;
2334
- baseUrl?: URL;
2288
+ crossOrigin?: "ignore" | "throw" | "trust";
2335
2289
  }): Promise<Multikey | null>;
2336
2290
  /**
2337
2291
  * Similar to
@@ -2349,7 +2303,7 @@ declare class Application extends Object$1 {
2349
2303
  contextLoader?: DocumentLoader;
2350
2304
  suppressError?: boolean;
2351
2305
  tracerProvider?: TracerProvider;
2352
- baseUrl?: URL;
2306
+ crossOrigin?: "ignore" | "throw" | "trust";
2353
2307
  }): AsyncIterable<Multikey>;
2354
2308
  /** When `true`, conveys that for this actor, follow requests are not usually
2355
2309
  * automatically approved, but instead are examined by a person who may accept
@@ -2384,7 +2338,7 @@ declare class Application extends Object$1 {
2384
2338
  contextLoader?: DocumentLoader;
2385
2339
  suppressError?: boolean;
2386
2340
  tracerProvider?: TracerProvider;
2387
- baseUrl?: URL;
2341
+ crossOrigin?: "ignore" | "throw" | "trust";
2388
2342
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2389
2343
  /**
2390
2344
  * Similar to
@@ -2408,7 +2362,7 @@ declare class Application extends Object$1 {
2408
2362
  contextLoader?: DocumentLoader;
2409
2363
  suppressError?: boolean;
2410
2364
  tracerProvider?: TracerProvider;
2411
- baseUrl?: URL;
2365
+ crossOrigin?: "ignore" | "throw" | "trust";
2412
2366
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
2413
2367
  /**
2414
2368
  * Similar to
@@ -2427,7 +2381,7 @@ declare class Application extends Object$1 {
2427
2381
  contextLoader?: DocumentLoader;
2428
2382
  suppressError?: boolean;
2429
2383
  tracerProvider?: TracerProvider;
2430
- baseUrl?: URL;
2384
+ crossOrigin?: "ignore" | "throw" | "trust";
2431
2385
  }): Promise<Collection | null>;
2432
2386
  /**
2433
2387
  * Similar to
@@ -2449,7 +2403,7 @@ declare class Application extends Object$1 {
2449
2403
  contextLoader?: DocumentLoader;
2450
2404
  suppressError?: boolean;
2451
2405
  tracerProvider?: TracerProvider;
2452
- baseUrl?: URL;
2406
+ crossOrigin?: "ignore" | "throw" | "trust";
2453
2407
  }): Promise<Collection | null>;
2454
2408
  /**
2455
2409
  * Similar to
@@ -2469,7 +2423,7 @@ declare class Application extends Object$1 {
2469
2423
  contextLoader?: DocumentLoader;
2470
2424
  suppressError?: boolean;
2471
2425
  tracerProvider?: TracerProvider;
2472
- baseUrl?: URL;
2426
+ crossOrigin?: "ignore" | "throw" | "trust";
2473
2427
  }): Promise<Collection | null>;
2474
2428
  /**
2475
2429
  * Similar to
@@ -2487,7 +2441,7 @@ declare class Application extends Object$1 {
2487
2441
  contextLoader?: DocumentLoader;
2488
2442
  suppressError?: boolean;
2489
2443
  tracerProvider?: TracerProvider;
2490
- baseUrl?: URL;
2444
+ crossOrigin?: "ignore" | "throw" | "trust";
2491
2445
  }): Promise<Collection | null>;
2492
2446
  /**
2493
2447
  * Similar to
@@ -2505,7 +2459,7 @@ declare class Application extends Object$1 {
2505
2459
  contextLoader?: DocumentLoader;
2506
2460
  suppressError?: boolean;
2507
2461
  tracerProvider?: TracerProvider;
2508
- baseUrl?: URL;
2462
+ crossOrigin?: "ignore" | "throw" | "trust";
2509
2463
  }): Promise<Collection | null>;
2510
2464
  /**
2511
2465
  * Similar to
@@ -2520,7 +2474,7 @@ declare class Application extends Object$1 {
2520
2474
  contextLoader?: DocumentLoader;
2521
2475
  suppressError?: boolean;
2522
2476
  tracerProvider?: TracerProvider;
2523
- baseUrl?: URL;
2477
+ crossOrigin?: "ignore" | "throw" | "trust";
2524
2478
  }): AsyncIterable<Collection>;
2525
2479
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
2526
2480
  * which may be useful either for this actor or someone referencing this actor.
@@ -2557,7 +2511,7 @@ declare class Application extends Object$1 {
2557
2511
  contextLoader?: DocumentLoader;
2558
2512
  suppressError?: boolean;
2559
2513
  tracerProvider?: TracerProvider;
2560
- baseUrl?: URL;
2514
+ crossOrigin?: "ignore" | "throw" | "trust";
2561
2515
  }): Promise<Application | Group | Organization | Person | Service | null>;
2562
2516
  /**
2563
2517
  * Similar to
@@ -2575,7 +2529,7 @@ declare class Application extends Object$1 {
2575
2529
  contextLoader?: DocumentLoader;
2576
2530
  suppressError?: boolean;
2577
2531
  tracerProvider?: TracerProvider;
2578
- baseUrl?: URL;
2532
+ crossOrigin?: "ignore" | "throw" | "trust";
2579
2533
  }): Promise<Application | Group | Organization | Person | Service | null>;
2580
2534
  /**
2581
2535
  * Similar to
@@ -2593,7 +2547,7 @@ declare class Application extends Object$1 {
2593
2547
  contextLoader?: DocumentLoader;
2594
2548
  suppressError?: boolean;
2595
2549
  tracerProvider?: TracerProvider;
2596
- baseUrl?: URL;
2550
+ crossOrigin?: "ignore" | "throw" | "trust";
2597
2551
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
2598
2552
  /**
2599
2553
  * Similar to
@@ -2611,7 +2565,7 @@ declare class Application extends Object$1 {
2611
2565
  contextLoader?: DocumentLoader;
2612
2566
  suppressError?: boolean;
2613
2567
  tracerProvider?: TracerProvider;
2614
- baseUrl?: URL;
2568
+ crossOrigin?: "ignore" | "throw" | "trust";
2615
2569
  }): Promise<DidService | null>;
2616
2570
  /**
2617
2571
  * Similar to
@@ -2629,7 +2583,7 @@ declare class Application extends Object$1 {
2629
2583
  contextLoader?: DocumentLoader;
2630
2584
  suppressError?: boolean;
2631
2585
  tracerProvider?: TracerProvider;
2632
- baseUrl?: URL;
2586
+ crossOrigin?: "ignore" | "throw" | "trust";
2633
2587
  }): AsyncIterable<DidService>;
2634
2588
  /** This value is used for `Actor` type objects to show message on followed.
2635
2589
  */
@@ -2694,10 +2648,6 @@ declare class Document extends Object$1 {
2694
2648
  * The type URI of {@link Document}: `https://www.w3.org/ns/activitystreams#Document`.
2695
2649
  */
2696
2650
  static get typeId(): URL;
2697
- /**
2698
- * The base URL used for resolving relative URLs in this object.
2699
- */
2700
- get baseUrl(): URL | undefined;
2701
2651
  /**
2702
2652
  * Constructs a new instance of Document with the given values.
2703
2653
  * @param values The values to initialize the instance with.
@@ -2759,7 +2709,6 @@ declare class Document extends Object$1 {
2759
2709
  documentLoader?: DocumentLoader;
2760
2710
  contextLoader?: DocumentLoader;
2761
2711
  tracerProvider?: TracerProvider;
2762
- baseUrl?: URL;
2763
2712
  });
2764
2713
  /**
2765
2714
  * Clones this instance, optionally updating it with the given values.
@@ -2887,10 +2836,6 @@ declare class Collection extends Object$1 {
2887
2836
  * The type URI of {@link Collection}: `https://www.w3.org/ns/activitystreams#Collection`.
2888
2837
  */
2889
2838
  static get typeId(): URL;
2890
- /**
2891
- * The base URL used for resolving relative URLs in this object.
2892
- */
2893
- get baseUrl(): URL | undefined;
2894
2839
  /**
2895
2840
  * Constructs a new instance of Collection with the given values.
2896
2841
  * @param values The values to initialize the instance with.
@@ -2963,7 +2908,6 @@ declare class Collection extends Object$1 {
2963
2908
  documentLoader?: DocumentLoader;
2964
2909
  contextLoader?: DocumentLoader;
2965
2910
  tracerProvider?: TracerProvider;
2966
- baseUrl?: URL;
2967
2911
  });
2968
2912
  /**
2969
2913
  * Clones this instance, optionally updating it with the given values.
@@ -3057,7 +3001,7 @@ declare class Collection extends Object$1 {
3057
3001
  contextLoader?: DocumentLoader;
3058
3002
  suppressError?: boolean;
3059
3003
  tracerProvider?: TracerProvider;
3060
- baseUrl?: URL;
3004
+ crossOrigin?: "ignore" | "throw" | "trust";
3061
3005
  }): Promise<CollectionPage | null>;
3062
3006
  /**
3063
3007
  * Similar to
@@ -3073,7 +3017,7 @@ declare class Collection extends Object$1 {
3073
3017
  contextLoader?: DocumentLoader;
3074
3018
  suppressError?: boolean;
3075
3019
  tracerProvider?: TracerProvider;
3076
- baseUrl?: URL;
3020
+ crossOrigin?: "ignore" | "throw" | "trust";
3077
3021
  }): Promise<CollectionPage | null>;
3078
3022
  /**
3079
3023
  * Similar to
@@ -3089,7 +3033,7 @@ declare class Collection extends Object$1 {
3089
3033
  contextLoader?: DocumentLoader;
3090
3034
  suppressError?: boolean;
3091
3035
  tracerProvider?: TracerProvider;
3092
- baseUrl?: URL;
3036
+ crossOrigin?: "ignore" | "throw" | "trust";
3093
3037
  }): Promise<CollectionPage | null>;
3094
3038
  /**
3095
3039
  * Similar to
@@ -3105,7 +3049,7 @@ declare class Collection extends Object$1 {
3105
3049
  contextLoader?: DocumentLoader;
3106
3050
  suppressError?: boolean;
3107
3051
  tracerProvider?: TracerProvider;
3108
- baseUrl?: URL;
3052
+ crossOrigin?: "ignore" | "throw" | "trust";
3109
3053
  }): AsyncIterable<Object$1 | Link>;
3110
3054
  /**
3111
3055
  * Similar to
@@ -3120,7 +3064,7 @@ declare class Collection extends Object$1 {
3120
3064
  contextLoader?: DocumentLoader;
3121
3065
  suppressError?: boolean;
3122
3066
  tracerProvider?: TracerProvider;
3123
- baseUrl?: URL;
3067
+ crossOrigin?: "ignore" | "throw" | "trust";
3124
3068
  }): Promise<Object$1 | null>;
3125
3069
  /**
3126
3070
  * Similar to
@@ -3135,7 +3079,7 @@ declare class Collection extends Object$1 {
3135
3079
  contextLoader?: DocumentLoader;
3136
3080
  suppressError?: boolean;
3137
3081
  tracerProvider?: TracerProvider;
3138
- baseUrl?: URL;
3082
+ crossOrigin?: "ignore" | "throw" | "trust";
3139
3083
  }): Promise<Object$1 | null>;
3140
3084
  /**
3141
3085
  * Similar to
@@ -3150,7 +3094,7 @@ declare class Collection extends Object$1 {
3150
3094
  contextLoader?: DocumentLoader;
3151
3095
  suppressError?: boolean;
3152
3096
  tracerProvider?: TracerProvider;
3153
- baseUrl?: URL;
3097
+ crossOrigin?: "ignore" | "throw" | "trust";
3154
3098
  }): Promise<Object$1 | null>;
3155
3099
  /**
3156
3100
  * Similar to
@@ -3165,7 +3109,7 @@ declare class Collection extends Object$1 {
3165
3109
  contextLoader?: DocumentLoader;
3166
3110
  suppressError?: boolean;
3167
3111
  tracerProvider?: TracerProvider;
3168
- baseUrl?: URL;
3112
+ crossOrigin?: "ignore" | "throw" | "trust";
3169
3113
  }): Promise<Object$1 | null>;
3170
3114
  /**
3171
3115
  * Similar to
@@ -3180,7 +3124,7 @@ declare class Collection extends Object$1 {
3180
3124
  contextLoader?: DocumentLoader;
3181
3125
  suppressError?: boolean;
3182
3126
  tracerProvider?: TracerProvider;
3183
- baseUrl?: URL;
3127
+ crossOrigin?: "ignore" | "throw" | "trust";
3184
3128
  }): Promise<Object$1 | null>;
3185
3129
  /**
3186
3130
  * Similar to
@@ -3195,7 +3139,7 @@ declare class Collection extends Object$1 {
3195
3139
  contextLoader?: DocumentLoader;
3196
3140
  suppressError?: boolean;
3197
3141
  tracerProvider?: TracerProvider;
3198
- baseUrl?: URL;
3142
+ crossOrigin?: "ignore" | "throw" | "trust";
3199
3143
  }): Promise<Object$1 | null>;
3200
3144
  /**
3201
3145
  * Similar to
@@ -3210,7 +3154,7 @@ declare class Collection extends Object$1 {
3210
3154
  contextLoader?: DocumentLoader;
3211
3155
  suppressError?: boolean;
3212
3156
  tracerProvider?: TracerProvider;
3213
- baseUrl?: URL;
3157
+ crossOrigin?: "ignore" | "throw" | "trust";
3214
3158
  }): Promise<Object$1 | null>;
3215
3159
  /**
3216
3160
  * Similar to
@@ -3225,7 +3169,7 @@ declare class Collection extends Object$1 {
3225
3169
  contextLoader?: DocumentLoader;
3226
3170
  suppressError?: boolean;
3227
3171
  tracerProvider?: TracerProvider;
3228
- baseUrl?: URL;
3172
+ crossOrigin?: "ignore" | "throw" | "trust";
3229
3173
  }): Promise<Object$1 | null>;
3230
3174
  /**
3231
3175
  * Converts this object to a JSON-LD structure.
@@ -3278,10 +3222,6 @@ declare class CollectionPage extends Collection {
3278
3222
  * The type URI of {@link CollectionPage}: `https://www.w3.org/ns/activitystreams#CollectionPage`.
3279
3223
  */
3280
3224
  static get typeId(): URL;
3281
- /**
3282
- * The base URL used for resolving relative URLs in this object.
3283
- */
3284
- get baseUrl(): URL | undefined;
3285
3225
  /**
3286
3226
  * Constructs a new instance of CollectionPage with the given values.
3287
3227
  * @param values The values to initialize the instance with.
@@ -3357,7 +3297,6 @@ declare class CollectionPage extends Collection {
3357
3297
  documentLoader?: DocumentLoader;
3358
3298
  contextLoader?: DocumentLoader;
3359
3299
  tracerProvider?: TracerProvider;
3360
- baseUrl?: URL;
3361
3300
  });
3362
3301
  /**
3363
3302
  * Clones this instance, optionally updating it with the given values.
@@ -3449,7 +3388,7 @@ declare class CollectionPage extends Collection {
3449
3388
  contextLoader?: DocumentLoader;
3450
3389
  suppressError?: boolean;
3451
3390
  tracerProvider?: TracerProvider;
3452
- baseUrl?: URL;
3391
+ crossOrigin?: "ignore" | "throw" | "trust";
3453
3392
  }): Promise<Collection | null>;
3454
3393
  /**
3455
3394
  * Similar to
@@ -3464,7 +3403,7 @@ declare class CollectionPage extends Collection {
3464
3403
  contextLoader?: DocumentLoader;
3465
3404
  suppressError?: boolean;
3466
3405
  tracerProvider?: TracerProvider;
3467
- baseUrl?: URL;
3406
+ crossOrigin?: "ignore" | "throw" | "trust";
3468
3407
  }): Promise<CollectionPage | null>;
3469
3408
  /**
3470
3409
  * Similar to
@@ -3479,7 +3418,7 @@ declare class CollectionPage extends Collection {
3479
3418
  contextLoader?: DocumentLoader;
3480
3419
  suppressError?: boolean;
3481
3420
  tracerProvider?: TracerProvider;
3482
- baseUrl?: URL;
3421
+ crossOrigin?: "ignore" | "throw" | "trust";
3483
3422
  }): Promise<CollectionPage | null>;
3484
3423
  /**
3485
3424
  * Converts this object to a JSON-LD structure.
@@ -3529,7 +3468,6 @@ declare class CollectionPage extends Collection {
3529
3468
  */
3530
3469
  declare class Endpoints {
3531
3470
  #private;
3532
- protected readonly _baseUrl?: URL;
3533
3471
  readonly id: URL | null;
3534
3472
  protected get _documentLoader(): DocumentLoader | undefined;
3535
3473
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -3545,10 +3483,6 @@ declare class Endpoints {
3545
3483
  * The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
3546
3484
  */
3547
3485
  static get typeId(): URL;
3548
- /**
3549
- * The base URL used for resolving relative URLs in this object.
3550
- */
3551
- get baseUrl(): URL | undefined;
3552
3486
  /**
3553
3487
  * Constructs a new instance of Endpoints with the given values.
3554
3488
  * @param values The values to initialize the instance with.
@@ -3566,7 +3500,6 @@ declare class Endpoints {
3566
3500
  documentLoader?: DocumentLoader;
3567
3501
  contextLoader?: DocumentLoader;
3568
3502
  tracerProvider?: TracerProvider;
3569
- baseUrl?: URL;
3570
3503
  });
3571
3504
  /**
3572
3505
  * Clones this instance, optionally updating it with the given values.
@@ -3679,10 +3612,6 @@ declare class Group extends Object$1 {
3679
3612
  * The type URI of {@link Group}: `https://www.w3.org/ns/activitystreams#Group`.
3680
3613
  */
3681
3614
  static get typeId(): URL;
3682
- /**
3683
- * The base URL used for resolving relative URLs in this object.
3684
- */
3685
- get baseUrl(): URL | undefined;
3686
3615
  /**
3687
3616
  * Constructs a new instance of Group with the given values.
3688
3617
  * @param values The values to initialize the instance with.
@@ -3769,7 +3698,6 @@ declare class Group extends Object$1 {
3769
3698
  documentLoader?: DocumentLoader;
3770
3699
  contextLoader?: DocumentLoader;
3771
3700
  tracerProvider?: TracerProvider;
3772
- baseUrl?: URL;
3773
3701
  });
3774
3702
  /**
3775
3703
  * Clones this instance, optionally updating it with the given values.
@@ -3879,7 +3807,7 @@ declare class Group extends Object$1 {
3879
3807
  contextLoader?: DocumentLoader;
3880
3808
  suppressError?: boolean;
3881
3809
  tracerProvider?: TracerProvider;
3882
- baseUrl?: URL;
3810
+ crossOrigin?: "ignore" | "throw" | "trust";
3883
3811
  }): Promise<CryptographicKey | null>;
3884
3812
  /**
3885
3813
  * Similar to
@@ -3894,7 +3822,7 @@ declare class Group extends Object$1 {
3894
3822
  contextLoader?: DocumentLoader;
3895
3823
  suppressError?: boolean;
3896
3824
  tracerProvider?: TracerProvider;
3897
- baseUrl?: URL;
3825
+ crossOrigin?: "ignore" | "throw" | "trust";
3898
3826
  }): AsyncIterable<CryptographicKey>;
3899
3827
  /**
3900
3828
  * Similar to
@@ -3912,7 +3840,7 @@ declare class Group extends Object$1 {
3912
3840
  contextLoader?: DocumentLoader;
3913
3841
  suppressError?: boolean;
3914
3842
  tracerProvider?: TracerProvider;
3915
- baseUrl?: URL;
3843
+ crossOrigin?: "ignore" | "throw" | "trust";
3916
3844
  }): Promise<Multikey | null>;
3917
3845
  /**
3918
3846
  * Similar to
@@ -3930,7 +3858,7 @@ declare class Group extends Object$1 {
3930
3858
  contextLoader?: DocumentLoader;
3931
3859
  suppressError?: boolean;
3932
3860
  tracerProvider?: TracerProvider;
3933
- baseUrl?: URL;
3861
+ crossOrigin?: "ignore" | "throw" | "trust";
3934
3862
  }): AsyncIterable<Multikey>;
3935
3863
  /** When `true`, conveys that for this actor, follow requests are not usually
3936
3864
  * automatically approved, but instead are examined by a person who may accept
@@ -3965,7 +3893,7 @@ declare class Group extends Object$1 {
3965
3893
  contextLoader?: DocumentLoader;
3966
3894
  suppressError?: boolean;
3967
3895
  tracerProvider?: TracerProvider;
3968
- baseUrl?: URL;
3896
+ crossOrigin?: "ignore" | "throw" | "trust";
3969
3897
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3970
3898
  /**
3971
3899
  * Similar to
@@ -3989,7 +3917,7 @@ declare class Group extends Object$1 {
3989
3917
  contextLoader?: DocumentLoader;
3990
3918
  suppressError?: boolean;
3991
3919
  tracerProvider?: TracerProvider;
3992
- baseUrl?: URL;
3920
+ crossOrigin?: "ignore" | "throw" | "trust";
3993
3921
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
3994
3922
  /**
3995
3923
  * Similar to
@@ -4008,7 +3936,7 @@ declare class Group extends Object$1 {
4008
3936
  contextLoader?: DocumentLoader;
4009
3937
  suppressError?: boolean;
4010
3938
  tracerProvider?: TracerProvider;
4011
- baseUrl?: URL;
3939
+ crossOrigin?: "ignore" | "throw" | "trust";
4012
3940
  }): Promise<Collection | null>;
4013
3941
  /**
4014
3942
  * Similar to
@@ -4030,7 +3958,7 @@ declare class Group extends Object$1 {
4030
3958
  contextLoader?: DocumentLoader;
4031
3959
  suppressError?: boolean;
4032
3960
  tracerProvider?: TracerProvider;
4033
- baseUrl?: URL;
3961
+ crossOrigin?: "ignore" | "throw" | "trust";
4034
3962
  }): Promise<Collection | null>;
4035
3963
  /**
4036
3964
  * Similar to
@@ -4050,7 +3978,7 @@ declare class Group extends Object$1 {
4050
3978
  contextLoader?: DocumentLoader;
4051
3979
  suppressError?: boolean;
4052
3980
  tracerProvider?: TracerProvider;
4053
- baseUrl?: URL;
3981
+ crossOrigin?: "ignore" | "throw" | "trust";
4054
3982
  }): Promise<Collection | null>;
4055
3983
  /**
4056
3984
  * Similar to
@@ -4068,7 +3996,7 @@ declare class Group extends Object$1 {
4068
3996
  contextLoader?: DocumentLoader;
4069
3997
  suppressError?: boolean;
4070
3998
  tracerProvider?: TracerProvider;
4071
- baseUrl?: URL;
3999
+ crossOrigin?: "ignore" | "throw" | "trust";
4072
4000
  }): Promise<Collection | null>;
4073
4001
  /**
4074
4002
  * Similar to
@@ -4086,7 +4014,7 @@ declare class Group extends Object$1 {
4086
4014
  contextLoader?: DocumentLoader;
4087
4015
  suppressError?: boolean;
4088
4016
  tracerProvider?: TracerProvider;
4089
- baseUrl?: URL;
4017
+ crossOrigin?: "ignore" | "throw" | "trust";
4090
4018
  }): Promise<Collection | null>;
4091
4019
  /**
4092
4020
  * Similar to
@@ -4101,7 +4029,7 @@ declare class Group extends Object$1 {
4101
4029
  contextLoader?: DocumentLoader;
4102
4030
  suppressError?: boolean;
4103
4031
  tracerProvider?: TracerProvider;
4104
- baseUrl?: URL;
4032
+ crossOrigin?: "ignore" | "throw" | "trust";
4105
4033
  }): AsyncIterable<Collection>;
4106
4034
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
4107
4035
  * which may be useful either for this actor or someone referencing this actor.
@@ -4138,7 +4066,7 @@ declare class Group extends Object$1 {
4138
4066
  contextLoader?: DocumentLoader;
4139
4067
  suppressError?: boolean;
4140
4068
  tracerProvider?: TracerProvider;
4141
- baseUrl?: URL;
4069
+ crossOrigin?: "ignore" | "throw" | "trust";
4142
4070
  }): Promise<Application | Group | Organization | Person | Service | null>;
4143
4071
  /**
4144
4072
  * Similar to
@@ -4156,7 +4084,7 @@ declare class Group extends Object$1 {
4156
4084
  contextLoader?: DocumentLoader;
4157
4085
  suppressError?: boolean;
4158
4086
  tracerProvider?: TracerProvider;
4159
- baseUrl?: URL;
4087
+ crossOrigin?: "ignore" | "throw" | "trust";
4160
4088
  }): Promise<Application | Group | Organization | Person | Service | null>;
4161
4089
  /**
4162
4090
  * Similar to
@@ -4174,7 +4102,7 @@ declare class Group extends Object$1 {
4174
4102
  contextLoader?: DocumentLoader;
4175
4103
  suppressError?: boolean;
4176
4104
  tracerProvider?: TracerProvider;
4177
- baseUrl?: URL;
4105
+ crossOrigin?: "ignore" | "throw" | "trust";
4178
4106
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
4179
4107
  /**
4180
4108
  * Similar to
@@ -4192,7 +4120,7 @@ declare class Group extends Object$1 {
4192
4120
  contextLoader?: DocumentLoader;
4193
4121
  suppressError?: boolean;
4194
4122
  tracerProvider?: TracerProvider;
4195
- baseUrl?: URL;
4123
+ crossOrigin?: "ignore" | "throw" | "trust";
4196
4124
  }): Promise<DidService | null>;
4197
4125
  /**
4198
4126
  * Similar to
@@ -4210,7 +4138,7 @@ declare class Group extends Object$1 {
4210
4138
  contextLoader?: DocumentLoader;
4211
4139
  suppressError?: boolean;
4212
4140
  tracerProvider?: TracerProvider;
4213
- baseUrl?: URL;
4141
+ crossOrigin?: "ignore" | "throw" | "trust";
4214
4142
  }): AsyncIterable<DidService>;
4215
4143
  /** This value is used for `Actor` type objects to show message on followed.
4216
4144
  */
@@ -4273,7 +4201,6 @@ declare class Group extends Object$1 {
4273
4201
  */
4274
4202
  declare class Link {
4275
4203
  #private;
4276
- protected readonly _baseUrl?: URL;
4277
4204
  readonly id: URL | null;
4278
4205
  protected get _documentLoader(): DocumentLoader | undefined;
4279
4206
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -4289,10 +4216,6 @@ declare class Link {
4289
4216
  * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
4290
4217
  */
4291
4218
  static get typeId(): URL;
4292
- /**
4293
- * The base URL used for resolving relative URLs in this object.
4294
- */
4295
- get baseUrl(): URL | undefined;
4296
4219
  /**
4297
4220
  * Constructs a new instance of Link with the given values.
4298
4221
  * @param values The values to initialize the instance with.
@@ -4314,7 +4237,6 @@ declare class Link {
4314
4237
  documentLoader?: DocumentLoader;
4315
4238
  contextLoader?: DocumentLoader;
4316
4239
  tracerProvider?: TracerProvider;
4317
- baseUrl?: URL;
4318
4240
  });
4319
4241
  /**
4320
4242
  * Clones this instance, optionally updating it with the given values.
@@ -4396,7 +4318,7 @@ declare class Link {
4396
4318
  contextLoader?: DocumentLoader;
4397
4319
  suppressError?: boolean;
4398
4320
  tracerProvider?: TracerProvider;
4399
- baseUrl?: URL;
4321
+ crossOrigin?: "ignore" | "throw" | "trust";
4400
4322
  }): AsyncIterable<Link | Object$1>;
4401
4323
  /**
4402
4324
  * Converts this object to a JSON-LD structure.
@@ -4448,10 +4370,6 @@ declare class Hashtag extends Link {
4448
4370
  * The type URI of {@link Hashtag}: `https://www.w3.org/ns/activitystreams#Hashtag`.
4449
4371
  */
4450
4372
  static get typeId(): URL;
4451
- /**
4452
- * The base URL used for resolving relative URLs in this object.
4453
- */
4454
- get baseUrl(): URL | undefined;
4455
4373
  /**
4456
4374
  * Constructs a new instance of Hashtag with the given values.
4457
4375
  * @param values The values to initialize the instance with.
@@ -4473,7 +4391,6 @@ declare class Hashtag extends Link {
4473
4391
  documentLoader?: DocumentLoader;
4474
4392
  contextLoader?: DocumentLoader;
4475
4393
  tracerProvider?: TracerProvider;
4476
- baseUrl?: URL;
4477
4394
  });
4478
4395
  /**
4479
4396
  * Clones this instance, optionally updating it with the given values.
@@ -4545,10 +4462,6 @@ declare class Image extends Document {
4545
4462
  * The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
4546
4463
  */
4547
4464
  static get typeId(): URL;
4548
- /**
4549
- * The base URL used for resolving relative URLs in this object.
4550
- */
4551
- get baseUrl(): URL | undefined;
4552
4465
  /**
4553
4466
  * Constructs a new instance of Image with the given values.
4554
4467
  * @param values The values to initialize the instance with.
@@ -4610,7 +4523,6 @@ declare class Image extends Document {
4610
4523
  documentLoader?: DocumentLoader;
4611
4524
  contextLoader?: DocumentLoader;
4612
4525
  tracerProvider?: TracerProvider;
4613
- baseUrl?: URL;
4614
4526
  });
4615
4527
  /**
4616
4528
  * Clones this instance, optionally updating it with the given values.
@@ -4729,10 +4641,6 @@ declare class OrderedCollection extends Collection {
4729
4641
  * The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
4730
4642
  */
4731
4643
  static get typeId(): URL;
4732
- /**
4733
- * The base URL used for resolving relative URLs in this object.
4734
- */
4735
- get baseUrl(): URL | undefined;
4736
4644
  /**
4737
4645
  * Constructs a new instance of OrderedCollection with the given values.
4738
4646
  * @param values The values to initialize the instance with.
@@ -4805,7 +4713,6 @@ declare class OrderedCollection extends Collection {
4805
4713
  documentLoader?: DocumentLoader;
4806
4714
  contextLoader?: DocumentLoader;
4807
4715
  tracerProvider?: TracerProvider;
4808
- baseUrl?: URL;
4809
4716
  });
4810
4717
  /**
4811
4718
  * Clones this instance, optionally updating it with the given values.
@@ -4894,7 +4801,7 @@ declare class OrderedCollection extends Collection {
4894
4801
  contextLoader?: DocumentLoader;
4895
4802
  suppressError?: boolean;
4896
4803
  tracerProvider?: TracerProvider;
4897
- baseUrl?: URL;
4804
+ crossOrigin?: "ignore" | "throw" | "trust";
4898
4805
  }): AsyncIterable<Object$1 | Link>;
4899
4806
  /**
4900
4807
  * Converts this object to a JSON-LD structure.
@@ -4947,10 +4854,6 @@ declare class OrderedCollectionPage extends CollectionPage {
4947
4854
  * The type URI of {@link OrderedCollectionPage}: `https://www.w3.org/ns/activitystreams#OrderedCollectionPage`.
4948
4855
  */
4949
4856
  static get typeId(): URL;
4950
- /**
4951
- * The base URL used for resolving relative URLs in this object.
4952
- */
4953
- get baseUrl(): URL | undefined;
4954
4857
  /**
4955
4858
  * Constructs a new instance of OrderedCollectionPage with the given values.
4956
4859
  * @param values The values to initialize the instance with.
@@ -5027,7 +4930,6 @@ declare class OrderedCollectionPage extends CollectionPage {
5027
4930
  documentLoader?: DocumentLoader;
5028
4931
  contextLoader?: DocumentLoader;
5029
4932
  tracerProvider?: TracerProvider;
5030
- baseUrl?: URL;
5031
4933
  });
5032
4934
  /**
5033
4935
  * Clones this instance, optionally updating it with the given values.
@@ -5120,7 +5022,7 @@ declare class OrderedCollectionPage extends CollectionPage {
5120
5022
  contextLoader?: DocumentLoader;
5121
5023
  suppressError?: boolean;
5122
5024
  tracerProvider?: TracerProvider;
5123
- baseUrl?: URL;
5025
+ crossOrigin?: "ignore" | "throw" | "trust";
5124
5026
  }): AsyncIterable<Object$1 | Link>;
5125
5027
  /** A non-negative integer value identifying the relative position within
5126
5028
  * the logical view of a strictly ordered collection.
@@ -5175,10 +5077,6 @@ declare class Organization extends Object$1 {
5175
5077
  * The type URI of {@link Organization}: `https://www.w3.org/ns/activitystreams#Organization`.
5176
5078
  */
5177
5079
  static get typeId(): URL;
5178
- /**
5179
- * The base URL used for resolving relative URLs in this object.
5180
- */
5181
- get baseUrl(): URL | undefined;
5182
5080
  /**
5183
5081
  * Constructs a new instance of Organization with the given values.
5184
5082
  * @param values The values to initialize the instance with.
@@ -5265,7 +5163,6 @@ declare class Organization extends Object$1 {
5265
5163
  documentLoader?: DocumentLoader;
5266
5164
  contextLoader?: DocumentLoader;
5267
5165
  tracerProvider?: TracerProvider;
5268
- baseUrl?: URL;
5269
5166
  });
5270
5167
  /**
5271
5168
  * Clones this instance, optionally updating it with the given values.
@@ -5375,7 +5272,7 @@ declare class Organization extends Object$1 {
5375
5272
  contextLoader?: DocumentLoader;
5376
5273
  suppressError?: boolean;
5377
5274
  tracerProvider?: TracerProvider;
5378
- baseUrl?: URL;
5275
+ crossOrigin?: "ignore" | "throw" | "trust";
5379
5276
  }): Promise<CryptographicKey | null>;
5380
5277
  /**
5381
5278
  * Similar to
@@ -5390,7 +5287,7 @@ declare class Organization extends Object$1 {
5390
5287
  contextLoader?: DocumentLoader;
5391
5288
  suppressError?: boolean;
5392
5289
  tracerProvider?: TracerProvider;
5393
- baseUrl?: URL;
5290
+ crossOrigin?: "ignore" | "throw" | "trust";
5394
5291
  }): AsyncIterable<CryptographicKey>;
5395
5292
  /**
5396
5293
  * Similar to
@@ -5408,7 +5305,7 @@ declare class Organization extends Object$1 {
5408
5305
  contextLoader?: DocumentLoader;
5409
5306
  suppressError?: boolean;
5410
5307
  tracerProvider?: TracerProvider;
5411
- baseUrl?: URL;
5308
+ crossOrigin?: "ignore" | "throw" | "trust";
5412
5309
  }): Promise<Multikey | null>;
5413
5310
  /**
5414
5311
  * Similar to
@@ -5426,7 +5323,7 @@ declare class Organization extends Object$1 {
5426
5323
  contextLoader?: DocumentLoader;
5427
5324
  suppressError?: boolean;
5428
5325
  tracerProvider?: TracerProvider;
5429
- baseUrl?: URL;
5326
+ crossOrigin?: "ignore" | "throw" | "trust";
5430
5327
  }): AsyncIterable<Multikey>;
5431
5328
  /** When `true`, conveys that for this actor, follow requests are not usually
5432
5329
  * automatically approved, but instead are examined by a person who may accept
@@ -5461,7 +5358,7 @@ declare class Organization extends Object$1 {
5461
5358
  contextLoader?: DocumentLoader;
5462
5359
  suppressError?: boolean;
5463
5360
  tracerProvider?: TracerProvider;
5464
- baseUrl?: URL;
5361
+ crossOrigin?: "ignore" | "throw" | "trust";
5465
5362
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5466
5363
  /**
5467
5364
  * Similar to
@@ -5485,7 +5382,7 @@ declare class Organization extends Object$1 {
5485
5382
  contextLoader?: DocumentLoader;
5486
5383
  suppressError?: boolean;
5487
5384
  tracerProvider?: TracerProvider;
5488
- baseUrl?: URL;
5385
+ crossOrigin?: "ignore" | "throw" | "trust";
5489
5386
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
5490
5387
  /**
5491
5388
  * Similar to
@@ -5504,7 +5401,7 @@ declare class Organization extends Object$1 {
5504
5401
  contextLoader?: DocumentLoader;
5505
5402
  suppressError?: boolean;
5506
5403
  tracerProvider?: TracerProvider;
5507
- baseUrl?: URL;
5404
+ crossOrigin?: "ignore" | "throw" | "trust";
5508
5405
  }): Promise<Collection | null>;
5509
5406
  /**
5510
5407
  * Similar to
@@ -5526,7 +5423,7 @@ declare class Organization extends Object$1 {
5526
5423
  contextLoader?: DocumentLoader;
5527
5424
  suppressError?: boolean;
5528
5425
  tracerProvider?: TracerProvider;
5529
- baseUrl?: URL;
5426
+ crossOrigin?: "ignore" | "throw" | "trust";
5530
5427
  }): Promise<Collection | null>;
5531
5428
  /**
5532
5429
  * Similar to
@@ -5546,7 +5443,7 @@ declare class Organization extends Object$1 {
5546
5443
  contextLoader?: DocumentLoader;
5547
5444
  suppressError?: boolean;
5548
5445
  tracerProvider?: TracerProvider;
5549
- baseUrl?: URL;
5446
+ crossOrigin?: "ignore" | "throw" | "trust";
5550
5447
  }): Promise<Collection | null>;
5551
5448
  /**
5552
5449
  * Similar to
@@ -5564,7 +5461,7 @@ declare class Organization extends Object$1 {
5564
5461
  contextLoader?: DocumentLoader;
5565
5462
  suppressError?: boolean;
5566
5463
  tracerProvider?: TracerProvider;
5567
- baseUrl?: URL;
5464
+ crossOrigin?: "ignore" | "throw" | "trust";
5568
5465
  }): Promise<Collection | null>;
5569
5466
  /**
5570
5467
  * Similar to
@@ -5582,7 +5479,7 @@ declare class Organization extends Object$1 {
5582
5479
  contextLoader?: DocumentLoader;
5583
5480
  suppressError?: boolean;
5584
5481
  tracerProvider?: TracerProvider;
5585
- baseUrl?: URL;
5482
+ crossOrigin?: "ignore" | "throw" | "trust";
5586
5483
  }): Promise<Collection | null>;
5587
5484
  /**
5588
5485
  * Similar to
@@ -5597,7 +5494,7 @@ declare class Organization extends Object$1 {
5597
5494
  contextLoader?: DocumentLoader;
5598
5495
  suppressError?: boolean;
5599
5496
  tracerProvider?: TracerProvider;
5600
- baseUrl?: URL;
5497
+ crossOrigin?: "ignore" | "throw" | "trust";
5601
5498
  }): AsyncIterable<Collection>;
5602
5499
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
5603
5500
  * which may be useful either for this actor or someone referencing this actor.
@@ -5634,7 +5531,7 @@ declare class Organization extends Object$1 {
5634
5531
  contextLoader?: DocumentLoader;
5635
5532
  suppressError?: boolean;
5636
5533
  tracerProvider?: TracerProvider;
5637
- baseUrl?: URL;
5534
+ crossOrigin?: "ignore" | "throw" | "trust";
5638
5535
  }): Promise<Application | Group | Organization | Person | Service | null>;
5639
5536
  /**
5640
5537
  * Similar to
@@ -5652,7 +5549,7 @@ declare class Organization extends Object$1 {
5652
5549
  contextLoader?: DocumentLoader;
5653
5550
  suppressError?: boolean;
5654
5551
  tracerProvider?: TracerProvider;
5655
- baseUrl?: URL;
5552
+ crossOrigin?: "ignore" | "throw" | "trust";
5656
5553
  }): Promise<Application | Group | Organization | Person | Service | null>;
5657
5554
  /**
5658
5555
  * Similar to
@@ -5670,7 +5567,7 @@ declare class Organization extends Object$1 {
5670
5567
  contextLoader?: DocumentLoader;
5671
5568
  suppressError?: boolean;
5672
5569
  tracerProvider?: TracerProvider;
5673
- baseUrl?: URL;
5570
+ crossOrigin?: "ignore" | "throw" | "trust";
5674
5571
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
5675
5572
  /**
5676
5573
  * Similar to
@@ -5688,7 +5585,7 @@ declare class Organization extends Object$1 {
5688
5585
  contextLoader?: DocumentLoader;
5689
5586
  suppressError?: boolean;
5690
5587
  tracerProvider?: TracerProvider;
5691
- baseUrl?: URL;
5588
+ crossOrigin?: "ignore" | "throw" | "trust";
5692
5589
  }): Promise<DidService | null>;
5693
5590
  /**
5694
5591
  * Similar to
@@ -5706,7 +5603,7 @@ declare class Organization extends Object$1 {
5706
5603
  contextLoader?: DocumentLoader;
5707
5604
  suppressError?: boolean;
5708
5605
  tracerProvider?: TracerProvider;
5709
- baseUrl?: URL;
5606
+ crossOrigin?: "ignore" | "throw" | "trust";
5710
5607
  }): AsyncIterable<DidService>;
5711
5608
  /** This value is used for `Actor` type objects to show message on followed.
5712
5609
  */
@@ -5769,10 +5666,6 @@ declare class Person extends Object$1 {
5769
5666
  * The type URI of {@link Person}: `https://www.w3.org/ns/activitystreams#Person`.
5770
5667
  */
5771
5668
  static get typeId(): URL;
5772
- /**
5773
- * The base URL used for resolving relative URLs in this object.
5774
- */
5775
- get baseUrl(): URL | undefined;
5776
5669
  /**
5777
5670
  * Constructs a new instance of Person with the given values.
5778
5671
  * @param values The values to initialize the instance with.
@@ -5859,7 +5752,6 @@ declare class Person extends Object$1 {
5859
5752
  documentLoader?: DocumentLoader;
5860
5753
  contextLoader?: DocumentLoader;
5861
5754
  tracerProvider?: TracerProvider;
5862
- baseUrl?: URL;
5863
5755
  });
5864
5756
  /**
5865
5757
  * Clones this instance, optionally updating it with the given values.
@@ -5969,7 +5861,7 @@ declare class Person extends Object$1 {
5969
5861
  contextLoader?: DocumentLoader;
5970
5862
  suppressError?: boolean;
5971
5863
  tracerProvider?: TracerProvider;
5972
- baseUrl?: URL;
5864
+ crossOrigin?: "ignore" | "throw" | "trust";
5973
5865
  }): Promise<CryptographicKey | null>;
5974
5866
  /**
5975
5867
  * Similar to
@@ -5984,7 +5876,7 @@ declare class Person extends Object$1 {
5984
5876
  contextLoader?: DocumentLoader;
5985
5877
  suppressError?: boolean;
5986
5878
  tracerProvider?: TracerProvider;
5987
- baseUrl?: URL;
5879
+ crossOrigin?: "ignore" | "throw" | "trust";
5988
5880
  }): AsyncIterable<CryptographicKey>;
5989
5881
  /**
5990
5882
  * Similar to
@@ -6002,7 +5894,7 @@ declare class Person extends Object$1 {
6002
5894
  contextLoader?: DocumentLoader;
6003
5895
  suppressError?: boolean;
6004
5896
  tracerProvider?: TracerProvider;
6005
- baseUrl?: URL;
5897
+ crossOrigin?: "ignore" | "throw" | "trust";
6006
5898
  }): Promise<Multikey | null>;
6007
5899
  /**
6008
5900
  * Similar to
@@ -6020,7 +5912,7 @@ declare class Person extends Object$1 {
6020
5912
  contextLoader?: DocumentLoader;
6021
5913
  suppressError?: boolean;
6022
5914
  tracerProvider?: TracerProvider;
6023
- baseUrl?: URL;
5915
+ crossOrigin?: "ignore" | "throw" | "trust";
6024
5916
  }): AsyncIterable<Multikey>;
6025
5917
  /** When `true`, conveys that for this actor, follow requests are not usually
6026
5918
  * automatically approved, but instead are examined by a person who may accept
@@ -6055,7 +5947,7 @@ declare class Person extends Object$1 {
6055
5947
  contextLoader?: DocumentLoader;
6056
5948
  suppressError?: boolean;
6057
5949
  tracerProvider?: TracerProvider;
6058
- baseUrl?: URL;
5950
+ crossOrigin?: "ignore" | "throw" | "trust";
6059
5951
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6060
5952
  /**
6061
5953
  * Similar to
@@ -6079,7 +5971,7 @@ declare class Person extends Object$1 {
6079
5971
  contextLoader?: DocumentLoader;
6080
5972
  suppressError?: boolean;
6081
5973
  tracerProvider?: TracerProvider;
6082
- baseUrl?: URL;
5974
+ crossOrigin?: "ignore" | "throw" | "trust";
6083
5975
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6084
5976
  /**
6085
5977
  * Similar to
@@ -6098,7 +5990,7 @@ declare class Person extends Object$1 {
6098
5990
  contextLoader?: DocumentLoader;
6099
5991
  suppressError?: boolean;
6100
5992
  tracerProvider?: TracerProvider;
6101
- baseUrl?: URL;
5993
+ crossOrigin?: "ignore" | "throw" | "trust";
6102
5994
  }): Promise<Collection | null>;
6103
5995
  /**
6104
5996
  * Similar to
@@ -6120,7 +6012,7 @@ declare class Person extends Object$1 {
6120
6012
  contextLoader?: DocumentLoader;
6121
6013
  suppressError?: boolean;
6122
6014
  tracerProvider?: TracerProvider;
6123
- baseUrl?: URL;
6015
+ crossOrigin?: "ignore" | "throw" | "trust";
6124
6016
  }): Promise<Collection | null>;
6125
6017
  /**
6126
6018
  * Similar to
@@ -6140,7 +6032,7 @@ declare class Person extends Object$1 {
6140
6032
  contextLoader?: DocumentLoader;
6141
6033
  suppressError?: boolean;
6142
6034
  tracerProvider?: TracerProvider;
6143
- baseUrl?: URL;
6035
+ crossOrigin?: "ignore" | "throw" | "trust";
6144
6036
  }): Promise<Collection | null>;
6145
6037
  /**
6146
6038
  * Similar to
@@ -6158,7 +6050,7 @@ declare class Person extends Object$1 {
6158
6050
  contextLoader?: DocumentLoader;
6159
6051
  suppressError?: boolean;
6160
6052
  tracerProvider?: TracerProvider;
6161
- baseUrl?: URL;
6053
+ crossOrigin?: "ignore" | "throw" | "trust";
6162
6054
  }): Promise<Collection | null>;
6163
6055
  /**
6164
6056
  * Similar to
@@ -6176,7 +6068,7 @@ declare class Person extends Object$1 {
6176
6068
  contextLoader?: DocumentLoader;
6177
6069
  suppressError?: boolean;
6178
6070
  tracerProvider?: TracerProvider;
6179
- baseUrl?: URL;
6071
+ crossOrigin?: "ignore" | "throw" | "trust";
6180
6072
  }): Promise<Collection | null>;
6181
6073
  /**
6182
6074
  * Similar to
@@ -6191,7 +6083,7 @@ declare class Person extends Object$1 {
6191
6083
  contextLoader?: DocumentLoader;
6192
6084
  suppressError?: boolean;
6193
6085
  tracerProvider?: TracerProvider;
6194
- baseUrl?: URL;
6086
+ crossOrigin?: "ignore" | "throw" | "trust";
6195
6087
  }): AsyncIterable<Collection>;
6196
6088
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
6197
6089
  * which may be useful either for this actor or someone referencing this actor.
@@ -6228,7 +6120,7 @@ declare class Person extends Object$1 {
6228
6120
  contextLoader?: DocumentLoader;
6229
6121
  suppressError?: boolean;
6230
6122
  tracerProvider?: TracerProvider;
6231
- baseUrl?: URL;
6123
+ crossOrigin?: "ignore" | "throw" | "trust";
6232
6124
  }): Promise<Application | Group | Organization | Person | Service | null>;
6233
6125
  /**
6234
6126
  * Similar to
@@ -6246,7 +6138,7 @@ declare class Person extends Object$1 {
6246
6138
  contextLoader?: DocumentLoader;
6247
6139
  suppressError?: boolean;
6248
6140
  tracerProvider?: TracerProvider;
6249
- baseUrl?: URL;
6141
+ crossOrigin?: "ignore" | "throw" | "trust";
6250
6142
  }): Promise<Application | Group | Organization | Person | Service | null>;
6251
6143
  /**
6252
6144
  * Similar to
@@ -6264,7 +6156,7 @@ declare class Person extends Object$1 {
6264
6156
  contextLoader?: DocumentLoader;
6265
6157
  suppressError?: boolean;
6266
6158
  tracerProvider?: TracerProvider;
6267
- baseUrl?: URL;
6159
+ crossOrigin?: "ignore" | "throw" | "trust";
6268
6160
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
6269
6161
  /**
6270
6162
  * Similar to
@@ -6282,7 +6174,7 @@ declare class Person extends Object$1 {
6282
6174
  contextLoader?: DocumentLoader;
6283
6175
  suppressError?: boolean;
6284
6176
  tracerProvider?: TracerProvider;
6285
- baseUrl?: URL;
6177
+ crossOrigin?: "ignore" | "throw" | "trust";
6286
6178
  }): Promise<DidService | null>;
6287
6179
  /**
6288
6180
  * Similar to
@@ -6300,7 +6192,7 @@ declare class Person extends Object$1 {
6300
6192
  contextLoader?: DocumentLoader;
6301
6193
  suppressError?: boolean;
6302
6194
  tracerProvider?: TracerProvider;
6303
- baseUrl?: URL;
6195
+ crossOrigin?: "ignore" | "throw" | "trust";
6304
6196
  }): AsyncIterable<DidService>;
6305
6197
  /** This value is used for `Actor` type objects to show message on followed.
6306
6198
  */
@@ -6365,10 +6257,6 @@ declare class Service extends Object$1 {
6365
6257
  * The type URI of {@link Service}: `https://www.w3.org/ns/activitystreams#Service`.
6366
6258
  */
6367
6259
  static get typeId(): URL;
6368
- /**
6369
- * The base URL used for resolving relative URLs in this object.
6370
- */
6371
- get baseUrl(): URL | undefined;
6372
6260
  /**
6373
6261
  * Constructs a new instance of Service with the given values.
6374
6262
  * @param values The values to initialize the instance with.
@@ -6455,7 +6343,6 @@ declare class Service extends Object$1 {
6455
6343
  documentLoader?: DocumentLoader;
6456
6344
  contextLoader?: DocumentLoader;
6457
6345
  tracerProvider?: TracerProvider;
6458
- baseUrl?: URL;
6459
6346
  });
6460
6347
  /**
6461
6348
  * Clones this instance, optionally updating it with the given values.
@@ -6565,7 +6452,7 @@ declare class Service extends Object$1 {
6565
6452
  contextLoader?: DocumentLoader;
6566
6453
  suppressError?: boolean;
6567
6454
  tracerProvider?: TracerProvider;
6568
- baseUrl?: URL;
6455
+ crossOrigin?: "ignore" | "throw" | "trust";
6569
6456
  }): Promise<CryptographicKey | null>;
6570
6457
  /**
6571
6458
  * Similar to
@@ -6580,7 +6467,7 @@ declare class Service extends Object$1 {
6580
6467
  contextLoader?: DocumentLoader;
6581
6468
  suppressError?: boolean;
6582
6469
  tracerProvider?: TracerProvider;
6583
- baseUrl?: URL;
6470
+ crossOrigin?: "ignore" | "throw" | "trust";
6584
6471
  }): AsyncIterable<CryptographicKey>;
6585
6472
  /**
6586
6473
  * Similar to
@@ -6598,7 +6485,7 @@ declare class Service extends Object$1 {
6598
6485
  contextLoader?: DocumentLoader;
6599
6486
  suppressError?: boolean;
6600
6487
  tracerProvider?: TracerProvider;
6601
- baseUrl?: URL;
6488
+ crossOrigin?: "ignore" | "throw" | "trust";
6602
6489
  }): Promise<Multikey | null>;
6603
6490
  /**
6604
6491
  * Similar to
@@ -6616,7 +6503,7 @@ declare class Service extends Object$1 {
6616
6503
  contextLoader?: DocumentLoader;
6617
6504
  suppressError?: boolean;
6618
6505
  tracerProvider?: TracerProvider;
6619
- baseUrl?: URL;
6506
+ crossOrigin?: "ignore" | "throw" | "trust";
6620
6507
  }): AsyncIterable<Multikey>;
6621
6508
  /** When `true`, conveys that for this actor, follow requests are not usually
6622
6509
  * automatically approved, but instead are examined by a person who may accept
@@ -6651,7 +6538,7 @@ declare class Service extends Object$1 {
6651
6538
  contextLoader?: DocumentLoader;
6652
6539
  suppressError?: boolean;
6653
6540
  tracerProvider?: TracerProvider;
6654
- baseUrl?: URL;
6541
+ crossOrigin?: "ignore" | "throw" | "trust";
6655
6542
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6656
6543
  /**
6657
6544
  * Similar to
@@ -6675,7 +6562,7 @@ declare class Service extends Object$1 {
6675
6562
  contextLoader?: DocumentLoader;
6676
6563
  suppressError?: boolean;
6677
6564
  tracerProvider?: TracerProvider;
6678
- baseUrl?: URL;
6565
+ crossOrigin?: "ignore" | "throw" | "trust";
6679
6566
  }): Promise<OrderedCollection | OrderedCollectionPage | null>;
6680
6567
  /**
6681
6568
  * Similar to
@@ -6694,7 +6581,7 @@ declare class Service extends Object$1 {
6694
6581
  contextLoader?: DocumentLoader;
6695
6582
  suppressError?: boolean;
6696
6583
  tracerProvider?: TracerProvider;
6697
- baseUrl?: URL;
6584
+ crossOrigin?: "ignore" | "throw" | "trust";
6698
6585
  }): Promise<Collection | null>;
6699
6586
  /**
6700
6587
  * Similar to
@@ -6716,7 +6603,7 @@ declare class Service extends Object$1 {
6716
6603
  contextLoader?: DocumentLoader;
6717
6604
  suppressError?: boolean;
6718
6605
  tracerProvider?: TracerProvider;
6719
- baseUrl?: URL;
6606
+ crossOrigin?: "ignore" | "throw" | "trust";
6720
6607
  }): Promise<Collection | null>;
6721
6608
  /**
6722
6609
  * Similar to
@@ -6736,7 +6623,7 @@ declare class Service extends Object$1 {
6736
6623
  contextLoader?: DocumentLoader;
6737
6624
  suppressError?: boolean;
6738
6625
  tracerProvider?: TracerProvider;
6739
- baseUrl?: URL;
6626
+ crossOrigin?: "ignore" | "throw" | "trust";
6740
6627
  }): Promise<Collection | null>;
6741
6628
  /**
6742
6629
  * Similar to
@@ -6754,7 +6641,7 @@ declare class Service extends Object$1 {
6754
6641
  contextLoader?: DocumentLoader;
6755
6642
  suppressError?: boolean;
6756
6643
  tracerProvider?: TracerProvider;
6757
- baseUrl?: URL;
6644
+ crossOrigin?: "ignore" | "throw" | "trust";
6758
6645
  }): Promise<Collection | null>;
6759
6646
  /**
6760
6647
  * Similar to
@@ -6772,7 +6659,7 @@ declare class Service extends Object$1 {
6772
6659
  contextLoader?: DocumentLoader;
6773
6660
  suppressError?: boolean;
6774
6661
  tracerProvider?: TracerProvider;
6775
- baseUrl?: URL;
6662
+ crossOrigin?: "ignore" | "throw" | "trust";
6776
6663
  }): Promise<Collection | null>;
6777
6664
  /**
6778
6665
  * Similar to
@@ -6787,7 +6674,7 @@ declare class Service extends Object$1 {
6787
6674
  contextLoader?: DocumentLoader;
6788
6675
  suppressError?: boolean;
6789
6676
  tracerProvider?: TracerProvider;
6790
- baseUrl?: URL;
6677
+ crossOrigin?: "ignore" | "throw" | "trust";
6791
6678
  }): AsyncIterable<Collection>;
6792
6679
  /** A JSON object which maps additional (typically server/domain-wide) endpoints
6793
6680
  * which may be useful either for this actor or someone referencing this actor.
@@ -6824,7 +6711,7 @@ declare class Service extends Object$1 {
6824
6711
  contextLoader?: DocumentLoader;
6825
6712
  suppressError?: boolean;
6826
6713
  tracerProvider?: TracerProvider;
6827
- baseUrl?: URL;
6714
+ crossOrigin?: "ignore" | "throw" | "trust";
6828
6715
  }): Promise<Application | Group | Organization | Person | Service | null>;
6829
6716
  /**
6830
6717
  * Similar to
@@ -6842,7 +6729,7 @@ declare class Service extends Object$1 {
6842
6729
  contextLoader?: DocumentLoader;
6843
6730
  suppressError?: boolean;
6844
6731
  tracerProvider?: TracerProvider;
6845
- baseUrl?: URL;
6732
+ crossOrigin?: "ignore" | "throw" | "trust";
6846
6733
  }): Promise<Application | Group | Organization | Person | Service | null>;
6847
6734
  /**
6848
6735
  * Similar to
@@ -6860,7 +6747,7 @@ declare class Service extends Object$1 {
6860
6747
  contextLoader?: DocumentLoader;
6861
6748
  suppressError?: boolean;
6862
6749
  tracerProvider?: TracerProvider;
6863
- baseUrl?: URL;
6750
+ crossOrigin?: "ignore" | "throw" | "trust";
6864
6751
  }): AsyncIterable<Application | Group | Organization | Person | Service>;
6865
6752
  /**
6866
6753
  * Similar to
@@ -6878,7 +6765,7 @@ declare class Service extends Object$1 {
6878
6765
  contextLoader?: DocumentLoader;
6879
6766
  suppressError?: boolean;
6880
6767
  tracerProvider?: TracerProvider;
6881
- baseUrl?: URL;
6768
+ crossOrigin?: "ignore" | "throw" | "trust";
6882
6769
  }): Promise<DidService | null>;
6883
6770
  /**
6884
6771
  * Similar to
@@ -6896,7 +6783,7 @@ declare class Service extends Object$1 {
6896
6783
  contextLoader?: DocumentLoader;
6897
6784
  suppressError?: boolean;
6898
6785
  tracerProvider?: TracerProvider;
6899
- baseUrl?: URL;
6786
+ crossOrigin?: "ignore" | "throw" | "trust";
6900
6787
  }): AsyncIterable<DidService>;
6901
6788
  /** This value is used for `Actor` type objects to show message on followed.
6902
6789
  */
@@ -6952,7 +6839,6 @@ declare class Service extends Object$1 {
6952
6839
  */
6953
6840
  declare class Source {
6954
6841
  #private;
6955
- protected readonly _baseUrl?: URL;
6956
6842
  readonly id: URL | null;
6957
6843
  protected get _documentLoader(): DocumentLoader | undefined;
6958
6844
  protected get _contextLoader(): DocumentLoader | undefined;
@@ -6968,10 +6854,6 @@ declare class Source {
6968
6854
  * The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
6969
6855
  */
6970
6856
  static get typeId(): URL;
6971
- /**
6972
- * The base URL used for resolving relative URLs in this object.
6973
- */
6974
- get baseUrl(): URL | undefined;
6975
6857
  /**
6976
6858
  * Constructs a new instance of Source with the given values.
6977
6859
  * @param values The values to initialize the instance with.
@@ -6986,7 +6868,6 @@ declare class Source {
6986
6868
  documentLoader?: DocumentLoader;
6987
6869
  contextLoader?: DocumentLoader;
6988
6870
  tracerProvider?: TracerProvider;
6989
- baseUrl?: URL;
6990
6871
  });
6991
6872
  /**
6992
6873
  * Clones this instance, optionally updating it with the given values.
@@ -7142,6 +7023,24 @@ interface LookupObjectOptions {
7142
7023
  * @since 0.8.0
7143
7024
  */
7144
7025
  contextLoader?: DocumentLoader;
7026
+ /**
7027
+ * Whether to allow fetching an object with an `@id` having a different
7028
+ * origin than the object's URL. This is not recommended, as it may
7029
+ * lead to security issues. Only use this option if you know what you
7030
+ * are doing.
7031
+ *
7032
+ * How to handle the case when an object's `@id` has a different origin
7033
+ * than the object's URL:
7034
+ *
7035
+ * - `"ignore"` (default): Do not return the object, and log a warning.
7036
+ * - `"throw"`: Throw an error.
7037
+ * - `"trust"`: Bypass the check and return the object anyway. This
7038
+ * is not recommended, as it may lead to security issues. Only use
7039
+ * this option if you know what you are doing.
7040
+ *
7041
+ * @since 1.9.0
7042
+ */
7043
+ crossOrigin?: "ignore" | "throw" | "trust";
7145
7044
  /**
7146
7045
  * The options for making `User-Agent` header.
7147
7046
  * If a string is given, it is used as the `User-Agent` header value.
@@ -7604,7 +7503,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
7604
7503
  * the entire collection without pagination.
7605
7504
  * @since 1.8.0
7606
7505
  */
7607
- 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>;
7506
+ 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>;
7608
7507
  /**
7609
7508
  * A callback that counts the number of items in a custom collection.
7610
7509
  *
@@ -7614,7 +7513,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
7614
7513
  * @param values The parameters of the requested URL.
7615
7514
  * @since 1.8.0
7616
7515
  */
7617
- type CustomCollectionCounter<TParams extends Record<string, string>, TContextData> = (context: RequestContext<TContextData>, values: TParams) => number | bigint | null | Promise<number | bigint | null>;
7516
+ type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
7618
7517
  /**
7619
7518
  * A callback that returns a cursor for a custom collection.
7620
7519
  *
@@ -7627,7 +7526,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
7627
7526
  * @param values The parameters of the requested URL.
7628
7527
  * @since 1.8.0
7629
7528
  */
7630
- type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
7529
+ type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
7631
7530
  //#endregion
7632
7531
  //#region src/federation/queue.d.ts
7633
7532
  interface SenderKeyJwkPair {
@@ -7748,7 +7647,7 @@ interface Federatable<TContextData> {
7748
7647
  * @returns An object with methods to set other actor dispatcher callbacks.
7749
7648
  * @throws {RouterError} Thrown if the path pattern is invalid.
7750
7649
  */
7751
- setActorDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7650
+ setActorDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
7752
7651
  /**
7753
7652
  * Registers an object dispatcher.
7754
7653
  *
@@ -7762,9 +7661,7 @@ interface Federatable<TContextData> {
7762
7661
  * must have one or more variables.
7763
7662
  * @param dispatcher An object dispatcher callback to register.
7764
7663
  */
7765
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7766
- typeId: URL;
7767
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7664
+ 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>;
7768
7665
  /**
7769
7666
  * Registers an object dispatcher.
7770
7667
  *
@@ -7778,9 +7675,7 @@ interface Federatable<TContextData> {
7778
7675
  * must have one or more variables.
7779
7676
  * @param dispatcher An object dispatcher callback to register.
7780
7677
  */
7781
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7782
- typeId: URL;
7783
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7678
+ 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>;
7784
7679
  /**
7785
7680
  * Registers an object dispatcher.
7786
7681
  *
@@ -7794,9 +7689,7 @@ interface Federatable<TContextData> {
7794
7689
  * must have one or more variables.
7795
7690
  * @param dispatcher An object dispatcher callback to register.
7796
7691
  */
7797
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7798
- typeId: URL;
7799
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7692
+ 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>;
7800
7693
  /**
7801
7694
  * Registers an object dispatcher.
7802
7695
  *
@@ -7810,9 +7703,7 @@ interface Federatable<TContextData> {
7810
7703
  * must have one or more variables.
7811
7704
  * @param dispatcher An object dispatcher callback to register.
7812
7705
  */
7813
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7814
- typeId: URL;
7815
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7706
+ 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>;
7816
7707
  /**
7817
7708
  * Registers an object dispatcher.
7818
7709
  *
@@ -7826,9 +7717,7 @@ interface Federatable<TContextData> {
7826
7717
  * must have one or more variables.
7827
7718
  * @param dispatcher An object dispatcher callback to register.
7828
7719
  */
7829
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7830
- typeId: URL;
7831
- }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7720
+ 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>;
7832
7721
  /**
7833
7722
  * Registers an object dispatcher.
7834
7723
  *
@@ -7842,9 +7731,7 @@ interface Federatable<TContextData> {
7842
7731
  * must have one or more variables.
7843
7732
  * @param dispatcher An object dispatcher callback to register.
7844
7733
  */
7845
- setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
7846
- typeId: URL;
7847
- }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
7734
+ 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>;
7848
7735
  /**
7849
7736
  * Registers an inbox dispatcher.
7850
7737
  *
@@ -7856,7 +7743,7 @@ interface Federatable<TContextData> {
7856
7743
  * @param dispatcher An inbox dispatcher callback to register.
7857
7744
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7858
7745
  */
7859
- setInboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7746
+ setInboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7860
7747
  /**
7861
7748
  * Registers an outbox dispatcher.
7862
7749
  *
@@ -7880,7 +7767,7 @@ interface Federatable<TContextData> {
7880
7767
  * @param dispatcher An outbox dispatcher callback to register.
7881
7768
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7882
7769
  */
7883
- setOutboxDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7770
+ setOutboxDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Activity, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7884
7771
  /**
7885
7772
  * Registers a following collection dispatcher.
7886
7773
  * @param path The URI path pattern for the following collection. The syntax
@@ -7892,7 +7779,7 @@ interface Federatable<TContextData> {
7892
7779
  * callbacks.
7893
7780
  * @throws {RouterError} Thrown if the path pattern is invalid.
7894
7781
  */
7895
- setFollowingDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7782
+ setFollowingDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Actor | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7896
7783
  /**
7897
7784
  * Registers a followers collection dispatcher.
7898
7785
  * @param path The URI path pattern for the followers collection. The syntax
@@ -7904,7 +7791,7 @@ interface Federatable<TContextData> {
7904
7791
  * callbacks.
7905
7792
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7906
7793
  */
7907
- setFollowersDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7794
+ setFollowersDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Recipient, Context<TContextData>, TContextData, URL>): CollectionCallbackSetters<Context<TContextData>, TContextData, URL>;
7908
7795
  /**
7909
7796
  * Registers a liked collection dispatcher.
7910
7797
  * @param path The URI path pattern for the liked collection. The syntax
@@ -7916,7 +7803,7 @@ interface Federatable<TContextData> {
7916
7803
  * callbacks.
7917
7804
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7918
7805
  */
7919
- setLikedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7806
+ setLikedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1 | URL, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7920
7807
  /**
7921
7808
  * Registers a featured collection dispatcher.
7922
7809
  * @param path The URI path pattern for the featured collection. The syntax
@@ -7928,7 +7815,7 @@ interface Federatable<TContextData> {
7928
7815
  * callbacks.
7929
7816
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7930
7817
  */
7931
- setFeaturedDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7818
+ setFeaturedDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Object$1, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7932
7819
  /**
7933
7820
  * Registers a featured tags collection dispatcher.
7934
7821
  * @param path The URI path pattern for the featured tags collection.
@@ -7940,7 +7827,7 @@ interface Federatable<TContextData> {
7940
7827
  * callbacks.
7941
7828
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
7942
7829
  */
7943
- setFeaturedTagsDispatcher(path: `${string}{identifier}${string}` | `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7830
+ setFeaturedTagsDispatcher(path: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, dispatcher: CollectionDispatcher<Hashtag, RequestContext<TContextData>, TContextData, void>): CollectionCallbackSetters<RequestContext<TContextData>, TContextData, void>;
7944
7831
  /**
7945
7832
  * Assigns the URL path for the inbox and starts setting inbox listeners.
7946
7833
  *
@@ -7970,7 +7857,7 @@ interface Federatable<TContextData> {
7970
7857
  * @returns An object to register inbox listeners.
7971
7858
  * @throws {RouteError} Thrown if the path pattern is invalid.
7972
7859
  */
7973
- setInboxListeners(inboxPath: `${string}{identifier}${string}` | `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7860
+ setInboxListeners(inboxPath: `${string}${Rfc6570Expression<"identifier">}${string}` | `${string}${Rfc6570Expression<"handle">}${string}`, sharedInboxPath?: string): InboxListenerSetters<TContextData>;
7974
7861
  /**
7975
7862
  * Registers a collection of objects dispatcher.
7976
7863
  *
@@ -7985,7 +7872,67 @@ interface Federatable<TContextData> {
7985
7872
  * The path must have one or more variables.
7986
7873
  * @param dispatcher A collection dispatcher callback to register.
7987
7874
  */
7988
- 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>;
7875
+ 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>;
7876
+ /**
7877
+ * Registers a collection of objects dispatcher.
7878
+ *
7879
+ * @template TContextData The context data to pass to the {@link Context}.
7880
+ * @template TObject The type of objects to dispatch.
7881
+ * @template TParam The parameter names of the requested URL.
7882
+ * @param name A unique name for the collection dispatcher.
7883
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7884
+ * @param path The URI path pattern for the collection dispatcher.
7885
+ * The syntax is based on URI Template
7886
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7887
+ * The path must have one or more variables.
7888
+ * @param dispatcher A collection dispatcher callback to register.
7889
+ */
7890
+ 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>;
7891
+ /**
7892
+ * Registers a collection of objects dispatcher.
7893
+ *
7894
+ * @template TContextData The context data to pass to the {@link Context}.
7895
+ * @template TObject The type of objects to dispatch.
7896
+ * @template TParam The parameter names of the requested URL.
7897
+ * @param name A unique name for the collection dispatcher.
7898
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7899
+ * @param path The URI path pattern for the collection dispatcher.
7900
+ * The syntax is based on URI Template
7901
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7902
+ * The path must have one or more variables.
7903
+ * @param dispatcher A collection dispatcher callback to register.
7904
+ */
7905
+ 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>;
7906
+ /**
7907
+ * Registers an ordered collection of objects dispatcher.
7908
+ *
7909
+ * @template TContextData The context data to pass to the {@link Context}.
7910
+ * @template TObject The type of objects to dispatch.
7911
+ * @template TParam The parameter names of the requested URL.
7912
+ * @param name A unique name for the collection dispatcher.
7913
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7914
+ * @param path The URI path pattern for the collection dispatcher.
7915
+ * The syntax is based on URI Template
7916
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7917
+ * The path must have one or more variables.
7918
+ * @param dispatcher A collection dispatcher callback to register.
7919
+ */
7920
+ 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>;
7921
+ /**
7922
+ * Registers an ordered collection of objects dispatcher.
7923
+ *
7924
+ * @template TContextData The context data to pass to the {@link Context}.
7925
+ * @template TObject The type of objects to dispatch.
7926
+ * @template TParam The parameter names of the requested URL.
7927
+ * @param name A unique name for the collection dispatcher.
7928
+ * @param itemType The Activity Vocabulary class of the object to dispatch.
7929
+ * @param path The URI path pattern for the collection dispatcher.
7930
+ * The syntax is based on URI Template
7931
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
7932
+ * The path must have one or more variables.
7933
+ * @param dispatcher A collection dispatcher callback to register.
7934
+ */
7935
+ 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>;
7989
7936
  /**
7990
7937
  * Registers an ordered collection of objects dispatcher.
7991
7938
  *
@@ -8000,7 +7947,7 @@ interface Federatable<TContextData> {
8000
7947
  * The path must have one or more variables.
8001
7948
  * @param dispatcher A collection dispatcher callback to register.
8002
7949
  */
8003
- 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>;
7950
+ 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>;
8004
7951
  }
8005
7952
  /**
8006
7953
  * An object that registers federation-related business logic and dispatches
@@ -8171,6 +8118,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
8171
8118
  */
8172
8119
  authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
8173
8120
  }
8121
+ /**
8122
+ * The strategy for handling activity idempotency in inbox processing.
8123
+ *
8124
+ * - `"global"`: Activities are deduplicated globally across all inboxes and
8125
+ * origins. The same activity ID will be processed only once, regardless
8126
+ * of which inbox receives it or which server sent it.
8127
+ *
8128
+ * - `"per-origin"`: Activities are deduplicated per receiving server's origin.
8129
+ * The same activity ID will be processed only once on each receiving server,
8130
+ * but can be processed separately on different receiving servers. This was
8131
+ * the default behavior in Fedify 1.x versions.
8132
+ *
8133
+ * - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
8134
+ * ID can be processed once per inbox, allowing the same activity to be
8135
+ * delivered to multiple inboxes independently. This follows standard
8136
+ * ActivityPub behavior and will be the default in Fedify 2.0.
8137
+ *
8138
+ * @since 1.9.0
8139
+ */
8140
+ type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
8141
+ /**
8142
+ * A callback to generate a custom idempotency key for an activity.
8143
+ * Returns the cache key to use, or null to skip idempotency checking.
8144
+ * @template TContextData The context data to pass to the {@link InboxContext}.
8145
+ * @param ctx The inbox context.
8146
+ * @param activity The activity being processed.
8147
+ * @returns The idempotency key to use for caching, or null to skip caching.
8148
+ * @since 1.9.0
8149
+ */
8150
+ type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
8174
8151
  /**
8175
8152
  * Registry for inbox listeners for different activity types.
8176
8153
  */
@@ -8201,6 +8178,36 @@ interface InboxListenerSetters<TContextData> {
8201
8178
  * @since 0.11.0
8202
8179
  */
8203
8180
  setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
8181
+ /**
8182
+ * Configures the strategy for handling activity idempotency in inbox processing.
8183
+ *
8184
+ * @example
8185
+ * Use per-inbox strategy (standard ActivityPub behavior):
8186
+ * ```
8187
+ * federation
8188
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8189
+ * .withIdempotency("per-inbox");
8190
+ * ```
8191
+ *
8192
+ * Use custom strategy:
8193
+ * ```
8194
+ * federation
8195
+ * .setInboxListeners("/users/{identifier}/inbox", "/inbox")
8196
+ * .withIdempotency((ctx, activity) => {
8197
+ * // Return null to skip idempotency
8198
+ * return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
8199
+ * });
8200
+ * ```
8201
+ *
8202
+ * @param strategy The idempotency strategy to use. Can be:
8203
+ * - `"global"`: Activities are deduplicated across all inboxes and origins
8204
+ * - `"per-origin"`: Activities are deduplicated per inbox origin
8205
+ * - `"per-inbox"`: Activities are deduplicated per inbox
8206
+ * - A custom callback function that returns the cache key to use
8207
+ * @returns The setters object so that settings can be chained.
8208
+ * @since 1.9.0
8209
+ */
8210
+ withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
8204
8211
  }
8205
8212
  /**
8206
8213
  * Parameters of {@link Federation.fetch} method.
@@ -8239,38 +8246,38 @@ interface FederationFetchOptions<TContextData> {
8239
8246
  /**
8240
8247
  * Additional settings for a custom collection dispatcher.
8241
8248
  *
8242
- * @template TParams The type of the parameters in the URL path.
8249
+ * @template TParam The type of the parameters in the URL path.
8243
8250
  * @template TContext The type of the context. {@link Context} or
8244
8251
  * {@link RequestContext}.
8245
8252
  * @template TContextData The context data to pass to the {@link Context}.
8246
8253
  * @template TFilter The type of filter for the collection.
8247
8254
  */
8248
- interface CustomCollectionCallbackSetters<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> {
8255
+ interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
8249
8256
  /**
8250
8257
  * Sets the counter for the custom collection.
8251
8258
  * @param counter A callback that returns the number of items in the custom collection.
8252
8259
  * @returns The setters object so that settings can be chained.
8253
8260
  */
8254
- setCounter(counter: CustomCollectionCounter<TParams, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8261
+ setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
8255
8262
  /**
8256
8263
  * Sets the first cursor for the custom collection.
8257
8264
  * @param cursor The cursor for the first item in the custom collection.
8258
8265
  * @returns The setters object so that settings can be chained.
8259
8266
  */
8260
- setFirstCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8267
+ setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
8261
8268
  /**
8262
8269
  * Sets the last cursor for the custom collection.
8263
8270
  * @param cursor The cursor for the last item in the custom collection.
8264
8271
  * @returns The setters object so that settings can be chained.
8265
8272
  */
8266
- setLastCursor(cursor: CustomCollectionCursor<TParams, TContext, TContextData>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8273
+ setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
8267
8274
  /**
8268
8275
  * Specifies the conditions under which requests are authorized.
8269
8276
  * @param predicate A callback that returns whether a request is authorized.
8270
8277
  * @returns The setters object so that settings can be chained.
8271
8278
  * @since 0.7.0
8272
8279
  */
8273
- authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParams, TContext, TContextData>;
8280
+ authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
8274
8281
  }
8275
8282
  /**
8276
8283
  * Represents an object with a type ID, which is either a constructor or an
@@ -8282,73 +8289,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
8282
8289
  typeId: URL;
8283
8290
  };
8284
8291
  /**
8285
- * Represents a path from the key of parameter objects.
8286
- * @param Params - A record of parameters where keys are parameter names and
8287
- * values are their string representations.
8288
- * @returns A string representing the path with all parameters.
8289
- * @example
8290
- * ```ts
8291
- * type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
8292
- * let userPostPath: UserPostPath;
8293
- * // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
8294
- * // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
8295
- * userPostPath = "/users/{userId}/posts/{postId}"; // valid
8296
- * userPostPath = "/posts/{postId}/users/{userId}"; // valid
8297
- * ```
8298
- */
8299
- type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
8300
- /**
8301
- * Represents a path with multiple parameters.
8302
- * All permutations of the parameters are included in the union type.
8303
- * The path must have all parameters in the form of `{paramName}`.
8304
- * @param Params - A union of parameter names.
8305
- * @returns A string representing the path with all parameters.
8306
- * @example
8307
- * ```ts
8308
- * type UserPostPath = ParamsPath<"userId" | "postId">;
8309
- * // = `${string}{userId}${string}` & `${string}{postId}${string}`
8310
- * // =
8311
- * // | `${string}{userId}${string}{postId}${string}`
8312
- * // | `${string}{postId}${string}{userId}${string}`
8313
- * let userPostPath: UserPostPath;
8314
- * userPostPath = "/users/posts"; // ❌ invalid
8315
- * userPostPath = "/users/{userId}"; // ❌ invalid
8316
- * userPostPath = "/posts/{postId}"; // ❌ invalid
8317
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
8318
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
8319
- */
8320
- type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
8321
- /**
8322
- * Represents a path with a single parameter.
8323
- * The path must have at least one of the parameters in the form of `{paramName}`.
8324
- * @param Param - The name of the parameter.
8325
- * @returns A string representing the path with the parameter.
8326
- * @example
8327
- * ```ts
8328
- * type UserPostPath = ParamPath<"userId" | "postId">;
8329
- * // = `${string}{userId}${string}` | `${string}{postId}${string}`
8330
- * let userPostPath: UserPostPath;
8331
- * userPostPath = "/users/posts"; // ❌ invalid
8332
- * userPostPath = "/users/{userId}"; // ✅ valid
8333
- * userPostPath = "/posts/{postId}"; // ✅ valid
8334
- * userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
8335
- * userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
8336
- */
8337
- type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
8338
- /**
8339
- * Converts union types to intersection types.
8292
+ * Defines a union of all valid RFC 6570 URI Template expressions for a given
8293
+ * parameter name.
8294
+ *
8295
+ * RFC 6570 specifies a syntax for URI templates, allowing for variable
8296
+ * expansion. This type captures all Level 1-4 operator expressions for a
8297
+ * single, named variable.
8340
8298
  *
8341
- * @template U - The union type to convert.
8342
- * @returns The intersection type of the union.
8299
+ * The supported expression types are:
8300
+ * - `{Param}`: Simple string expansion
8301
+ * - `+{Param}`: Reserved string expansion
8302
+ * - `#{Param}`: Fragment expansion
8303
+ * - `{.Param}`: Label expansion with a dot-prefix
8304
+ * - `{/Param}`: Path segment expansion
8305
+ * - `{;Param}`: Path-style parameter expansion
8306
+ * - `{?Param}`: Query component expansion
8307
+ * - `{&Param}`: Query continuation expansion
8308
+ *
8309
+ * @template Param The name of the parameter to be used in the expressions.
8343
8310
  * @example
8344
8311
  * ```ts
8345
- * type A = { a: string };
8346
- * type B = { b: number };
8347
- * type AorB = A | B;
8348
- * type AandB = UnionToIntersection<AorB>;
8349
- * // AandB = { a: string; b: number }
8312
+ * type UserIdExpression = Rfc6570Expression<"userId">;
8313
+ *
8314
+ * // The variable `userPath` can be assigned any of the valid expressions.
8315
+ * const userPath: UserIdExpression = "{/userId}";
8316
+ * ```
8317
+ * @see {@link https://tools.ietf.org/html/rfc6570} for the full specification.
8350
8318
  */
8351
- type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
8319
+ type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
8352
8320
  //#endregion
8353
8321
  //#region src/federation/context.d.ts
8354
8322
  /**
@@ -8437,9 +8405,7 @@ interface Context<TContextData> {
8437
8405
  * @throws {TypeError} If values are invalid.
8438
8406
  * @since 0.7.0
8439
8407
  */
8440
- getObjectUri<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8441
- typeId: URL;
8442
- }, values: Record<string, string>): URL;
8408
+ getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
8443
8409
  /**
8444
8410
  * Builds the URI of an actor's outbox with the given identifier.
8445
8411
  * @param identifier The actor's identifier.
@@ -8753,9 +8719,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
8753
8719
  * @throws {TypeError} If values are invalid.
8754
8720
  * @since 0.7.0
8755
8721
  */
8756
- getObject<TObject extends Object$1>(cls: (new (...args: any[]) => TObject) & {
8757
- typeId: URL;
8758
- }, values: Record<string, string>): Promise<TObject | null>;
8722
+ getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
8759
8723
  /**
8760
8724
  * Gets the public key of the sender, if any exists and it is verified.
8761
8725
  * Otherwise, `null` is returned.
@@ -8899,9 +8863,7 @@ type ParseUriResult =
8899
8863
  * The case of an object URI.
8900
8864
  */ | {
8901
8865
  readonly type: "object";
8902
- readonly class: (new (...args: any[]) => Object$1) & {
8903
- typeId: URL;
8904
- };
8866
+ readonly class: ConstructorWithTypeId<Object$1>;
8905
8867
  readonly typeId: URL;
8906
8868
  readonly values: Record<string, string>;
8907
8869
  }