@fedify/fedify 0.14.0-dev.332 → 0.14.0-dev.334

Sign up to get free protection for your applications and to get access to all the features.
@@ -3620,216 +3620,163 @@ export class Object {
3620
3620
  }
3621
3621
  if ("@type" in values) {
3622
3622
  if (values["@type"].includes("http://joinmastodon.org/ns#Emoji")) {
3623
- delete values["@type"];
3624
- return await Emoji.fromJsonLd(values, options);
3623
+ return await Emoji.fromJsonLd(json, options);
3625
3624
  }
3626
3625
  if (values["@type"].includes("http://litepub.social/ns#ChatMessage")) {
3627
- delete values["@type"];
3628
- return await ChatMessage.fromJsonLd(values, options);
3626
+ return await ChatMessage.fromJsonLd(json, options);
3629
3627
  }
3630
3628
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Activity")) {
3631
- delete values["@type"];
3632
- return await Activity.fromJsonLd(values, options);
3629
+ return await Activity.fromJsonLd(json, options);
3633
3630
  }
3634
3631
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Accept")) {
3635
- delete values["@type"];
3636
- return await Accept.fromJsonLd(values, options);
3632
+ return await Accept.fromJsonLd(json, options);
3637
3633
  }
3638
3634
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeAccept")) {
3639
- delete values["@type"];
3640
- return await TentativeAccept.fromJsonLd(values, options);
3635
+ return await TentativeAccept.fromJsonLd(json, options);
3641
3636
  }
3642
3637
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Add")) {
3643
- delete values["@type"];
3644
- return await Add.fromJsonLd(values, options);
3638
+ return await Add.fromJsonLd(json, options);
3645
3639
  }
3646
3640
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Announce")) {
3647
- delete values["@type"];
3648
- return await Announce.fromJsonLd(values, options);
3641
+ return await Announce.fromJsonLd(json, options);
3649
3642
  }
3650
3643
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Create")) {
3651
- delete values["@type"];
3652
- return await Create.fromJsonLd(values, options);
3644
+ return await Create.fromJsonLd(json, options);
3653
3645
  }
3654
3646
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Delete")) {
3655
- delete values["@type"];
3656
- return await Delete.fromJsonLd(values, options);
3647
+ return await Delete.fromJsonLd(json, options);
3657
3648
  }
3658
3649
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Dislike")) {
3659
- delete values["@type"];
3660
- return await Dislike.fromJsonLd(values, options);
3650
+ return await Dislike.fromJsonLd(json, options);
3661
3651
  }
3662
3652
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Flag")) {
3663
- delete values["@type"];
3664
- return await Flag.fromJsonLd(values, options);
3653
+ return await Flag.fromJsonLd(json, options);
3665
3654
  }
3666
3655
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Follow")) {
3667
- delete values["@type"];
3668
- return await Follow.fromJsonLd(values, options);
3656
+ return await Follow.fromJsonLd(json, options);
3669
3657
  }
3670
3658
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Ignore")) {
3671
- delete values["@type"];
3672
- return await Ignore.fromJsonLd(values, options);
3659
+ return await Ignore.fromJsonLd(json, options);
3673
3660
  }
3674
3661
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Block")) {
3675
- delete values["@type"];
3676
- return await Block.fromJsonLd(values, options);
3662
+ return await Block.fromJsonLd(json, options);
3677
3663
  }
3678
3664
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#IntransitiveActivity")) {
3679
- delete values["@type"];
3680
- return await IntransitiveActivity.fromJsonLd(values, options);
3665
+ return await IntransitiveActivity.fromJsonLd(json, options);
3681
3666
  }
3682
3667
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Arrive")) {
3683
- delete values["@type"];
3684
- return await Arrive.fromJsonLd(values, options);
3668
+ return await Arrive.fromJsonLd(json, options);
3685
3669
  }
3686
3670
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Question")) {
3687
- delete values["@type"];
3688
- return await Question.fromJsonLd(values, options);
3671
+ return await Question.fromJsonLd(json, options);
3689
3672
  }
3690
3673
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Travel")) {
3691
- delete values["@type"];
3692
- return await Travel.fromJsonLd(values, options);
3674
+ return await Travel.fromJsonLd(json, options);
3693
3675
  }
3694
3676
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Join")) {
3695
- delete values["@type"];
3696
- return await Join.fromJsonLd(values, options);
3677
+ return await Join.fromJsonLd(json, options);
3697
3678
  }
3698
3679
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Leave")) {
3699
- delete values["@type"];
3700
- return await Leave.fromJsonLd(values, options);
3680
+ return await Leave.fromJsonLd(json, options);
3701
3681
  }
3702
3682
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Like")) {
3703
- delete values["@type"];
3704
- return await Like.fromJsonLd(values, options);
3683
+ return await Like.fromJsonLd(json, options);
3705
3684
  }
3706
3685
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Listen")) {
3707
- delete values["@type"];
3708
- return await Listen.fromJsonLd(values, options);
3686
+ return await Listen.fromJsonLd(json, options);
3709
3687
  }
3710
3688
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Move")) {
3711
- delete values["@type"];
3712
- return await Move.fromJsonLd(values, options);
3689
+ return await Move.fromJsonLd(json, options);
3713
3690
  }
3714
3691
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Offer")) {
3715
- delete values["@type"];
3716
- return await Offer.fromJsonLd(values, options);
3692
+ return await Offer.fromJsonLd(json, options);
3717
3693
  }
3718
3694
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Invite")) {
3719
- delete values["@type"];
3720
- return await Invite.fromJsonLd(values, options);
3695
+ return await Invite.fromJsonLd(json, options);
3721
3696
  }
3722
3697
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Read")) {
3723
- delete values["@type"];
3724
- return await Read.fromJsonLd(values, options);
3698
+ return await Read.fromJsonLd(json, options);
3725
3699
  }
3726
3700
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Reject")) {
3727
- delete values["@type"];
3728
- return await Reject.fromJsonLd(values, options);
3701
+ return await Reject.fromJsonLd(json, options);
3729
3702
  }
3730
3703
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeReject")) {
3731
- delete values["@type"];
3732
- return await TentativeReject.fromJsonLd(values, options);
3704
+ return await TentativeReject.fromJsonLd(json, options);
3733
3705
  }
3734
3706
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Remove")) {
3735
- delete values["@type"];
3736
- return await Remove.fromJsonLd(values, options);
3707
+ return await Remove.fromJsonLd(json, options);
3737
3708
  }
3738
3709
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Undo")) {
3739
- delete values["@type"];
3740
- return await Undo.fromJsonLd(values, options);
3710
+ return await Undo.fromJsonLd(json, options);
3741
3711
  }
3742
3712
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Update")) {
3743
- delete values["@type"];
3744
- return await Update.fromJsonLd(values, options);
3713
+ return await Update.fromJsonLd(json, options);
3745
3714
  }
3746
3715
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#View")) {
3747
- delete values["@type"];
3748
- return await View.fromJsonLd(values, options);
3716
+ return await View.fromJsonLd(json, options);
3749
3717
  }
3750
3718
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Application")) {
3751
- delete values["@type"];
3752
- return await Application.fromJsonLd(values, options);
3719
+ return await Application.fromJsonLd(json, options);
3753
3720
  }
3754
3721
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Article")) {
3755
- delete values["@type"];
3756
- return await Article.fromJsonLd(values, options);
3722
+ return await Article.fromJsonLd(json, options);
3757
3723
  }
3758
3724
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Collection")) {
3759
- delete values["@type"];
3760
- return await Collection.fromJsonLd(values, options);
3725
+ return await Collection.fromJsonLd(json, options);
3761
3726
  }
3762
3727
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#CollectionPage")) {
3763
- delete values["@type"];
3764
- return await CollectionPage.fromJsonLd(values, options);
3728
+ return await CollectionPage.fromJsonLd(json, options);
3765
3729
  }
3766
3730
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage")) {
3767
- delete values["@type"];
3768
- return await OrderedCollectionPage.fromJsonLd(values, options);
3731
+ return await OrderedCollectionPage.fromJsonLd(json, options);
3769
3732
  }
3770
3733
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection")) {
3771
- delete values["@type"];
3772
- return await OrderedCollection.fromJsonLd(values, options);
3734
+ return await OrderedCollection.fromJsonLd(json, options);
3773
3735
  }
3774
3736
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Document")) {
3775
- delete values["@type"];
3776
- return await Document.fromJsonLd(values, options);
3737
+ return await Document.fromJsonLd(json, options);
3777
3738
  }
3778
3739
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Audio")) {
3779
- delete values["@type"];
3780
- return await Audio.fromJsonLd(values, options);
3740
+ return await Audio.fromJsonLd(json, options);
3781
3741
  }
3782
3742
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Image")) {
3783
- delete values["@type"];
3784
- return await Image.fromJsonLd(values, options);
3743
+ return await Image.fromJsonLd(json, options);
3785
3744
  }
3786
3745
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Page")) {
3787
- delete values["@type"];
3788
- return await Page.fromJsonLd(values, options);
3746
+ return await Page.fromJsonLd(json, options);
3789
3747
  }
3790
3748
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Video")) {
3791
- delete values["@type"];
3792
- return await Video.fromJsonLd(values, options);
3749
+ return await Video.fromJsonLd(json, options);
3793
3750
  }
3794
3751
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Event")) {
3795
- delete values["@type"];
3796
- return await Event.fromJsonLd(values, options);
3752
+ return await Event.fromJsonLd(json, options);
3797
3753
  }
3798
3754
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Group")) {
3799
- delete values["@type"];
3800
- return await Group.fromJsonLd(values, options);
3755
+ return await Group.fromJsonLd(json, options);
3801
3756
  }
3802
3757
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Note")) {
3803
- delete values["@type"];
3804
- return await Note.fromJsonLd(values, options);
3758
+ return await Note.fromJsonLd(json, options);
3805
3759
  }
3806
3760
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")) {
3807
- delete values["@type"];
3808
- return await Organization.fromJsonLd(values, options);
3761
+ return await Organization.fromJsonLd(json, options);
3809
3762
  }
3810
3763
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Person")) {
3811
- delete values["@type"];
3812
- return await Person.fromJsonLd(values, options);
3764
+ return await Person.fromJsonLd(json, options);
3813
3765
  }
3814
3766
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Place")) {
3815
- delete values["@type"];
3816
- return await Place.fromJsonLd(values, options);
3767
+ return await Place.fromJsonLd(json, options);
3817
3768
  }
3818
3769
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Profile")) {
3819
- delete values["@type"];
3820
- return await Profile.fromJsonLd(values, options);
3770
+ return await Profile.fromJsonLd(json, options);
3821
3771
  }
3822
3772
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Relationship")) {
3823
- delete values["@type"];
3824
- return await Relationship.fromJsonLd(values, options);
3773
+ return await Relationship.fromJsonLd(json, options);
3825
3774
  }
3826
3775
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Service")) {
3827
- delete values["@type"];
3828
- return await Service.fromJsonLd(values, options);
3776
+ return await Service.fromJsonLd(json, options);
3829
3777
  }
3830
3778
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Tombstone")) {
3831
- delete values["@type"];
3832
- return await Tombstone.fromJsonLd(values, options);
3779
+ return await Tombstone.fromJsonLd(json, options);
3833
3780
  }
3834
3781
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) {
3835
3782
  throw new TypeError("Invalid type: " + values["@type"]);
@@ -5419,6 +5366,7 @@ export class Emoji extends Object {
5419
5366
  throw new TypeError("Invalid type: " + values["@type"]);
5420
5367
  }
5421
5368
  }
5369
+ delete values["@type"];
5422
5370
  const instance = await super.fromJsonLd(values, {
5423
5371
  ...options,
5424
5372
  // @ts-ignore: an internal option
@@ -5611,6 +5559,7 @@ export class ChatMessage extends Object {
5611
5559
  throw new TypeError("Invalid type: " + values["@type"]);
5612
5560
  }
5613
5561
  }
5562
+ delete values["@type"];
5614
5563
  const instance = await super.fromJsonLd(values, {
5615
5564
  ...options,
5616
5565
  // @ts-ignore: an internal option
@@ -8719,125 +8668,97 @@ export class Activity extends Object {
8719
8668
  }
8720
8669
  if ("@type" in values) {
8721
8670
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Accept")) {
8722
- delete values["@type"];
8723
- return await Accept.fromJsonLd(values, options);
8671
+ return await Accept.fromJsonLd(json, options);
8724
8672
  }
8725
8673
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeAccept")) {
8726
- delete values["@type"];
8727
- return await TentativeAccept.fromJsonLd(values, options);
8674
+ return await TentativeAccept.fromJsonLd(json, options);
8728
8675
  }
8729
8676
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Add")) {
8730
- delete values["@type"];
8731
- return await Add.fromJsonLd(values, options);
8677
+ return await Add.fromJsonLd(json, options);
8732
8678
  }
8733
8679
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Announce")) {
8734
- delete values["@type"];
8735
- return await Announce.fromJsonLd(values, options);
8680
+ return await Announce.fromJsonLd(json, options);
8736
8681
  }
8737
8682
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Create")) {
8738
- delete values["@type"];
8739
- return await Create.fromJsonLd(values, options);
8683
+ return await Create.fromJsonLd(json, options);
8740
8684
  }
8741
8685
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Delete")) {
8742
- delete values["@type"];
8743
- return await Delete.fromJsonLd(values, options);
8686
+ return await Delete.fromJsonLd(json, options);
8744
8687
  }
8745
8688
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Dislike")) {
8746
- delete values["@type"];
8747
- return await Dislike.fromJsonLd(values, options);
8689
+ return await Dislike.fromJsonLd(json, options);
8748
8690
  }
8749
8691
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Flag")) {
8750
- delete values["@type"];
8751
- return await Flag.fromJsonLd(values, options);
8692
+ return await Flag.fromJsonLd(json, options);
8752
8693
  }
8753
8694
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Follow")) {
8754
- delete values["@type"];
8755
- return await Follow.fromJsonLd(values, options);
8695
+ return await Follow.fromJsonLd(json, options);
8756
8696
  }
8757
8697
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Ignore")) {
8758
- delete values["@type"];
8759
- return await Ignore.fromJsonLd(values, options);
8698
+ return await Ignore.fromJsonLd(json, options);
8760
8699
  }
8761
8700
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Block")) {
8762
- delete values["@type"];
8763
- return await Block.fromJsonLd(values, options);
8701
+ return await Block.fromJsonLd(json, options);
8764
8702
  }
8765
8703
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#IntransitiveActivity")) {
8766
- delete values["@type"];
8767
- return await IntransitiveActivity.fromJsonLd(values, options);
8704
+ return await IntransitiveActivity.fromJsonLd(json, options);
8768
8705
  }
8769
8706
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Arrive")) {
8770
- delete values["@type"];
8771
- return await Arrive.fromJsonLd(values, options);
8707
+ return await Arrive.fromJsonLd(json, options);
8772
8708
  }
8773
8709
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Question")) {
8774
- delete values["@type"];
8775
- return await Question.fromJsonLd(values, options);
8710
+ return await Question.fromJsonLd(json, options);
8776
8711
  }
8777
8712
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Travel")) {
8778
- delete values["@type"];
8779
- return await Travel.fromJsonLd(values, options);
8713
+ return await Travel.fromJsonLd(json, options);
8780
8714
  }
8781
8715
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Join")) {
8782
- delete values["@type"];
8783
- return await Join.fromJsonLd(values, options);
8716
+ return await Join.fromJsonLd(json, options);
8784
8717
  }
8785
8718
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Leave")) {
8786
- delete values["@type"];
8787
- return await Leave.fromJsonLd(values, options);
8719
+ return await Leave.fromJsonLd(json, options);
8788
8720
  }
8789
8721
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Like")) {
8790
- delete values["@type"];
8791
- return await Like.fromJsonLd(values, options);
8722
+ return await Like.fromJsonLd(json, options);
8792
8723
  }
8793
8724
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Listen")) {
8794
- delete values["@type"];
8795
- return await Listen.fromJsonLd(values, options);
8725
+ return await Listen.fromJsonLd(json, options);
8796
8726
  }
8797
8727
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Move")) {
8798
- delete values["@type"];
8799
- return await Move.fromJsonLd(values, options);
8728
+ return await Move.fromJsonLd(json, options);
8800
8729
  }
8801
8730
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Offer")) {
8802
- delete values["@type"];
8803
- return await Offer.fromJsonLd(values, options);
8731
+ return await Offer.fromJsonLd(json, options);
8804
8732
  }
8805
8733
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Invite")) {
8806
- delete values["@type"];
8807
- return await Invite.fromJsonLd(values, options);
8734
+ return await Invite.fromJsonLd(json, options);
8808
8735
  }
8809
8736
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Read")) {
8810
- delete values["@type"];
8811
- return await Read.fromJsonLd(values, options);
8737
+ return await Read.fromJsonLd(json, options);
8812
8738
  }
8813
8739
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Reject")) {
8814
- delete values["@type"];
8815
- return await Reject.fromJsonLd(values, options);
8740
+ return await Reject.fromJsonLd(json, options);
8816
8741
  }
8817
8742
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeReject")) {
8818
- delete values["@type"];
8819
- return await TentativeReject.fromJsonLd(values, options);
8743
+ return await TentativeReject.fromJsonLd(json, options);
8820
8744
  }
8821
8745
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Remove")) {
8822
- delete values["@type"];
8823
- return await Remove.fromJsonLd(values, options);
8746
+ return await Remove.fromJsonLd(json, options);
8824
8747
  }
8825
8748
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Undo")) {
8826
- delete values["@type"];
8827
- return await Undo.fromJsonLd(values, options);
8749
+ return await Undo.fromJsonLd(json, options);
8828
8750
  }
8829
8751
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Update")) {
8830
- delete values["@type"];
8831
- return await Update.fromJsonLd(values, options);
8752
+ return await Update.fromJsonLd(json, options);
8832
8753
  }
8833
8754
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#View")) {
8834
- delete values["@type"];
8835
- return await View.fromJsonLd(values, options);
8755
+ return await View.fromJsonLd(json, options);
8836
8756
  }
8837
8757
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Activity")) {
8838
8758
  throw new TypeError("Invalid type: " + values["@type"]);
8839
8759
  }
8840
8760
  }
8761
+ delete values["@type"];
8841
8762
  const instance = await super.fromJsonLd(values, {
8842
8763
  ...options,
8843
8764
  // @ts-ignore: an internal option
@@ -9242,13 +9163,13 @@ export class Accept extends Activity {
9242
9163
  }
9243
9164
  if ("@type" in values) {
9244
9165
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeAccept")) {
9245
- delete values["@type"];
9246
- return await TentativeAccept.fromJsonLd(values, options);
9166
+ return await TentativeAccept.fromJsonLd(json, options);
9247
9167
  }
9248
9168
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Accept")) {
9249
9169
  throw new TypeError("Invalid type: " + values["@type"]);
9250
9170
  }
9251
9171
  }
9172
+ delete values["@type"];
9252
9173
  const instance = await super.fromJsonLd(values, {
9253
9174
  ...options,
9254
9175
  // @ts-ignore: an internal option
@@ -9430,6 +9351,7 @@ export class Add extends Activity {
9430
9351
  throw new TypeError("Invalid type: " + values["@type"]);
9431
9352
  }
9432
9353
  }
9354
+ delete values["@type"];
9433
9355
  const instance = await super.fromJsonLd(values, {
9434
9356
  ...options,
9435
9357
  // @ts-ignore: an internal option
@@ -9624,6 +9546,7 @@ export class Announce extends Activity {
9624
9546
  throw new TypeError("Invalid type: " + values["@type"]);
9625
9547
  }
9626
9548
  }
9549
+ delete values["@type"];
9627
9550
  const instance = await super.fromJsonLd(values, {
9628
9551
  ...options,
9629
9552
  // @ts-ignore: an internal option
@@ -11433,6 +11356,7 @@ export class Application extends Object {
11433
11356
  throw new TypeError("Invalid type: " + values["@type"]);
11434
11357
  }
11435
11358
  }
11359
+ delete values["@type"];
11436
11360
  const instance = await super.fromJsonLd(values, {
11437
11361
  ...options,
11438
11362
  // @ts-ignore: an internal option
@@ -12097,21 +12021,19 @@ export class IntransitiveActivity extends Activity {
12097
12021
  }
12098
12022
  if ("@type" in values) {
12099
12023
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Arrive")) {
12100
- delete values["@type"];
12101
- return await Arrive.fromJsonLd(values, options);
12024
+ return await Arrive.fromJsonLd(json, options);
12102
12025
  }
12103
12026
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Question")) {
12104
- delete values["@type"];
12105
- return await Question.fromJsonLd(values, options);
12027
+ return await Question.fromJsonLd(json, options);
12106
12028
  }
12107
12029
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Travel")) {
12108
- delete values["@type"];
12109
- return await Travel.fromJsonLd(values, options);
12030
+ return await Travel.fromJsonLd(json, options);
12110
12031
  }
12111
12032
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#IntransitiveActivity")) {
12112
12033
  throw new TypeError("Invalid type: " + values["@type"]);
12113
12034
  }
12114
12035
  }
12036
+ delete values["@type"];
12115
12037
  const instance = await super.fromJsonLd(values, {
12116
12038
  ...options,
12117
12039
  // @ts-ignore: an internal option
@@ -12275,6 +12197,7 @@ export class Arrive extends IntransitiveActivity {
12275
12197
  throw new TypeError("Invalid type: " + values["@type"]);
12276
12198
  }
12277
12199
  }
12200
+ delete values["@type"];
12278
12201
  const instance = await super.fromJsonLd(values, {
12279
12202
  ...options,
12280
12203
  // @ts-ignore: an internal option
@@ -12465,6 +12388,7 @@ export class Article extends Object {
12465
12388
  throw new TypeError("Invalid type: " + values["@type"]);
12466
12389
  }
12467
12390
  }
12391
+ delete values["@type"];
12468
12392
  const instance = await super.fromJsonLd(values, {
12469
12393
  ...options,
12470
12394
  // @ts-ignore: an internal option
@@ -12748,25 +12672,22 @@ export class Document extends Object {
12748
12672
  }
12749
12673
  if ("@type" in values) {
12750
12674
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Audio")) {
12751
- delete values["@type"];
12752
- return await Audio.fromJsonLd(values, options);
12675
+ return await Audio.fromJsonLd(json, options);
12753
12676
  }
12754
12677
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Image")) {
12755
- delete values["@type"];
12756
- return await Image.fromJsonLd(values, options);
12678
+ return await Image.fromJsonLd(json, options);
12757
12679
  }
12758
12680
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Page")) {
12759
- delete values["@type"];
12760
- return await Page.fromJsonLd(values, options);
12681
+ return await Page.fromJsonLd(json, options);
12761
12682
  }
12762
12683
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Video")) {
12763
- delete values["@type"];
12764
- return await Video.fromJsonLd(values, options);
12684
+ return await Video.fromJsonLd(json, options);
12765
12685
  }
12766
12686
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Document")) {
12767
12687
  throw new TypeError("Invalid type: " + values["@type"]);
12768
12688
  }
12769
12689
  }
12690
+ delete values["@type"];
12770
12691
  const instance = await super.fromJsonLd(values, {
12771
12692
  ...options,
12772
12693
  // @ts-ignore: an internal option
@@ -12993,6 +12914,7 @@ export class Audio extends Document {
12993
12914
  throw new TypeError("Invalid type: " + values["@type"]);
12994
12915
  }
12995
12916
  }
12917
+ delete values["@type"];
12996
12918
  const instance = await super.fromJsonLd(values, {
12997
12919
  ...options,
12998
12920
  // @ts-ignore: an internal option
@@ -13169,13 +13091,13 @@ export class Ignore extends Activity {
13169
13091
  }
13170
13092
  if ("@type" in values) {
13171
13093
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Block")) {
13172
- delete values["@type"];
13173
- return await Block.fromJsonLd(values, options);
13094
+ return await Block.fromJsonLd(json, options);
13174
13095
  }
13175
13096
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Ignore")) {
13176
13097
  throw new TypeError("Invalid type: " + values["@type"]);
13177
13098
  }
13178
13099
  }
13100
+ delete values["@type"];
13179
13101
  const instance = await super.fromJsonLd(values, {
13180
13102
  ...options,
13181
13103
  // @ts-ignore: an internal option
@@ -13357,6 +13279,7 @@ export class Block extends Ignore {
13357
13279
  throw new TypeError("Invalid type: " + values["@type"]);
13358
13280
  }
13359
13281
  }
13282
+ delete values["@type"];
13360
13283
  const instance = await super.fromJsonLd(values, {
13361
13284
  ...options,
13362
13285
  // @ts-ignore: an internal option
@@ -14036,21 +13959,19 @@ export class Collection extends Object {
14036
13959
  }
14037
13960
  if ("@type" in values) {
14038
13961
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#CollectionPage")) {
14039
- delete values["@type"];
14040
- return await CollectionPage.fromJsonLd(values, options);
13962
+ return await CollectionPage.fromJsonLd(json, options);
14041
13963
  }
14042
13964
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage")) {
14043
- delete values["@type"];
14044
- return await OrderedCollectionPage.fromJsonLd(values, options);
13965
+ return await OrderedCollectionPage.fromJsonLd(json, options);
14045
13966
  }
14046
13967
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection")) {
14047
- delete values["@type"];
14048
- return await OrderedCollection.fromJsonLd(values, options);
13968
+ return await OrderedCollection.fromJsonLd(json, options);
14049
13969
  }
14050
13970
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Collection")) {
14051
13971
  throw new TypeError("Invalid type: " + values["@type"]);
14052
13972
  }
14053
13973
  }
13974
+ delete values["@type"];
14054
13975
  const instance = await super.fromJsonLd(values, {
14055
13976
  ...options,
14056
13977
  // @ts-ignore: an internal option
@@ -14759,13 +14680,13 @@ export class CollectionPage extends Collection {
14759
14680
  }
14760
14681
  if ("@type" in values) {
14761
14682
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage")) {
14762
- delete values["@type"];
14763
- return await OrderedCollectionPage.fromJsonLd(values, options);
14683
+ return await OrderedCollectionPage.fromJsonLd(json, options);
14764
14684
  }
14765
14685
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#CollectionPage")) {
14766
14686
  throw new TypeError("Invalid type: " + values["@type"]);
14767
14687
  }
14768
14688
  }
14689
+ delete values["@type"];
14769
14690
  const instance = await super.fromJsonLd(values, {
14770
14691
  ...options,
14771
14692
  // @ts-ignore: an internal option
@@ -15048,6 +14969,7 @@ export class Create extends Activity {
15048
14969
  throw new TypeError("Invalid type: " + values["@type"]);
15049
14970
  }
15050
14971
  }
14972
+ delete values["@type"];
15051
14973
  const instance = await super.fromJsonLd(values, {
15052
14974
  ...options,
15053
14975
  // @ts-ignore: an internal option
@@ -15243,6 +15165,7 @@ export class Delete extends Activity {
15243
15165
  throw new TypeError("Invalid type: " + values["@type"]);
15244
15166
  }
15245
15167
  }
15168
+ delete values["@type"];
15246
15169
  const instance = await super.fromJsonLd(values, {
15247
15170
  ...options,
15248
15171
  // @ts-ignore: an internal option
@@ -15421,6 +15344,7 @@ export class Dislike extends Activity {
15421
15344
  throw new TypeError("Invalid type: " + values["@type"]);
15422
15345
  }
15423
15346
  }
15347
+ delete values["@type"];
15424
15348
  const instance = await super.fromJsonLd(values, {
15425
15349
  ...options,
15426
15350
  // @ts-ignore: an internal option
@@ -16229,6 +16153,7 @@ export class Event extends Object {
16229
16153
  throw new TypeError("Invalid type: " + values["@type"]);
16230
16154
  }
16231
16155
  }
16156
+ delete values["@type"];
16232
16157
  const instance = await super.fromJsonLd(values, {
16233
16158
  ...options,
16234
16159
  // @ts-ignore: an internal option
@@ -16409,6 +16334,7 @@ export class Flag extends Activity {
16409
16334
  throw new TypeError("Invalid type: " + values["@type"]);
16410
16335
  }
16411
16336
  }
16337
+ delete values["@type"];
16412
16338
  const instance = await super.fromJsonLd(values, {
16413
16339
  ...options,
16414
16340
  // @ts-ignore: an internal option
@@ -16590,6 +16516,7 @@ export class Follow extends Activity {
16590
16516
  throw new TypeError("Invalid type: " + values["@type"]);
16591
16517
  }
16592
16518
  }
16519
+ delete values["@type"];
16593
16520
  const instance = await super.fromJsonLd(values, {
16594
16521
  ...options,
16595
16522
  // @ts-ignore: an internal option
@@ -18399,6 +18326,7 @@ export class Group extends Object {
18399
18326
  throw new TypeError("Invalid type: " + values["@type"]);
18400
18327
  }
18401
18328
  }
18329
+ delete values["@type"];
18402
18330
  const instance = await super.fromJsonLd(values, {
18403
18331
  ...options,
18404
18332
  // @ts-ignore: an internal option
@@ -19624,12 +19552,10 @@ export class Link {
19624
19552
  }
19625
19553
  if ("@type" in values) {
19626
19554
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Hashtag")) {
19627
- delete values["@type"];
19628
- return await Hashtag.fromJsonLd(values, options);
19555
+ return await Hashtag.fromJsonLd(json, options);
19629
19556
  }
19630
19557
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Mention")) {
19631
- delete values["@type"];
19632
- return await Mention.fromJsonLd(values, options);
19558
+ return await Mention.fromJsonLd(json, options);
19633
19559
  }
19634
19560
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) {
19635
19561
  throw new TypeError("Invalid type: " + values["@type"]);
@@ -20089,6 +20015,7 @@ export class Hashtag extends Link {
20089
20015
  throw new TypeError("Invalid type: " + values["@type"]);
20090
20016
  }
20091
20017
  }
20018
+ delete values["@type"];
20092
20019
  const instance = await super.fromJsonLd(values, {
20093
20020
  ...options,
20094
20021
  // @ts-ignore: an internal option
@@ -20261,6 +20188,7 @@ export class Image extends Document {
20261
20188
  throw new TypeError("Invalid type: " + values["@type"]);
20262
20189
  }
20263
20190
  }
20191
+ delete values["@type"];
20264
20192
  const instance = await super.fromJsonLd(values, {
20265
20193
  ...options,
20266
20194
  // @ts-ignore: an internal option
@@ -20438,13 +20366,13 @@ export class Offer extends Activity {
20438
20366
  }
20439
20367
  if ("@type" in values) {
20440
20368
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Invite")) {
20441
- delete values["@type"];
20442
- return await Invite.fromJsonLd(values, options);
20369
+ return await Invite.fromJsonLd(json, options);
20443
20370
  }
20444
20371
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Offer")) {
20445
20372
  throw new TypeError("Invalid type: " + values["@type"]);
20446
20373
  }
20447
20374
  }
20375
+ delete values["@type"];
20448
20376
  const instance = await super.fromJsonLd(values, {
20449
20377
  ...options,
20450
20378
  // @ts-ignore: an internal option
@@ -20624,6 +20552,7 @@ export class Invite extends Offer {
20624
20552
  throw new TypeError("Invalid type: " + values["@type"]);
20625
20553
  }
20626
20554
  }
20555
+ delete values["@type"];
20627
20556
  const instance = await super.fromJsonLd(values, {
20628
20557
  ...options,
20629
20558
  // @ts-ignore: an internal option
@@ -20803,6 +20732,7 @@ export class Join extends Activity {
20803
20732
  throw new TypeError("Invalid type: " + values["@type"]);
20804
20733
  }
20805
20734
  }
20735
+ delete values["@type"];
20806
20736
  const instance = await super.fromJsonLd(values, {
20807
20737
  ...options,
20808
20738
  // @ts-ignore: an internal option
@@ -20982,6 +20912,7 @@ export class Leave extends Activity {
20982
20912
  throw new TypeError("Invalid type: " + values["@type"]);
20983
20913
  }
20984
20914
  }
20915
+ delete values["@type"];
20985
20916
  const instance = await super.fromJsonLd(values, {
20986
20917
  ...options,
20987
20918
  // @ts-ignore: an internal option
@@ -21161,6 +21092,7 @@ export class Like extends Activity {
21161
21092
  throw new TypeError("Invalid type: " + values["@type"]);
21162
21093
  }
21163
21094
  }
21095
+ delete values["@type"];
21164
21096
  const instance = await super.fromJsonLd(values, {
21165
21097
  ...options,
21166
21098
  // @ts-ignore: an internal option
@@ -21339,6 +21271,7 @@ export class Listen extends Activity {
21339
21271
  throw new TypeError("Invalid type: " + values["@type"]);
21340
21272
  }
21341
21273
  }
21274
+ delete values["@type"];
21342
21275
  const instance = await super.fromJsonLd(values, {
21343
21276
  ...options,
21344
21277
  // @ts-ignore: an internal option
@@ -21500,6 +21433,7 @@ export class Mention extends Link {
21500
21433
  throw new TypeError("Invalid type: " + values["@type"]);
21501
21434
  }
21502
21435
  }
21436
+ delete values["@type"];
21503
21437
  const instance = await super.fromJsonLd(values, {
21504
21438
  ...options,
21505
21439
  // @ts-ignore: an internal option
@@ -21680,6 +21614,7 @@ export class Move extends Activity {
21680
21614
  throw new TypeError("Invalid type: " + values["@type"]);
21681
21615
  }
21682
21616
  }
21617
+ delete values["@type"];
21683
21618
  const instance = await super.fromJsonLd(values, {
21684
21619
  ...options,
21685
21620
  // @ts-ignore: an internal option
@@ -21871,6 +21806,7 @@ export class Note extends Object {
21871
21806
  throw new TypeError("Invalid type: " + values["@type"]);
21872
21807
  }
21873
21808
  }
21809
+ delete values["@type"];
21874
21810
  const instance = await super.fromJsonLd(values, {
21875
21811
  ...options,
21876
21812
  // @ts-ignore: an internal option
@@ -22186,6 +22122,7 @@ export class OrderedCollection extends Collection {
22186
22122
  throw new TypeError("Invalid type: " + values["@type"]);
22187
22123
  }
22188
22124
  }
22125
+ delete values["@type"];
22189
22126
  const instance = await super.fromJsonLd(values, {
22190
22127
  ...options,
22191
22128
  // @ts-ignore: an internal option
@@ -22657,6 +22594,7 @@ export class OrderedCollectionPage extends CollectionPage {
22657
22594
  throw new TypeError("Invalid type: " + values["@type"]);
22658
22595
  }
22659
22596
  }
22597
+ delete values["@type"];
22660
22598
  const instance = await super.fromJsonLd(values, {
22661
22599
  ...options,
22662
22600
  // @ts-ignore: an internal option
@@ -24591,6 +24529,7 @@ export class Organization extends Object {
24591
24529
  throw new TypeError("Invalid type: " + values["@type"]);
24592
24530
  }
24593
24531
  }
24532
+ delete values["@type"];
24594
24533
  const instance = await super.fromJsonLd(values, {
24595
24534
  ...options,
24596
24535
  // @ts-ignore: an internal option
@@ -25254,6 +25193,7 @@ export class Page extends Document {
25254
25193
  throw new TypeError("Invalid type: " + values["@type"]);
25255
25194
  }
25256
25195
  }
25196
+ delete values["@type"];
25257
25197
  const instance = await super.fromJsonLd(values, {
25258
25198
  ...options,
25259
25199
  // @ts-ignore: an internal option
@@ -27063,6 +27003,7 @@ export class Person extends Object {
27063
27003
  throw new TypeError("Invalid type: " + values["@type"]);
27064
27004
  }
27065
27005
  }
27006
+ delete values["@type"];
27066
27007
  const instance = await super.fromJsonLd(values, {
27067
27008
  ...options,
27068
27009
  // @ts-ignore: an internal option
@@ -28051,6 +27992,7 @@ export class Place extends Object {
28051
27992
  throw new TypeError("Invalid type: " + values["@type"]);
28052
27993
  }
28053
27994
  }
27995
+ delete values["@type"];
28054
27996
  const instance = await super.fromJsonLd(values, {
28055
27997
  ...options,
28056
27998
  // @ts-ignore: an internal option
@@ -28491,6 +28433,7 @@ export class Profile extends Object {
28491
28433
  throw new TypeError("Invalid type: " + values["@type"]);
28492
28434
  }
28493
28435
  }
28436
+ delete values["@type"];
28494
28437
  const instance = await super.fromJsonLd(values, {
28495
28438
  ...options,
28496
28439
  // @ts-ignore: an internal option
@@ -29035,6 +28978,7 @@ export class Question extends IntransitiveActivity {
29035
28978
  throw new TypeError("Invalid type: " + values["@type"]);
29036
28979
  }
29037
28980
  }
28981
+ delete values["@type"];
29038
28982
  const instance = await super.fromJsonLd(values, {
29039
28983
  ...options,
29040
28984
  // @ts-ignore: an internal option
@@ -29333,6 +29277,7 @@ export class Read extends Activity {
29333
29277
  throw new TypeError("Invalid type: " + values["@type"]);
29334
29278
  }
29335
29279
  }
29280
+ delete values["@type"];
29336
29281
  const instance = await super.fromJsonLd(values, {
29337
29282
  ...options,
29338
29283
  // @ts-ignore: an internal option
@@ -29509,13 +29454,13 @@ export class Reject extends Activity {
29509
29454
  }
29510
29455
  if ("@type" in values) {
29511
29456
  if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeReject")) {
29512
- delete values["@type"];
29513
- return await TentativeReject.fromJsonLd(values, options);
29457
+ return await TentativeReject.fromJsonLd(json, options);
29514
29458
  }
29515
29459
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Reject")) {
29516
29460
  throw new TypeError("Invalid type: " + values["@type"]);
29517
29461
  }
29518
29462
  }
29463
+ delete values["@type"];
29519
29464
  const instance = await super.fromJsonLd(values, {
29520
29465
  ...options,
29521
29466
  // @ts-ignore: an internal option
@@ -30129,6 +30074,7 @@ export class Relationship extends Object {
30129
30074
  throw new TypeError("Invalid type: " + values["@type"]);
30130
30075
  }
30131
30076
  }
30077
+ delete values["@type"];
30132
30078
  const instance = await super.fromJsonLd(values, {
30133
30079
  ...options,
30134
30080
  // @ts-ignore: an internal option
@@ -30405,6 +30351,7 @@ export class Remove extends Activity {
30405
30351
  throw new TypeError("Invalid type: " + values["@type"]);
30406
30352
  }
30407
30353
  }
30354
+ delete values["@type"];
30408
30355
  const instance = await super.fromJsonLd(values, {
30409
30356
  ...options,
30410
30357
  // @ts-ignore: an internal option
@@ -32214,6 +32161,7 @@ export class Service extends Object {
32214
32161
  throw new TypeError("Invalid type: " + values["@type"]);
32215
32162
  }
32216
32163
  }
32164
+ delete values["@type"];
32217
32165
  const instance = await super.fromJsonLd(values, {
32218
32166
  ...options,
32219
32167
  // @ts-ignore: an internal option
@@ -32878,6 +32826,7 @@ export class TentativeAccept extends Accept {
32878
32826
  throw new TypeError("Invalid type: " + values["@type"]);
32879
32827
  }
32880
32828
  }
32829
+ delete values["@type"];
32881
32830
  const instance = await super.fromJsonLd(values, {
32882
32831
  ...options,
32883
32832
  // @ts-ignore: an internal option
@@ -33057,6 +33006,7 @@ export class TentativeReject extends Reject {
33057
33006
  throw new TypeError("Invalid type: " + values["@type"]);
33058
33007
  }
33059
33008
  }
33009
+ delete values["@type"];
33060
33010
  const instance = await super.fromJsonLd(values, {
33061
33011
  ...options,
33062
33012
  // @ts-ignore: an internal option
@@ -33289,6 +33239,7 @@ export class Tombstone extends Object {
33289
33239
  throw new TypeError("Invalid type: " + values["@type"]);
33290
33240
  }
33291
33241
  }
33242
+ delete values["@type"];
33292
33243
  const instance = await super.fromJsonLd(values, {
33293
33244
  ...options,
33294
33245
  // @ts-ignore: an internal option
@@ -33494,6 +33445,7 @@ export class Travel extends IntransitiveActivity {
33494
33445
  throw new TypeError("Invalid type: " + values["@type"]);
33495
33446
  }
33496
33447
  }
33448
+ delete values["@type"];
33497
33449
  const instance = await super.fromJsonLd(values, {
33498
33450
  ...options,
33499
33451
  // @ts-ignore: an internal option
@@ -33678,6 +33630,7 @@ export class Undo extends Activity {
33678
33630
  throw new TypeError("Invalid type: " + values["@type"]);
33679
33631
  }
33680
33632
  }
33633
+ delete values["@type"];
33681
33634
  const instance = await super.fromJsonLd(values, {
33682
33635
  ...options,
33683
33636
  // @ts-ignore: an internal option
@@ -33876,6 +33829,7 @@ export class Update extends Activity {
33876
33829
  throw new TypeError("Invalid type: " + values["@type"]);
33877
33830
  }
33878
33831
  }
33832
+ delete values["@type"];
33879
33833
  const instance = await super.fromJsonLd(values, {
33880
33834
  ...options,
33881
33835
  // @ts-ignore: an internal option
@@ -34054,6 +34008,7 @@ export class Video extends Document {
34054
34008
  throw new TypeError("Invalid type: " + values["@type"]);
34055
34009
  }
34056
34010
  }
34011
+ delete values["@type"];
34057
34012
  const instance = await super.fromJsonLd(values, {
34058
34013
  ...options,
34059
34014
  // @ts-ignore: an internal option
@@ -34232,6 +34187,7 @@ export class View extends Activity {
34232
34187
  throw new TypeError("Invalid type: " + values["@type"]);
34233
34188
  }
34234
34189
  }
34190
+ delete values["@type"];
34235
34191
  const instance = await super.fromJsonLd(values, {
34236
34192
  ...options,
34237
34193
  // @ts-ignore: an internal option