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