@fedify/vocab 2.2.0-dev.700 → 2.2.0-dev.766

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +3371 -472
  3. package/dist/mod.d.cts +618 -6
  4. package/dist/mod.d.ts +618 -6
  5. package/dist/mod.js +3368 -473
  6. package/dist-tests/actor.test.mjs +2 -2
  7. package/dist-tests/announce.yaml +8 -0
  8. package/dist-tests/article.yaml +28 -0
  9. package/dist-tests/chatmessage.yaml +28 -0
  10. package/dist-tests/collection.yaml +8 -0
  11. package/dist-tests/collectionpage.yaml +8 -0
  12. package/dist-tests/create.yaml +8 -0
  13. package/dist-tests/delete.yaml +8 -0
  14. package/dist-tests/{deno-Ds6NDIzV.mjs → deno-_GjGa9o1.mjs} +2 -2
  15. package/dist-tests/interactionpolicy.yaml +16 -2
  16. package/dist-tests/lookup.test.mjs +2 -2
  17. package/dist-tests/note.yaml +28 -0
  18. package/dist-tests/object.yaml +3 -3
  19. package/dist-tests/orderedcollection.yaml +8 -0
  20. package/dist-tests/orderedcollectionpage.yaml +8 -0
  21. package/dist-tests/question.yaml +28 -0
  22. package/dist-tests/quoteauthorization.yaml +39 -0
  23. package/dist-tests/quoterequest.yaml +47 -0
  24. package/dist-tests/tombstone.yaml +10 -0
  25. package/dist-tests/type.test.mjs +10 -1
  26. package/dist-tests/update.yaml +8 -0
  27. package/dist-tests/{vocab-CGZuHaxe.mjs → vocab-DKp-OcRQ.mjs} +3372 -473
  28. package/dist-tests/vocab.test.mjs +356 -42
  29. package/package.json +4 -4
  30. package/src/__snapshots__/vocab.test.ts.snap +327 -15
  31. package/src/announce.yaml +8 -0
  32. package/src/article.yaml +28 -0
  33. package/src/chatmessage.yaml +28 -0
  34. package/src/collection.yaml +8 -0
  35. package/src/collectionpage.yaml +8 -0
  36. package/src/create.yaml +8 -0
  37. package/src/delete.yaml +8 -0
  38. package/src/interactionpolicy.yaml +16 -2
  39. package/src/note.yaml +28 -0
  40. package/src/object.yaml +3 -3
  41. package/src/orderedcollection.yaml +8 -0
  42. package/src/orderedcollectionpage.yaml +8 -0
  43. package/src/question.yaml +28 -0
  44. package/src/quoteauthorization.yaml +39 -0
  45. package/src/quoterequest.yaml +47 -0
  46. package/src/tombstone.yaml +10 -0
  47. package/src/type.test.ts +17 -1
  48. package/src/update.yaml +8 -0
  49. package/src/vocab.test.ts +498 -40
package/dist/mod.d.ts CHANGED
@@ -767,9 +767,9 @@ declare class Object$1 {
767
767
  crossOrigin?: "ignore" | "throw" | "trust";
768
768
  }): AsyncIterable<DataIntegrityProof>;
769
769
  /** The interaction policy for this object, specifying who can like, reply to,
770
- * or announce it. Contains sub-policies (`canLike`, `canReply`,
771
- * `canAnnounce`) each defining `automaticApproval` and `manualApproval`
772
- * lists.
770
+ * announce, or quote it. Contains sub-policies (`canLike`, `canReply`,
771
+ * `canAnnounce`, `canQuote`) each defining `automaticApproval` and
772
+ * `manualApproval` lists.
773
773
  *
774
774
  * When absent, implementations should assume anyone can interact with
775
775
  * the object. Setting this property signals that the server understands
@@ -1122,7 +1122,9 @@ declare class ChatMessage extends Object$1 {
1122
1122
  likeAuthorization?: LikeAuthorization | URL | null;
1123
1123
  replyAuthorization?: ReplyAuthorization | URL | null;
1124
1124
  announceAuthorization?: AnnounceAuthorization | URL | null;
1125
+ quote?: Object$1 | URL | null;
1125
1126
  quoteUrl?: URL | null;
1127
+ quoteAuthorization?: QuoteAuthorization | URL | null;
1126
1128
  }, options?: {
1127
1129
  documentLoader?: DocumentLoader$1;
1128
1130
  contextLoader?: DocumentLoader$1;
@@ -1189,11 +1191,30 @@ declare class ChatMessage extends Object$1 {
1189
1191
  likeAuthorization?: LikeAuthorization | URL | null;
1190
1192
  replyAuthorization?: ReplyAuthorization | URL | null;
1191
1193
  announceAuthorization?: AnnounceAuthorization | URL | null;
1194
+ quote?: Object$1 | URL | null;
1192
1195
  quoteUrl?: URL | null;
1196
+ quoteAuthorization?: QuoteAuthorization | URL | null;
1193
1197
  }, options?: {
1194
1198
  documentLoader?: DocumentLoader$1;
1195
1199
  contextLoader?: DocumentLoader$1;
1196
1200
  }): ChatMessage;
1201
+ /**
1202
+ * Similar to
1203
+ * {@link ChatMessage.getQuote},
1204
+ * but returns its `@id` URL instead of the object itself.
1205
+ */
1206
+ get quoteId(): URL | null;
1207
+ /** The quoted ActivityStreams object.
1208
+ *
1209
+ * This property is serialized as an IRI-valued JSON-LD property.
1210
+ */
1211
+ getQuote(options?: {
1212
+ documentLoader?: DocumentLoader$1;
1213
+ contextLoader?: DocumentLoader$1;
1214
+ suppressError?: boolean;
1215
+ tracerProvider?: TracerProvider;
1216
+ crossOrigin?: "ignore" | "throw" | "trust";
1217
+ }): Promise<Object$1 | null>;
1197
1218
  /** The URI of the ActivityStreams object that this object quotes.
1198
1219
  *
1199
1220
  * This property sets three JSON-LD properties at once under the hood:
@@ -1207,6 +1228,22 @@ declare class ChatMessage extends Object$1 {
1207
1228
  */
1208
1229
  get quoteUrl(): URL | null;
1209
1230
  /**
1231
+ * Similar to
1232
+ * {@link ChatMessage.getQuoteAuthorization},
1233
+ * but returns its `@id` URL instead of the object itself.
1234
+ */
1235
+ get quoteAuthorizationId(): URL | null;
1236
+ /** A {@link QuoteAuthorization} object that proves this quote was approved
1237
+ * by the quoted object's author.
1238
+ */
1239
+ getQuoteAuthorization(options?: {
1240
+ documentLoader?: DocumentLoader$1;
1241
+ contextLoader?: DocumentLoader$1;
1242
+ suppressError?: boolean;
1243
+ tracerProvider?: TracerProvider;
1244
+ crossOrigin?: "ignore" | "throw" | "trust";
1245
+ }): Promise<QuoteAuthorization | null>;
1246
+ /**
1210
1247
  * Converts this object to a JSON-LD structure.
1211
1248
  * @param options The options to use.
1212
1249
  * - `format`: The format of the output: `compact` or
@@ -2491,8 +2528,9 @@ declare class AnnounceRequest extends Activity {
2491
2528
  protected override _getCustomInspectProxy(): Record<string, unknown>;
2492
2529
  }
2493
2530
  /** Represents an interaction policy attached to a post, specifying who can
2494
- * like, reply to, or announce it. Each sub-policy ({@link InteractionRule})
2495
- * defines which actors receive automatic or manual approval.
2531
+ * like, reply to, announce, or quote it. Each sub-policy
2532
+ * ({@link InteractionRule}) defines which actors receive automatic or manual
2533
+ * approval.
2496
2534
  *
2497
2535
  * See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
2498
2536
  * for details.
@@ -2524,6 +2562,7 @@ declare class InteractionPolicy {
2524
2562
  canLike?: InteractionRule | null;
2525
2563
  canReply?: InteractionRule | null;
2526
2564
  canAnnounce?: InteractionRule | null;
2565
+ canQuote?: InteractionRule | null;
2527
2566
  }, options?: {
2528
2567
  documentLoader?: DocumentLoader$1;
2529
2568
  contextLoader?: DocumentLoader$1;
@@ -2540,6 +2579,7 @@ declare class InteractionPolicy {
2540
2579
  canLike?: InteractionRule | null;
2541
2580
  canReply?: InteractionRule | null;
2542
2581
  canAnnounce?: InteractionRule | null;
2582
+ canQuote?: InteractionRule | null;
2543
2583
  }, options?: {
2544
2584
  documentLoader?: DocumentLoader$1;
2545
2585
  contextLoader?: DocumentLoader$1;
@@ -2562,6 +2602,12 @@ declare class InteractionPolicy {
2562
2602
  * (i.e., `automaticApproval` defaults to the public collection).
2563
2603
  */
2564
2604
  get canAnnounce(): InteractionRule | null;
2605
+ /** The sub-policy specifying who can quote the post.
2606
+ *
2607
+ * When absent, implementations should assume that anyone can quote the post
2608
+ * (i.e., `automaticApproval` defaults to the public collection).
2609
+ */
2610
+ get canQuote(): InteractionRule | null;
2565
2611
  /**
2566
2612
  * Converts this object to a JSON-LD structure.
2567
2613
  * @param options The options to use.
@@ -3594,6 +3640,437 @@ declare class ReplyRequest extends Activity {
3594
3640
  }): Promise<ReplyRequest>;
3595
3641
  protected override _getCustomInspectProxy(): Record<string, unknown>;
3596
3642
  }
3643
+ /** Proves that a quote interaction has been approved by the quoted object's
3644
+ * author.
3645
+ *
3646
+ * This object is dereferenceable and is used by third parties to verify that a
3647
+ * quote was authorized. The `attributedTo` property identifies the author who
3648
+ * granted the authorization.
3649
+ *
3650
+ * See [FEP-044f](https://w3id.org/fep/044f) for details.
3651
+ */
3652
+ declare class QuoteAuthorization extends Object$1 {
3653
+ #private;
3654
+ /**
3655
+ * The type URI of {@link QuoteAuthorization}: `https://w3id.org/fep/044f#QuoteAuthorization`.
3656
+ */
3657
+ static override get typeId(): URL;
3658
+ /**
3659
+ * Constructs a new instance of QuoteAuthorization with the given values.
3660
+ * @param values The values to initialize the instance with.
3661
+ * @param options The options to use for initialization.
3662
+ */
3663
+ constructor(values: {
3664
+ id?: URL | null;
3665
+ attachments?: (Object$1 | Link | PropertyValue | URL)[];
3666
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
3667
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
3668
+ audience?: Object$1 | URL | null;
3669
+ audiences?: (Object$1 | URL)[];
3670
+ content?: string | LanguageString$1 | null;
3671
+ contents?: ((string | LanguageString$1))[];
3672
+ contexts?: (Object$1 | Link | URL)[];
3673
+ name?: string | LanguageString$1 | null;
3674
+ names?: ((string | LanguageString$1))[];
3675
+ endTime?: Temporal.Instant | null;
3676
+ generators?: (Object$1 | Link | URL)[];
3677
+ icon?: Image | URL | null;
3678
+ icons?: (Image | URL)[];
3679
+ image?: Image | URL | null;
3680
+ images?: (Image | URL)[];
3681
+ replyTarget?: Object$1 | Link | URL | null;
3682
+ replyTargets?: (Object$1 | Link | URL)[];
3683
+ location?: Object$1 | Link | URL | null;
3684
+ locations?: (Object$1 | Link | URL)[];
3685
+ preview?: Link | Object$1 | URL | null;
3686
+ previews?: (Link | Object$1 | URL)[];
3687
+ published?: Temporal.Instant | null;
3688
+ replies?: Collection | URL | null;
3689
+ shares?: Collection | URL | null;
3690
+ likes?: Collection | URL | null;
3691
+ emojiReactions?: Collection | URL | null;
3692
+ startTime?: Temporal.Instant | null;
3693
+ summary?: string | LanguageString$1 | null;
3694
+ summaries?: ((string | LanguageString$1))[];
3695
+ tags?: (Object$1 | Link | URL)[];
3696
+ updated?: Temporal.Instant | null;
3697
+ url?: URL | Link | null;
3698
+ urls?: ((URL | Link))[];
3699
+ to?: Object$1 | URL | null;
3700
+ tos?: (Object$1 | URL)[];
3701
+ bto?: Object$1 | URL | null;
3702
+ btos?: (Object$1 | URL)[];
3703
+ cc?: Object$1 | URL | null;
3704
+ ccs?: (Object$1 | URL)[];
3705
+ bcc?: Object$1 | URL | null;
3706
+ bccs?: (Object$1 | URL)[];
3707
+ mediaType?: string | null;
3708
+ duration?: Temporal.Duration | null;
3709
+ sensitive?: boolean | null;
3710
+ source?: Source | null;
3711
+ proof?: DataIntegrityProof | URL | null;
3712
+ proofs?: (DataIntegrityProof | URL)[];
3713
+ interactionPolicy?: InteractionPolicy | null;
3714
+ approvedBy?: URL | null;
3715
+ likeAuthorization?: LikeAuthorization | URL | null;
3716
+ replyAuthorization?: ReplyAuthorization | URL | null;
3717
+ announceAuthorization?: AnnounceAuthorization | URL | null;
3718
+ interactingObject?: Object$1 | URL | null;
3719
+ interactionTarget?: Object$1 | URL | null;
3720
+ }, options?: {
3721
+ documentLoader?: DocumentLoader$1;
3722
+ contextLoader?: DocumentLoader$1;
3723
+ tracerProvider?: TracerProvider;
3724
+ });
3725
+ /**
3726
+ * Clones this instance, optionally updating it with the given values.
3727
+ * @param values The values to update the clone with.
3728
+ * @param options The options to use for cloning.
3729
+ * @returns The cloned instance.
3730
+ */
3731
+ override clone(values?: {
3732
+ id?: URL | null;
3733
+ attachments?: (Object$1 | Link | PropertyValue | URL)[];
3734
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
3735
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
3736
+ audience?: Object$1 | URL | null;
3737
+ audiences?: (Object$1 | URL)[];
3738
+ content?: string | LanguageString$1 | null;
3739
+ contents?: ((string | LanguageString$1))[];
3740
+ contexts?: (Object$1 | Link | URL)[];
3741
+ name?: string | LanguageString$1 | null;
3742
+ names?: ((string | LanguageString$1))[];
3743
+ endTime?: Temporal.Instant | null;
3744
+ generators?: (Object$1 | Link | URL)[];
3745
+ icon?: Image | URL | null;
3746
+ icons?: (Image | URL)[];
3747
+ image?: Image | URL | null;
3748
+ images?: (Image | URL)[];
3749
+ replyTarget?: Object$1 | Link | URL | null;
3750
+ replyTargets?: (Object$1 | Link | URL)[];
3751
+ location?: Object$1 | Link | URL | null;
3752
+ locations?: (Object$1 | Link | URL)[];
3753
+ preview?: Link | Object$1 | URL | null;
3754
+ previews?: (Link | Object$1 | URL)[];
3755
+ published?: Temporal.Instant | null;
3756
+ replies?: Collection | URL | null;
3757
+ shares?: Collection | URL | null;
3758
+ likes?: Collection | URL | null;
3759
+ emojiReactions?: Collection | URL | null;
3760
+ startTime?: Temporal.Instant | null;
3761
+ summary?: string | LanguageString$1 | null;
3762
+ summaries?: ((string | LanguageString$1))[];
3763
+ tags?: (Object$1 | Link | URL)[];
3764
+ updated?: Temporal.Instant | null;
3765
+ url?: URL | Link | null;
3766
+ urls?: ((URL | Link))[];
3767
+ to?: Object$1 | URL | null;
3768
+ tos?: (Object$1 | URL)[];
3769
+ bto?: Object$1 | URL | null;
3770
+ btos?: (Object$1 | URL)[];
3771
+ cc?: Object$1 | URL | null;
3772
+ ccs?: (Object$1 | URL)[];
3773
+ bcc?: Object$1 | URL | null;
3774
+ bccs?: (Object$1 | URL)[];
3775
+ mediaType?: string | null;
3776
+ duration?: Temporal.Duration | null;
3777
+ sensitive?: boolean | null;
3778
+ source?: Source | null;
3779
+ proof?: DataIntegrityProof | URL | null;
3780
+ proofs?: (DataIntegrityProof | URL)[];
3781
+ interactionPolicy?: InteractionPolicy | null;
3782
+ approvedBy?: URL | null;
3783
+ likeAuthorization?: LikeAuthorization | URL | null;
3784
+ replyAuthorization?: ReplyAuthorization | URL | null;
3785
+ announceAuthorization?: AnnounceAuthorization | URL | null;
3786
+ interactingObject?: Object$1 | URL | null;
3787
+ interactionTarget?: Object$1 | URL | null;
3788
+ }, options?: {
3789
+ documentLoader?: DocumentLoader$1;
3790
+ contextLoader?: DocumentLoader$1;
3791
+ }): QuoteAuthorization;
3792
+ /**
3793
+ * Similar to
3794
+ * {@link QuoteAuthorization.getInteractingObject},
3795
+ * but returns its `@id` URL instead of the object itself.
3796
+ */
3797
+ get interactingObjectId(): URL | null;
3798
+ /** The URI of the quote object that has been authorized.
3799
+ */
3800
+ getInteractingObject(options?: {
3801
+ documentLoader?: DocumentLoader$1;
3802
+ contextLoader?: DocumentLoader$1;
3803
+ suppressError?: boolean;
3804
+ tracerProvider?: TracerProvider;
3805
+ crossOrigin?: "ignore" | "throw" | "trust";
3806
+ }): Promise<Object$1 | null>;
3807
+ /**
3808
+ * Similar to
3809
+ * {@link QuoteAuthorization.getInteractionTarget},
3810
+ * but returns its `@id` URL instead of the object itself.
3811
+ */
3812
+ get interactionTargetId(): URL | null;
3813
+ /** The URI of the object that is the target of the authorized quote.
3814
+ */
3815
+ getInteractionTarget(options?: {
3816
+ documentLoader?: DocumentLoader$1;
3817
+ contextLoader?: DocumentLoader$1;
3818
+ suppressError?: boolean;
3819
+ tracerProvider?: TracerProvider;
3820
+ crossOrigin?: "ignore" | "throw" | "trust";
3821
+ }): Promise<Object$1 | null>;
3822
+ /**
3823
+ * Converts this object to a JSON-LD structure.
3824
+ * @param options The options to use.
3825
+ * - `format`: The format of the output: `compact` or
3826
+ `expand`.
3827
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
3828
+ * - `context`: The JSON-LD context to use. Not applicable
3829
+ when `format` is set to `'expand'`.
3830
+ * @returns The JSON-LD representation of this object.
3831
+ */
3832
+ override toJsonLd(options?: {
3833
+ format?: "compact" | "expand";
3834
+ contextLoader?: DocumentLoader$1;
3835
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
3836
+ }): Promise<unknown>;
3837
+ protected override isCompactable(): boolean;
3838
+ /**
3839
+ * Converts a JSON-LD structure to an object of this type.
3840
+ * @param json The JSON-LD structure to convert.
3841
+ * @param options The options to use.
3842
+ * - `documentLoader`: The loader for remote JSON-LD documents.
3843
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
3844
+ * - `tracerProvider`: The OpenTelemetry tracer provider to use.
3845
+ * If omitted, the global tracer provider is used.
3846
+ * @returns The object of this type.
3847
+ * @throws {TypeError} If the given `json` is invalid.
3848
+ */
3849
+ static override fromJsonLd(json: unknown, options?: {
3850
+ documentLoader?: DocumentLoader$1;
3851
+ contextLoader?: DocumentLoader$1;
3852
+ tracerProvider?: TracerProvider;
3853
+ baseUrl?: URL;
3854
+ }): Promise<QuoteAuthorization>;
3855
+ protected static __fromJsonLd__QuoteAuthorization__(json: unknown, span: Span, options?: {
3856
+ documentLoader?: DocumentLoader$1;
3857
+ contextLoader?: DocumentLoader$1;
3858
+ tracerProvider?: TracerProvider;
3859
+ baseUrl?: URL;
3860
+ }): Promise<QuoteAuthorization>;
3861
+ protected override _getCustomInspectProxy(): Record<string, unknown>;
3862
+ }
3863
+ /** A request to quote an object that requires approval from the quoted object's
3864
+ * author.
3865
+ *
3866
+ * The `object` property references the quoted object, and the `instrument`
3867
+ * property contains the quote post itself.
3868
+ *
3869
+ * The quoted object's author responds with an {@link Accept} (with a
3870
+ * {@link QuoteAuthorization} as `result`) or a {@link Reject}.
3871
+ *
3872
+ * See [FEP-044f](https://w3id.org/fep/044f) for details.
3873
+ */
3874
+ declare class QuoteRequest extends Activity {
3875
+ /**
3876
+ * The type URI of {@link QuoteRequest}: `https://w3id.org/fep/044f#QuoteRequest`.
3877
+ */
3878
+ static override get typeId(): URL;
3879
+ /**
3880
+ * Constructs a new instance of QuoteRequest with the given values.
3881
+ * @param values The values to initialize the instance with.
3882
+ * @param options The options to use for initialization.
3883
+ */
3884
+ constructor(values: {
3885
+ id?: URL | null;
3886
+ attachments?: (Object$1 | Link | PropertyValue | URL)[];
3887
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
3888
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
3889
+ audience?: Object$1 | URL | null;
3890
+ audiences?: (Object$1 | URL)[];
3891
+ content?: string | LanguageString$1 | null;
3892
+ contents?: ((string | LanguageString$1))[];
3893
+ contexts?: (Object$1 | Link | URL)[];
3894
+ name?: string | LanguageString$1 | null;
3895
+ names?: ((string | LanguageString$1))[];
3896
+ endTime?: Temporal.Instant | null;
3897
+ generators?: (Object$1 | Link | URL)[];
3898
+ icon?: Image | URL | null;
3899
+ icons?: (Image | URL)[];
3900
+ image?: Image | URL | null;
3901
+ images?: (Image | URL)[];
3902
+ replyTarget?: Object$1 | Link | URL | null;
3903
+ replyTargets?: (Object$1 | Link | URL)[];
3904
+ location?: Object$1 | Link | URL | null;
3905
+ locations?: (Object$1 | Link | URL)[];
3906
+ preview?: Link | Object$1 | URL | null;
3907
+ previews?: (Link | Object$1 | URL)[];
3908
+ published?: Temporal.Instant | null;
3909
+ replies?: Collection | URL | null;
3910
+ shares?: Collection | URL | null;
3911
+ likes?: Collection | URL | null;
3912
+ emojiReactions?: Collection | URL | null;
3913
+ startTime?: Temporal.Instant | null;
3914
+ summary?: string | LanguageString$1 | null;
3915
+ summaries?: ((string | LanguageString$1))[];
3916
+ tags?: (Object$1 | Link | URL)[];
3917
+ updated?: Temporal.Instant | null;
3918
+ url?: URL | Link | null;
3919
+ urls?: ((URL | Link))[];
3920
+ to?: Object$1 | URL | null;
3921
+ tos?: (Object$1 | URL)[];
3922
+ bto?: Object$1 | URL | null;
3923
+ btos?: (Object$1 | URL)[];
3924
+ cc?: Object$1 | URL | null;
3925
+ ccs?: (Object$1 | URL)[];
3926
+ bcc?: Object$1 | URL | null;
3927
+ bccs?: (Object$1 | URL)[];
3928
+ mediaType?: string | null;
3929
+ duration?: Temporal.Duration | null;
3930
+ sensitive?: boolean | null;
3931
+ source?: Source | null;
3932
+ proof?: DataIntegrityProof | URL | null;
3933
+ proofs?: (DataIntegrityProof | URL)[];
3934
+ interactionPolicy?: InteractionPolicy | null;
3935
+ approvedBy?: URL | null;
3936
+ likeAuthorization?: LikeAuthorization | URL | null;
3937
+ replyAuthorization?: ReplyAuthorization | URL | null;
3938
+ announceAuthorization?: AnnounceAuthorization | URL | null;
3939
+ actor?: Application | Group | Organization | Person | Service | URL | null;
3940
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
3941
+ object?: Object$1 | URL | null;
3942
+ objects?: (Object$1 | URL)[];
3943
+ target?: Object$1 | URL | null;
3944
+ targets?: (Object$1 | URL)[];
3945
+ result?: Object$1 | URL | null;
3946
+ results?: (Object$1 | URL)[];
3947
+ origin?: Object$1 | URL | null;
3948
+ origins?: (Object$1 | URL)[];
3949
+ instrument?: Object$1 | URL | null;
3950
+ instruments?: (Object$1 | URL)[];
3951
+ }, options?: {
3952
+ documentLoader?: DocumentLoader$1;
3953
+ contextLoader?: DocumentLoader$1;
3954
+ tracerProvider?: TracerProvider;
3955
+ });
3956
+ /**
3957
+ * Clones this instance, optionally updating it with the given values.
3958
+ * @param values The values to update the clone with.
3959
+ * @param options The options to use for cloning.
3960
+ * @returns The cloned instance.
3961
+ */
3962
+ override clone(values?: {
3963
+ id?: URL | null;
3964
+ attachments?: (Object$1 | Link | PropertyValue | URL)[];
3965
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
3966
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
3967
+ audience?: Object$1 | URL | null;
3968
+ audiences?: (Object$1 | URL)[];
3969
+ content?: string | LanguageString$1 | null;
3970
+ contents?: ((string | LanguageString$1))[];
3971
+ contexts?: (Object$1 | Link | URL)[];
3972
+ name?: string | LanguageString$1 | null;
3973
+ names?: ((string | LanguageString$1))[];
3974
+ endTime?: Temporal.Instant | null;
3975
+ generators?: (Object$1 | Link | URL)[];
3976
+ icon?: Image | URL | null;
3977
+ icons?: (Image | URL)[];
3978
+ image?: Image | URL | null;
3979
+ images?: (Image | URL)[];
3980
+ replyTarget?: Object$1 | Link | URL | null;
3981
+ replyTargets?: (Object$1 | Link | URL)[];
3982
+ location?: Object$1 | Link | URL | null;
3983
+ locations?: (Object$1 | Link | URL)[];
3984
+ preview?: Link | Object$1 | URL | null;
3985
+ previews?: (Link | Object$1 | URL)[];
3986
+ published?: Temporal.Instant | null;
3987
+ replies?: Collection | URL | null;
3988
+ shares?: Collection | URL | null;
3989
+ likes?: Collection | URL | null;
3990
+ emojiReactions?: Collection | URL | null;
3991
+ startTime?: Temporal.Instant | null;
3992
+ summary?: string | LanguageString$1 | null;
3993
+ summaries?: ((string | LanguageString$1))[];
3994
+ tags?: (Object$1 | Link | URL)[];
3995
+ updated?: Temporal.Instant | null;
3996
+ url?: URL | Link | null;
3997
+ urls?: ((URL | Link))[];
3998
+ to?: Object$1 | URL | null;
3999
+ tos?: (Object$1 | URL)[];
4000
+ bto?: Object$1 | URL | null;
4001
+ btos?: (Object$1 | URL)[];
4002
+ cc?: Object$1 | URL | null;
4003
+ ccs?: (Object$1 | URL)[];
4004
+ bcc?: Object$1 | URL | null;
4005
+ bccs?: (Object$1 | URL)[];
4006
+ mediaType?: string | null;
4007
+ duration?: Temporal.Duration | null;
4008
+ sensitive?: boolean | null;
4009
+ source?: Source | null;
4010
+ proof?: DataIntegrityProof | URL | null;
4011
+ proofs?: (DataIntegrityProof | URL)[];
4012
+ interactionPolicy?: InteractionPolicy | null;
4013
+ approvedBy?: URL | null;
4014
+ likeAuthorization?: LikeAuthorization | URL | null;
4015
+ replyAuthorization?: ReplyAuthorization | URL | null;
4016
+ announceAuthorization?: AnnounceAuthorization | URL | null;
4017
+ actor?: Application | Group | Organization | Person | Service | URL | null;
4018
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
4019
+ object?: Object$1 | URL | null;
4020
+ objects?: (Object$1 | URL)[];
4021
+ target?: Object$1 | URL | null;
4022
+ targets?: (Object$1 | URL)[];
4023
+ result?: Object$1 | URL | null;
4024
+ results?: (Object$1 | URL)[];
4025
+ origin?: Object$1 | URL | null;
4026
+ origins?: (Object$1 | URL)[];
4027
+ instrument?: Object$1 | URL | null;
4028
+ instruments?: (Object$1 | URL)[];
4029
+ }, options?: {
4030
+ documentLoader?: DocumentLoader$1;
4031
+ contextLoader?: DocumentLoader$1;
4032
+ }): QuoteRequest;
4033
+ /**
4034
+ * Converts this object to a JSON-LD structure.
4035
+ * @param options The options to use.
4036
+ * - `format`: The format of the output: `compact` or
4037
+ `expand`.
4038
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
4039
+ * - `context`: The JSON-LD context to use. Not applicable
4040
+ when `format` is set to `'expand'`.
4041
+ * @returns The JSON-LD representation of this object.
4042
+ */
4043
+ override toJsonLd(options?: {
4044
+ format?: "compact" | "expand";
4045
+ contextLoader?: DocumentLoader$1;
4046
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
4047
+ }): Promise<unknown>;
4048
+ protected override isCompactable(): boolean;
4049
+ /**
4050
+ * Converts a JSON-LD structure to an object of this type.
4051
+ * @param json The JSON-LD structure to convert.
4052
+ * @param options The options to use.
4053
+ * - `documentLoader`: The loader for remote JSON-LD documents.
4054
+ * - `contextLoader`: The loader for remote JSON-LD contexts.
4055
+ * - `tracerProvider`: The OpenTelemetry tracer provider to use.
4056
+ * If omitted, the global tracer provider is used.
4057
+ * @returns The object of this type.
4058
+ * @throws {TypeError} If the given `json` is invalid.
4059
+ */
4060
+ static override fromJsonLd(json: unknown, options?: {
4061
+ documentLoader?: DocumentLoader$1;
4062
+ contextLoader?: DocumentLoader$1;
4063
+ tracerProvider?: TracerProvider;
4064
+ baseUrl?: URL;
4065
+ }): Promise<QuoteRequest>;
4066
+ protected static __fromJsonLd__QuoteRequest__(json: unknown, span: Span, options?: {
4067
+ documentLoader?: DocumentLoader$1;
4068
+ contextLoader?: DocumentLoader$1;
4069
+ tracerProvider?: TracerProvider;
4070
+ baseUrl?: URL;
4071
+ }): Promise<QuoteRequest>;
4072
+ protected override _getCustomInspectProxy(): Record<string, unknown>;
4073
+ }
3597
4074
  /** Means of communicating or interacting with the DID subject or associated
3598
4075
  * entities via one or more service endpoints. Examples include discovery
3599
4076
  * services, agent services, social networking services, file storage services,
@@ -6127,7 +6604,9 @@ declare class Article extends Object$1 {
6127
6604
  likeAuthorization?: LikeAuthorization | URL | null;
6128
6605
  replyAuthorization?: ReplyAuthorization | URL | null;
6129
6606
  announceAuthorization?: AnnounceAuthorization | URL | null;
6607
+ quote?: Object$1 | URL | null;
6130
6608
  quoteUrl?: URL | null;
6609
+ quoteAuthorization?: QuoteAuthorization | URL | null;
6131
6610
  }, options?: {
6132
6611
  documentLoader?: DocumentLoader$1;
6133
6612
  contextLoader?: DocumentLoader$1;
@@ -6194,11 +6673,30 @@ declare class Article extends Object$1 {
6194
6673
  likeAuthorization?: LikeAuthorization | URL | null;
6195
6674
  replyAuthorization?: ReplyAuthorization | URL | null;
6196
6675
  announceAuthorization?: AnnounceAuthorization | URL | null;
6676
+ quote?: Object$1 | URL | null;
6197
6677
  quoteUrl?: URL | null;
6678
+ quoteAuthorization?: QuoteAuthorization | URL | null;
6198
6679
  }, options?: {
6199
6680
  documentLoader?: DocumentLoader$1;
6200
6681
  contextLoader?: DocumentLoader$1;
6201
6682
  }): Article;
6683
+ /**
6684
+ * Similar to
6685
+ * {@link Article.getQuote},
6686
+ * but returns its `@id` URL instead of the object itself.
6687
+ */
6688
+ get quoteId(): URL | null;
6689
+ /** The quoted ActivityStreams object.
6690
+ *
6691
+ * This property is serialized as an IRI-valued JSON-LD property.
6692
+ */
6693
+ getQuote(options?: {
6694
+ documentLoader?: DocumentLoader$1;
6695
+ contextLoader?: DocumentLoader$1;
6696
+ suppressError?: boolean;
6697
+ tracerProvider?: TracerProvider;
6698
+ crossOrigin?: "ignore" | "throw" | "trust";
6699
+ }): Promise<Object$1 | null>;
6202
6700
  /** The URI of the ActivityStreams object that this object quotes.
6203
6701
  *
6204
6702
  * This property sets three JSON-LD properties at once under the hood:
@@ -6212,6 +6710,22 @@ declare class Article extends Object$1 {
6212
6710
  */
6213
6711
  get quoteUrl(): URL | null;
6214
6712
  /**
6713
+ * Similar to
6714
+ * {@link Article.getQuoteAuthorization},
6715
+ * but returns its `@id` URL instead of the object itself.
6716
+ */
6717
+ get quoteAuthorizationId(): URL | null;
6718
+ /** A {@link QuoteAuthorization} object that proves this quote was approved
6719
+ * by the quoted object's author.
6720
+ */
6721
+ getQuoteAuthorization(options?: {
6722
+ documentLoader?: DocumentLoader$1;
6723
+ contextLoader?: DocumentLoader$1;
6724
+ suppressError?: boolean;
6725
+ tracerProvider?: TracerProvider;
6726
+ crossOrigin?: "ignore" | "throw" | "trust";
6727
+ }): Promise<QuoteAuthorization | null>;
6728
+ /**
6215
6729
  * Converts this object to a JSON-LD structure.
6216
6730
  * @param options The options to use.
6217
6731
  * - `format`: The format of the output: `compact` or
@@ -11647,7 +12161,9 @@ declare class Note extends Object$1 {
11647
12161
  likeAuthorization?: LikeAuthorization | URL | null;
11648
12162
  replyAuthorization?: ReplyAuthorization | URL | null;
11649
12163
  announceAuthorization?: AnnounceAuthorization | URL | null;
12164
+ quote?: Object$1 | URL | null;
11650
12165
  quoteUrl?: URL | null;
12166
+ quoteAuthorization?: QuoteAuthorization | URL | null;
11651
12167
  }, options?: {
11652
12168
  documentLoader?: DocumentLoader$1;
11653
12169
  contextLoader?: DocumentLoader$1;
@@ -11714,11 +12230,30 @@ declare class Note extends Object$1 {
11714
12230
  likeAuthorization?: LikeAuthorization | URL | null;
11715
12231
  replyAuthorization?: ReplyAuthorization | URL | null;
11716
12232
  announceAuthorization?: AnnounceAuthorization | URL | null;
12233
+ quote?: Object$1 | URL | null;
11717
12234
  quoteUrl?: URL | null;
12235
+ quoteAuthorization?: QuoteAuthorization | URL | null;
11718
12236
  }, options?: {
11719
12237
  documentLoader?: DocumentLoader$1;
11720
12238
  contextLoader?: DocumentLoader$1;
11721
12239
  }): Note;
12240
+ /**
12241
+ * Similar to
12242
+ * {@link Note.getQuote},
12243
+ * but returns its `@id` URL instead of the object itself.
12244
+ */
12245
+ get quoteId(): URL | null;
12246
+ /** The quoted ActivityStreams object.
12247
+ *
12248
+ * This property is serialized as an IRI-valued JSON-LD property.
12249
+ */
12250
+ getQuote(options?: {
12251
+ documentLoader?: DocumentLoader$1;
12252
+ contextLoader?: DocumentLoader$1;
12253
+ suppressError?: boolean;
12254
+ tracerProvider?: TracerProvider;
12255
+ crossOrigin?: "ignore" | "throw" | "trust";
12256
+ }): Promise<Object$1 | null>;
11722
12257
  /** The URI of the ActivityStreams object that this object quotes.
11723
12258
  *
11724
12259
  * This property sets three JSON-LD properties at once under the hood:
@@ -11732,6 +12267,22 @@ declare class Note extends Object$1 {
11732
12267
  */
11733
12268
  get quoteUrl(): URL | null;
11734
12269
  /**
12270
+ * Similar to
12271
+ * {@link Note.getQuoteAuthorization},
12272
+ * but returns its `@id` URL instead of the object itself.
12273
+ */
12274
+ get quoteAuthorizationId(): URL | null;
12275
+ /** A {@link QuoteAuthorization} object that proves this quote was approved
12276
+ * by the quoted object's author.
12277
+ */
12278
+ getQuoteAuthorization(options?: {
12279
+ documentLoader?: DocumentLoader$1;
12280
+ contextLoader?: DocumentLoader$1;
12281
+ suppressError?: boolean;
12282
+ tracerProvider?: TracerProvider;
12283
+ crossOrigin?: "ignore" | "throw" | "trust";
12284
+ }): Promise<QuoteAuthorization | null>;
12285
+ /**
11735
12286
  * Converts this object to a JSON-LD structure.
11736
12287
  * @param options The options to use.
11737
12288
  * - `format`: The format of the output: `compact` or
@@ -14114,7 +14665,9 @@ declare class Question extends IntransitiveActivity {
14114
14665
  inclusiveOptions?: (Object$1 | URL)[];
14115
14666
  closed?: Temporal.Instant | boolean | null;
14116
14667
  voters?: number | null;
14668
+ quote?: Object$1 | URL | null;
14117
14669
  quoteUrl?: URL | null;
14670
+ quoteAuthorization?: QuoteAuthorization | URL | null;
14118
14671
  }, options?: {
14119
14672
  documentLoader?: DocumentLoader$1;
14120
14673
  contextLoader?: DocumentLoader$1;
@@ -14197,7 +14750,9 @@ declare class Question extends IntransitiveActivity {
14197
14750
  inclusiveOptions?: (Object$1 | URL)[];
14198
14751
  closed?: Temporal.Instant | boolean | null;
14199
14752
  voters?: number | null;
14753
+ quote?: Object$1 | URL | null;
14200
14754
  quoteUrl?: URL | null;
14755
+ quoteAuthorization?: QuoteAuthorization | URL | null;
14201
14756
  }, options?: {
14202
14757
  documentLoader?: DocumentLoader$1;
14203
14758
  contextLoader?: DocumentLoader$1;
@@ -14244,6 +14799,23 @@ declare class Question extends IntransitiveActivity {
14244
14799
  * been cast (in the case of multiple-choice polls).
14245
14800
  */
14246
14801
  get voters(): number | null;
14802
+ /**
14803
+ * Similar to
14804
+ * {@link Question.getQuote},
14805
+ * but returns its `@id` URL instead of the object itself.
14806
+ */
14807
+ get quoteId(): URL | null;
14808
+ /** The quoted ActivityStreams object.
14809
+ *
14810
+ * This property is serialized as an IRI-valued JSON-LD property.
14811
+ */
14812
+ getQuote(options?: {
14813
+ documentLoader?: DocumentLoader$1;
14814
+ contextLoader?: DocumentLoader$1;
14815
+ suppressError?: boolean;
14816
+ tracerProvider?: TracerProvider;
14817
+ crossOrigin?: "ignore" | "throw" | "trust";
14818
+ }): Promise<Object$1 | null>;
14247
14819
  /** The URI of the ActivityStreams object that this object quotes.
14248
14820
  *
14249
14821
  * This property sets three JSON-LD properties at once under the hood:
@@ -14257,6 +14829,22 @@ declare class Question extends IntransitiveActivity {
14257
14829
  */
14258
14830
  get quoteUrl(): URL | null;
14259
14831
  /**
14832
+ * Similar to
14833
+ * {@link Question.getQuoteAuthorization},
14834
+ * but returns its `@id` URL instead of the object itself.
14835
+ */
14836
+ get quoteAuthorizationId(): URL | null;
14837
+ /** A {@link QuoteAuthorization} object that proves this quote was approved
14838
+ * by the quoted object's author.
14839
+ */
14840
+ getQuoteAuthorization(options?: {
14841
+ documentLoader?: DocumentLoader$1;
14842
+ contextLoader?: DocumentLoader$1;
14843
+ suppressError?: boolean;
14844
+ tracerProvider?: TracerProvider;
14845
+ crossOrigin?: "ignore" | "throw" | "trust";
14846
+ }): Promise<QuoteAuthorization | null>;
14847
+ /**
14260
14848
  * Converts this object to a JSON-LD structure.
14261
14849
  * @param options The options to use.
14262
14850
  * - `format`: The format of the output: `compact` or
@@ -16353,6 +16941,8 @@ declare class Tombstone extends Object$1 {
16353
16941
  likeAuthorization?: LikeAuthorization | URL | null;
16354
16942
  replyAuthorization?: ReplyAuthorization | URL | null;
16355
16943
  announceAuthorization?: AnnounceAuthorization | URL | null;
16944
+ formerType?: $EntityType | null;
16945
+ formerTypes?: ($EntityType)[];
16356
16946
  deleted?: Temporal.Instant | null;
16357
16947
  }, options?: {
16358
16948
  documentLoader?: DocumentLoader$1;
@@ -16420,11 +17010,21 @@ declare class Tombstone extends Object$1 {
16420
17010
  likeAuthorization?: LikeAuthorization | URL | null;
16421
17011
  replyAuthorization?: ReplyAuthorization | URL | null;
16422
17012
  announceAuthorization?: AnnounceAuthorization | URL | null;
17013
+ formerType?: $EntityType | null;
17014
+ formerTypes?: ($EntityType)[];
16423
17015
  deleted?: Temporal.Instant | null;
16424
17016
  }, options?: {
16425
17017
  documentLoader?: DocumentLoader$1;
16426
17018
  contextLoader?: DocumentLoader$1;
16427
17019
  }): Tombstone;
17020
+ /** On a `Tombstone` object, the `formerType` property identifies the type of
17021
+ * the object that was deleted.
17022
+ */
17023
+ get formerType(): $EntityType | null;
17024
+ /** On a `Tombstone` object, the `formerType` property identifies the type of
17025
+ * the object that was deleted.
17026
+ */
17027
+ get formerTypes(): ($EntityType)[];
16428
17028
  /** On a `Tombstone` object, the `deleted` property is a timestamp for when
16429
17029
  * the object was deleted.
16430
17030
  */
@@ -17473,6 +18073,18 @@ declare class View extends Activity {
17473
18073
  }): Promise<View>;
17474
18074
  protected override _getCustomInspectProxy(): Record<string, unknown>;
17475
18075
  }
18076
+ /**
18077
+ * Constructor types for all generated vocabulary entity classes.
18078
+ */
18079
+ type $EntityType = typeof Object$1 | typeof Emoji | typeof ChatMessage | typeof Activity | typeof EmojiReact | typeof AnnounceAuthorization | typeof AnnounceRequest | typeof LikeAuthorization | typeof LikeRequest | typeof ReplyAuthorization | typeof ReplyRequest | typeof QuoteAuthorization | typeof QuoteRequest | typeof DidService | typeof Export | typeof DataIntegrityProof | typeof CryptographicKey | typeof Multikey | typeof Proposal | typeof Accept | typeof Add | typeof Announce | typeof Application | typeof IntransitiveActivity | typeof Arrive | typeof Article | typeof Document | typeof Audio | typeof Ignore | typeof Block | typeof Collection | typeof CollectionPage | typeof Create | typeof Delete | typeof Dislike | typeof Event | typeof Flag | typeof Follow | typeof Group | typeof Image | typeof Offer | typeof Invite | typeof Join | typeof Leave | typeof Like | typeof Listen | typeof Move | typeof Note | typeof OrderedCollection | typeof OrderedCollectionPage | typeof Organization | typeof Page | typeof Person | typeof Place | typeof Profile | typeof Question | typeof Read | typeof Reject | typeof Relationship | typeof Remove | typeof Service | typeof TentativeAccept | typeof TentativeReject | typeof Tombstone | typeof Travel | typeof Undo | typeof Update | typeof Video | typeof View;
18080
+ /**
18081
+ * Checks whether the given value is a generated vocabulary entity class.
18082
+ */
18083
+ declare function isEntityType(value: unknown): value is $EntityType;
18084
+ /**
18085
+ * Gets the generated vocabulary entity class for the given type URI.
18086
+ */
18087
+ declare function getEntityTypeById(id: string | URL): $EntityType | undefined;
17476
18088
  //#endregion
17477
18089
  //#region src/actor.d.ts
17478
18090
  /**
@@ -17899,4 +18511,4 @@ declare function getTypeId(object: Object$1 | Link | null): URL | null;
17899
18511
  */
17900
18512
  declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
17901
18513
  //#endregion
17902
- export { Accept, Activity, Actor, ActorTypeName, Add, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, type DocumentLoader, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, type GetUserAgentOptions, Group, Hashtag, Ignore, Image, Intent, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, LookupObjectOptions, Measure, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Proposal, Question, Read, Recipient, Reject, Relationship, type RemoteDocument, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
18514
+ export { $EntityType, Accept, Activity, Actor, ActorTypeName, Add, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, type DocumentLoader, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, type GetUserAgentOptions, Group, Hashtag, Ignore, Image, Intent, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, LookupObjectOptions, Measure, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Proposal, Question, QuoteAuthorization, QuoteRequest, Read, Recipient, Reject, Relationship, type RemoteDocument, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getEntityTypeById, getTypeId, isActor, isEntityType, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };