@fedify/fedify 1.9.0-pr.407.1544 → 1.9.0-pr.421.1747
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.
- package/dist/{actor-Ch5yFYFG.d.ts → actor-C1Euqngb.d.ts} +1 -1
- package/dist/{actor-CeBu8hLy.js → actor-CNV1ck1S.js} +1 -1
- package/dist/actor-DaFSkBV-.cjs +42606 -0
- package/dist/{actor-BY--uubW.js → actor-J-9oLs-V.js} +6951 -2127
- package/dist/actor-Ydzhc8dj.d.cts +128 -0
- package/dist/{authdocloader-C89pKQKE.js → authdocloader-D4qQkXT9.js} +6 -6
- package/dist/{authdocloader-jHzDqZo2.js → authdocloader-DKEFUico.js} +3 -3
- package/dist/authdocloader-DM1vtjbY.cjs +58 -0
- package/dist/{builder-ClMKBUks.js → builder-2yBgTZpU.js} +14 -8
- package/dist/chunk-DqRYRqnO.cjs +34 -0
- package/dist/client-DjT_tegg.d.cts +294 -0
- package/dist/{client-DB3mC1oJ.js → client-nAHORZym.js} +1 -1
- package/dist/compat/mod.cjs +10 -0
- package/dist/compat/mod.d.cts +13 -0
- package/dist/compat/mod.d.ts +7 -7
- package/dist/compat/mod.js +5 -5
- package/dist/compat/transformers.test.js +16 -16
- package/dist/compat-DmDDELst.cjs +4 -0
- package/dist/compat-nxUqe4Z-.js +4 -0
- package/dist/{context-DFruNLny.d.ts → context-CXUibY4L.d.ts} +179 -116
- package/dist/context-CwUAkopp.d.cts +2324 -0
- package/dist/{docloader-BJTPo7_i.js → docloader-BRrqMbX0.js} +188 -8
- package/dist/docloader-D-MrRyHl.d.cts +219 -0
- package/dist/docloader-FAn755Ez.cjs +4862 -0
- package/dist/{esm-BjUpSZdQ.js → esm-CZDlG8Yt.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.d.ts +3 -0
- package/dist/federation/idempotency.test.js +202 -0
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +4 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +29 -0
- package/dist/federation/mod.d.cts +13 -0
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +15 -15
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
- package/dist/federation-H2_En3j5.cjs +244 -0
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-sU0Wj-tv.js → http-B0Rp4UOp.js} +7 -7
- package/dist/http-B1_DzfAU.d.cts +253 -0
- package/dist/{http-3pAI0mqb.js → http-CyMjXkYA.js} +3 -3
- package/dist/http-D7xo4v5M.cjs +826 -0
- package/dist/{http-D8Q4xH0d.d.ts → http-wsGR6KkT.d.ts} +1 -1
- package/dist/{inbox-Dg825gXU.js → inbox-CAt-VuhL.js} +29 -7
- package/dist/key-BZBF55sg.cjs +10 -0
- package/dist/key-CKScBmP1.js +10 -0
- package/dist/{key-l5QMtRss.js → key-D7A24D7c.js} +5 -5
- package/dist/key-DFZ_CvG0.cjs +290 -0
- package/dist/{key-RzI0hV7H.js → key-DbX-_KvI.js} +2 -2
- package/dist/{key-BWgRsIwz.js → key-uBD0-2wc.js} +3 -3
- package/dist/{keycache-BGlP5YTm.js → keycache-DVVM5m9f.js} +1 -1
- package/dist/{keys-BRbwmdDJ.js → keys-Hl2h0ZG0.js} +1 -1
- package/dist/kv-63Cil1MD.d.cts +81 -0
- package/dist/{ld-C9E9DPBz.js → ld-e-G3iYdn.js} +4 -4
- package/dist/{lookup-oZxe6kZr.js → lookup-DNGo5BR6.js} +21 -12
- package/dist/lookup-DSSOyhz2.cjs +137 -0
- package/dist/{lookup-CN62_yPh.js → lookup-Zzj9McvA.js} +4 -4
- package/dist/{middleware-extU7qDB.js → middleware-4mR2kSKQ.js} +96 -65
- package/dist/middleware-B-YooLeX.cjs +17 -0
- package/dist/middleware-BG51vY-0.js +17 -0
- package/dist/{middleware-jQ1GPh2U.js → middleware-BWW4nCk1.js} +57 -54
- package/dist/middleware-CVb0KXM7.cjs +4271 -0
- package/dist/middleware-DXunR6sJ.js +26 -0
- package/dist/mod-BUbqxBev.d.cts +307 -0
- package/dist/{mod-CiXjux2r.d.ts → mod-BcObK1Lz.d.ts} +2 -2
- package/dist/mod-C2tOeRkN.d.cts +1 -0
- package/dist/{mod-Cy6pkZSn.d.ts → mod-CDObsV1d.d.ts} +19 -1
- package/dist/{mod-BAuhKa9d.d.ts → mod-CIbqfZW0.d.ts} +1 -1
- package/dist/{mod-B7Pc0I7F.d.ts → mod-DgcYoyZK.d.ts} +2 -2
- package/dist/mod-Dt-G9ZOS.d.cts +102 -0
- package/dist/mod-FZd39qVq.d.cts +1 -0
- package/dist/mod-fjqfsrty.d.cts +266 -0
- package/dist/mod-jQ4OODsl.d.cts +113 -0
- package/dist/mod-mXx9V0q5.d.cts +80 -0
- package/dist/mod.cjs +152 -0
- package/dist/mod.d.cts +17 -0
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +20 -20
- package/dist/mq-B7R1Q-M5.d.cts +140 -0
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +13 -0
- package/dist/nodeinfo/mod.d.cts +5 -0
- package/dist/nodeinfo/mod.js +6 -6
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
- package/dist/nodeinfo-DfycQ8Wf.js +4 -0
- package/dist/owner-6KSEp9eV.d.cts +67 -0
- package/dist/{owner-D38zBIMc.d.ts → owner-BbeUDvOu.d.ts} +2 -2
- package/dist/{owner-B836JKuZ.js → owner-C4sPn9c4.js} +2 -2
- package/dist/{proof-D63mA1Rv.js → proof-C3QoDkRC.js} +3 -3
- package/dist/proof-DT8hWqV6.cjs +673 -0
- package/dist/{proof-DLwnfKak.js → proof-iy7cOAt6.js} +9 -9
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.d.ts +3 -0
- package/dist/runtime/link.test.js +61 -0
- package/dist/runtime/mod.cjs +25 -0
- package/dist/runtime/mod.d.cts +6 -0
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +10 -10
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/runtime-C58AJWSv.cjs +4 -0
- package/dist/runtime-DPYEDf-o.js +4 -0
- package/dist/{send-CE9GFSCd.js → send-BOn6IbzV.js} +2 -2
- package/dist/sig/http.test.js +9 -9
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +30 -0
- package/dist/sig/mod.d.cts +8 -0
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +10 -10
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/sig-ByHXzqUi.cjs +4 -0
- package/dist/sig-Cj3tk-ig.js +4 -0
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +385 -110
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-B2tgn0a4.js → testing-DaKcIaFF.js} +2 -2
- package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
- package/dist/transformers-CoBS-oFG.cjs +116 -0
- package/dist/{type-OboVsUha.js → type-D50ufokc.js} +7261 -2257
- package/dist/{types-BLr6AjjI.js → types-BCmRSiaD.js} +4 -4
- package/dist/types-wG2EuWYS.cjs +488 -0
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +255 -5
- package/dist/vocab/mod.cjs +87 -0
- package/dist/vocab/mod.d.cts +6 -0
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +7 -7
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +433 -9
- package/dist/vocab-B_AjsPE2.cjs +291 -0
- package/dist/{vocab-BEEm2I6u.d.ts → vocab-CDHNj5zp.d.ts} +290 -0
- package/dist/vocab-Cfs0937i.d.cts +14919 -0
- package/dist/{vocab-Z7alheNv.js → vocab-CtBL6Aur.js} +26 -17
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +9 -0
- package/dist/webfinger/mod.d.cts +4 -0
- package/dist/webfinger/mod.js +6 -6
- package/dist/webfinger-BjOEdFPs.cjs +4 -0
- package/dist/webfinger-De_bU0iE.js +4 -0
- package/dist/x/cfworkers.cjs +100 -0
- package/dist/x/cfworkers.d.cts +59 -0
- package/dist/x/cfworkers.js +3 -3
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.cjs +61 -0
- package/dist/x/hono.d.cts +54 -0
- package/dist/x/hono.d.ts +6 -6
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.cjs +69 -0
- package/dist/x/sveltekit.d.cts +46 -0
- package/dist/x/sveltekit.d.ts +6 -6
- package/dist/x/sveltekit.js +3 -3
- package/package.json +68 -13
- package/dist/compat-Bb5myD13.js +0 -4
- package/dist/key-_XZAOE9D.js +0 -10
- package/dist/middleware-Ccahu3ql.js +0 -26
- package/dist/middleware-fO804EqJ.js +0 -17
- package/dist/nodeinfo-CyEbLjHs.js +0 -4
- package/dist/runtime-BSkOVUWM.js +0 -4
- package/dist/sig-BXJO--F9.js +0 -4
- package/dist/webfinger-C3GIyXIg.js +0 -4
package/dist/testing/mod.d.ts
CHANGED
@@ -450,6 +450,7 @@ declare class Object$1 {
|
|
450
450
|
contextLoader?: DocumentLoader;
|
451
451
|
suppressError?: boolean;
|
452
452
|
tracerProvider?: TracerProvider;
|
453
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
453
454
|
}): AsyncIterable<Object$1 | Link | PropertyValue>;
|
454
455
|
/**
|
455
456
|
* Similar to
|
@@ -466,6 +467,7 @@ declare class Object$1 {
|
|
466
467
|
contextLoader?: DocumentLoader;
|
467
468
|
suppressError?: boolean;
|
468
469
|
tracerProvider?: TracerProvider;
|
470
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
469
471
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
470
472
|
/**
|
471
473
|
* Similar to
|
@@ -482,6 +484,7 @@ declare class Object$1 {
|
|
482
484
|
contextLoader?: DocumentLoader;
|
483
485
|
suppressError?: boolean;
|
484
486
|
tracerProvider?: TracerProvider;
|
487
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
485
488
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
486
489
|
/**
|
487
490
|
* Similar to
|
@@ -497,6 +500,7 @@ declare class Object$1 {
|
|
497
500
|
contextLoader?: DocumentLoader;
|
498
501
|
suppressError?: boolean;
|
499
502
|
tracerProvider?: TracerProvider;
|
503
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
500
504
|
}): Promise<Object$1 | null>;
|
501
505
|
/**
|
502
506
|
* Similar to
|
@@ -512,6 +516,7 @@ declare class Object$1 {
|
|
512
516
|
contextLoader?: DocumentLoader;
|
513
517
|
suppressError?: boolean;
|
514
518
|
tracerProvider?: TracerProvider;
|
519
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
515
520
|
}): AsyncIterable<Object$1>;
|
516
521
|
/** The content or textual representation of the Object encoded as a JSON
|
517
522
|
* string. By default, the value of `content` is HTML. The `mediaType`
|
@@ -546,6 +551,7 @@ declare class Object$1 {
|
|
546
551
|
contextLoader?: DocumentLoader;
|
547
552
|
suppressError?: boolean;
|
548
553
|
tracerProvider?: TracerProvider;
|
554
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
549
555
|
}): AsyncIterable<Object$1 | Link>;
|
550
556
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
551
557
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
@@ -576,6 +582,7 @@ declare class Object$1 {
|
|
576
582
|
contextLoader?: DocumentLoader;
|
577
583
|
suppressError?: boolean;
|
578
584
|
tracerProvider?: TracerProvider;
|
585
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
579
586
|
}): AsyncIterable<Object$1 | Link>;
|
580
587
|
/**
|
581
588
|
* Similar to
|
@@ -592,6 +599,7 @@ declare class Object$1 {
|
|
592
599
|
contextLoader?: DocumentLoader;
|
593
600
|
suppressError?: boolean;
|
594
601
|
tracerProvider?: TracerProvider;
|
602
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
595
603
|
}): Promise<Image | null>;
|
596
604
|
/**
|
597
605
|
* Similar to
|
@@ -608,6 +616,7 @@ declare class Object$1 {
|
|
608
616
|
contextLoader?: DocumentLoader;
|
609
617
|
suppressError?: boolean;
|
610
618
|
tracerProvider?: TracerProvider;
|
619
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
611
620
|
}): AsyncIterable<Image>;
|
612
621
|
/**
|
613
622
|
* Similar to
|
@@ -624,6 +633,7 @@ declare class Object$1 {
|
|
624
633
|
contextLoader?: DocumentLoader;
|
625
634
|
suppressError?: boolean;
|
626
635
|
tracerProvider?: TracerProvider;
|
636
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
627
637
|
}): Promise<Image | null>;
|
628
638
|
/**
|
629
639
|
* Similar to
|
@@ -640,6 +650,7 @@ declare class Object$1 {
|
|
640
650
|
contextLoader?: DocumentLoader;
|
641
651
|
suppressError?: boolean;
|
642
652
|
tracerProvider?: TracerProvider;
|
653
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
643
654
|
}): AsyncIterable<Image>;
|
644
655
|
/**
|
645
656
|
* Similar to
|
@@ -655,6 +666,7 @@ declare class Object$1 {
|
|
655
666
|
contextLoader?: DocumentLoader;
|
656
667
|
suppressError?: boolean;
|
657
668
|
tracerProvider?: TracerProvider;
|
669
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
658
670
|
}): Promise<Object$1 | Link | null>;
|
659
671
|
/**
|
660
672
|
* Similar to
|
@@ -670,6 +682,7 @@ declare class Object$1 {
|
|
670
682
|
contextLoader?: DocumentLoader;
|
671
683
|
suppressError?: boolean;
|
672
684
|
tracerProvider?: TracerProvider;
|
685
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
673
686
|
}): AsyncIterable<Object$1 | Link>;
|
674
687
|
/**
|
675
688
|
* Similar to
|
@@ -685,6 +698,7 @@ declare class Object$1 {
|
|
685
698
|
contextLoader?: DocumentLoader;
|
686
699
|
suppressError?: boolean;
|
687
700
|
tracerProvider?: TracerProvider;
|
701
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
688
702
|
}): Promise<Object$1 | Link | null>;
|
689
703
|
/**
|
690
704
|
* Similar to
|
@@ -700,6 +714,7 @@ declare class Object$1 {
|
|
700
714
|
contextLoader?: DocumentLoader;
|
701
715
|
suppressError?: boolean;
|
702
716
|
tracerProvider?: TracerProvider;
|
717
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
703
718
|
}): AsyncIterable<Object$1 | Link>;
|
704
719
|
/**
|
705
720
|
* Similar to
|
@@ -714,6 +729,7 @@ declare class Object$1 {
|
|
714
729
|
contextLoader?: DocumentLoader;
|
715
730
|
suppressError?: boolean;
|
716
731
|
tracerProvider?: TracerProvider;
|
732
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
717
733
|
}): Promise<Link | Object$1 | null>;
|
718
734
|
/**
|
719
735
|
* Similar to
|
@@ -728,6 +744,7 @@ declare class Object$1 {
|
|
728
744
|
contextLoader?: DocumentLoader;
|
729
745
|
suppressError?: boolean;
|
730
746
|
tracerProvider?: TracerProvider;
|
747
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
731
748
|
}): AsyncIterable<Link | Object$1>;
|
732
749
|
/** The date and time at which the object was published.
|
733
750
|
*/
|
@@ -746,6 +763,7 @@ declare class Object$1 {
|
|
746
763
|
contextLoader?: DocumentLoader;
|
747
764
|
suppressError?: boolean;
|
748
765
|
tracerProvider?: TracerProvider;
|
766
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
749
767
|
}): Promise<Collection | null>;
|
750
768
|
/**
|
751
769
|
* Similar to
|
@@ -767,6 +785,7 @@ declare class Object$1 {
|
|
767
785
|
contextLoader?: DocumentLoader;
|
768
786
|
suppressError?: boolean;
|
769
787
|
tracerProvider?: TracerProvider;
|
788
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
770
789
|
}): Promise<Collection | null>;
|
771
790
|
/**
|
772
791
|
* Similar to
|
@@ -788,6 +807,7 @@ declare class Object$1 {
|
|
788
807
|
contextLoader?: DocumentLoader;
|
789
808
|
suppressError?: boolean;
|
790
809
|
tracerProvider?: TracerProvider;
|
810
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
791
811
|
}): Promise<Collection | null>;
|
792
812
|
/**
|
793
813
|
* Similar to
|
@@ -803,6 +823,7 @@ declare class Object$1 {
|
|
803
823
|
contextLoader?: DocumentLoader;
|
804
824
|
suppressError?: boolean;
|
805
825
|
tracerProvider?: TracerProvider;
|
826
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
806
827
|
}): Promise<Collection | null>;
|
807
828
|
/** The date and time describing the actual or expected starting time of
|
808
829
|
* the object. When used with an {@link Activity} object, for instance,
|
@@ -834,6 +855,7 @@ declare class Object$1 {
|
|
834
855
|
contextLoader?: DocumentLoader;
|
835
856
|
suppressError?: boolean;
|
836
857
|
tracerProvider?: TracerProvider;
|
858
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
837
859
|
}): AsyncIterable<Object$1 | Link>;
|
838
860
|
/** The date and time at which the object was updated.
|
839
861
|
*/
|
@@ -858,6 +880,7 @@ declare class Object$1 {
|
|
858
880
|
contextLoader?: DocumentLoader;
|
859
881
|
suppressError?: boolean;
|
860
882
|
tracerProvider?: TracerProvider;
|
883
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
861
884
|
}): Promise<Object$1 | null>;
|
862
885
|
/**
|
863
886
|
* Similar to
|
@@ -873,6 +896,7 @@ declare class Object$1 {
|
|
873
896
|
contextLoader?: DocumentLoader;
|
874
897
|
suppressError?: boolean;
|
875
898
|
tracerProvider?: TracerProvider;
|
899
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
876
900
|
}): AsyncIterable<Object$1>;
|
877
901
|
/**
|
878
902
|
* Similar to
|
@@ -888,6 +912,7 @@ declare class Object$1 {
|
|
888
912
|
contextLoader?: DocumentLoader;
|
889
913
|
suppressError?: boolean;
|
890
914
|
tracerProvider?: TracerProvider;
|
915
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
891
916
|
}): Promise<Object$1 | null>;
|
892
917
|
/**
|
893
918
|
* Similar to
|
@@ -903,6 +928,7 @@ declare class Object$1 {
|
|
903
928
|
contextLoader?: DocumentLoader;
|
904
929
|
suppressError?: boolean;
|
905
930
|
tracerProvider?: TracerProvider;
|
931
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
906
932
|
}): AsyncIterable<Object$1>;
|
907
933
|
/**
|
908
934
|
* Similar to
|
@@ -918,6 +944,7 @@ declare class Object$1 {
|
|
918
944
|
contextLoader?: DocumentLoader;
|
919
945
|
suppressError?: boolean;
|
920
946
|
tracerProvider?: TracerProvider;
|
947
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
921
948
|
}): Promise<Object$1 | null>;
|
922
949
|
/**
|
923
950
|
* Similar to
|
@@ -933,6 +960,7 @@ declare class Object$1 {
|
|
933
960
|
contextLoader?: DocumentLoader;
|
934
961
|
suppressError?: boolean;
|
935
962
|
tracerProvider?: TracerProvider;
|
963
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
936
964
|
}): AsyncIterable<Object$1>;
|
937
965
|
/**
|
938
966
|
* Similar to
|
@@ -948,6 +976,7 @@ declare class Object$1 {
|
|
948
976
|
contextLoader?: DocumentLoader;
|
949
977
|
suppressError?: boolean;
|
950
978
|
tracerProvider?: TracerProvider;
|
979
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
951
980
|
}): Promise<Object$1 | null>;
|
952
981
|
/**
|
953
982
|
* Similar to
|
@@ -963,6 +992,7 @@ declare class Object$1 {
|
|
963
992
|
contextLoader?: DocumentLoader;
|
964
993
|
suppressError?: boolean;
|
965
994
|
tracerProvider?: TracerProvider;
|
995
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
966
996
|
}): AsyncIterable<Object$1>;
|
967
997
|
/** When used on an {@link Object}, identifies the MIME media type of the value
|
968
998
|
* of the `content` property. If not specified, the `content` property is
|
@@ -998,6 +1028,7 @@ declare class Object$1 {
|
|
998
1028
|
contextLoader?: DocumentLoader;
|
999
1029
|
suppressError?: boolean;
|
1000
1030
|
tracerProvider?: TracerProvider;
|
1031
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1001
1032
|
}): Promise<DataIntegrityProof | null>;
|
1002
1033
|
/**
|
1003
1034
|
* Similar to
|
@@ -1012,6 +1043,7 @@ declare class Object$1 {
|
|
1012
1043
|
contextLoader?: DocumentLoader;
|
1013
1044
|
suppressError?: boolean;
|
1014
1045
|
tracerProvider?: TracerProvider;
|
1046
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1015
1047
|
}): AsyncIterable<DataIntegrityProof>;
|
1016
1048
|
/**
|
1017
1049
|
* Converts this object to a JSON-LD structure.
|
@@ -1044,11 +1076,13 @@ declare class Object$1 {
|
|
1044
1076
|
documentLoader?: DocumentLoader;
|
1045
1077
|
contextLoader?: DocumentLoader;
|
1046
1078
|
tracerProvider?: TracerProvider;
|
1079
|
+
baseUrl?: URL;
|
1047
1080
|
}): Promise<Object$1>;
|
1048
1081
|
protected static __fromJsonLd__Object__(json: unknown, span: Span, options?: {
|
1049
1082
|
documentLoader?: DocumentLoader;
|
1050
1083
|
contextLoader?: DocumentLoader;
|
1051
1084
|
tracerProvider?: TracerProvider;
|
1085
|
+
baseUrl?: URL;
|
1052
1086
|
}): Promise<Object$1>;
|
1053
1087
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1054
1088
|
}
|
@@ -1226,6 +1260,7 @@ declare class Activity extends Object$1 {
|
|
1226
1260
|
contextLoader?: DocumentLoader;
|
1227
1261
|
suppressError?: boolean;
|
1228
1262
|
tracerProvider?: TracerProvider;
|
1263
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1229
1264
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
1230
1265
|
/**
|
1231
1266
|
* Similar to
|
@@ -1242,6 +1277,7 @@ declare class Activity extends Object$1 {
|
|
1242
1277
|
contextLoader?: DocumentLoader;
|
1243
1278
|
suppressError?: boolean;
|
1244
1279
|
tracerProvider?: TracerProvider;
|
1280
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1245
1281
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
1246
1282
|
/**
|
1247
1283
|
* Similar to
|
@@ -1258,6 +1294,7 @@ declare class Activity extends Object$1 {
|
|
1258
1294
|
contextLoader?: DocumentLoader;
|
1259
1295
|
suppressError?: boolean;
|
1260
1296
|
tracerProvider?: TracerProvider;
|
1297
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1261
1298
|
}): Promise<Object$1 | null>;
|
1262
1299
|
/**
|
1263
1300
|
* Similar to
|
@@ -1274,6 +1311,7 @@ declare class Activity extends Object$1 {
|
|
1274
1311
|
contextLoader?: DocumentLoader;
|
1275
1312
|
suppressError?: boolean;
|
1276
1313
|
tracerProvider?: TracerProvider;
|
1314
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1277
1315
|
}): AsyncIterable<Object$1>;
|
1278
1316
|
/**
|
1279
1317
|
* Similar to
|
@@ -1293,6 +1331,7 @@ declare class Activity extends Object$1 {
|
|
1293
1331
|
contextLoader?: DocumentLoader;
|
1294
1332
|
suppressError?: boolean;
|
1295
1333
|
tracerProvider?: TracerProvider;
|
1334
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1296
1335
|
}): Promise<Object$1 | null>;
|
1297
1336
|
/**
|
1298
1337
|
* Similar to
|
@@ -1312,6 +1351,7 @@ declare class Activity extends Object$1 {
|
|
1312
1351
|
contextLoader?: DocumentLoader;
|
1313
1352
|
suppressError?: boolean;
|
1314
1353
|
tracerProvider?: TracerProvider;
|
1354
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1315
1355
|
}): AsyncIterable<Object$1>;
|
1316
1356
|
/**
|
1317
1357
|
* Similar to
|
@@ -1328,6 +1368,7 @@ declare class Activity extends Object$1 {
|
|
1328
1368
|
contextLoader?: DocumentLoader;
|
1329
1369
|
suppressError?: boolean;
|
1330
1370
|
tracerProvider?: TracerProvider;
|
1371
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1331
1372
|
}): Promise<Object$1 | null>;
|
1332
1373
|
/**
|
1333
1374
|
* Similar to
|
@@ -1344,6 +1385,7 @@ declare class Activity extends Object$1 {
|
|
1344
1385
|
contextLoader?: DocumentLoader;
|
1345
1386
|
suppressError?: boolean;
|
1346
1387
|
tracerProvider?: TracerProvider;
|
1388
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1347
1389
|
}): AsyncIterable<Object$1>;
|
1348
1390
|
/**
|
1349
1391
|
* Similar to
|
@@ -1361,6 +1403,7 @@ declare class Activity extends Object$1 {
|
|
1361
1403
|
contextLoader?: DocumentLoader;
|
1362
1404
|
suppressError?: boolean;
|
1363
1405
|
tracerProvider?: TracerProvider;
|
1406
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1364
1407
|
}): Promise<Object$1 | null>;
|
1365
1408
|
/**
|
1366
1409
|
* Similar to
|
@@ -1378,6 +1421,7 @@ declare class Activity extends Object$1 {
|
|
1378
1421
|
contextLoader?: DocumentLoader;
|
1379
1422
|
suppressError?: boolean;
|
1380
1423
|
tracerProvider?: TracerProvider;
|
1424
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1381
1425
|
}): AsyncIterable<Object$1>;
|
1382
1426
|
/**
|
1383
1427
|
* Similar to
|
@@ -1393,6 +1437,7 @@ declare class Activity extends Object$1 {
|
|
1393
1437
|
contextLoader?: DocumentLoader;
|
1394
1438
|
suppressError?: boolean;
|
1395
1439
|
tracerProvider?: TracerProvider;
|
1440
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1396
1441
|
}): Promise<Object$1 | null>;
|
1397
1442
|
/**
|
1398
1443
|
* Similar to
|
@@ -1408,6 +1453,7 @@ declare class Activity extends Object$1 {
|
|
1408
1453
|
contextLoader?: DocumentLoader;
|
1409
1454
|
suppressError?: boolean;
|
1410
1455
|
tracerProvider?: TracerProvider;
|
1456
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1411
1457
|
}): AsyncIterable<Object$1>;
|
1412
1458
|
/**
|
1413
1459
|
* Converts this object to a JSON-LD structure.
|
@@ -1440,11 +1486,13 @@ declare class Activity extends Object$1 {
|
|
1440
1486
|
documentLoader?: DocumentLoader;
|
1441
1487
|
contextLoader?: DocumentLoader;
|
1442
1488
|
tracerProvider?: TracerProvider;
|
1489
|
+
baseUrl?: URL;
|
1443
1490
|
}): Promise<Activity>;
|
1444
1491
|
protected static __fromJsonLd__Activity__(json: unknown, span: Span, options?: {
|
1445
1492
|
documentLoader?: DocumentLoader;
|
1446
1493
|
contextLoader?: DocumentLoader;
|
1447
1494
|
tracerProvider?: TracerProvider;
|
1495
|
+
baseUrl?: URL;
|
1448
1496
|
}): Promise<Activity>;
|
1449
1497
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1450
1498
|
}
|
@@ -1535,11 +1583,13 @@ declare class PropertyValue {
|
|
1535
1583
|
documentLoader?: DocumentLoader;
|
1536
1584
|
contextLoader?: DocumentLoader;
|
1537
1585
|
tracerProvider?: TracerProvider;
|
1586
|
+
baseUrl?: URL;
|
1538
1587
|
}): Promise<PropertyValue>;
|
1539
1588
|
protected static __fromJsonLd__PropertyValue__(json: unknown, span: Span, options?: {
|
1540
1589
|
documentLoader?: DocumentLoader;
|
1541
1590
|
contextLoader?: DocumentLoader;
|
1542
1591
|
tracerProvider?: TracerProvider;
|
1592
|
+
baseUrl?: URL;
|
1543
1593
|
}): Promise<PropertyValue>;
|
1544
1594
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1545
1595
|
}
|
@@ -1632,11 +1682,13 @@ declare class DidService {
|
|
1632
1682
|
documentLoader?: DocumentLoader;
|
1633
1683
|
contextLoader?: DocumentLoader;
|
1634
1684
|
tracerProvider?: TracerProvider;
|
1685
|
+
baseUrl?: URL;
|
1635
1686
|
}): Promise<DidService>;
|
1636
1687
|
protected static __fromJsonLd__DidService__(json: unknown, span: Span, options?: {
|
1637
1688
|
documentLoader?: DocumentLoader;
|
1638
1689
|
contextLoader?: DocumentLoader;
|
1639
1690
|
tracerProvider?: TracerProvider;
|
1691
|
+
baseUrl?: URL;
|
1640
1692
|
}): Promise<DidService>;
|
1641
1693
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1642
1694
|
}
|
@@ -1716,6 +1768,7 @@ declare class DataIntegrityProof {
|
|
1716
1768
|
contextLoader?: DocumentLoader;
|
1717
1769
|
suppressError?: boolean;
|
1718
1770
|
tracerProvider?: TracerProvider;
|
1771
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1719
1772
|
}): Promise<Multikey | null>;
|
1720
1773
|
/** The reason the proof was created.
|
1721
1774
|
*
|
@@ -1763,11 +1816,13 @@ declare class DataIntegrityProof {
|
|
1763
1816
|
documentLoader?: DocumentLoader;
|
1764
1817
|
contextLoader?: DocumentLoader;
|
1765
1818
|
tracerProvider?: TracerProvider;
|
1819
|
+
baseUrl?: URL;
|
1766
1820
|
}): Promise<DataIntegrityProof>;
|
1767
1821
|
protected static __fromJsonLd__DataIntegrityProof__(json: unknown, span: Span, options?: {
|
1768
1822
|
documentLoader?: DocumentLoader;
|
1769
1823
|
contextLoader?: DocumentLoader;
|
1770
1824
|
tracerProvider?: TracerProvider;
|
1825
|
+
baseUrl?: URL;
|
1771
1826
|
}): Promise<DataIntegrityProof>;
|
1772
1827
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1773
1828
|
}
|
@@ -1831,6 +1886,7 @@ declare class CryptographicKey {
|
|
1831
1886
|
contextLoader?: DocumentLoader;
|
1832
1887
|
suppressError?: boolean;
|
1833
1888
|
tracerProvider?: TracerProvider;
|
1889
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1834
1890
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
1835
1891
|
/** A PEM-encoded public key.
|
1836
1892
|
*/
|
@@ -1866,11 +1922,13 @@ declare class CryptographicKey {
|
|
1866
1922
|
documentLoader?: DocumentLoader;
|
1867
1923
|
contextLoader?: DocumentLoader;
|
1868
1924
|
tracerProvider?: TracerProvider;
|
1925
|
+
baseUrl?: URL;
|
1869
1926
|
}): Promise<CryptographicKey>;
|
1870
1927
|
protected static __fromJsonLd__CryptographicKey__(json: unknown, span: Span, options?: {
|
1871
1928
|
documentLoader?: DocumentLoader;
|
1872
1929
|
contextLoader?: DocumentLoader;
|
1873
1930
|
tracerProvider?: TracerProvider;
|
1931
|
+
baseUrl?: URL;
|
1874
1932
|
}): Promise<CryptographicKey>;
|
1875
1933
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1876
1934
|
}
|
@@ -1937,6 +1995,7 @@ declare class Multikey {
|
|
1937
1995
|
contextLoader?: DocumentLoader;
|
1938
1996
|
suppressError?: boolean;
|
1939
1997
|
tracerProvider?: TracerProvider;
|
1998
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
1940
1999
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
1941
2000
|
/** A [Multibase]-encoded value of a [Multicodec] prefix and the key.
|
1942
2001
|
*
|
@@ -1975,11 +2034,13 @@ declare class Multikey {
|
|
1975
2034
|
documentLoader?: DocumentLoader;
|
1976
2035
|
contextLoader?: DocumentLoader;
|
1977
2036
|
tracerProvider?: TracerProvider;
|
2037
|
+
baseUrl?: URL;
|
1978
2038
|
}): Promise<Multikey>;
|
1979
2039
|
protected static __fromJsonLd__Multikey__(json: unknown, span: Span, options?: {
|
1980
2040
|
documentLoader?: DocumentLoader;
|
1981
2041
|
contextLoader?: DocumentLoader;
|
1982
2042
|
tracerProvider?: TracerProvider;
|
2043
|
+
baseUrl?: URL;
|
1983
2044
|
}): Promise<Multikey>;
|
1984
2045
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
1985
2046
|
}
|
@@ -2191,6 +2252,7 @@ declare class Application extends Object$1 {
|
|
2191
2252
|
contextLoader?: DocumentLoader;
|
2192
2253
|
suppressError?: boolean;
|
2193
2254
|
tracerProvider?: TracerProvider;
|
2255
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2194
2256
|
}): Promise<CryptographicKey | null>;
|
2195
2257
|
/**
|
2196
2258
|
* Similar to
|
@@ -2205,6 +2267,7 @@ declare class Application extends Object$1 {
|
|
2205
2267
|
contextLoader?: DocumentLoader;
|
2206
2268
|
suppressError?: boolean;
|
2207
2269
|
tracerProvider?: TracerProvider;
|
2270
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2208
2271
|
}): AsyncIterable<CryptographicKey>;
|
2209
2272
|
/**
|
2210
2273
|
* Similar to
|
@@ -2222,6 +2285,7 @@ declare class Application extends Object$1 {
|
|
2222
2285
|
contextLoader?: DocumentLoader;
|
2223
2286
|
suppressError?: boolean;
|
2224
2287
|
tracerProvider?: TracerProvider;
|
2288
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2225
2289
|
}): Promise<Multikey | null>;
|
2226
2290
|
/**
|
2227
2291
|
* Similar to
|
@@ -2239,6 +2303,7 @@ declare class Application extends Object$1 {
|
|
2239
2303
|
contextLoader?: DocumentLoader;
|
2240
2304
|
suppressError?: boolean;
|
2241
2305
|
tracerProvider?: TracerProvider;
|
2306
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2242
2307
|
}): AsyncIterable<Multikey>;
|
2243
2308
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
2244
2309
|
* automatically approved, but instead are examined by a person who may accept
|
@@ -2273,6 +2338,7 @@ declare class Application extends Object$1 {
|
|
2273
2338
|
contextLoader?: DocumentLoader;
|
2274
2339
|
suppressError?: boolean;
|
2275
2340
|
tracerProvider?: TracerProvider;
|
2341
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2276
2342
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2277
2343
|
/**
|
2278
2344
|
* Similar to
|
@@ -2296,6 +2362,7 @@ declare class Application extends Object$1 {
|
|
2296
2362
|
contextLoader?: DocumentLoader;
|
2297
2363
|
suppressError?: boolean;
|
2298
2364
|
tracerProvider?: TracerProvider;
|
2365
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2299
2366
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
2300
2367
|
/**
|
2301
2368
|
* Similar to
|
@@ -2314,6 +2381,7 @@ declare class Application extends Object$1 {
|
|
2314
2381
|
contextLoader?: DocumentLoader;
|
2315
2382
|
suppressError?: boolean;
|
2316
2383
|
tracerProvider?: TracerProvider;
|
2384
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2317
2385
|
}): Promise<Collection | null>;
|
2318
2386
|
/**
|
2319
2387
|
* Similar to
|
@@ -2335,6 +2403,7 @@ declare class Application extends Object$1 {
|
|
2335
2403
|
contextLoader?: DocumentLoader;
|
2336
2404
|
suppressError?: boolean;
|
2337
2405
|
tracerProvider?: TracerProvider;
|
2406
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2338
2407
|
}): Promise<Collection | null>;
|
2339
2408
|
/**
|
2340
2409
|
* Similar to
|
@@ -2354,6 +2423,7 @@ declare class Application extends Object$1 {
|
|
2354
2423
|
contextLoader?: DocumentLoader;
|
2355
2424
|
suppressError?: boolean;
|
2356
2425
|
tracerProvider?: TracerProvider;
|
2426
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2357
2427
|
}): Promise<Collection | null>;
|
2358
2428
|
/**
|
2359
2429
|
* Similar to
|
@@ -2371,6 +2441,7 @@ declare class Application extends Object$1 {
|
|
2371
2441
|
contextLoader?: DocumentLoader;
|
2372
2442
|
suppressError?: boolean;
|
2373
2443
|
tracerProvider?: TracerProvider;
|
2444
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2374
2445
|
}): Promise<Collection | null>;
|
2375
2446
|
/**
|
2376
2447
|
* Similar to
|
@@ -2388,6 +2459,7 @@ declare class Application extends Object$1 {
|
|
2388
2459
|
contextLoader?: DocumentLoader;
|
2389
2460
|
suppressError?: boolean;
|
2390
2461
|
tracerProvider?: TracerProvider;
|
2462
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2391
2463
|
}): Promise<Collection | null>;
|
2392
2464
|
/**
|
2393
2465
|
* Similar to
|
@@ -2402,6 +2474,7 @@ declare class Application extends Object$1 {
|
|
2402
2474
|
contextLoader?: DocumentLoader;
|
2403
2475
|
suppressError?: boolean;
|
2404
2476
|
tracerProvider?: TracerProvider;
|
2477
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2405
2478
|
}): AsyncIterable<Collection>;
|
2406
2479
|
/** A JSON object which maps additional (typically server/domain-wide) endpoints
|
2407
2480
|
* which may be useful either for this actor or someone referencing this actor.
|
@@ -2438,6 +2511,7 @@ declare class Application extends Object$1 {
|
|
2438
2511
|
contextLoader?: DocumentLoader;
|
2439
2512
|
suppressError?: boolean;
|
2440
2513
|
tracerProvider?: TracerProvider;
|
2514
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2441
2515
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
2442
2516
|
/**
|
2443
2517
|
* Similar to
|
@@ -2455,6 +2529,7 @@ declare class Application extends Object$1 {
|
|
2455
2529
|
contextLoader?: DocumentLoader;
|
2456
2530
|
suppressError?: boolean;
|
2457
2531
|
tracerProvider?: TracerProvider;
|
2532
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2458
2533
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
2459
2534
|
/**
|
2460
2535
|
* Similar to
|
@@ -2472,6 +2547,7 @@ declare class Application extends Object$1 {
|
|
2472
2547
|
contextLoader?: DocumentLoader;
|
2473
2548
|
suppressError?: boolean;
|
2474
2549
|
tracerProvider?: TracerProvider;
|
2550
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2475
2551
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
2476
2552
|
/**
|
2477
2553
|
* Similar to
|
@@ -2489,6 +2565,7 @@ declare class Application extends Object$1 {
|
|
2489
2565
|
contextLoader?: DocumentLoader;
|
2490
2566
|
suppressError?: boolean;
|
2491
2567
|
tracerProvider?: TracerProvider;
|
2568
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2492
2569
|
}): Promise<DidService | null>;
|
2493
2570
|
/**
|
2494
2571
|
* Similar to
|
@@ -2506,6 +2583,7 @@ declare class Application extends Object$1 {
|
|
2506
2583
|
contextLoader?: DocumentLoader;
|
2507
2584
|
suppressError?: boolean;
|
2508
2585
|
tracerProvider?: TracerProvider;
|
2586
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2509
2587
|
}): AsyncIterable<DidService>;
|
2510
2588
|
/** This value is used for `Actor` type objects to show message on followed.
|
2511
2589
|
*/
|
@@ -2547,11 +2625,13 @@ declare class Application extends Object$1 {
|
|
2547
2625
|
documentLoader?: DocumentLoader;
|
2548
2626
|
contextLoader?: DocumentLoader;
|
2549
2627
|
tracerProvider?: TracerProvider;
|
2628
|
+
baseUrl?: URL;
|
2550
2629
|
}): Promise<Application>;
|
2551
2630
|
protected static __fromJsonLd__Application__(json: unknown, span: Span, options?: {
|
2552
2631
|
documentLoader?: DocumentLoader;
|
2553
2632
|
contextLoader?: DocumentLoader;
|
2554
2633
|
tracerProvider?: TracerProvider;
|
2634
|
+
baseUrl?: URL;
|
2555
2635
|
}): Promise<Application>;
|
2556
2636
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
2557
2637
|
}
|
@@ -2731,11 +2811,13 @@ declare class Document extends Object$1 {
|
|
2731
2811
|
documentLoader?: DocumentLoader;
|
2732
2812
|
contextLoader?: DocumentLoader;
|
2733
2813
|
tracerProvider?: TracerProvider;
|
2814
|
+
baseUrl?: URL;
|
2734
2815
|
}): Promise<Document>;
|
2735
2816
|
protected static __fromJsonLd__Document__(json: unknown, span: Span, options?: {
|
2736
2817
|
documentLoader?: DocumentLoader;
|
2737
2818
|
contextLoader?: DocumentLoader;
|
2738
2819
|
tracerProvider?: TracerProvider;
|
2820
|
+
baseUrl?: URL;
|
2739
2821
|
}): Promise<Document>;
|
2740
2822
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
2741
2823
|
}
|
@@ -2919,6 +3001,7 @@ declare class Collection extends Object$1 {
|
|
2919
3001
|
contextLoader?: DocumentLoader;
|
2920
3002
|
suppressError?: boolean;
|
2921
3003
|
tracerProvider?: TracerProvider;
|
3004
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2922
3005
|
}): Promise<CollectionPage | null>;
|
2923
3006
|
/**
|
2924
3007
|
* Similar to
|
@@ -2934,6 +3017,7 @@ declare class Collection extends Object$1 {
|
|
2934
3017
|
contextLoader?: DocumentLoader;
|
2935
3018
|
suppressError?: boolean;
|
2936
3019
|
tracerProvider?: TracerProvider;
|
3020
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2937
3021
|
}): Promise<CollectionPage | null>;
|
2938
3022
|
/**
|
2939
3023
|
* Similar to
|
@@ -2949,6 +3033,7 @@ declare class Collection extends Object$1 {
|
|
2949
3033
|
contextLoader?: DocumentLoader;
|
2950
3034
|
suppressError?: boolean;
|
2951
3035
|
tracerProvider?: TracerProvider;
|
3036
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2952
3037
|
}): Promise<CollectionPage | null>;
|
2953
3038
|
/**
|
2954
3039
|
* Similar to
|
@@ -2964,6 +3049,7 @@ declare class Collection extends Object$1 {
|
|
2964
3049
|
contextLoader?: DocumentLoader;
|
2965
3050
|
suppressError?: boolean;
|
2966
3051
|
tracerProvider?: TracerProvider;
|
3052
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2967
3053
|
}): AsyncIterable<Object$1 | Link>;
|
2968
3054
|
/**
|
2969
3055
|
* Similar to
|
@@ -2978,6 +3064,7 @@ declare class Collection extends Object$1 {
|
|
2978
3064
|
contextLoader?: DocumentLoader;
|
2979
3065
|
suppressError?: boolean;
|
2980
3066
|
tracerProvider?: TracerProvider;
|
3067
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2981
3068
|
}): Promise<Object$1 | null>;
|
2982
3069
|
/**
|
2983
3070
|
* Similar to
|
@@ -2992,6 +3079,7 @@ declare class Collection extends Object$1 {
|
|
2992
3079
|
contextLoader?: DocumentLoader;
|
2993
3080
|
suppressError?: boolean;
|
2994
3081
|
tracerProvider?: TracerProvider;
|
3082
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
2995
3083
|
}): Promise<Object$1 | null>;
|
2996
3084
|
/**
|
2997
3085
|
* Similar to
|
@@ -3006,6 +3094,7 @@ declare class Collection extends Object$1 {
|
|
3006
3094
|
contextLoader?: DocumentLoader;
|
3007
3095
|
suppressError?: boolean;
|
3008
3096
|
tracerProvider?: TracerProvider;
|
3097
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3009
3098
|
}): Promise<Object$1 | null>;
|
3010
3099
|
/**
|
3011
3100
|
* Similar to
|
@@ -3020,6 +3109,7 @@ declare class Collection extends Object$1 {
|
|
3020
3109
|
contextLoader?: DocumentLoader;
|
3021
3110
|
suppressError?: boolean;
|
3022
3111
|
tracerProvider?: TracerProvider;
|
3112
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3023
3113
|
}): Promise<Object$1 | null>;
|
3024
3114
|
/**
|
3025
3115
|
* Similar to
|
@@ -3034,6 +3124,7 @@ declare class Collection extends Object$1 {
|
|
3034
3124
|
contextLoader?: DocumentLoader;
|
3035
3125
|
suppressError?: boolean;
|
3036
3126
|
tracerProvider?: TracerProvider;
|
3127
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3037
3128
|
}): Promise<Object$1 | null>;
|
3038
3129
|
/**
|
3039
3130
|
* Similar to
|
@@ -3048,6 +3139,7 @@ declare class Collection extends Object$1 {
|
|
3048
3139
|
contextLoader?: DocumentLoader;
|
3049
3140
|
suppressError?: boolean;
|
3050
3141
|
tracerProvider?: TracerProvider;
|
3142
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3051
3143
|
}): Promise<Object$1 | null>;
|
3052
3144
|
/**
|
3053
3145
|
* Similar to
|
@@ -3062,6 +3154,7 @@ declare class Collection extends Object$1 {
|
|
3062
3154
|
contextLoader?: DocumentLoader;
|
3063
3155
|
suppressError?: boolean;
|
3064
3156
|
tracerProvider?: TracerProvider;
|
3157
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3065
3158
|
}): Promise<Object$1 | null>;
|
3066
3159
|
/**
|
3067
3160
|
* Similar to
|
@@ -3076,6 +3169,7 @@ declare class Collection extends Object$1 {
|
|
3076
3169
|
contextLoader?: DocumentLoader;
|
3077
3170
|
suppressError?: boolean;
|
3078
3171
|
tracerProvider?: TracerProvider;
|
3172
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3079
3173
|
}): Promise<Object$1 | null>;
|
3080
3174
|
/**
|
3081
3175
|
* Converts this object to a JSON-LD structure.
|
@@ -3108,11 +3202,13 @@ declare class Collection extends Object$1 {
|
|
3108
3202
|
documentLoader?: DocumentLoader;
|
3109
3203
|
contextLoader?: DocumentLoader;
|
3110
3204
|
tracerProvider?: TracerProvider;
|
3205
|
+
baseUrl?: URL;
|
3111
3206
|
}): Promise<Collection>;
|
3112
3207
|
protected static __fromJsonLd__Collection__(json: unknown, span: Span, options?: {
|
3113
3208
|
documentLoader?: DocumentLoader;
|
3114
3209
|
contextLoader?: DocumentLoader;
|
3115
3210
|
tracerProvider?: TracerProvider;
|
3211
|
+
baseUrl?: URL;
|
3116
3212
|
}): Promise<Collection>;
|
3117
3213
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
3118
3214
|
}
|
@@ -3292,6 +3388,7 @@ declare class CollectionPage extends Collection {
|
|
3292
3388
|
contextLoader?: DocumentLoader;
|
3293
3389
|
suppressError?: boolean;
|
3294
3390
|
tracerProvider?: TracerProvider;
|
3391
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3295
3392
|
}): Promise<Collection | null>;
|
3296
3393
|
/**
|
3297
3394
|
* Similar to
|
@@ -3306,6 +3403,7 @@ declare class CollectionPage extends Collection {
|
|
3306
3403
|
contextLoader?: DocumentLoader;
|
3307
3404
|
suppressError?: boolean;
|
3308
3405
|
tracerProvider?: TracerProvider;
|
3406
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3309
3407
|
}): Promise<CollectionPage | null>;
|
3310
3408
|
/**
|
3311
3409
|
* Similar to
|
@@ -3320,6 +3418,7 @@ declare class CollectionPage extends Collection {
|
|
3320
3418
|
contextLoader?: DocumentLoader;
|
3321
3419
|
suppressError?: boolean;
|
3322
3420
|
tracerProvider?: TracerProvider;
|
3421
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3323
3422
|
}): Promise<CollectionPage | null>;
|
3324
3423
|
/**
|
3325
3424
|
* Converts this object to a JSON-LD structure.
|
@@ -3352,11 +3451,13 @@ declare class CollectionPage extends Collection {
|
|
3352
3451
|
documentLoader?: DocumentLoader;
|
3353
3452
|
contextLoader?: DocumentLoader;
|
3354
3453
|
tracerProvider?: TracerProvider;
|
3454
|
+
baseUrl?: URL;
|
3355
3455
|
}): Promise<CollectionPage>;
|
3356
3456
|
protected static __fromJsonLd__CollectionPage__(json: unknown, span: Span, options?: {
|
3357
3457
|
documentLoader?: DocumentLoader;
|
3358
3458
|
contextLoader?: DocumentLoader;
|
3359
3459
|
tracerProvider?: TracerProvider;
|
3460
|
+
baseUrl?: URL;
|
3360
3461
|
}): Promise<CollectionPage>;
|
3361
3462
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
3362
3463
|
}
|
@@ -3490,11 +3591,13 @@ declare class Endpoints {
|
|
3490
3591
|
documentLoader?: DocumentLoader;
|
3491
3592
|
contextLoader?: DocumentLoader;
|
3492
3593
|
tracerProvider?: TracerProvider;
|
3594
|
+
baseUrl?: URL;
|
3493
3595
|
}): Promise<Endpoints>;
|
3494
3596
|
protected static __fromJsonLd__Endpoints__(json: unknown, span: Span, options?: {
|
3495
3597
|
documentLoader?: DocumentLoader;
|
3496
3598
|
contextLoader?: DocumentLoader;
|
3497
3599
|
tracerProvider?: TracerProvider;
|
3600
|
+
baseUrl?: URL;
|
3498
3601
|
}): Promise<Endpoints>;
|
3499
3602
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
3500
3603
|
}
|
@@ -3704,6 +3807,7 @@ declare class Group extends Object$1 {
|
|
3704
3807
|
contextLoader?: DocumentLoader;
|
3705
3808
|
suppressError?: boolean;
|
3706
3809
|
tracerProvider?: TracerProvider;
|
3810
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3707
3811
|
}): Promise<CryptographicKey | null>;
|
3708
3812
|
/**
|
3709
3813
|
* Similar to
|
@@ -3718,6 +3822,7 @@ declare class Group extends Object$1 {
|
|
3718
3822
|
contextLoader?: DocumentLoader;
|
3719
3823
|
suppressError?: boolean;
|
3720
3824
|
tracerProvider?: TracerProvider;
|
3825
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3721
3826
|
}): AsyncIterable<CryptographicKey>;
|
3722
3827
|
/**
|
3723
3828
|
* Similar to
|
@@ -3735,6 +3840,7 @@ declare class Group extends Object$1 {
|
|
3735
3840
|
contextLoader?: DocumentLoader;
|
3736
3841
|
suppressError?: boolean;
|
3737
3842
|
tracerProvider?: TracerProvider;
|
3843
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3738
3844
|
}): Promise<Multikey | null>;
|
3739
3845
|
/**
|
3740
3846
|
* Similar to
|
@@ -3752,6 +3858,7 @@ declare class Group extends Object$1 {
|
|
3752
3858
|
contextLoader?: DocumentLoader;
|
3753
3859
|
suppressError?: boolean;
|
3754
3860
|
tracerProvider?: TracerProvider;
|
3861
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3755
3862
|
}): AsyncIterable<Multikey>;
|
3756
3863
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
3757
3864
|
* automatically approved, but instead are examined by a person who may accept
|
@@ -3786,6 +3893,7 @@ declare class Group extends Object$1 {
|
|
3786
3893
|
contextLoader?: DocumentLoader;
|
3787
3894
|
suppressError?: boolean;
|
3788
3895
|
tracerProvider?: TracerProvider;
|
3896
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3789
3897
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
3790
3898
|
/**
|
3791
3899
|
* Similar to
|
@@ -3809,6 +3917,7 @@ declare class Group extends Object$1 {
|
|
3809
3917
|
contextLoader?: DocumentLoader;
|
3810
3918
|
suppressError?: boolean;
|
3811
3919
|
tracerProvider?: TracerProvider;
|
3920
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3812
3921
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
3813
3922
|
/**
|
3814
3923
|
* Similar to
|
@@ -3827,6 +3936,7 @@ declare class Group extends Object$1 {
|
|
3827
3936
|
contextLoader?: DocumentLoader;
|
3828
3937
|
suppressError?: boolean;
|
3829
3938
|
tracerProvider?: TracerProvider;
|
3939
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3830
3940
|
}): Promise<Collection | null>;
|
3831
3941
|
/**
|
3832
3942
|
* Similar to
|
@@ -3848,6 +3958,7 @@ declare class Group extends Object$1 {
|
|
3848
3958
|
contextLoader?: DocumentLoader;
|
3849
3959
|
suppressError?: boolean;
|
3850
3960
|
tracerProvider?: TracerProvider;
|
3961
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3851
3962
|
}): Promise<Collection | null>;
|
3852
3963
|
/**
|
3853
3964
|
* Similar to
|
@@ -3867,6 +3978,7 @@ declare class Group extends Object$1 {
|
|
3867
3978
|
contextLoader?: DocumentLoader;
|
3868
3979
|
suppressError?: boolean;
|
3869
3980
|
tracerProvider?: TracerProvider;
|
3981
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3870
3982
|
}): Promise<Collection | null>;
|
3871
3983
|
/**
|
3872
3984
|
* Similar to
|
@@ -3884,6 +3996,7 @@ declare class Group extends Object$1 {
|
|
3884
3996
|
contextLoader?: DocumentLoader;
|
3885
3997
|
suppressError?: boolean;
|
3886
3998
|
tracerProvider?: TracerProvider;
|
3999
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3887
4000
|
}): Promise<Collection | null>;
|
3888
4001
|
/**
|
3889
4002
|
* Similar to
|
@@ -3901,6 +4014,7 @@ declare class Group extends Object$1 {
|
|
3901
4014
|
contextLoader?: DocumentLoader;
|
3902
4015
|
suppressError?: boolean;
|
3903
4016
|
tracerProvider?: TracerProvider;
|
4017
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3904
4018
|
}): Promise<Collection | null>;
|
3905
4019
|
/**
|
3906
4020
|
* Similar to
|
@@ -3915,6 +4029,7 @@ declare class Group extends Object$1 {
|
|
3915
4029
|
contextLoader?: DocumentLoader;
|
3916
4030
|
suppressError?: boolean;
|
3917
4031
|
tracerProvider?: TracerProvider;
|
4032
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3918
4033
|
}): AsyncIterable<Collection>;
|
3919
4034
|
/** A JSON object which maps additional (typically server/domain-wide) endpoints
|
3920
4035
|
* which may be useful either for this actor or someone referencing this actor.
|
@@ -3951,6 +4066,7 @@ declare class Group extends Object$1 {
|
|
3951
4066
|
contextLoader?: DocumentLoader;
|
3952
4067
|
suppressError?: boolean;
|
3953
4068
|
tracerProvider?: TracerProvider;
|
4069
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3954
4070
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
3955
4071
|
/**
|
3956
4072
|
* Similar to
|
@@ -3968,6 +4084,7 @@ declare class Group extends Object$1 {
|
|
3968
4084
|
contextLoader?: DocumentLoader;
|
3969
4085
|
suppressError?: boolean;
|
3970
4086
|
tracerProvider?: TracerProvider;
|
4087
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3971
4088
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
3972
4089
|
/**
|
3973
4090
|
* Similar to
|
@@ -3985,6 +4102,7 @@ declare class Group extends Object$1 {
|
|
3985
4102
|
contextLoader?: DocumentLoader;
|
3986
4103
|
suppressError?: boolean;
|
3987
4104
|
tracerProvider?: TracerProvider;
|
4105
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
3988
4106
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
3989
4107
|
/**
|
3990
4108
|
* Similar to
|
@@ -4002,6 +4120,7 @@ declare class Group extends Object$1 {
|
|
4002
4120
|
contextLoader?: DocumentLoader;
|
4003
4121
|
suppressError?: boolean;
|
4004
4122
|
tracerProvider?: TracerProvider;
|
4123
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
4005
4124
|
}): Promise<DidService | null>;
|
4006
4125
|
/**
|
4007
4126
|
* Similar to
|
@@ -4019,6 +4138,7 @@ declare class Group extends Object$1 {
|
|
4019
4138
|
contextLoader?: DocumentLoader;
|
4020
4139
|
suppressError?: boolean;
|
4021
4140
|
tracerProvider?: TracerProvider;
|
4141
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
4022
4142
|
}): AsyncIterable<DidService>;
|
4023
4143
|
/** This value is used for `Actor` type objects to show message on followed.
|
4024
4144
|
*/
|
@@ -4060,11 +4180,13 @@ declare class Group extends Object$1 {
|
|
4060
4180
|
documentLoader?: DocumentLoader;
|
4061
4181
|
contextLoader?: DocumentLoader;
|
4062
4182
|
tracerProvider?: TracerProvider;
|
4183
|
+
baseUrl?: URL;
|
4063
4184
|
}): Promise<Group>;
|
4064
4185
|
protected static __fromJsonLd__Group__(json: unknown, span: Span, options?: {
|
4065
4186
|
documentLoader?: DocumentLoader;
|
4066
4187
|
contextLoader?: DocumentLoader;
|
4067
4188
|
tracerProvider?: TracerProvider;
|
4189
|
+
baseUrl?: URL;
|
4068
4190
|
}): Promise<Group>;
|
4069
4191
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4070
4192
|
}
|
@@ -4196,6 +4318,7 @@ declare class Link {
|
|
4196
4318
|
contextLoader?: DocumentLoader;
|
4197
4319
|
suppressError?: boolean;
|
4198
4320
|
tracerProvider?: TracerProvider;
|
4321
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
4199
4322
|
}): AsyncIterable<Link | Object$1>;
|
4200
4323
|
/**
|
4201
4324
|
* Converts this object to a JSON-LD structure.
|
@@ -4228,11 +4351,13 @@ declare class Link {
|
|
4228
4351
|
documentLoader?: DocumentLoader;
|
4229
4352
|
contextLoader?: DocumentLoader;
|
4230
4353
|
tracerProvider?: TracerProvider;
|
4354
|
+
baseUrl?: URL;
|
4231
4355
|
}): Promise<Link>;
|
4232
4356
|
protected static __fromJsonLd__Link__(json: unknown, span: Span, options?: {
|
4233
4357
|
documentLoader?: DocumentLoader;
|
4234
4358
|
contextLoader?: DocumentLoader;
|
4235
4359
|
tracerProvider?: TracerProvider;
|
4360
|
+
baseUrl?: URL;
|
4236
4361
|
}): Promise<Link>;
|
4237
4362
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4238
4363
|
}
|
@@ -4320,11 +4445,13 @@ declare class Hashtag extends Link {
|
|
4320
4445
|
documentLoader?: DocumentLoader;
|
4321
4446
|
contextLoader?: DocumentLoader;
|
4322
4447
|
tracerProvider?: TracerProvider;
|
4448
|
+
baseUrl?: URL;
|
4323
4449
|
}): Promise<Hashtag>;
|
4324
4450
|
protected static __fromJsonLd__Hashtag__(json: unknown, span: Span, options?: {
|
4325
4451
|
documentLoader?: DocumentLoader;
|
4326
4452
|
contextLoader?: DocumentLoader;
|
4327
4453
|
tracerProvider?: TracerProvider;
|
4454
|
+
baseUrl?: URL;
|
4328
4455
|
}): Promise<Hashtag>;
|
4329
4456
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4330
4457
|
}
|
@@ -4490,11 +4617,13 @@ declare class Image extends Document {
|
|
4490
4617
|
documentLoader?: DocumentLoader;
|
4491
4618
|
contextLoader?: DocumentLoader;
|
4492
4619
|
tracerProvider?: TracerProvider;
|
4620
|
+
baseUrl?: URL;
|
4493
4621
|
}): Promise<Image>;
|
4494
4622
|
protected static __fromJsonLd__Image__(json: unknown, span: Span, options?: {
|
4495
4623
|
documentLoader?: DocumentLoader;
|
4496
4624
|
contextLoader?: DocumentLoader;
|
4497
4625
|
tracerProvider?: TracerProvider;
|
4626
|
+
baseUrl?: URL;
|
4498
4627
|
}): Promise<Image>;
|
4499
4628
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4500
4629
|
}
|
@@ -4672,6 +4801,7 @@ declare class OrderedCollection extends Collection {
|
|
4672
4801
|
contextLoader?: DocumentLoader;
|
4673
4802
|
suppressError?: boolean;
|
4674
4803
|
tracerProvider?: TracerProvider;
|
4804
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
4675
4805
|
}): AsyncIterable<Object$1 | Link>;
|
4676
4806
|
/**
|
4677
4807
|
* Converts this object to a JSON-LD structure.
|
@@ -4704,11 +4834,13 @@ declare class OrderedCollection extends Collection {
|
|
4704
4834
|
documentLoader?: DocumentLoader;
|
4705
4835
|
contextLoader?: DocumentLoader;
|
4706
4836
|
tracerProvider?: TracerProvider;
|
4837
|
+
baseUrl?: URL;
|
4707
4838
|
}): Promise<OrderedCollection>;
|
4708
4839
|
protected static __fromJsonLd__OrderedCollection__(json: unknown, span: Span, options?: {
|
4709
4840
|
documentLoader?: DocumentLoader;
|
4710
4841
|
contextLoader?: DocumentLoader;
|
4711
4842
|
tracerProvider?: TracerProvider;
|
4843
|
+
baseUrl?: URL;
|
4712
4844
|
}): Promise<OrderedCollection>;
|
4713
4845
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4714
4846
|
}
|
@@ -4890,6 +5022,7 @@ declare class OrderedCollectionPage extends CollectionPage {
|
|
4890
5022
|
contextLoader?: DocumentLoader;
|
4891
5023
|
suppressError?: boolean;
|
4892
5024
|
tracerProvider?: TracerProvider;
|
5025
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
4893
5026
|
}): AsyncIterable<Object$1 | Link>;
|
4894
5027
|
/** A non-negative integer value identifying the relative position within
|
4895
5028
|
* the logical view of a strictly ordered collection.
|
@@ -4926,11 +5059,13 @@ declare class OrderedCollectionPage extends CollectionPage {
|
|
4926
5059
|
documentLoader?: DocumentLoader;
|
4927
5060
|
contextLoader?: DocumentLoader;
|
4928
5061
|
tracerProvider?: TracerProvider;
|
5062
|
+
baseUrl?: URL;
|
4929
5063
|
}): Promise<OrderedCollectionPage>;
|
4930
5064
|
protected static __fromJsonLd__OrderedCollectionPage__(json: unknown, span: Span, options?: {
|
4931
5065
|
documentLoader?: DocumentLoader;
|
4932
5066
|
contextLoader?: DocumentLoader;
|
4933
5067
|
tracerProvider?: TracerProvider;
|
5068
|
+
baseUrl?: URL;
|
4934
5069
|
}): Promise<OrderedCollectionPage>;
|
4935
5070
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
4936
5071
|
}
|
@@ -5137,6 +5272,7 @@ declare class Organization extends Object$1 {
|
|
5137
5272
|
contextLoader?: DocumentLoader;
|
5138
5273
|
suppressError?: boolean;
|
5139
5274
|
tracerProvider?: TracerProvider;
|
5275
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5140
5276
|
}): Promise<CryptographicKey | null>;
|
5141
5277
|
/**
|
5142
5278
|
* Similar to
|
@@ -5151,6 +5287,7 @@ declare class Organization extends Object$1 {
|
|
5151
5287
|
contextLoader?: DocumentLoader;
|
5152
5288
|
suppressError?: boolean;
|
5153
5289
|
tracerProvider?: TracerProvider;
|
5290
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5154
5291
|
}): AsyncIterable<CryptographicKey>;
|
5155
5292
|
/**
|
5156
5293
|
* Similar to
|
@@ -5168,6 +5305,7 @@ declare class Organization extends Object$1 {
|
|
5168
5305
|
contextLoader?: DocumentLoader;
|
5169
5306
|
suppressError?: boolean;
|
5170
5307
|
tracerProvider?: TracerProvider;
|
5308
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5171
5309
|
}): Promise<Multikey | null>;
|
5172
5310
|
/**
|
5173
5311
|
* Similar to
|
@@ -5185,6 +5323,7 @@ declare class Organization extends Object$1 {
|
|
5185
5323
|
contextLoader?: DocumentLoader;
|
5186
5324
|
suppressError?: boolean;
|
5187
5325
|
tracerProvider?: TracerProvider;
|
5326
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5188
5327
|
}): AsyncIterable<Multikey>;
|
5189
5328
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
5190
5329
|
* automatically approved, but instead are examined by a person who may accept
|
@@ -5219,6 +5358,7 @@ declare class Organization extends Object$1 {
|
|
5219
5358
|
contextLoader?: DocumentLoader;
|
5220
5359
|
suppressError?: boolean;
|
5221
5360
|
tracerProvider?: TracerProvider;
|
5361
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5222
5362
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5223
5363
|
/**
|
5224
5364
|
* Similar to
|
@@ -5242,6 +5382,7 @@ declare class Organization extends Object$1 {
|
|
5242
5382
|
contextLoader?: DocumentLoader;
|
5243
5383
|
suppressError?: boolean;
|
5244
5384
|
tracerProvider?: TracerProvider;
|
5385
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5245
5386
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5246
5387
|
/**
|
5247
5388
|
* Similar to
|
@@ -5260,6 +5401,7 @@ declare class Organization extends Object$1 {
|
|
5260
5401
|
contextLoader?: DocumentLoader;
|
5261
5402
|
suppressError?: boolean;
|
5262
5403
|
tracerProvider?: TracerProvider;
|
5404
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5263
5405
|
}): Promise<Collection | null>;
|
5264
5406
|
/**
|
5265
5407
|
* Similar to
|
@@ -5281,6 +5423,7 @@ declare class Organization extends Object$1 {
|
|
5281
5423
|
contextLoader?: DocumentLoader;
|
5282
5424
|
suppressError?: boolean;
|
5283
5425
|
tracerProvider?: TracerProvider;
|
5426
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5284
5427
|
}): Promise<Collection | null>;
|
5285
5428
|
/**
|
5286
5429
|
* Similar to
|
@@ -5300,6 +5443,7 @@ declare class Organization extends Object$1 {
|
|
5300
5443
|
contextLoader?: DocumentLoader;
|
5301
5444
|
suppressError?: boolean;
|
5302
5445
|
tracerProvider?: TracerProvider;
|
5446
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5303
5447
|
}): Promise<Collection | null>;
|
5304
5448
|
/**
|
5305
5449
|
* Similar to
|
@@ -5317,6 +5461,7 @@ declare class Organization extends Object$1 {
|
|
5317
5461
|
contextLoader?: DocumentLoader;
|
5318
5462
|
suppressError?: boolean;
|
5319
5463
|
tracerProvider?: TracerProvider;
|
5464
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5320
5465
|
}): Promise<Collection | null>;
|
5321
5466
|
/**
|
5322
5467
|
* Similar to
|
@@ -5334,6 +5479,7 @@ declare class Organization extends Object$1 {
|
|
5334
5479
|
contextLoader?: DocumentLoader;
|
5335
5480
|
suppressError?: boolean;
|
5336
5481
|
tracerProvider?: TracerProvider;
|
5482
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5337
5483
|
}): Promise<Collection | null>;
|
5338
5484
|
/**
|
5339
5485
|
* Similar to
|
@@ -5348,6 +5494,7 @@ declare class Organization extends Object$1 {
|
|
5348
5494
|
contextLoader?: DocumentLoader;
|
5349
5495
|
suppressError?: boolean;
|
5350
5496
|
tracerProvider?: TracerProvider;
|
5497
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5351
5498
|
}): AsyncIterable<Collection>;
|
5352
5499
|
/** A JSON object which maps additional (typically server/domain-wide) endpoints
|
5353
5500
|
* which may be useful either for this actor or someone referencing this actor.
|
@@ -5384,6 +5531,7 @@ declare class Organization extends Object$1 {
|
|
5384
5531
|
contextLoader?: DocumentLoader;
|
5385
5532
|
suppressError?: boolean;
|
5386
5533
|
tracerProvider?: TracerProvider;
|
5534
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5387
5535
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
5388
5536
|
/**
|
5389
5537
|
* Similar to
|
@@ -5401,6 +5549,7 @@ declare class Organization extends Object$1 {
|
|
5401
5549
|
contextLoader?: DocumentLoader;
|
5402
5550
|
suppressError?: boolean;
|
5403
5551
|
tracerProvider?: TracerProvider;
|
5552
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5404
5553
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
5405
5554
|
/**
|
5406
5555
|
* Similar to
|
@@ -5418,6 +5567,7 @@ declare class Organization extends Object$1 {
|
|
5418
5567
|
contextLoader?: DocumentLoader;
|
5419
5568
|
suppressError?: boolean;
|
5420
5569
|
tracerProvider?: TracerProvider;
|
5570
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5421
5571
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
5422
5572
|
/**
|
5423
5573
|
* Similar to
|
@@ -5435,6 +5585,7 @@ declare class Organization extends Object$1 {
|
|
5435
5585
|
contextLoader?: DocumentLoader;
|
5436
5586
|
suppressError?: boolean;
|
5437
5587
|
tracerProvider?: TracerProvider;
|
5588
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5438
5589
|
}): Promise<DidService | null>;
|
5439
5590
|
/**
|
5440
5591
|
* Similar to
|
@@ -5452,6 +5603,7 @@ declare class Organization extends Object$1 {
|
|
5452
5603
|
contextLoader?: DocumentLoader;
|
5453
5604
|
suppressError?: boolean;
|
5454
5605
|
tracerProvider?: TracerProvider;
|
5606
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5455
5607
|
}): AsyncIterable<DidService>;
|
5456
5608
|
/** This value is used for `Actor` type objects to show message on followed.
|
5457
5609
|
*/
|
@@ -5493,11 +5645,13 @@ declare class Organization extends Object$1 {
|
|
5493
5645
|
documentLoader?: DocumentLoader;
|
5494
5646
|
contextLoader?: DocumentLoader;
|
5495
5647
|
tracerProvider?: TracerProvider;
|
5648
|
+
baseUrl?: URL;
|
5496
5649
|
}): Promise<Organization>;
|
5497
5650
|
protected static __fromJsonLd__Organization__(json: unknown, span: Span, options?: {
|
5498
5651
|
documentLoader?: DocumentLoader;
|
5499
5652
|
contextLoader?: DocumentLoader;
|
5500
5653
|
tracerProvider?: TracerProvider;
|
5654
|
+
baseUrl?: URL;
|
5501
5655
|
}): Promise<Organization>;
|
5502
5656
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
5503
5657
|
}
|
@@ -5707,6 +5861,7 @@ declare class Person extends Object$1 {
|
|
5707
5861
|
contextLoader?: DocumentLoader;
|
5708
5862
|
suppressError?: boolean;
|
5709
5863
|
tracerProvider?: TracerProvider;
|
5864
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5710
5865
|
}): Promise<CryptographicKey | null>;
|
5711
5866
|
/**
|
5712
5867
|
* Similar to
|
@@ -5721,6 +5876,7 @@ declare class Person extends Object$1 {
|
|
5721
5876
|
contextLoader?: DocumentLoader;
|
5722
5877
|
suppressError?: boolean;
|
5723
5878
|
tracerProvider?: TracerProvider;
|
5879
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5724
5880
|
}): AsyncIterable<CryptographicKey>;
|
5725
5881
|
/**
|
5726
5882
|
* Similar to
|
@@ -5738,6 +5894,7 @@ declare class Person extends Object$1 {
|
|
5738
5894
|
contextLoader?: DocumentLoader;
|
5739
5895
|
suppressError?: boolean;
|
5740
5896
|
tracerProvider?: TracerProvider;
|
5897
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5741
5898
|
}): Promise<Multikey | null>;
|
5742
5899
|
/**
|
5743
5900
|
* Similar to
|
@@ -5755,6 +5912,7 @@ declare class Person extends Object$1 {
|
|
5755
5912
|
contextLoader?: DocumentLoader;
|
5756
5913
|
suppressError?: boolean;
|
5757
5914
|
tracerProvider?: TracerProvider;
|
5915
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5758
5916
|
}): AsyncIterable<Multikey>;
|
5759
5917
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
5760
5918
|
* automatically approved, but instead are examined by a person who may accept
|
@@ -5789,6 +5947,7 @@ declare class Person extends Object$1 {
|
|
5789
5947
|
contextLoader?: DocumentLoader;
|
5790
5948
|
suppressError?: boolean;
|
5791
5949
|
tracerProvider?: TracerProvider;
|
5950
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5792
5951
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5793
5952
|
/**
|
5794
5953
|
* Similar to
|
@@ -5812,6 +5971,7 @@ declare class Person extends Object$1 {
|
|
5812
5971
|
contextLoader?: DocumentLoader;
|
5813
5972
|
suppressError?: boolean;
|
5814
5973
|
tracerProvider?: TracerProvider;
|
5974
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5815
5975
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
5816
5976
|
/**
|
5817
5977
|
* Similar to
|
@@ -5830,6 +5990,7 @@ declare class Person extends Object$1 {
|
|
5830
5990
|
contextLoader?: DocumentLoader;
|
5831
5991
|
suppressError?: boolean;
|
5832
5992
|
tracerProvider?: TracerProvider;
|
5993
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5833
5994
|
}): Promise<Collection | null>;
|
5834
5995
|
/**
|
5835
5996
|
* Similar to
|
@@ -5851,6 +6012,7 @@ declare class Person extends Object$1 {
|
|
5851
6012
|
contextLoader?: DocumentLoader;
|
5852
6013
|
suppressError?: boolean;
|
5853
6014
|
tracerProvider?: TracerProvider;
|
6015
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5854
6016
|
}): Promise<Collection | null>;
|
5855
6017
|
/**
|
5856
6018
|
* Similar to
|
@@ -5870,6 +6032,7 @@ declare class Person extends Object$1 {
|
|
5870
6032
|
contextLoader?: DocumentLoader;
|
5871
6033
|
suppressError?: boolean;
|
5872
6034
|
tracerProvider?: TracerProvider;
|
6035
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5873
6036
|
}): Promise<Collection | null>;
|
5874
6037
|
/**
|
5875
6038
|
* Similar to
|
@@ -5887,6 +6050,7 @@ declare class Person extends Object$1 {
|
|
5887
6050
|
contextLoader?: DocumentLoader;
|
5888
6051
|
suppressError?: boolean;
|
5889
6052
|
tracerProvider?: TracerProvider;
|
6053
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5890
6054
|
}): Promise<Collection | null>;
|
5891
6055
|
/**
|
5892
6056
|
* Similar to
|
@@ -5904,6 +6068,7 @@ declare class Person extends Object$1 {
|
|
5904
6068
|
contextLoader?: DocumentLoader;
|
5905
6069
|
suppressError?: boolean;
|
5906
6070
|
tracerProvider?: TracerProvider;
|
6071
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5907
6072
|
}): Promise<Collection | null>;
|
5908
6073
|
/**
|
5909
6074
|
* Similar to
|
@@ -5918,6 +6083,7 @@ declare class Person extends Object$1 {
|
|
5918
6083
|
contextLoader?: DocumentLoader;
|
5919
6084
|
suppressError?: boolean;
|
5920
6085
|
tracerProvider?: TracerProvider;
|
6086
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5921
6087
|
}): AsyncIterable<Collection>;
|
5922
6088
|
/** A JSON object which maps additional (typically server/domain-wide) endpoints
|
5923
6089
|
* which may be useful either for this actor or someone referencing this actor.
|
@@ -5954,6 +6120,7 @@ declare class Person extends Object$1 {
|
|
5954
6120
|
contextLoader?: DocumentLoader;
|
5955
6121
|
suppressError?: boolean;
|
5956
6122
|
tracerProvider?: TracerProvider;
|
6123
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5957
6124
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
5958
6125
|
/**
|
5959
6126
|
* Similar to
|
@@ -5971,6 +6138,7 @@ declare class Person extends Object$1 {
|
|
5971
6138
|
contextLoader?: DocumentLoader;
|
5972
6139
|
suppressError?: boolean;
|
5973
6140
|
tracerProvider?: TracerProvider;
|
6141
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5974
6142
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
5975
6143
|
/**
|
5976
6144
|
* Similar to
|
@@ -5988,6 +6156,7 @@ declare class Person extends Object$1 {
|
|
5988
6156
|
contextLoader?: DocumentLoader;
|
5989
6157
|
suppressError?: boolean;
|
5990
6158
|
tracerProvider?: TracerProvider;
|
6159
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
5991
6160
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
5992
6161
|
/**
|
5993
6162
|
* Similar to
|
@@ -6005,6 +6174,7 @@ declare class Person extends Object$1 {
|
|
6005
6174
|
contextLoader?: DocumentLoader;
|
6006
6175
|
suppressError?: boolean;
|
6007
6176
|
tracerProvider?: TracerProvider;
|
6177
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6008
6178
|
}): Promise<DidService | null>;
|
6009
6179
|
/**
|
6010
6180
|
* Similar to
|
@@ -6022,6 +6192,7 @@ declare class Person extends Object$1 {
|
|
6022
6192
|
contextLoader?: DocumentLoader;
|
6023
6193
|
suppressError?: boolean;
|
6024
6194
|
tracerProvider?: TracerProvider;
|
6195
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6025
6196
|
}): AsyncIterable<DidService>;
|
6026
6197
|
/** This value is used for `Actor` type objects to show message on followed.
|
6027
6198
|
*/
|
@@ -6063,11 +6234,13 @@ declare class Person extends Object$1 {
|
|
6063
6234
|
documentLoader?: DocumentLoader;
|
6064
6235
|
contextLoader?: DocumentLoader;
|
6065
6236
|
tracerProvider?: TracerProvider;
|
6237
|
+
baseUrl?: URL;
|
6066
6238
|
}): Promise<Person>;
|
6067
6239
|
protected static __fromJsonLd__Person__(json: unknown, span: Span, options?: {
|
6068
6240
|
documentLoader?: DocumentLoader;
|
6069
6241
|
contextLoader?: DocumentLoader;
|
6070
6242
|
tracerProvider?: TracerProvider;
|
6243
|
+
baseUrl?: URL;
|
6071
6244
|
}): Promise<Person>;
|
6072
6245
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
6073
6246
|
}
|
@@ -6279,6 +6452,7 @@ declare class Service extends Object$1 {
|
|
6279
6452
|
contextLoader?: DocumentLoader;
|
6280
6453
|
suppressError?: boolean;
|
6281
6454
|
tracerProvider?: TracerProvider;
|
6455
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6282
6456
|
}): Promise<CryptographicKey | null>;
|
6283
6457
|
/**
|
6284
6458
|
* Similar to
|
@@ -6293,6 +6467,7 @@ declare class Service extends Object$1 {
|
|
6293
6467
|
contextLoader?: DocumentLoader;
|
6294
6468
|
suppressError?: boolean;
|
6295
6469
|
tracerProvider?: TracerProvider;
|
6470
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6296
6471
|
}): AsyncIterable<CryptographicKey>;
|
6297
6472
|
/**
|
6298
6473
|
* Similar to
|
@@ -6310,6 +6485,7 @@ declare class Service extends Object$1 {
|
|
6310
6485
|
contextLoader?: DocumentLoader;
|
6311
6486
|
suppressError?: boolean;
|
6312
6487
|
tracerProvider?: TracerProvider;
|
6488
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6313
6489
|
}): Promise<Multikey | null>;
|
6314
6490
|
/**
|
6315
6491
|
* Similar to
|
@@ -6327,6 +6503,7 @@ declare class Service extends Object$1 {
|
|
6327
6503
|
contextLoader?: DocumentLoader;
|
6328
6504
|
suppressError?: boolean;
|
6329
6505
|
tracerProvider?: TracerProvider;
|
6506
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6330
6507
|
}): AsyncIterable<Multikey>;
|
6331
6508
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
6332
6509
|
* automatically approved, but instead are examined by a person who may accept
|
@@ -6361,6 +6538,7 @@ declare class Service extends Object$1 {
|
|
6361
6538
|
contextLoader?: DocumentLoader;
|
6362
6539
|
suppressError?: boolean;
|
6363
6540
|
tracerProvider?: TracerProvider;
|
6541
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6364
6542
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6365
6543
|
/**
|
6366
6544
|
* Similar to
|
@@ -6384,6 +6562,7 @@ declare class Service extends Object$1 {
|
|
6384
6562
|
contextLoader?: DocumentLoader;
|
6385
6563
|
suppressError?: boolean;
|
6386
6564
|
tracerProvider?: TracerProvider;
|
6565
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6387
6566
|
}): Promise<OrderedCollection | OrderedCollectionPage | null>;
|
6388
6567
|
/**
|
6389
6568
|
* Similar to
|
@@ -6402,6 +6581,7 @@ declare class Service extends Object$1 {
|
|
6402
6581
|
contextLoader?: DocumentLoader;
|
6403
6582
|
suppressError?: boolean;
|
6404
6583
|
tracerProvider?: TracerProvider;
|
6584
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6405
6585
|
}): Promise<Collection | null>;
|
6406
6586
|
/**
|
6407
6587
|
* Similar to
|
@@ -6423,6 +6603,7 @@ declare class Service extends Object$1 {
|
|
6423
6603
|
contextLoader?: DocumentLoader;
|
6424
6604
|
suppressError?: boolean;
|
6425
6605
|
tracerProvider?: TracerProvider;
|
6606
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6426
6607
|
}): Promise<Collection | null>;
|
6427
6608
|
/**
|
6428
6609
|
* Similar to
|
@@ -6442,6 +6623,7 @@ declare class Service extends Object$1 {
|
|
6442
6623
|
contextLoader?: DocumentLoader;
|
6443
6624
|
suppressError?: boolean;
|
6444
6625
|
tracerProvider?: TracerProvider;
|
6626
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6445
6627
|
}): Promise<Collection | null>;
|
6446
6628
|
/**
|
6447
6629
|
* Similar to
|
@@ -6459,6 +6641,7 @@ declare class Service extends Object$1 {
|
|
6459
6641
|
contextLoader?: DocumentLoader;
|
6460
6642
|
suppressError?: boolean;
|
6461
6643
|
tracerProvider?: TracerProvider;
|
6644
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6462
6645
|
}): Promise<Collection | null>;
|
6463
6646
|
/**
|
6464
6647
|
* Similar to
|
@@ -6476,6 +6659,7 @@ declare class Service extends Object$1 {
|
|
6476
6659
|
contextLoader?: DocumentLoader;
|
6477
6660
|
suppressError?: boolean;
|
6478
6661
|
tracerProvider?: TracerProvider;
|
6662
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6479
6663
|
}): Promise<Collection | null>;
|
6480
6664
|
/**
|
6481
6665
|
* Similar to
|
@@ -6490,6 +6674,7 @@ declare class Service extends Object$1 {
|
|
6490
6674
|
contextLoader?: DocumentLoader;
|
6491
6675
|
suppressError?: boolean;
|
6492
6676
|
tracerProvider?: TracerProvider;
|
6677
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6493
6678
|
}): AsyncIterable<Collection>;
|
6494
6679
|
/** A JSON object which maps additional (typically server/domain-wide) endpoints
|
6495
6680
|
* which may be useful either for this actor or someone referencing this actor.
|
@@ -6526,6 +6711,7 @@ declare class Service extends Object$1 {
|
|
6526
6711
|
contextLoader?: DocumentLoader;
|
6527
6712
|
suppressError?: boolean;
|
6528
6713
|
tracerProvider?: TracerProvider;
|
6714
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6529
6715
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
6530
6716
|
/**
|
6531
6717
|
* Similar to
|
@@ -6543,6 +6729,7 @@ declare class Service extends Object$1 {
|
|
6543
6729
|
contextLoader?: DocumentLoader;
|
6544
6730
|
suppressError?: boolean;
|
6545
6731
|
tracerProvider?: TracerProvider;
|
6732
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6546
6733
|
}): Promise<Application | Group | Organization | Person | Service | null>;
|
6547
6734
|
/**
|
6548
6735
|
* Similar to
|
@@ -6560,6 +6747,7 @@ declare class Service extends Object$1 {
|
|
6560
6747
|
contextLoader?: DocumentLoader;
|
6561
6748
|
suppressError?: boolean;
|
6562
6749
|
tracerProvider?: TracerProvider;
|
6750
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6563
6751
|
}): AsyncIterable<Application | Group | Organization | Person | Service>;
|
6564
6752
|
/**
|
6565
6753
|
* Similar to
|
@@ -6577,6 +6765,7 @@ declare class Service extends Object$1 {
|
|
6577
6765
|
contextLoader?: DocumentLoader;
|
6578
6766
|
suppressError?: boolean;
|
6579
6767
|
tracerProvider?: TracerProvider;
|
6768
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6580
6769
|
}): Promise<DidService | null>;
|
6581
6770
|
/**
|
6582
6771
|
* Similar to
|
@@ -6594,6 +6783,7 @@ declare class Service extends Object$1 {
|
|
6594
6783
|
contextLoader?: DocumentLoader;
|
6595
6784
|
suppressError?: boolean;
|
6596
6785
|
tracerProvider?: TracerProvider;
|
6786
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
6597
6787
|
}): AsyncIterable<DidService>;
|
6598
6788
|
/** This value is used for `Actor` type objects to show message on followed.
|
6599
6789
|
*/
|
@@ -6635,11 +6825,13 @@ declare class Service extends Object$1 {
|
|
6635
6825
|
documentLoader?: DocumentLoader;
|
6636
6826
|
contextLoader?: DocumentLoader;
|
6637
6827
|
tracerProvider?: TracerProvider;
|
6828
|
+
baseUrl?: URL;
|
6638
6829
|
}): Promise<Service>;
|
6639
6830
|
protected static __fromJsonLd__Service__(json: unknown, span: Span, options?: {
|
6640
6831
|
documentLoader?: DocumentLoader;
|
6641
6832
|
contextLoader?: DocumentLoader;
|
6642
6833
|
tracerProvider?: TracerProvider;
|
6834
|
+
baseUrl?: URL;
|
6643
6835
|
}): Promise<Service>;
|
6644
6836
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
6645
6837
|
}
|
@@ -6732,11 +6924,13 @@ declare class Source {
|
|
6732
6924
|
documentLoader?: DocumentLoader;
|
6733
6925
|
contextLoader?: DocumentLoader;
|
6734
6926
|
tracerProvider?: TracerProvider;
|
6927
|
+
baseUrl?: URL;
|
6735
6928
|
}): Promise<Source>;
|
6736
6929
|
protected static __fromJsonLd__Source__(json: unknown, span: Span, options?: {
|
6737
6930
|
documentLoader?: DocumentLoader;
|
6738
6931
|
contextLoader?: DocumentLoader;
|
6739
6932
|
tracerProvider?: TracerProvider;
|
6933
|
+
baseUrl?: URL;
|
6740
6934
|
}): Promise<Source>;
|
6741
6935
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
6742
6936
|
}
|
@@ -6829,6 +7023,24 @@ interface LookupObjectOptions {
|
|
6829
7023
|
* @since 0.8.0
|
6830
7024
|
*/
|
6831
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";
|
6832
7044
|
/**
|
6833
7045
|
* The options for making `User-Agent` header.
|
6834
7046
|
* If a string is given, it is used as the `User-Agent` header value.
|
@@ -7291,7 +7503,7 @@ type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: R
|
|
7291
7503
|
* the entire collection without pagination.
|
7292
7504
|
* @since 1.8.0
|
7293
7505
|
*/
|
7294
|
-
type CustomCollectionDispatcher<TItem,
|
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>;
|
7295
7507
|
/**
|
7296
7508
|
* A callback that counts the number of items in a custom collection.
|
7297
7509
|
*
|
@@ -7301,7 +7513,7 @@ type CustomCollectionDispatcher<TItem, TParams extends Record<string, string>, T
|
|
7301
7513
|
* @param values The parameters of the requested URL.
|
7302
7514
|
* @since 1.8.0
|
7303
7515
|
*/
|
7304
|
-
type CustomCollectionCounter<
|
7516
|
+
type CustomCollectionCounter<TParam extends string, TContextData> = (context: RequestContext<TContextData>, values: Record<TParam, string>) => number | bigint | null | Promise<number | bigint | null>;
|
7305
7517
|
/**
|
7306
7518
|
* A callback that returns a cursor for a custom collection.
|
7307
7519
|
*
|
@@ -7314,7 +7526,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
|
|
7314
7526
|
* @param values The parameters of the requested URL.
|
7315
7527
|
* @since 1.8.0
|
7316
7528
|
*/
|
7317
|
-
type CustomCollectionCursor<
|
7529
|
+
type CustomCollectionCursor<TParam extends string, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: Record<TParam, string>) => string | null | Promise<string | null>;
|
7318
7530
|
//#endregion
|
7319
7531
|
//#region src/federation/queue.d.ts
|
7320
7532
|
interface SenderKeyJwkPair {
|
@@ -7435,7 +7647,7 @@ interface Federatable<TContextData> {
|
|
7435
7647
|
* @returns An object with methods to set other actor dispatcher callbacks.
|
7436
7648
|
* @throws {RouterError} Thrown if the path pattern is invalid.
|
7437
7649
|
*/
|
7438
|
-
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>;
|
7439
7651
|
/**
|
7440
7652
|
* Registers an object dispatcher.
|
7441
7653
|
*
|
@@ -7449,9 +7661,7 @@ interface Federatable<TContextData> {
|
|
7449
7661
|
* must have one or more variables.
|
7450
7662
|
* @param dispatcher An object dispatcher callback to register.
|
7451
7663
|
*/
|
7452
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7453
|
-
typeId: URL;
|
7454
|
-
}, 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>;
|
7455
7665
|
/**
|
7456
7666
|
* Registers an object dispatcher.
|
7457
7667
|
*
|
@@ -7465,9 +7675,7 @@ interface Federatable<TContextData> {
|
|
7465
7675
|
* must have one or more variables.
|
7466
7676
|
* @param dispatcher An object dispatcher callback to register.
|
7467
7677
|
*/
|
7468
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7469
|
-
typeId: URL;
|
7470
|
-
}, 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>;
|
7471
7679
|
/**
|
7472
7680
|
* Registers an object dispatcher.
|
7473
7681
|
*
|
@@ -7481,9 +7689,7 @@ interface Federatable<TContextData> {
|
|
7481
7689
|
* must have one or more variables.
|
7482
7690
|
* @param dispatcher An object dispatcher callback to register.
|
7483
7691
|
*/
|
7484
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7485
|
-
typeId: URL;
|
7486
|
-
}, 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>;
|
7487
7693
|
/**
|
7488
7694
|
* Registers an object dispatcher.
|
7489
7695
|
*
|
@@ -7497,9 +7703,7 @@ interface Federatable<TContextData> {
|
|
7497
7703
|
* must have one or more variables.
|
7498
7704
|
* @param dispatcher An object dispatcher callback to register.
|
7499
7705
|
*/
|
7500
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7501
|
-
typeId: URL;
|
7502
|
-
}, 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>;
|
7503
7707
|
/**
|
7504
7708
|
* Registers an object dispatcher.
|
7505
7709
|
*
|
@@ -7513,9 +7717,7 @@ interface Federatable<TContextData> {
|
|
7513
7717
|
* must have one or more variables.
|
7514
7718
|
* @param dispatcher An object dispatcher callback to register.
|
7515
7719
|
*/
|
7516
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7517
|
-
typeId: URL;
|
7518
|
-
}, 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>;
|
7519
7721
|
/**
|
7520
7722
|
* Registers an object dispatcher.
|
7521
7723
|
*
|
@@ -7529,9 +7731,7 @@ interface Federatable<TContextData> {
|
|
7529
7731
|
* must have one or more variables.
|
7530
7732
|
* @param dispatcher An object dispatcher callback to register.
|
7531
7733
|
*/
|
7532
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
7533
|
-
typeId: URL;
|
7534
|
-
}, 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>;
|
7535
7735
|
/**
|
7536
7736
|
* Registers an inbox dispatcher.
|
7537
7737
|
*
|
@@ -7543,7 +7743,7 @@ interface Federatable<TContextData> {
|
|
7543
7743
|
* @param dispatcher An inbox dispatcher callback to register.
|
7544
7744
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7545
7745
|
*/
|
7546
|
-
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>;
|
7547
7747
|
/**
|
7548
7748
|
* Registers an outbox dispatcher.
|
7549
7749
|
*
|
@@ -7567,7 +7767,7 @@ interface Federatable<TContextData> {
|
|
7567
7767
|
* @param dispatcher An outbox dispatcher callback to register.
|
7568
7768
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7569
7769
|
*/
|
7570
|
-
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>;
|
7571
7771
|
/**
|
7572
7772
|
* Registers a following collection dispatcher.
|
7573
7773
|
* @param path The URI path pattern for the following collection. The syntax
|
@@ -7579,7 +7779,7 @@ interface Federatable<TContextData> {
|
|
7579
7779
|
* callbacks.
|
7580
7780
|
* @throws {RouterError} Thrown if the path pattern is invalid.
|
7581
7781
|
*/
|
7582
|
-
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>;
|
7583
7783
|
/**
|
7584
7784
|
* Registers a followers collection dispatcher.
|
7585
7785
|
* @param path The URI path pattern for the followers collection. The syntax
|
@@ -7591,7 +7791,7 @@ interface Federatable<TContextData> {
|
|
7591
7791
|
* callbacks.
|
7592
7792
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7593
7793
|
*/
|
7594
|
-
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>;
|
7595
7795
|
/**
|
7596
7796
|
* Registers a liked collection dispatcher.
|
7597
7797
|
* @param path The URI path pattern for the liked collection. The syntax
|
@@ -7603,7 +7803,7 @@ interface Federatable<TContextData> {
|
|
7603
7803
|
* callbacks.
|
7604
7804
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7605
7805
|
*/
|
7606
|
-
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>;
|
7607
7807
|
/**
|
7608
7808
|
* Registers a featured collection dispatcher.
|
7609
7809
|
* @param path The URI path pattern for the featured collection. The syntax
|
@@ -7615,7 +7815,7 @@ interface Federatable<TContextData> {
|
|
7615
7815
|
* callbacks.
|
7616
7816
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7617
7817
|
*/
|
7618
|
-
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>;
|
7619
7819
|
/**
|
7620
7820
|
* Registers a featured tags collection dispatcher.
|
7621
7821
|
* @param path The URI path pattern for the featured tags collection.
|
@@ -7627,7 +7827,7 @@ interface Federatable<TContextData> {
|
|
7627
7827
|
* callbacks.
|
7628
7828
|
* @throws {@link RouterError} Thrown if the path pattern is invalid.
|
7629
7829
|
*/
|
7630
|
-
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>;
|
7631
7831
|
/**
|
7632
7832
|
* Assigns the URL path for the inbox and starts setting inbox listeners.
|
7633
7833
|
*
|
@@ -7657,7 +7857,7 @@ interface Federatable<TContextData> {
|
|
7657
7857
|
* @returns An object to register inbox listeners.
|
7658
7858
|
* @throws {RouteError} Thrown if the path pattern is invalid.
|
7659
7859
|
*/
|
7660
|
-
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>;
|
7661
7861
|
/**
|
7662
7862
|
* Registers a collection of objects dispatcher.
|
7663
7863
|
*
|
@@ -7672,7 +7872,67 @@ interface Federatable<TContextData> {
|
|
7672
7872
|
* The path must have one or more variables.
|
7673
7873
|
* @param dispatcher A collection dispatcher callback to register.
|
7674
7874
|
*/
|
7675
|
-
setCollectionDispatcher<TObject extends Object$1,
|
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>;
|
7676
7936
|
/**
|
7677
7937
|
* Registers an ordered collection of objects dispatcher.
|
7678
7938
|
*
|
@@ -7687,7 +7947,7 @@ interface Federatable<TContextData> {
|
|
7687
7947
|
* The path must have one or more variables.
|
7688
7948
|
* @param dispatcher A collection dispatcher callback to register.
|
7689
7949
|
*/
|
7690
|
-
setOrderedCollectionDispatcher<TObject extends Object$1,
|
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>;
|
7691
7951
|
}
|
7692
7952
|
/**
|
7693
7953
|
* An object that registers federation-related business logic and dispatches
|
@@ -7858,6 +8118,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
7858
8118
|
*/
|
7859
8119
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
7860
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>;
|
7861
8151
|
/**
|
7862
8152
|
* Registry for inbox listeners for different activity types.
|
7863
8153
|
*/
|
@@ -7888,6 +8178,36 @@ interface InboxListenerSetters<TContextData> {
|
|
7888
8178
|
* @since 0.11.0
|
7889
8179
|
*/
|
7890
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>;
|
7891
8211
|
}
|
7892
8212
|
/**
|
7893
8213
|
* Parameters of {@link Federation.fetch} method.
|
@@ -7926,38 +8246,38 @@ interface FederationFetchOptions<TContextData> {
|
|
7926
8246
|
/**
|
7927
8247
|
* Additional settings for a custom collection dispatcher.
|
7928
8248
|
*
|
7929
|
-
* @template
|
8249
|
+
* @template TParam The type of the parameters in the URL path.
|
7930
8250
|
* @template TContext The type of the context. {@link Context} or
|
7931
8251
|
* {@link RequestContext}.
|
7932
8252
|
* @template TContextData The context data to pass to the {@link Context}.
|
7933
8253
|
* @template TFilter The type of filter for the collection.
|
7934
8254
|
*/
|
7935
|
-
interface CustomCollectionCallbackSetters<
|
8255
|
+
interface CustomCollectionCallbackSetters<TParam extends string, TContext extends Context<TContextData>, TContextData> {
|
7936
8256
|
/**
|
7937
8257
|
* Sets the counter for the custom collection.
|
7938
8258
|
* @param counter A callback that returns the number of items in the custom collection.
|
7939
8259
|
* @returns The setters object so that settings can be chained.
|
7940
8260
|
*/
|
7941
|
-
setCounter(counter: CustomCollectionCounter<
|
8261
|
+
setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
7942
8262
|
/**
|
7943
8263
|
* Sets the first cursor for the custom collection.
|
7944
8264
|
* @param cursor The cursor for the first item in the custom collection.
|
7945
8265
|
* @returns The setters object so that settings can be chained.
|
7946
8266
|
*/
|
7947
|
-
setFirstCursor(cursor: CustomCollectionCursor<
|
8267
|
+
setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
7948
8268
|
/**
|
7949
8269
|
* Sets the last cursor for the custom collection.
|
7950
8270
|
* @param cursor The cursor for the last item in the custom collection.
|
7951
8271
|
* @returns The setters object so that settings can be chained.
|
7952
8272
|
*/
|
7953
|
-
setLastCursor(cursor: CustomCollectionCursor<
|
8273
|
+
setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
7954
8274
|
/**
|
7955
8275
|
* Specifies the conditions under which requests are authorized.
|
7956
8276
|
* @param predicate A callback that returns whether a request is authorized.
|
7957
8277
|
* @returns The setters object so that settings can be chained.
|
7958
8278
|
* @since 0.7.0
|
7959
8279
|
*/
|
7960
|
-
authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<
|
8280
|
+
authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>;
|
7961
8281
|
}
|
7962
8282
|
/**
|
7963
8283
|
* Represents an object with a type ID, which is either a constructor or an
|
@@ -7969,73 +8289,34 @@ type ConstructorWithTypeId<TObject extends Object$1> = (new (...args: any[]) =>
|
|
7969
8289
|
typeId: URL;
|
7970
8290
|
};
|
7971
8291
|
/**
|
7972
|
-
*
|
7973
|
-
*
|
7974
|
-
* values are their string representations.
|
7975
|
-
* @returns A string representing the path with all parameters.
|
7976
|
-
* @example
|
7977
|
-
* ```ts
|
7978
|
-
* type UserPostPath = ParamsKeyPath<{ userId: string; postId: string }>;
|
7979
|
-
* let userPostPath: UserPostPath;
|
7980
|
-
* // userPostPath = "/posts/{postId}"; // invalid - does not contain `{userId}`
|
7981
|
-
* // userPostPath = "/users/{userId}"; // invalid - does not contain `{postId}`
|
7982
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // valid
|
7983
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // valid
|
7984
|
-
* ```
|
7985
|
-
*/
|
7986
|
-
type ParamsKeyPath<Params extends Record<string, string>> = ParamsPath<Extract<keyof Params, string>> & string;
|
7987
|
-
/**
|
7988
|
-
* Represents a path with multiple parameters.
|
7989
|
-
* All permutations of the parameters are included in the union type.
|
7990
|
-
* The path must have all parameters in the form of `{paramName}`.
|
7991
|
-
* @param Params - A union of parameter names.
|
7992
|
-
* @returns A string representing the path with all parameters.
|
7993
|
-
* @example
|
7994
|
-
* ```ts
|
7995
|
-
* type UserPostPath = ParamsPath<"userId" | "postId">;
|
7996
|
-
* // = `${string}{userId}${string}` & `${string}{postId}${string}`
|
7997
|
-
* // =
|
7998
|
-
* // | `${string}{userId}${string}{postId}${string}`
|
7999
|
-
* // | `${string}{postId}${string}{userId}${string}`
|
8000
|
-
* let userPostPath: UserPostPath;
|
8001
|
-
* userPostPath = "/users/posts"; // ❌ invalid
|
8002
|
-
* userPostPath = "/users/{userId}"; // ❌ invalid
|
8003
|
-
* userPostPath = "/posts/{postId}"; // ❌ invalid
|
8004
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
|
8005
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
|
8006
|
-
*/
|
8007
|
-
type ParamsPath<Params extends string> = UnionToIntersection<ParamPath<Params>>;
|
8008
|
-
/**
|
8009
|
-
* Represents a path with a single parameter.
|
8010
|
-
* The path must have at least one of the parameters in the form of `{paramName}`.
|
8011
|
-
* @param Param - The name of the parameter.
|
8012
|
-
* @returns A string representing the path with the parameter.
|
8013
|
-
* @example
|
8014
|
-
* ```ts
|
8015
|
-
* type UserPostPath = ParamPath<"userId" | "postId">;
|
8016
|
-
* // = `${string}{userId}${string}` | `${string}{postId}${string}`
|
8017
|
-
* let userPostPath: UserPostPath;
|
8018
|
-
* userPostPath = "/users/posts"; // ❌ invalid
|
8019
|
-
* userPostPath = "/users/{userId}"; // ✅ valid
|
8020
|
-
* userPostPath = "/posts/{postId}"; // ✅ valid
|
8021
|
-
* userPostPath = "/users/{userId}/posts/{postId}"; // ✅ valid
|
8022
|
-
* userPostPath = "/posts/{postId}/users/{userId}"; // ✅ valid
|
8023
|
-
*/
|
8024
|
-
type ParamPath<Param extends string> = `${string}{${Param}}${string}`;
|
8025
|
-
/**
|
8026
|
-
* Converts union types to intersection types.
|
8292
|
+
* Defines a union of all valid RFC 6570 URI Template expressions for a given
|
8293
|
+
* parameter name.
|
8027
8294
|
*
|
8028
|
-
*
|
8029
|
-
*
|
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.
|
8298
|
+
*
|
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.
|
8030
8310
|
* @example
|
8031
8311
|
* ```ts
|
8032
|
-
* type
|
8033
|
-
*
|
8034
|
-
*
|
8035
|
-
*
|
8036
|
-
*
|
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.
|
8037
8318
|
*/
|
8038
|
-
type
|
8319
|
+
type Rfc6570Expression<Param extends string> = `{${Param}}` | `{+${Param}}` | `{#${Param}}` | `{.${Param}}` | `{/${Param}}` | `{;${Param}}` | `{?${Param}}` | `{&${Param}}`;
|
8039
8320
|
//#endregion
|
8040
8321
|
//#region src/federation/context.d.ts
|
8041
8322
|
/**
|
@@ -8124,9 +8405,7 @@ interface Context<TContextData> {
|
|
8124
8405
|
* @throws {TypeError} If values are invalid.
|
8125
8406
|
* @since 0.7.0
|
8126
8407
|
*/
|
8127
|
-
getObjectUri<TObject extends Object$1>(cls:
|
8128
|
-
typeId: URL;
|
8129
|
-
}, values: Record<string, string>): URL;
|
8408
|
+
getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
|
8130
8409
|
/**
|
8131
8410
|
* Builds the URI of an actor's outbox with the given identifier.
|
8132
8411
|
* @param identifier The actor's identifier.
|
@@ -8440,9 +8719,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
|
|
8440
8719
|
* @throws {TypeError} If values are invalid.
|
8441
8720
|
* @since 0.7.0
|
8442
8721
|
*/
|
8443
|
-
getObject<TObject extends Object$1>(cls:
|
8444
|
-
typeId: URL;
|
8445
|
-
}, values: Record<string, string>): Promise<TObject | null>;
|
8722
|
+
getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
|
8446
8723
|
/**
|
8447
8724
|
* Gets the public key of the sender, if any exists and it is verified.
|
8448
8725
|
* Otherwise, `null` is returned.
|
@@ -8586,9 +8863,7 @@ type ParseUriResult =
|
|
8586
8863
|
* The case of an object URI.
|
8587
8864
|
*/ | {
|
8588
8865
|
readonly type: "object";
|
8589
|
-
readonly class:
|
8590
|
-
typeId: URL;
|
8591
|
-
};
|
8866
|
+
readonly class: ConstructorWithTypeId<Object$1>;
|
8592
8867
|
readonly typeId: URL;
|
8593
8868
|
readonly values: Record<string, string>;
|
8594
8869
|
}
|