@fedify/vocab 2.4.0-dev.1567 → 2.4.0-dev.1570
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 +9909 -13825
- package/dist/mod.d.cts +676 -1629
- package/dist/mod.d.ts +676 -1629
- package/dist/mod.js +9911 -13823
- package/dist-tests/{actor-CrOFIIiE.mjs → actor-BTMC-aMT.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/application.yaml +0 -13
- package/dist-tests/group.yaml +0 -13
- package/dist-tests/interactionpolicy.yaml +1 -16
- package/dist-tests/lookup.test.mjs +5 -7
- package/dist-tests/organization.yaml +0 -13
- package/dist-tests/person.yaml +0 -13
- package/dist-tests/service.yaml +0 -13
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-DOHLQ4UQ.mjs → vocab-XnSGFOqq.mjs} +9908 -13822
- package/dist-tests/vocab.test.mjs +1 -986
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +0 -609
- package/src/application.yaml +0 -13
- package/src/group.yaml +0 -13
- package/src/interactionpolicy.yaml +1 -16
- package/src/lookup.ts +2 -6
- package/src/organization.yaml +0 -13
- package/src/person.yaml +0 -13
- package/src/service.yaml +0 -13
- package/src/vocab.test.ts +121 -1539
- package/dist-tests/featureauthorization.yaml +0 -33
- package/dist-tests/featuredcollection.yaml +0 -41
- package/dist-tests/featureditem.yaml +0 -34
- package/dist-tests/featurerequest.yaml +0 -21
- package/src/featureauthorization.yaml +0 -33
- package/src/featuredcollection.yaml +0 -41
- package/src/featureditem.yaml +0 -34
- package/src/featurerequest.yaml +0 -21
package/dist/mod.d.ts
CHANGED
|
@@ -2563,7 +2563,6 @@ declare class InteractionPolicy {
|
|
|
2563
2563
|
*/
|
|
2564
2564
|
constructor(values: {
|
|
2565
2565
|
id?: URL | null;
|
|
2566
|
-
canFeature?: InteractionRule | null;
|
|
2567
2566
|
canLike?: InteractionRule | null;
|
|
2568
2567
|
canReply?: InteractionRule | null;
|
|
2569
2568
|
canAnnounce?: InteractionRule | null;
|
|
@@ -2581,7 +2580,6 @@ declare class InteractionPolicy {
|
|
|
2581
2580
|
*/
|
|
2582
2581
|
clone(values?: {
|
|
2583
2582
|
id?: URL | null;
|
|
2584
|
-
canFeature?: InteractionRule | null;
|
|
2585
2583
|
canLike?: InteractionRule | null;
|
|
2586
2584
|
canReply?: InteractionRule | null;
|
|
2587
2585
|
canAnnounce?: InteractionRule | null;
|
|
@@ -2590,12 +2588,6 @@ declare class InteractionPolicy {
|
|
|
2590
2588
|
documentLoader?: DocumentLoader$1;
|
|
2591
2589
|
contextLoader?: DocumentLoader$1;
|
|
2592
2590
|
}): InteractionPolicy;
|
|
2593
|
-
/** The sub-policy specifying who can feature the actor in a
|
|
2594
|
-
* {@link FeaturedCollection}.
|
|
2595
|
-
*
|
|
2596
|
-
* See [FEP-7aa9](https://w3id.org/fep/7aa9) for details.
|
|
2597
|
-
*/
|
|
2598
|
-
get canFeature(): InteractionRule | null;
|
|
2599
2591
|
/** The sub-policy specifying who can like the post.
|
|
2600
2592
|
*
|
|
2601
2593
|
* When absent, implementations should assume that anyone can like the post
|
|
@@ -3876,1490 +3868,21 @@ declare class QuoteAuthorization extends Object$1 {
|
|
|
3876
3868
|
/** A request to quote an object that requires approval from the quoted object's
|
|
3877
3869
|
* author.
|
|
3878
3870
|
*
|
|
3879
|
-
* The `object` property references the quoted object, and the `instrument`
|
|
3880
|
-
* property contains the quote post itself.
|
|
3881
|
-
*
|
|
3882
|
-
* The quoted object's author responds with an {@link Accept} (with a
|
|
3883
|
-
* {@link QuoteAuthorization} as `result`) or a {@link Reject}.
|
|
3884
|
-
*
|
|
3885
|
-
* See [FEP-044f](https://w3id.org/fep/044f) for details.
|
|
3886
|
-
*/
|
|
3887
|
-
declare class QuoteRequest extends Activity {
|
|
3888
|
-
/**
|
|
3889
|
-
* The type URI of {@link QuoteRequest}: `https://w3id.org/fep/044f#QuoteRequest`.
|
|
3890
|
-
*/
|
|
3891
|
-
static override get typeId(): URL;
|
|
3892
|
-
/**
|
|
3893
|
-
* Constructs a new instance of QuoteRequest with the given values.
|
|
3894
|
-
* @param values The values to initialize the instance with.
|
|
3895
|
-
* @param options The options to use for initialization.
|
|
3896
|
-
*/
|
|
3897
|
-
constructor(values: {
|
|
3898
|
-
id?: URL | null;
|
|
3899
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
3900
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
3901
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
3902
|
-
audience?: Object$1 | URL | null;
|
|
3903
|
-
audiences?: (Object$1 | URL)[];
|
|
3904
|
-
content?: string | LanguageString$1 | null;
|
|
3905
|
-
contents?: ((string | LanguageString$1))[];
|
|
3906
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
3907
|
-
name?: string | LanguageString$1 | null;
|
|
3908
|
-
names?: ((string | LanguageString$1))[];
|
|
3909
|
-
endTime?: Temporal.Instant | null;
|
|
3910
|
-
generators?: (Object$1 | Link | URL)[];
|
|
3911
|
-
icon?: Image | URL | null;
|
|
3912
|
-
icons?: (Image | URL)[];
|
|
3913
|
-
image?: Image | URL | null;
|
|
3914
|
-
images?: (Image | URL)[];
|
|
3915
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
3916
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
3917
|
-
location?: Object$1 | Link | URL | null;
|
|
3918
|
-
locations?: (Object$1 | Link | URL)[];
|
|
3919
|
-
preview?: Link | Object$1 | URL | null;
|
|
3920
|
-
previews?: (Link | Object$1 | URL)[];
|
|
3921
|
-
published?: Temporal.Instant | null;
|
|
3922
|
-
replies?: Collection | URL | null;
|
|
3923
|
-
shares?: Collection | URL | null;
|
|
3924
|
-
likes?: Collection | URL | null;
|
|
3925
|
-
emojiReactions?: Collection | URL | null;
|
|
3926
|
-
startTime?: Temporal.Instant | null;
|
|
3927
|
-
summary?: string | LanguageString$1 | null;
|
|
3928
|
-
summaries?: ((string | LanguageString$1))[];
|
|
3929
|
-
tags?: (Object$1 | Link | URL)[];
|
|
3930
|
-
updated?: Temporal.Instant | null;
|
|
3931
|
-
url?: URL | Link | null;
|
|
3932
|
-
urls?: ((URL | Link))[];
|
|
3933
|
-
to?: Object$1 | URL | null;
|
|
3934
|
-
tos?: (Object$1 | URL)[];
|
|
3935
|
-
bto?: Object$1 | URL | null;
|
|
3936
|
-
btos?: (Object$1 | URL)[];
|
|
3937
|
-
cc?: Object$1 | URL | null;
|
|
3938
|
-
ccs?: (Object$1 | URL)[];
|
|
3939
|
-
bcc?: Object$1 | URL | null;
|
|
3940
|
-
bccs?: (Object$1 | URL)[];
|
|
3941
|
-
mediaType?: string | null;
|
|
3942
|
-
duration?: Temporal.Duration | null;
|
|
3943
|
-
sensitive?: boolean | null;
|
|
3944
|
-
source?: Source | null;
|
|
3945
|
-
proof?: DataIntegrityProof | URL | null;
|
|
3946
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
3947
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
3948
|
-
approvedBy?: URL | null;
|
|
3949
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
3950
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
3951
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
3952
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
3953
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
3954
|
-
object?: Object$1 | URL | null;
|
|
3955
|
-
objects?: (Object$1 | URL)[];
|
|
3956
|
-
target?: Object$1 | URL | null;
|
|
3957
|
-
targets?: (Object$1 | URL)[];
|
|
3958
|
-
result?: Object$1 | URL | null;
|
|
3959
|
-
results?: (Object$1 | URL)[];
|
|
3960
|
-
origin?: Object$1 | URL | null;
|
|
3961
|
-
origins?: (Object$1 | URL)[];
|
|
3962
|
-
instrument?: Object$1 | URL | null;
|
|
3963
|
-
instruments?: (Object$1 | URL)[];
|
|
3964
|
-
}, options?: {
|
|
3965
|
-
documentLoader?: DocumentLoader$1;
|
|
3966
|
-
contextLoader?: DocumentLoader$1;
|
|
3967
|
-
tracerProvider?: TracerProvider;
|
|
3968
|
-
});
|
|
3969
|
-
/**
|
|
3970
|
-
* Clones this instance, optionally updating it with the given values.
|
|
3971
|
-
* @param values The values to update the clone with.
|
|
3972
|
-
* @param options The options to use for cloning.
|
|
3973
|
-
* @returns The cloned instance.
|
|
3974
|
-
*/
|
|
3975
|
-
override clone(values?: {
|
|
3976
|
-
id?: URL | null;
|
|
3977
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
3978
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
3979
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
3980
|
-
audience?: Object$1 | URL | null;
|
|
3981
|
-
audiences?: (Object$1 | URL)[];
|
|
3982
|
-
content?: string | LanguageString$1 | null;
|
|
3983
|
-
contents?: ((string | LanguageString$1))[];
|
|
3984
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
3985
|
-
name?: string | LanguageString$1 | null;
|
|
3986
|
-
names?: ((string | LanguageString$1))[];
|
|
3987
|
-
endTime?: Temporal.Instant | null;
|
|
3988
|
-
generators?: (Object$1 | Link | URL)[];
|
|
3989
|
-
icon?: Image | URL | null;
|
|
3990
|
-
icons?: (Image | URL)[];
|
|
3991
|
-
image?: Image | URL | null;
|
|
3992
|
-
images?: (Image | URL)[];
|
|
3993
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
3994
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
3995
|
-
location?: Object$1 | Link | URL | null;
|
|
3996
|
-
locations?: (Object$1 | Link | URL)[];
|
|
3997
|
-
preview?: Link | Object$1 | URL | null;
|
|
3998
|
-
previews?: (Link | Object$1 | URL)[];
|
|
3999
|
-
published?: Temporal.Instant | null;
|
|
4000
|
-
replies?: Collection | URL | null;
|
|
4001
|
-
shares?: Collection | URL | null;
|
|
4002
|
-
likes?: Collection | URL | null;
|
|
4003
|
-
emojiReactions?: Collection | URL | null;
|
|
4004
|
-
startTime?: Temporal.Instant | null;
|
|
4005
|
-
summary?: string | LanguageString$1 | null;
|
|
4006
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4007
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4008
|
-
updated?: Temporal.Instant | null;
|
|
4009
|
-
url?: URL | Link | null;
|
|
4010
|
-
urls?: ((URL | Link))[];
|
|
4011
|
-
to?: Object$1 | URL | null;
|
|
4012
|
-
tos?: (Object$1 | URL)[];
|
|
4013
|
-
bto?: Object$1 | URL | null;
|
|
4014
|
-
btos?: (Object$1 | URL)[];
|
|
4015
|
-
cc?: Object$1 | URL | null;
|
|
4016
|
-
ccs?: (Object$1 | URL)[];
|
|
4017
|
-
bcc?: Object$1 | URL | null;
|
|
4018
|
-
bccs?: (Object$1 | URL)[];
|
|
4019
|
-
mediaType?: string | null;
|
|
4020
|
-
duration?: Temporal.Duration | null;
|
|
4021
|
-
sensitive?: boolean | null;
|
|
4022
|
-
source?: Source | null;
|
|
4023
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4024
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4025
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4026
|
-
approvedBy?: URL | null;
|
|
4027
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4028
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4029
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4030
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
4031
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4032
|
-
object?: Object$1 | URL | null;
|
|
4033
|
-
objects?: (Object$1 | URL)[];
|
|
4034
|
-
target?: Object$1 | URL | null;
|
|
4035
|
-
targets?: (Object$1 | URL)[];
|
|
4036
|
-
result?: Object$1 | URL | null;
|
|
4037
|
-
results?: (Object$1 | URL)[];
|
|
4038
|
-
origin?: Object$1 | URL | null;
|
|
4039
|
-
origins?: (Object$1 | URL)[];
|
|
4040
|
-
instrument?: Object$1 | URL | null;
|
|
4041
|
-
instruments?: (Object$1 | URL)[];
|
|
4042
|
-
}, options?: {
|
|
4043
|
-
documentLoader?: DocumentLoader$1;
|
|
4044
|
-
contextLoader?: DocumentLoader$1;
|
|
4045
|
-
}): QuoteRequest;
|
|
4046
|
-
/**
|
|
4047
|
-
* Converts this object to a JSON-LD structure.
|
|
4048
|
-
* @param options The options to use.
|
|
4049
|
-
* - `format`: The format of the output: `compact` or
|
|
4050
|
-
`expand`.
|
|
4051
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4052
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
4053
|
-
when `format` is set to `'expand'`.
|
|
4054
|
-
* @returns The JSON-LD representation of this object.
|
|
4055
|
-
*/
|
|
4056
|
-
override toJsonLd(options?: {
|
|
4057
|
-
format?: "compact" | "expand";
|
|
4058
|
-
contextLoader?: DocumentLoader$1;
|
|
4059
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4060
|
-
}): Promise<unknown>;
|
|
4061
|
-
protected override isCompactable(): boolean;
|
|
4062
|
-
/**
|
|
4063
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
4064
|
-
* @param json The JSON-LD structure to convert.
|
|
4065
|
-
* @param options The options to use.
|
|
4066
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4067
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4068
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4069
|
-
* If omitted, the global tracer provider is used.
|
|
4070
|
-
* @returns The object of this type.
|
|
4071
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
4072
|
-
*/
|
|
4073
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
4074
|
-
documentLoader?: DocumentLoader$1;
|
|
4075
|
-
contextLoader?: DocumentLoader$1;
|
|
4076
|
-
tracerProvider?: TracerProvider;
|
|
4077
|
-
baseUrl?: URL;
|
|
4078
|
-
}): Promise<QuoteRequest>;
|
|
4079
|
-
protected static __fromJsonLd__QuoteRequest__(json: unknown, span: Span, options?: {
|
|
4080
|
-
documentLoader?: DocumentLoader$1;
|
|
4081
|
-
contextLoader?: DocumentLoader$1;
|
|
4082
|
-
tracerProvider?: TracerProvider;
|
|
4083
|
-
baseUrl?: URL;
|
|
4084
|
-
}): Promise<QuoteRequest>;
|
|
4085
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4086
|
-
}
|
|
4087
|
-
/** Proves that an actor consented to being included in a
|
|
4088
|
-
* {@link FeaturedCollection}.
|
|
4089
|
-
*
|
|
4090
|
-
* See [FEP-7aa9](https://w3id.org/fep/7aa9) for details.
|
|
4091
|
-
*/
|
|
4092
|
-
declare class FeatureAuthorization extends Object$1 {
|
|
4093
|
-
#private;
|
|
4094
|
-
/**
|
|
4095
|
-
* The type URI of {@link FeatureAuthorization}: `https://w3id.org/fep/7aa9#FeatureAuthorization`.
|
|
4096
|
-
*/
|
|
4097
|
-
static override get typeId(): URL;
|
|
4098
|
-
/**
|
|
4099
|
-
* Constructs a new instance of FeatureAuthorization with the given values.
|
|
4100
|
-
* @param values The values to initialize the instance with.
|
|
4101
|
-
* @param options The options to use for initialization.
|
|
4102
|
-
*/
|
|
4103
|
-
constructor(values: {
|
|
4104
|
-
id?: URL | null;
|
|
4105
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4106
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4107
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4108
|
-
audience?: Object$1 | URL | null;
|
|
4109
|
-
audiences?: (Object$1 | URL)[];
|
|
4110
|
-
content?: string | LanguageString$1 | null;
|
|
4111
|
-
contents?: ((string | LanguageString$1))[];
|
|
4112
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4113
|
-
name?: string | LanguageString$1 | null;
|
|
4114
|
-
names?: ((string | LanguageString$1))[];
|
|
4115
|
-
endTime?: Temporal.Instant | null;
|
|
4116
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4117
|
-
icon?: Image | URL | null;
|
|
4118
|
-
icons?: (Image | URL)[];
|
|
4119
|
-
image?: Image | URL | null;
|
|
4120
|
-
images?: (Image | URL)[];
|
|
4121
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4122
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4123
|
-
location?: Object$1 | Link | URL | null;
|
|
4124
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4125
|
-
preview?: Link | Object$1 | URL | null;
|
|
4126
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4127
|
-
published?: Temporal.Instant | null;
|
|
4128
|
-
replies?: Collection | URL | null;
|
|
4129
|
-
shares?: Collection | URL | null;
|
|
4130
|
-
likes?: Collection | URL | null;
|
|
4131
|
-
emojiReactions?: Collection | URL | null;
|
|
4132
|
-
startTime?: Temporal.Instant | null;
|
|
4133
|
-
summary?: string | LanguageString$1 | null;
|
|
4134
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4135
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4136
|
-
updated?: Temporal.Instant | null;
|
|
4137
|
-
url?: URL | Link | null;
|
|
4138
|
-
urls?: ((URL | Link))[];
|
|
4139
|
-
to?: Object$1 | URL | null;
|
|
4140
|
-
tos?: (Object$1 | URL)[];
|
|
4141
|
-
bto?: Object$1 | URL | null;
|
|
4142
|
-
btos?: (Object$1 | URL)[];
|
|
4143
|
-
cc?: Object$1 | URL | null;
|
|
4144
|
-
ccs?: (Object$1 | URL)[];
|
|
4145
|
-
bcc?: Object$1 | URL | null;
|
|
4146
|
-
bccs?: (Object$1 | URL)[];
|
|
4147
|
-
mediaType?: string | null;
|
|
4148
|
-
duration?: Temporal.Duration | null;
|
|
4149
|
-
sensitive?: boolean | null;
|
|
4150
|
-
source?: Source | null;
|
|
4151
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4152
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4153
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4154
|
-
approvedBy?: URL | null;
|
|
4155
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4156
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4157
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4158
|
-
interactingObject?: Object$1 | URL | null;
|
|
4159
|
-
interactionTarget?: Object$1 | URL | null;
|
|
4160
|
-
}, options?: {
|
|
4161
|
-
documentLoader?: DocumentLoader$1;
|
|
4162
|
-
contextLoader?: DocumentLoader$1;
|
|
4163
|
-
tracerProvider?: TracerProvider;
|
|
4164
|
-
});
|
|
4165
|
-
/**
|
|
4166
|
-
* Clones this instance, optionally updating it with the given values.
|
|
4167
|
-
* @param values The values to update the clone with.
|
|
4168
|
-
* @param options The options to use for cloning.
|
|
4169
|
-
* @returns The cloned instance.
|
|
4170
|
-
*/
|
|
4171
|
-
override clone(values?: {
|
|
4172
|
-
id?: URL | null;
|
|
4173
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4174
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4175
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4176
|
-
audience?: Object$1 | URL | null;
|
|
4177
|
-
audiences?: (Object$1 | URL)[];
|
|
4178
|
-
content?: string | LanguageString$1 | null;
|
|
4179
|
-
contents?: ((string | LanguageString$1))[];
|
|
4180
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4181
|
-
name?: string | LanguageString$1 | null;
|
|
4182
|
-
names?: ((string | LanguageString$1))[];
|
|
4183
|
-
endTime?: Temporal.Instant | null;
|
|
4184
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4185
|
-
icon?: Image | URL | null;
|
|
4186
|
-
icons?: (Image | URL)[];
|
|
4187
|
-
image?: Image | URL | null;
|
|
4188
|
-
images?: (Image | URL)[];
|
|
4189
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4190
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4191
|
-
location?: Object$1 | Link | URL | null;
|
|
4192
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4193
|
-
preview?: Link | Object$1 | URL | null;
|
|
4194
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4195
|
-
published?: Temporal.Instant | null;
|
|
4196
|
-
replies?: Collection | URL | null;
|
|
4197
|
-
shares?: Collection | URL | null;
|
|
4198
|
-
likes?: Collection | URL | null;
|
|
4199
|
-
emojiReactions?: Collection | URL | null;
|
|
4200
|
-
startTime?: Temporal.Instant | null;
|
|
4201
|
-
summary?: string | LanguageString$1 | null;
|
|
4202
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4203
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4204
|
-
updated?: Temporal.Instant | null;
|
|
4205
|
-
url?: URL | Link | null;
|
|
4206
|
-
urls?: ((URL | Link))[];
|
|
4207
|
-
to?: Object$1 | URL | null;
|
|
4208
|
-
tos?: (Object$1 | URL)[];
|
|
4209
|
-
bto?: Object$1 | URL | null;
|
|
4210
|
-
btos?: (Object$1 | URL)[];
|
|
4211
|
-
cc?: Object$1 | URL | null;
|
|
4212
|
-
ccs?: (Object$1 | URL)[];
|
|
4213
|
-
bcc?: Object$1 | URL | null;
|
|
4214
|
-
bccs?: (Object$1 | URL)[];
|
|
4215
|
-
mediaType?: string | null;
|
|
4216
|
-
duration?: Temporal.Duration | null;
|
|
4217
|
-
sensitive?: boolean | null;
|
|
4218
|
-
source?: Source | null;
|
|
4219
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4220
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4221
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4222
|
-
approvedBy?: URL | null;
|
|
4223
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4224
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4225
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4226
|
-
interactingObject?: Object$1 | URL | null;
|
|
4227
|
-
interactionTarget?: Object$1 | URL | null;
|
|
4228
|
-
}, options?: {
|
|
4229
|
-
documentLoader?: DocumentLoader$1;
|
|
4230
|
-
contextLoader?: DocumentLoader$1;
|
|
4231
|
-
}): FeatureAuthorization;
|
|
4232
|
-
/**
|
|
4233
|
-
* Similar to
|
|
4234
|
-
* {@link FeatureAuthorization.getInteractingObject},
|
|
4235
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4236
|
-
*/
|
|
4237
|
-
get interactingObjectId(): URL | null;
|
|
4238
|
-
/** The featured collection for which the authorization was granted.
|
|
4239
|
-
*/
|
|
4240
|
-
getInteractingObject(options?: {
|
|
4241
|
-
documentLoader?: DocumentLoader$1;
|
|
4242
|
-
contextLoader?: DocumentLoader$1;
|
|
4243
|
-
suppressError?: boolean;
|
|
4244
|
-
tracerProvider?: TracerProvider;
|
|
4245
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4246
|
-
}): Promise<Object$1 | null>;
|
|
4247
|
-
/**
|
|
4248
|
-
* Similar to
|
|
4249
|
-
* {@link FeatureAuthorization.getInteractionTarget},
|
|
4250
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4251
|
-
*/
|
|
4252
|
-
get interactionTargetId(): URL | null;
|
|
4253
|
-
/** The actor that was authorized to be featured.
|
|
4254
|
-
*/
|
|
4255
|
-
getInteractionTarget(options?: {
|
|
4256
|
-
documentLoader?: DocumentLoader$1;
|
|
4257
|
-
contextLoader?: DocumentLoader$1;
|
|
4258
|
-
suppressError?: boolean;
|
|
4259
|
-
tracerProvider?: TracerProvider;
|
|
4260
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4261
|
-
}): Promise<Object$1 | null>;
|
|
4262
|
-
/**
|
|
4263
|
-
* Converts this object to a JSON-LD structure.
|
|
4264
|
-
* @param options The options to use.
|
|
4265
|
-
* - `format`: The format of the output: `compact` or
|
|
4266
|
-
`expand`.
|
|
4267
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4268
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
4269
|
-
when `format` is set to `'expand'`.
|
|
4270
|
-
* @returns The JSON-LD representation of this object.
|
|
4271
|
-
*/
|
|
4272
|
-
override toJsonLd(options?: {
|
|
4273
|
-
format?: "compact" | "expand";
|
|
4274
|
-
contextLoader?: DocumentLoader$1;
|
|
4275
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4276
|
-
}): Promise<unknown>;
|
|
4277
|
-
protected override isCompactable(): boolean;
|
|
4278
|
-
/**
|
|
4279
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
4280
|
-
* @param json The JSON-LD structure to convert.
|
|
4281
|
-
* @param options The options to use.
|
|
4282
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4283
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4284
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4285
|
-
* If omitted, the global tracer provider is used.
|
|
4286
|
-
* @returns The object of this type.
|
|
4287
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
4288
|
-
*/
|
|
4289
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
4290
|
-
documentLoader?: DocumentLoader$1;
|
|
4291
|
-
contextLoader?: DocumentLoader$1;
|
|
4292
|
-
tracerProvider?: TracerProvider;
|
|
4293
|
-
baseUrl?: URL;
|
|
4294
|
-
}): Promise<FeatureAuthorization>;
|
|
4295
|
-
protected static __fromJsonLd__FeatureAuthorization__(json: unknown, span: Span, options?: {
|
|
4296
|
-
documentLoader?: DocumentLoader$1;
|
|
4297
|
-
contextLoader?: DocumentLoader$1;
|
|
4298
|
-
tracerProvider?: TracerProvider;
|
|
4299
|
-
baseUrl?: URL;
|
|
4300
|
-
}): Promise<FeatureAuthorization>;
|
|
4301
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4302
|
-
}
|
|
4303
|
-
/** A request for consent before featuring an actor in a
|
|
4304
|
-
* {@link FeaturedCollection}.
|
|
4305
|
-
*
|
|
4306
|
-
* The `object` property references the actor to be included, and the
|
|
4307
|
-
* `instrument` property references the featured collection.
|
|
4308
|
-
*
|
|
4309
|
-
* See [FEP-7aa9](https://w3id.org/fep/7aa9) for details.
|
|
4310
|
-
*/
|
|
4311
|
-
declare class FeatureRequest extends Activity {
|
|
4312
|
-
/**
|
|
4313
|
-
* The type URI of {@link FeatureRequest}: `https://w3id.org/fep/7aa9#FeatureRequest`.
|
|
4314
|
-
*/
|
|
4315
|
-
static override get typeId(): URL;
|
|
4316
|
-
/**
|
|
4317
|
-
* Constructs a new instance of FeatureRequest with the given values.
|
|
4318
|
-
* @param values The values to initialize the instance with.
|
|
4319
|
-
* @param options The options to use for initialization.
|
|
4320
|
-
*/
|
|
4321
|
-
constructor(values: {
|
|
4322
|
-
id?: URL | null;
|
|
4323
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4324
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4325
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4326
|
-
audience?: Object$1 | URL | null;
|
|
4327
|
-
audiences?: (Object$1 | URL)[];
|
|
4328
|
-
content?: string | LanguageString$1 | null;
|
|
4329
|
-
contents?: ((string | LanguageString$1))[];
|
|
4330
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4331
|
-
name?: string | LanguageString$1 | null;
|
|
4332
|
-
names?: ((string | LanguageString$1))[];
|
|
4333
|
-
endTime?: Temporal.Instant | null;
|
|
4334
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4335
|
-
icon?: Image | URL | null;
|
|
4336
|
-
icons?: (Image | URL)[];
|
|
4337
|
-
image?: Image | URL | null;
|
|
4338
|
-
images?: (Image | URL)[];
|
|
4339
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4340
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4341
|
-
location?: Object$1 | Link | URL | null;
|
|
4342
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4343
|
-
preview?: Link | Object$1 | URL | null;
|
|
4344
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4345
|
-
published?: Temporal.Instant | null;
|
|
4346
|
-
replies?: Collection | URL | null;
|
|
4347
|
-
shares?: Collection | URL | null;
|
|
4348
|
-
likes?: Collection | URL | null;
|
|
4349
|
-
emojiReactions?: Collection | URL | null;
|
|
4350
|
-
startTime?: Temporal.Instant | null;
|
|
4351
|
-
summary?: string | LanguageString$1 | null;
|
|
4352
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4353
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4354
|
-
updated?: Temporal.Instant | null;
|
|
4355
|
-
url?: URL | Link | null;
|
|
4356
|
-
urls?: ((URL | Link))[];
|
|
4357
|
-
to?: Object$1 | URL | null;
|
|
4358
|
-
tos?: (Object$1 | URL)[];
|
|
4359
|
-
bto?: Object$1 | URL | null;
|
|
4360
|
-
btos?: (Object$1 | URL)[];
|
|
4361
|
-
cc?: Object$1 | URL | null;
|
|
4362
|
-
ccs?: (Object$1 | URL)[];
|
|
4363
|
-
bcc?: Object$1 | URL | null;
|
|
4364
|
-
bccs?: (Object$1 | URL)[];
|
|
4365
|
-
mediaType?: string | null;
|
|
4366
|
-
duration?: Temporal.Duration | null;
|
|
4367
|
-
sensitive?: boolean | null;
|
|
4368
|
-
source?: Source | null;
|
|
4369
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4370
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4371
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4372
|
-
approvedBy?: URL | null;
|
|
4373
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4374
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4375
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4376
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
4377
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4378
|
-
object?: Object$1 | URL | null;
|
|
4379
|
-
objects?: (Object$1 | URL)[];
|
|
4380
|
-
target?: Object$1 | URL | null;
|
|
4381
|
-
targets?: (Object$1 | URL)[];
|
|
4382
|
-
result?: Object$1 | URL | null;
|
|
4383
|
-
results?: (Object$1 | URL)[];
|
|
4384
|
-
origin?: Object$1 | URL | null;
|
|
4385
|
-
origins?: (Object$1 | URL)[];
|
|
4386
|
-
instrument?: Object$1 | URL | null;
|
|
4387
|
-
instruments?: (Object$1 | URL)[];
|
|
4388
|
-
}, options?: {
|
|
4389
|
-
documentLoader?: DocumentLoader$1;
|
|
4390
|
-
contextLoader?: DocumentLoader$1;
|
|
4391
|
-
tracerProvider?: TracerProvider;
|
|
4392
|
-
});
|
|
4393
|
-
/**
|
|
4394
|
-
* Clones this instance, optionally updating it with the given values.
|
|
4395
|
-
* @param values The values to update the clone with.
|
|
4396
|
-
* @param options The options to use for cloning.
|
|
4397
|
-
* @returns The cloned instance.
|
|
4398
|
-
*/
|
|
4399
|
-
override clone(values?: {
|
|
4400
|
-
id?: URL | null;
|
|
4401
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4402
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4403
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4404
|
-
audience?: Object$1 | URL | null;
|
|
4405
|
-
audiences?: (Object$1 | URL)[];
|
|
4406
|
-
content?: string | LanguageString$1 | null;
|
|
4407
|
-
contents?: ((string | LanguageString$1))[];
|
|
4408
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4409
|
-
name?: string | LanguageString$1 | null;
|
|
4410
|
-
names?: ((string | LanguageString$1))[];
|
|
4411
|
-
endTime?: Temporal.Instant | null;
|
|
4412
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4413
|
-
icon?: Image | URL | null;
|
|
4414
|
-
icons?: (Image | URL)[];
|
|
4415
|
-
image?: Image | URL | null;
|
|
4416
|
-
images?: (Image | URL)[];
|
|
4417
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4418
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4419
|
-
location?: Object$1 | Link | URL | null;
|
|
4420
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4421
|
-
preview?: Link | Object$1 | URL | null;
|
|
4422
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4423
|
-
published?: Temporal.Instant | null;
|
|
4424
|
-
replies?: Collection | URL | null;
|
|
4425
|
-
shares?: Collection | URL | null;
|
|
4426
|
-
likes?: Collection | URL | null;
|
|
4427
|
-
emojiReactions?: Collection | URL | null;
|
|
4428
|
-
startTime?: Temporal.Instant | null;
|
|
4429
|
-
summary?: string | LanguageString$1 | null;
|
|
4430
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4431
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4432
|
-
updated?: Temporal.Instant | null;
|
|
4433
|
-
url?: URL | Link | null;
|
|
4434
|
-
urls?: ((URL | Link))[];
|
|
4435
|
-
to?: Object$1 | URL | null;
|
|
4436
|
-
tos?: (Object$1 | URL)[];
|
|
4437
|
-
bto?: Object$1 | URL | null;
|
|
4438
|
-
btos?: (Object$1 | URL)[];
|
|
4439
|
-
cc?: Object$1 | URL | null;
|
|
4440
|
-
ccs?: (Object$1 | URL)[];
|
|
4441
|
-
bcc?: Object$1 | URL | null;
|
|
4442
|
-
bccs?: (Object$1 | URL)[];
|
|
4443
|
-
mediaType?: string | null;
|
|
4444
|
-
duration?: Temporal.Duration | null;
|
|
4445
|
-
sensitive?: boolean | null;
|
|
4446
|
-
source?: Source | null;
|
|
4447
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4448
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4449
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4450
|
-
approvedBy?: URL | null;
|
|
4451
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4452
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4453
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4454
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
4455
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4456
|
-
object?: Object$1 | URL | null;
|
|
4457
|
-
objects?: (Object$1 | URL)[];
|
|
4458
|
-
target?: Object$1 | URL | null;
|
|
4459
|
-
targets?: (Object$1 | URL)[];
|
|
4460
|
-
result?: Object$1 | URL | null;
|
|
4461
|
-
results?: (Object$1 | URL)[];
|
|
4462
|
-
origin?: Object$1 | URL | null;
|
|
4463
|
-
origins?: (Object$1 | URL)[];
|
|
4464
|
-
instrument?: Object$1 | URL | null;
|
|
4465
|
-
instruments?: (Object$1 | URL)[];
|
|
4466
|
-
}, options?: {
|
|
4467
|
-
documentLoader?: DocumentLoader$1;
|
|
4468
|
-
contextLoader?: DocumentLoader$1;
|
|
4469
|
-
}): FeatureRequest;
|
|
4470
|
-
/**
|
|
4471
|
-
* Converts this object to a JSON-LD structure.
|
|
4472
|
-
* @param options The options to use.
|
|
4473
|
-
* - `format`: The format of the output: `compact` or
|
|
4474
|
-
`expand`.
|
|
4475
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4476
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
4477
|
-
when `format` is set to `'expand'`.
|
|
4478
|
-
* @returns The JSON-LD representation of this object.
|
|
4479
|
-
*/
|
|
4480
|
-
override toJsonLd(options?: {
|
|
4481
|
-
format?: "compact" | "expand";
|
|
4482
|
-
contextLoader?: DocumentLoader$1;
|
|
4483
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4484
|
-
}): Promise<unknown>;
|
|
4485
|
-
protected override isCompactable(): boolean;
|
|
4486
|
-
/**
|
|
4487
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
4488
|
-
* @param json The JSON-LD structure to convert.
|
|
4489
|
-
* @param options The options to use.
|
|
4490
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4491
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4492
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4493
|
-
* If omitted, the global tracer provider is used.
|
|
4494
|
-
* @returns The object of this type.
|
|
4495
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
4496
|
-
*/
|
|
4497
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
4498
|
-
documentLoader?: DocumentLoader$1;
|
|
4499
|
-
contextLoader?: DocumentLoader$1;
|
|
4500
|
-
tracerProvider?: TracerProvider;
|
|
4501
|
-
baseUrl?: URL;
|
|
4502
|
-
}): Promise<FeatureRequest>;
|
|
4503
|
-
protected static __fromJsonLd__FeatureRequest__(json: unknown, span: Span, options?: {
|
|
4504
|
-
documentLoader?: DocumentLoader$1;
|
|
4505
|
-
contextLoader?: DocumentLoader$1;
|
|
4506
|
-
tracerProvider?: TracerProvider;
|
|
4507
|
-
baseUrl?: URL;
|
|
4508
|
-
}): Promise<FeatureRequest>;
|
|
4509
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4510
|
-
}
|
|
4511
|
-
/** A `Collection` is a subtype of {@link Object} that represents ordered or
|
|
4512
|
-
* unordered sets of {@link Object} or {@link Link} instances.
|
|
4513
|
-
*
|
|
4514
|
-
* Refer to the Activity Streams 2.0 Core specification for a complete
|
|
4515
|
-
* description of the Collection type.
|
|
4516
|
-
*/
|
|
4517
|
-
declare class Collection extends Object$1 {
|
|
4518
|
-
#private;
|
|
4519
|
-
/**
|
|
4520
|
-
* The type URI of {@link Collection}: `https://www.w3.org/ns/activitystreams#Collection`.
|
|
4521
|
-
*/
|
|
4522
|
-
static override get typeId(): URL;
|
|
4523
|
-
/**
|
|
4524
|
-
* Constructs a new instance of Collection with the given values.
|
|
4525
|
-
* @param values The values to initialize the instance with.
|
|
4526
|
-
* @param options The options to use for initialization.
|
|
4527
|
-
*/
|
|
4528
|
-
constructor(values: {
|
|
4529
|
-
id?: URL | null;
|
|
4530
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4531
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4532
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4533
|
-
audience?: Object$1 | URL | null;
|
|
4534
|
-
audiences?: (Object$1 | URL)[];
|
|
4535
|
-
content?: string | LanguageString$1 | null;
|
|
4536
|
-
contents?: ((string | LanguageString$1))[];
|
|
4537
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4538
|
-
name?: string | LanguageString$1 | null;
|
|
4539
|
-
names?: ((string | LanguageString$1))[];
|
|
4540
|
-
endTime?: Temporal.Instant | null;
|
|
4541
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4542
|
-
icon?: Image | URL | null;
|
|
4543
|
-
icons?: (Image | URL)[];
|
|
4544
|
-
image?: Image | URL | null;
|
|
4545
|
-
images?: (Image | URL)[];
|
|
4546
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4547
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4548
|
-
location?: Object$1 | Link | URL | null;
|
|
4549
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4550
|
-
preview?: Link | Object$1 | URL | null;
|
|
4551
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4552
|
-
published?: Temporal.Instant | null;
|
|
4553
|
-
replies?: Collection | URL | null;
|
|
4554
|
-
shares?: Collection | URL | null;
|
|
4555
|
-
likes?: Collection | URL | null;
|
|
4556
|
-
emojiReactions?: Collection | URL | null;
|
|
4557
|
-
startTime?: Temporal.Instant | null;
|
|
4558
|
-
summary?: string | LanguageString$1 | null;
|
|
4559
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4560
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4561
|
-
updated?: Temporal.Instant | null;
|
|
4562
|
-
url?: URL | Link | null;
|
|
4563
|
-
urls?: ((URL | Link))[];
|
|
4564
|
-
to?: Object$1 | URL | null;
|
|
4565
|
-
tos?: (Object$1 | URL)[];
|
|
4566
|
-
bto?: Object$1 | URL | null;
|
|
4567
|
-
btos?: (Object$1 | URL)[];
|
|
4568
|
-
cc?: Object$1 | URL | null;
|
|
4569
|
-
ccs?: (Object$1 | URL)[];
|
|
4570
|
-
bcc?: Object$1 | URL | null;
|
|
4571
|
-
bccs?: (Object$1 | URL)[];
|
|
4572
|
-
mediaType?: string | null;
|
|
4573
|
-
duration?: Temporal.Duration | null;
|
|
4574
|
-
sensitive?: boolean | null;
|
|
4575
|
-
source?: Source | null;
|
|
4576
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4577
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4578
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4579
|
-
approvedBy?: URL | null;
|
|
4580
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4581
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4582
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4583
|
-
totalItems?: number | null;
|
|
4584
|
-
current?: CollectionPage | URL | null;
|
|
4585
|
-
first?: CollectionPage | URL | null;
|
|
4586
|
-
last?: CollectionPage | URL | null;
|
|
4587
|
-
items?: (Object$1 | Link | URL)[];
|
|
4588
|
-
likesOf?: Object$1 | URL | null;
|
|
4589
|
-
sharesOf?: Object$1 | URL | null;
|
|
4590
|
-
repliesOf?: Object$1 | URL | null;
|
|
4591
|
-
inboxOf?: Object$1 | URL | null;
|
|
4592
|
-
outboxOf?: Object$1 | URL | null;
|
|
4593
|
-
followersOf?: Object$1 | URL | null;
|
|
4594
|
-
followingOf?: Object$1 | URL | null;
|
|
4595
|
-
likedOf?: Object$1 | URL | null;
|
|
4596
|
-
}, options?: {
|
|
4597
|
-
documentLoader?: DocumentLoader$1;
|
|
4598
|
-
contextLoader?: DocumentLoader$1;
|
|
4599
|
-
tracerProvider?: TracerProvider;
|
|
4600
|
-
});
|
|
4601
|
-
/**
|
|
4602
|
-
* Clones this instance, optionally updating it with the given values.
|
|
4603
|
-
* @param values The values to update the clone with.
|
|
4604
|
-
* @param options The options to use for cloning.
|
|
4605
|
-
* @returns The cloned instance.
|
|
4606
|
-
*/
|
|
4607
|
-
override clone(values?: {
|
|
4608
|
-
id?: URL | null;
|
|
4609
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4610
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4611
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4612
|
-
audience?: Object$1 | URL | null;
|
|
4613
|
-
audiences?: (Object$1 | URL)[];
|
|
4614
|
-
content?: string | LanguageString$1 | null;
|
|
4615
|
-
contents?: ((string | LanguageString$1))[];
|
|
4616
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4617
|
-
name?: string | LanguageString$1 | null;
|
|
4618
|
-
names?: ((string | LanguageString$1))[];
|
|
4619
|
-
endTime?: Temporal.Instant | null;
|
|
4620
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4621
|
-
icon?: Image | URL | null;
|
|
4622
|
-
icons?: (Image | URL)[];
|
|
4623
|
-
image?: Image | URL | null;
|
|
4624
|
-
images?: (Image | URL)[];
|
|
4625
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4626
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4627
|
-
location?: Object$1 | Link | URL | null;
|
|
4628
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4629
|
-
preview?: Link | Object$1 | URL | null;
|
|
4630
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4631
|
-
published?: Temporal.Instant | null;
|
|
4632
|
-
replies?: Collection | URL | null;
|
|
4633
|
-
shares?: Collection | URL | null;
|
|
4634
|
-
likes?: Collection | URL | null;
|
|
4635
|
-
emojiReactions?: Collection | URL | null;
|
|
4636
|
-
startTime?: Temporal.Instant | null;
|
|
4637
|
-
summary?: string | LanguageString$1 | null;
|
|
4638
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4639
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4640
|
-
updated?: Temporal.Instant | null;
|
|
4641
|
-
url?: URL | Link | null;
|
|
4642
|
-
urls?: ((URL | Link))[];
|
|
4643
|
-
to?: Object$1 | URL | null;
|
|
4644
|
-
tos?: (Object$1 | URL)[];
|
|
4645
|
-
bto?: Object$1 | URL | null;
|
|
4646
|
-
btos?: (Object$1 | URL)[];
|
|
4647
|
-
cc?: Object$1 | URL | null;
|
|
4648
|
-
ccs?: (Object$1 | URL)[];
|
|
4649
|
-
bcc?: Object$1 | URL | null;
|
|
4650
|
-
bccs?: (Object$1 | URL)[];
|
|
4651
|
-
mediaType?: string | null;
|
|
4652
|
-
duration?: Temporal.Duration | null;
|
|
4653
|
-
sensitive?: boolean | null;
|
|
4654
|
-
source?: Source | null;
|
|
4655
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4656
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4657
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4658
|
-
approvedBy?: URL | null;
|
|
4659
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4660
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4661
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4662
|
-
totalItems?: number | null;
|
|
4663
|
-
current?: CollectionPage | URL | null;
|
|
4664
|
-
first?: CollectionPage | URL | null;
|
|
4665
|
-
last?: CollectionPage | URL | null;
|
|
4666
|
-
items?: (Object$1 | Link | URL)[];
|
|
4667
|
-
likesOf?: Object$1 | URL | null;
|
|
4668
|
-
sharesOf?: Object$1 | URL | null;
|
|
4669
|
-
repliesOf?: Object$1 | URL | null;
|
|
4670
|
-
inboxOf?: Object$1 | URL | null;
|
|
4671
|
-
outboxOf?: Object$1 | URL | null;
|
|
4672
|
-
followersOf?: Object$1 | URL | null;
|
|
4673
|
-
followingOf?: Object$1 | URL | null;
|
|
4674
|
-
likedOf?: Object$1 | URL | null;
|
|
4675
|
-
}, options?: {
|
|
4676
|
-
documentLoader?: DocumentLoader$1;
|
|
4677
|
-
contextLoader?: DocumentLoader$1;
|
|
4678
|
-
}): Collection;
|
|
4679
|
-
/** A non-negative integer specifying the total number of objects contained by
|
|
4680
|
-
* the logical view of the collection. This number might not reflect the actual
|
|
4681
|
-
* number of items serialized within the {@link Collection} object instance.
|
|
4682
|
-
*/
|
|
4683
|
-
get totalItems(): number | null;
|
|
4684
|
-
/**
|
|
4685
|
-
* Similar to
|
|
4686
|
-
* {@link Collection.getCurrent},
|
|
4687
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4688
|
-
*/
|
|
4689
|
-
get currentId(): URL | null;
|
|
4690
|
-
/** In a paged {@link Collection}, indicates the page that contains
|
|
4691
|
-
* the most recently updated member items.
|
|
4692
|
-
*/
|
|
4693
|
-
getCurrent(options?: {
|
|
4694
|
-
documentLoader?: DocumentLoader$1;
|
|
4695
|
-
contextLoader?: DocumentLoader$1;
|
|
4696
|
-
suppressError?: boolean;
|
|
4697
|
-
tracerProvider?: TracerProvider;
|
|
4698
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4699
|
-
}): Promise<CollectionPage | null>;
|
|
4700
|
-
/**
|
|
4701
|
-
* Similar to
|
|
4702
|
-
* {@link Collection.getFirst},
|
|
4703
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4704
|
-
*/
|
|
4705
|
-
get firstId(): URL | null;
|
|
4706
|
-
/** In a paged {@link Collection}, indicates the furthest preceding page of
|
|
4707
|
-
* items in the collection.
|
|
4708
|
-
*/
|
|
4709
|
-
getFirst(options?: {
|
|
4710
|
-
documentLoader?: DocumentLoader$1;
|
|
4711
|
-
contextLoader?: DocumentLoader$1;
|
|
4712
|
-
suppressError?: boolean;
|
|
4713
|
-
tracerProvider?: TracerProvider;
|
|
4714
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4715
|
-
}): Promise<CollectionPage | null>;
|
|
4716
|
-
/**
|
|
4717
|
-
* Similar to
|
|
4718
|
-
* {@link Collection.getLast},
|
|
4719
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4720
|
-
*/
|
|
4721
|
-
get lastId(): URL | null;
|
|
4722
|
-
/** In a paged {@link Collection}, indicates the furthest proceeding page of
|
|
4723
|
-
* the collection.
|
|
4724
|
-
*/
|
|
4725
|
-
getLast(options?: {
|
|
4726
|
-
documentLoader?: DocumentLoader$1;
|
|
4727
|
-
contextLoader?: DocumentLoader$1;
|
|
4728
|
-
suppressError?: boolean;
|
|
4729
|
-
tracerProvider?: TracerProvider;
|
|
4730
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4731
|
-
}): Promise<CollectionPage | null>;
|
|
4732
|
-
/**
|
|
4733
|
-
* Similar to
|
|
4734
|
-
* {@link Collection.getItems},
|
|
4735
|
-
* but returns their `@id`s instead of the objects themselves.
|
|
4736
|
-
*/
|
|
4737
|
-
get itemIds(): URL[];
|
|
4738
|
-
/** Identifies the items contained in a collection. The items might be ordered
|
|
4739
|
-
* or unordered.
|
|
4740
|
-
*/
|
|
4741
|
-
getItems(options?: {
|
|
4742
|
-
documentLoader?: DocumentLoader$1;
|
|
4743
|
-
contextLoader?: DocumentLoader$1;
|
|
4744
|
-
suppressError?: boolean;
|
|
4745
|
-
tracerProvider?: TracerProvider;
|
|
4746
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4747
|
-
}): AsyncIterable<Object$1 | Link>;
|
|
4748
|
-
/**
|
|
4749
|
-
* Similar to
|
|
4750
|
-
* {@link Collection.getLikesOf},
|
|
4751
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4752
|
-
*/
|
|
4753
|
-
get likesOfId(): URL | null;
|
|
4754
|
-
/** Defines an object for which the collection is the value of the likes property.
|
|
4755
|
-
*/
|
|
4756
|
-
getLikesOf(options?: {
|
|
4757
|
-
documentLoader?: DocumentLoader$1;
|
|
4758
|
-
contextLoader?: DocumentLoader$1;
|
|
4759
|
-
suppressError?: boolean;
|
|
4760
|
-
tracerProvider?: TracerProvider;
|
|
4761
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4762
|
-
}): Promise<Object$1 | null>;
|
|
4763
|
-
/**
|
|
4764
|
-
* Similar to
|
|
4765
|
-
* {@link Collection.getSharesOf},
|
|
4766
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4767
|
-
*/
|
|
4768
|
-
get sharesOfId(): URL | null;
|
|
4769
|
-
/** Defines an object for which the collection is the value of the shares property.
|
|
4770
|
-
*/
|
|
4771
|
-
getSharesOf(options?: {
|
|
4772
|
-
documentLoader?: DocumentLoader$1;
|
|
4773
|
-
contextLoader?: DocumentLoader$1;
|
|
4774
|
-
suppressError?: boolean;
|
|
4775
|
-
tracerProvider?: TracerProvider;
|
|
4776
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4777
|
-
}): Promise<Object$1 | null>;
|
|
4778
|
-
/**
|
|
4779
|
-
* Similar to
|
|
4780
|
-
* {@link Collection.getRepliesOf},
|
|
4781
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4782
|
-
*/
|
|
4783
|
-
get repliesOfId(): URL | null;
|
|
4784
|
-
/** Defines an object for which the collection is the value of the replies property.
|
|
4785
|
-
*/
|
|
4786
|
-
getRepliesOf(options?: {
|
|
4787
|
-
documentLoader?: DocumentLoader$1;
|
|
4788
|
-
contextLoader?: DocumentLoader$1;
|
|
4789
|
-
suppressError?: boolean;
|
|
4790
|
-
tracerProvider?: TracerProvider;
|
|
4791
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4792
|
-
}): Promise<Object$1 | null>;
|
|
4793
|
-
/**
|
|
4794
|
-
* Similar to
|
|
4795
|
-
* {@link Collection.getInboxOf},
|
|
4796
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4797
|
-
*/
|
|
4798
|
-
get inboxOfId(): URL | null;
|
|
4799
|
-
/** Defines an actor for which the collection is the value of the inbox property.
|
|
4800
|
-
*/
|
|
4801
|
-
getInboxOf(options?: {
|
|
4802
|
-
documentLoader?: DocumentLoader$1;
|
|
4803
|
-
contextLoader?: DocumentLoader$1;
|
|
4804
|
-
suppressError?: boolean;
|
|
4805
|
-
tracerProvider?: TracerProvider;
|
|
4806
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4807
|
-
}): Promise<Object$1 | null>;
|
|
4808
|
-
/**
|
|
4809
|
-
* Similar to
|
|
4810
|
-
* {@link Collection.getOutboxOf},
|
|
4811
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4812
|
-
*/
|
|
4813
|
-
get outboxOfId(): URL | null;
|
|
4814
|
-
/** Defines an actor for which the collection is the value of the outbox property.
|
|
4815
|
-
*/
|
|
4816
|
-
getOutboxOf(options?: {
|
|
4817
|
-
documentLoader?: DocumentLoader$1;
|
|
4818
|
-
contextLoader?: DocumentLoader$1;
|
|
4819
|
-
suppressError?: boolean;
|
|
4820
|
-
tracerProvider?: TracerProvider;
|
|
4821
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4822
|
-
}): Promise<Object$1 | null>;
|
|
4823
|
-
/**
|
|
4824
|
-
* Similar to
|
|
4825
|
-
* {@link Collection.getFollowersOf},
|
|
4826
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4827
|
-
*/
|
|
4828
|
-
get followersOfId(): URL | null;
|
|
4829
|
-
/** Defines an actor for which the collection is the value of the followers property.
|
|
4830
|
-
*/
|
|
4831
|
-
getFollowersOf(options?: {
|
|
4832
|
-
documentLoader?: DocumentLoader$1;
|
|
4833
|
-
contextLoader?: DocumentLoader$1;
|
|
4834
|
-
suppressError?: boolean;
|
|
4835
|
-
tracerProvider?: TracerProvider;
|
|
4836
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4837
|
-
}): Promise<Object$1 | null>;
|
|
4838
|
-
/**
|
|
4839
|
-
* Similar to
|
|
4840
|
-
* {@link Collection.getFollowingOf},
|
|
4841
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4842
|
-
*/
|
|
4843
|
-
get followingOfId(): URL | null;
|
|
4844
|
-
/** Defines an actor for which the collection is the value of the following property.
|
|
4845
|
-
*/
|
|
4846
|
-
getFollowingOf(options?: {
|
|
4847
|
-
documentLoader?: DocumentLoader$1;
|
|
4848
|
-
contextLoader?: DocumentLoader$1;
|
|
4849
|
-
suppressError?: boolean;
|
|
4850
|
-
tracerProvider?: TracerProvider;
|
|
4851
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4852
|
-
}): Promise<Object$1 | null>;
|
|
4853
|
-
/**
|
|
4854
|
-
* Similar to
|
|
4855
|
-
* {@link Collection.getLikedOf},
|
|
4856
|
-
* but returns its `@id` URL instead of the object itself.
|
|
4857
|
-
*/
|
|
4858
|
-
get likedOfId(): URL | null;
|
|
4859
|
-
/** Defines an actor for which the collection is the value of the liked property.
|
|
4860
|
-
*/
|
|
4861
|
-
getLikedOf(options?: {
|
|
4862
|
-
documentLoader?: DocumentLoader$1;
|
|
4863
|
-
contextLoader?: DocumentLoader$1;
|
|
4864
|
-
suppressError?: boolean;
|
|
4865
|
-
tracerProvider?: TracerProvider;
|
|
4866
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
4867
|
-
}): Promise<Object$1 | null>;
|
|
4868
|
-
/**
|
|
4869
|
-
* Converts this object to a JSON-LD structure.
|
|
4870
|
-
* @param options The options to use.
|
|
4871
|
-
* - `format`: The format of the output: `compact` or
|
|
4872
|
-
`expand`.
|
|
4873
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4874
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
4875
|
-
when `format` is set to `'expand'`.
|
|
4876
|
-
* @returns The JSON-LD representation of this object.
|
|
4877
|
-
*/
|
|
4878
|
-
override toJsonLd(options?: {
|
|
4879
|
-
format?: "compact" | "expand";
|
|
4880
|
-
contextLoader?: DocumentLoader$1;
|
|
4881
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4882
|
-
}): Promise<unknown>;
|
|
4883
|
-
protected override isCompactable(): boolean;
|
|
4884
|
-
/**
|
|
4885
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
4886
|
-
* @param json The JSON-LD structure to convert.
|
|
4887
|
-
* @param options The options to use.
|
|
4888
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4889
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4890
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4891
|
-
* If omitted, the global tracer provider is used.
|
|
4892
|
-
* @returns The object of this type.
|
|
4893
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
4894
|
-
*/
|
|
4895
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
4896
|
-
documentLoader?: DocumentLoader$1;
|
|
4897
|
-
contextLoader?: DocumentLoader$1;
|
|
4898
|
-
tracerProvider?: TracerProvider;
|
|
4899
|
-
baseUrl?: URL;
|
|
4900
|
-
}): Promise<Collection>;
|
|
4901
|
-
protected static __fromJsonLd__Collection__(json: unknown, span: Span, options?: {
|
|
4902
|
-
documentLoader?: DocumentLoader$1;
|
|
4903
|
-
contextLoader?: DocumentLoader$1;
|
|
4904
|
-
tracerProvider?: TracerProvider;
|
|
4905
|
-
baseUrl?: URL;
|
|
4906
|
-
}): Promise<Collection>;
|
|
4907
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4908
|
-
}
|
|
4909
|
-
/** A subtype of {@link Collection} in which members of the logical collection
|
|
4910
|
-
* are assumed to always be strictly ordered.
|
|
4911
|
-
*/
|
|
4912
|
-
declare class OrderedCollection extends Collection {
|
|
4913
|
-
#private;
|
|
4914
|
-
/**
|
|
4915
|
-
* The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
|
|
4916
|
-
*/
|
|
4917
|
-
static override get typeId(): URL;
|
|
4918
|
-
/**
|
|
4919
|
-
* Constructs a new instance of OrderedCollection with the given values.
|
|
4920
|
-
* @param values The values to initialize the instance with.
|
|
4921
|
-
* @param options The options to use for initialization.
|
|
4922
|
-
*/
|
|
4923
|
-
constructor(values: {
|
|
4924
|
-
id?: URL | null;
|
|
4925
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4926
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4927
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4928
|
-
audience?: Object$1 | URL | null;
|
|
4929
|
-
audiences?: (Object$1 | URL)[];
|
|
4930
|
-
content?: string | LanguageString$1 | null;
|
|
4931
|
-
contents?: ((string | LanguageString$1))[];
|
|
4932
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
4933
|
-
name?: string | LanguageString$1 | null;
|
|
4934
|
-
names?: ((string | LanguageString$1))[];
|
|
4935
|
-
endTime?: Temporal.Instant | null;
|
|
4936
|
-
generators?: (Object$1 | Link | URL)[];
|
|
4937
|
-
icon?: Image | URL | null;
|
|
4938
|
-
icons?: (Image | URL)[];
|
|
4939
|
-
image?: Image | URL | null;
|
|
4940
|
-
images?: (Image | URL)[];
|
|
4941
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
4942
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
4943
|
-
location?: Object$1 | Link | URL | null;
|
|
4944
|
-
locations?: (Object$1 | Link | URL)[];
|
|
4945
|
-
preview?: Link | Object$1 | URL | null;
|
|
4946
|
-
previews?: (Link | Object$1 | URL)[];
|
|
4947
|
-
published?: Temporal.Instant | null;
|
|
4948
|
-
replies?: Collection | URL | null;
|
|
4949
|
-
shares?: Collection | URL | null;
|
|
4950
|
-
likes?: Collection | URL | null;
|
|
4951
|
-
emojiReactions?: Collection | URL | null;
|
|
4952
|
-
startTime?: Temporal.Instant | null;
|
|
4953
|
-
summary?: string | LanguageString$1 | null;
|
|
4954
|
-
summaries?: ((string | LanguageString$1))[];
|
|
4955
|
-
tags?: (Object$1 | Link | URL)[];
|
|
4956
|
-
updated?: Temporal.Instant | null;
|
|
4957
|
-
url?: URL | Link | null;
|
|
4958
|
-
urls?: ((URL | Link))[];
|
|
4959
|
-
to?: Object$1 | URL | null;
|
|
4960
|
-
tos?: (Object$1 | URL)[];
|
|
4961
|
-
bto?: Object$1 | URL | null;
|
|
4962
|
-
btos?: (Object$1 | URL)[];
|
|
4963
|
-
cc?: Object$1 | URL | null;
|
|
4964
|
-
ccs?: (Object$1 | URL)[];
|
|
4965
|
-
bcc?: Object$1 | URL | null;
|
|
4966
|
-
bccs?: (Object$1 | URL)[];
|
|
4967
|
-
mediaType?: string | null;
|
|
4968
|
-
duration?: Temporal.Duration | null;
|
|
4969
|
-
sensitive?: boolean | null;
|
|
4970
|
-
source?: Source | null;
|
|
4971
|
-
proof?: DataIntegrityProof | URL | null;
|
|
4972
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
4973
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
4974
|
-
approvedBy?: URL | null;
|
|
4975
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4976
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4977
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4978
|
-
totalItems?: number | null;
|
|
4979
|
-
current?: CollectionPage | URL | null;
|
|
4980
|
-
first?: CollectionPage | URL | null;
|
|
4981
|
-
last?: CollectionPage | URL | null;
|
|
4982
|
-
likesOf?: Object$1 | URL | null;
|
|
4983
|
-
sharesOf?: Object$1 | URL | null;
|
|
4984
|
-
repliesOf?: Object$1 | URL | null;
|
|
4985
|
-
inboxOf?: Object$1 | URL | null;
|
|
4986
|
-
outboxOf?: Object$1 | URL | null;
|
|
4987
|
-
followersOf?: Object$1 | URL | null;
|
|
4988
|
-
followingOf?: Object$1 | URL | null;
|
|
4989
|
-
likedOf?: Object$1 | URL | null;
|
|
4990
|
-
items?: (Object$1 | Link | URL)[];
|
|
4991
|
-
}, options?: {
|
|
4992
|
-
documentLoader?: DocumentLoader$1;
|
|
4993
|
-
contextLoader?: DocumentLoader$1;
|
|
4994
|
-
tracerProvider?: TracerProvider;
|
|
4995
|
-
});
|
|
4996
|
-
/**
|
|
4997
|
-
* Clones this instance, optionally updating it with the given values.
|
|
4998
|
-
* @param values The values to update the clone with.
|
|
4999
|
-
* @param options The options to use for cloning.
|
|
5000
|
-
* @returns The cloned instance.
|
|
5001
|
-
*/
|
|
5002
|
-
override clone(values?: {
|
|
5003
|
-
id?: URL | null;
|
|
5004
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
5005
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
5006
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
5007
|
-
audience?: Object$1 | URL | null;
|
|
5008
|
-
audiences?: (Object$1 | URL)[];
|
|
5009
|
-
content?: string | LanguageString$1 | null;
|
|
5010
|
-
contents?: ((string | LanguageString$1))[];
|
|
5011
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
5012
|
-
name?: string | LanguageString$1 | null;
|
|
5013
|
-
names?: ((string | LanguageString$1))[];
|
|
5014
|
-
endTime?: Temporal.Instant | null;
|
|
5015
|
-
generators?: (Object$1 | Link | URL)[];
|
|
5016
|
-
icon?: Image | URL | null;
|
|
5017
|
-
icons?: (Image | URL)[];
|
|
5018
|
-
image?: Image | URL | null;
|
|
5019
|
-
images?: (Image | URL)[];
|
|
5020
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
5021
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
5022
|
-
location?: Object$1 | Link | URL | null;
|
|
5023
|
-
locations?: (Object$1 | Link | URL)[];
|
|
5024
|
-
preview?: Link | Object$1 | URL | null;
|
|
5025
|
-
previews?: (Link | Object$1 | URL)[];
|
|
5026
|
-
published?: Temporal.Instant | null;
|
|
5027
|
-
replies?: Collection | URL | null;
|
|
5028
|
-
shares?: Collection | URL | null;
|
|
5029
|
-
likes?: Collection | URL | null;
|
|
5030
|
-
emojiReactions?: Collection | URL | null;
|
|
5031
|
-
startTime?: Temporal.Instant | null;
|
|
5032
|
-
summary?: string | LanguageString$1 | null;
|
|
5033
|
-
summaries?: ((string | LanguageString$1))[];
|
|
5034
|
-
tags?: (Object$1 | Link | URL)[];
|
|
5035
|
-
updated?: Temporal.Instant | null;
|
|
5036
|
-
url?: URL | Link | null;
|
|
5037
|
-
urls?: ((URL | Link))[];
|
|
5038
|
-
to?: Object$1 | URL | null;
|
|
5039
|
-
tos?: (Object$1 | URL)[];
|
|
5040
|
-
bto?: Object$1 | URL | null;
|
|
5041
|
-
btos?: (Object$1 | URL)[];
|
|
5042
|
-
cc?: Object$1 | URL | null;
|
|
5043
|
-
ccs?: (Object$1 | URL)[];
|
|
5044
|
-
bcc?: Object$1 | URL | null;
|
|
5045
|
-
bccs?: (Object$1 | URL)[];
|
|
5046
|
-
mediaType?: string | null;
|
|
5047
|
-
duration?: Temporal.Duration | null;
|
|
5048
|
-
sensitive?: boolean | null;
|
|
5049
|
-
source?: Source | null;
|
|
5050
|
-
proof?: DataIntegrityProof | URL | null;
|
|
5051
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
5052
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
5053
|
-
approvedBy?: URL | null;
|
|
5054
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5055
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5056
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5057
|
-
totalItems?: number | null;
|
|
5058
|
-
current?: CollectionPage | URL | null;
|
|
5059
|
-
first?: CollectionPage | URL | null;
|
|
5060
|
-
last?: CollectionPage | URL | null;
|
|
5061
|
-
likesOf?: Object$1 | URL | null;
|
|
5062
|
-
sharesOf?: Object$1 | URL | null;
|
|
5063
|
-
repliesOf?: Object$1 | URL | null;
|
|
5064
|
-
inboxOf?: Object$1 | URL | null;
|
|
5065
|
-
outboxOf?: Object$1 | URL | null;
|
|
5066
|
-
followersOf?: Object$1 | URL | null;
|
|
5067
|
-
followingOf?: Object$1 | URL | null;
|
|
5068
|
-
likedOf?: Object$1 | URL | null;
|
|
5069
|
-
items?: (Object$1 | Link | URL)[];
|
|
5070
|
-
}, options?: {
|
|
5071
|
-
documentLoader?: DocumentLoader$1;
|
|
5072
|
-
contextLoader?: DocumentLoader$1;
|
|
5073
|
-
}): OrderedCollection;
|
|
5074
|
-
/**
|
|
5075
|
-
* Similar to
|
|
5076
|
-
* {@link OrderedCollection.getItems},
|
|
5077
|
-
* but returns their `@id`s instead of the objects themselves.
|
|
5078
|
-
*/
|
|
5079
|
-
override get itemIds(): URL[];
|
|
5080
|
-
/** Identifies the items contained in a collection. The items might be ordered
|
|
5081
|
-
* or unordered.
|
|
5082
|
-
*/
|
|
5083
|
-
override getItems(options?: {
|
|
5084
|
-
documentLoader?: DocumentLoader$1;
|
|
5085
|
-
contextLoader?: DocumentLoader$1;
|
|
5086
|
-
suppressError?: boolean;
|
|
5087
|
-
tracerProvider?: TracerProvider;
|
|
5088
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
5089
|
-
}): AsyncIterable<Object$1 | Link>;
|
|
5090
|
-
/**
|
|
5091
|
-
* Converts this object to a JSON-LD structure.
|
|
5092
|
-
* @param options The options to use.
|
|
5093
|
-
* - `format`: The format of the output: `compact` or
|
|
5094
|
-
`expand`.
|
|
5095
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
5096
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
5097
|
-
when `format` is set to `'expand'`.
|
|
5098
|
-
* @returns The JSON-LD representation of this object.
|
|
5099
|
-
*/
|
|
5100
|
-
override toJsonLd(options?: {
|
|
5101
|
-
format?: "compact" | "expand";
|
|
5102
|
-
contextLoader?: DocumentLoader$1;
|
|
5103
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
5104
|
-
}): Promise<unknown>;
|
|
5105
|
-
protected override isCompactable(): boolean;
|
|
5106
|
-
/**
|
|
5107
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
5108
|
-
* @param json The JSON-LD structure to convert.
|
|
5109
|
-
* @param options The options to use.
|
|
5110
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
5111
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
5112
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
5113
|
-
* If omitted, the global tracer provider is used.
|
|
5114
|
-
* @returns The object of this type.
|
|
5115
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
5116
|
-
*/
|
|
5117
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
5118
|
-
documentLoader?: DocumentLoader$1;
|
|
5119
|
-
contextLoader?: DocumentLoader$1;
|
|
5120
|
-
tracerProvider?: TracerProvider;
|
|
5121
|
-
baseUrl?: URL;
|
|
5122
|
-
}): Promise<OrderedCollection>;
|
|
5123
|
-
protected static __fromJsonLd__OrderedCollection__(json: unknown, span: Span, options?: {
|
|
5124
|
-
documentLoader?: DocumentLoader$1;
|
|
5125
|
-
contextLoader?: DocumentLoader$1;
|
|
5126
|
-
tracerProvider?: TracerProvider;
|
|
5127
|
-
baseUrl?: URL;
|
|
5128
|
-
}): Promise<OrderedCollection>;
|
|
5129
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
5130
|
-
}
|
|
5131
|
-
/** A curated collection of recommended actors or other objects.
|
|
5132
|
-
*
|
|
5133
|
-
* See [FEP-7aa9](https://w3id.org/fep/7aa9) for details.
|
|
5134
|
-
*/
|
|
5135
|
-
declare class FeaturedCollection extends OrderedCollection {
|
|
5136
|
-
#private;
|
|
5137
|
-
/**
|
|
5138
|
-
* The type URI of {@link FeaturedCollection}: `https://w3id.org/fep/7aa9#FeaturedCollection`.
|
|
5139
|
-
*/
|
|
5140
|
-
static override get typeId(): URL;
|
|
5141
|
-
/**
|
|
5142
|
-
* Constructs a new instance of FeaturedCollection with the given values.
|
|
5143
|
-
* @param values The values to initialize the instance with.
|
|
5144
|
-
* @param options The options to use for initialization.
|
|
5145
|
-
*/
|
|
5146
|
-
constructor(values: {
|
|
5147
|
-
id?: URL | null;
|
|
5148
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
5149
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
5150
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
5151
|
-
audience?: Object$1 | URL | null;
|
|
5152
|
-
audiences?: (Object$1 | URL)[];
|
|
5153
|
-
content?: string | LanguageString$1 | null;
|
|
5154
|
-
contents?: ((string | LanguageString$1))[];
|
|
5155
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
5156
|
-
name?: string | LanguageString$1 | null;
|
|
5157
|
-
names?: ((string | LanguageString$1))[];
|
|
5158
|
-
endTime?: Temporal.Instant | null;
|
|
5159
|
-
generators?: (Object$1 | Link | URL)[];
|
|
5160
|
-
icon?: Image | URL | null;
|
|
5161
|
-
icons?: (Image | URL)[];
|
|
5162
|
-
image?: Image | URL | null;
|
|
5163
|
-
images?: (Image | URL)[];
|
|
5164
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
5165
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
5166
|
-
location?: Object$1 | Link | URL | null;
|
|
5167
|
-
locations?: (Object$1 | Link | URL)[];
|
|
5168
|
-
preview?: Link | Object$1 | URL | null;
|
|
5169
|
-
previews?: (Link | Object$1 | URL)[];
|
|
5170
|
-
published?: Temporal.Instant | null;
|
|
5171
|
-
replies?: Collection | URL | null;
|
|
5172
|
-
shares?: Collection | URL | null;
|
|
5173
|
-
likes?: Collection | URL | null;
|
|
5174
|
-
emojiReactions?: Collection | URL | null;
|
|
5175
|
-
startTime?: Temporal.Instant | null;
|
|
5176
|
-
summary?: string | LanguageString$1 | null;
|
|
5177
|
-
summaries?: ((string | LanguageString$1))[];
|
|
5178
|
-
tags?: (Object$1 | Link | URL)[];
|
|
5179
|
-
updated?: Temporal.Instant | null;
|
|
5180
|
-
url?: URL | Link | null;
|
|
5181
|
-
urls?: ((URL | Link))[];
|
|
5182
|
-
to?: Object$1 | URL | null;
|
|
5183
|
-
tos?: (Object$1 | URL)[];
|
|
5184
|
-
bto?: Object$1 | URL | null;
|
|
5185
|
-
btos?: (Object$1 | URL)[];
|
|
5186
|
-
cc?: Object$1 | URL | null;
|
|
5187
|
-
ccs?: (Object$1 | URL)[];
|
|
5188
|
-
bcc?: Object$1 | URL | null;
|
|
5189
|
-
bccs?: (Object$1 | URL)[];
|
|
5190
|
-
mediaType?: string | null;
|
|
5191
|
-
duration?: Temporal.Duration | null;
|
|
5192
|
-
sensitive?: boolean | null;
|
|
5193
|
-
source?: Source | null;
|
|
5194
|
-
proof?: DataIntegrityProof | URL | null;
|
|
5195
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
5196
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
5197
|
-
approvedBy?: URL | null;
|
|
5198
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5199
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5200
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5201
|
-
totalItems?: number | null;
|
|
5202
|
-
current?: CollectionPage | URL | null;
|
|
5203
|
-
first?: CollectionPage | URL | null;
|
|
5204
|
-
last?: CollectionPage | URL | null;
|
|
5205
|
-
likesOf?: Object$1 | URL | null;
|
|
5206
|
-
sharesOf?: Object$1 | URL | null;
|
|
5207
|
-
repliesOf?: Object$1 | URL | null;
|
|
5208
|
-
inboxOf?: Object$1 | URL | null;
|
|
5209
|
-
outboxOf?: Object$1 | URL | null;
|
|
5210
|
-
followersOf?: Object$1 | URL | null;
|
|
5211
|
-
followingOf?: Object$1 | URL | null;
|
|
5212
|
-
likedOf?: Object$1 | URL | null;
|
|
5213
|
-
items?: (Object$1 | Link | URL)[];
|
|
5214
|
-
topic?: Hashtag | null;
|
|
5215
|
-
discoverable?: boolean | null;
|
|
5216
|
-
}, options?: {
|
|
5217
|
-
documentLoader?: DocumentLoader$1;
|
|
5218
|
-
contextLoader?: DocumentLoader$1;
|
|
5219
|
-
tracerProvider?: TracerProvider;
|
|
5220
|
-
});
|
|
5221
|
-
/**
|
|
5222
|
-
* Clones this instance, optionally updating it with the given values.
|
|
5223
|
-
* @param values The values to update the clone with.
|
|
5224
|
-
* @param options The options to use for cloning.
|
|
5225
|
-
* @returns The cloned instance.
|
|
5226
|
-
*/
|
|
5227
|
-
override clone(values?: {
|
|
5228
|
-
id?: URL | null;
|
|
5229
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
5230
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
5231
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
5232
|
-
audience?: Object$1 | URL | null;
|
|
5233
|
-
audiences?: (Object$1 | URL)[];
|
|
5234
|
-
content?: string | LanguageString$1 | null;
|
|
5235
|
-
contents?: ((string | LanguageString$1))[];
|
|
5236
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
5237
|
-
name?: string | LanguageString$1 | null;
|
|
5238
|
-
names?: ((string | LanguageString$1))[];
|
|
5239
|
-
endTime?: Temporal.Instant | null;
|
|
5240
|
-
generators?: (Object$1 | Link | URL)[];
|
|
5241
|
-
icon?: Image | URL | null;
|
|
5242
|
-
icons?: (Image | URL)[];
|
|
5243
|
-
image?: Image | URL | null;
|
|
5244
|
-
images?: (Image | URL)[];
|
|
5245
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
5246
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
5247
|
-
location?: Object$1 | Link | URL | null;
|
|
5248
|
-
locations?: (Object$1 | Link | URL)[];
|
|
5249
|
-
preview?: Link | Object$1 | URL | null;
|
|
5250
|
-
previews?: (Link | Object$1 | URL)[];
|
|
5251
|
-
published?: Temporal.Instant | null;
|
|
5252
|
-
replies?: Collection | URL | null;
|
|
5253
|
-
shares?: Collection | URL | null;
|
|
5254
|
-
likes?: Collection | URL | null;
|
|
5255
|
-
emojiReactions?: Collection | URL | null;
|
|
5256
|
-
startTime?: Temporal.Instant | null;
|
|
5257
|
-
summary?: string | LanguageString$1 | null;
|
|
5258
|
-
summaries?: ((string | LanguageString$1))[];
|
|
5259
|
-
tags?: (Object$1 | Link | URL)[];
|
|
5260
|
-
updated?: Temporal.Instant | null;
|
|
5261
|
-
url?: URL | Link | null;
|
|
5262
|
-
urls?: ((URL | Link))[];
|
|
5263
|
-
to?: Object$1 | URL | null;
|
|
5264
|
-
tos?: (Object$1 | URL)[];
|
|
5265
|
-
bto?: Object$1 | URL | null;
|
|
5266
|
-
btos?: (Object$1 | URL)[];
|
|
5267
|
-
cc?: Object$1 | URL | null;
|
|
5268
|
-
ccs?: (Object$1 | URL)[];
|
|
5269
|
-
bcc?: Object$1 | URL | null;
|
|
5270
|
-
bccs?: (Object$1 | URL)[];
|
|
5271
|
-
mediaType?: string | null;
|
|
5272
|
-
duration?: Temporal.Duration | null;
|
|
5273
|
-
sensitive?: boolean | null;
|
|
5274
|
-
source?: Source | null;
|
|
5275
|
-
proof?: DataIntegrityProof | URL | null;
|
|
5276
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
5277
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
5278
|
-
approvedBy?: URL | null;
|
|
5279
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5280
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5281
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5282
|
-
totalItems?: number | null;
|
|
5283
|
-
current?: CollectionPage | URL | null;
|
|
5284
|
-
first?: CollectionPage | URL | null;
|
|
5285
|
-
last?: CollectionPage | URL | null;
|
|
5286
|
-
likesOf?: Object$1 | URL | null;
|
|
5287
|
-
sharesOf?: Object$1 | URL | null;
|
|
5288
|
-
repliesOf?: Object$1 | URL | null;
|
|
5289
|
-
inboxOf?: Object$1 | URL | null;
|
|
5290
|
-
outboxOf?: Object$1 | URL | null;
|
|
5291
|
-
followersOf?: Object$1 | URL | null;
|
|
5292
|
-
followingOf?: Object$1 | URL | null;
|
|
5293
|
-
likedOf?: Object$1 | URL | null;
|
|
5294
|
-
items?: (Object$1 | Link | URL)[];
|
|
5295
|
-
topic?: Hashtag | null;
|
|
5296
|
-
discoverable?: boolean | null;
|
|
5297
|
-
}, options?: {
|
|
5298
|
-
documentLoader?: DocumentLoader$1;
|
|
5299
|
-
contextLoader?: DocumentLoader$1;
|
|
5300
|
-
}): FeaturedCollection;
|
|
5301
|
-
/** A single {@link Hashtag} object that represents the main topic or category
|
|
5302
|
-
* of this featured collection.
|
|
5303
|
-
*/
|
|
5304
|
-
get topic(): Hashtag | null;
|
|
5305
|
-
/** When present and set to `false`, signals that this featured collection is
|
|
5306
|
-
* not meant to be discovered by search, onboarding, or similar discovery
|
|
5307
|
-
* features.
|
|
5308
|
-
*/
|
|
5309
|
-
get discoverable(): boolean | null;
|
|
5310
|
-
/**
|
|
5311
|
-
* Converts this object to a JSON-LD structure.
|
|
5312
|
-
* @param options The options to use.
|
|
5313
|
-
* - `format`: The format of the output: `compact` or
|
|
5314
|
-
`expand`.
|
|
5315
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
5316
|
-
* - `context`: The JSON-LD context to use. Not applicable
|
|
5317
|
-
when `format` is set to `'expand'`.
|
|
5318
|
-
* @returns The JSON-LD representation of this object.
|
|
5319
|
-
*/
|
|
5320
|
-
override toJsonLd(options?: {
|
|
5321
|
-
format?: "compact" | "expand";
|
|
5322
|
-
contextLoader?: DocumentLoader$1;
|
|
5323
|
-
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
5324
|
-
}): Promise<unknown>;
|
|
5325
|
-
protected override isCompactable(): boolean;
|
|
5326
|
-
/**
|
|
5327
|
-
* Converts a JSON-LD structure to an object of this type.
|
|
5328
|
-
* @param json The JSON-LD structure to convert.
|
|
5329
|
-
* @param options The options to use.
|
|
5330
|
-
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
5331
|
-
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
5332
|
-
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
5333
|
-
* If omitted, the global tracer provider is used.
|
|
5334
|
-
* @returns The object of this type.
|
|
5335
|
-
* @throws {TypeError} If the given `json` is invalid.
|
|
5336
|
-
*/
|
|
5337
|
-
static override fromJsonLd(json: unknown, options?: {
|
|
5338
|
-
documentLoader?: DocumentLoader$1;
|
|
5339
|
-
contextLoader?: DocumentLoader$1;
|
|
5340
|
-
tracerProvider?: TracerProvider;
|
|
5341
|
-
baseUrl?: URL;
|
|
5342
|
-
}): Promise<FeaturedCollection>;
|
|
5343
|
-
protected static __fromJsonLd__FeaturedCollection__(json: unknown, span: Span, options?: {
|
|
5344
|
-
documentLoader?: DocumentLoader$1;
|
|
5345
|
-
contextLoader?: DocumentLoader$1;
|
|
5346
|
-
tracerProvider?: TracerProvider;
|
|
5347
|
-
baseUrl?: URL;
|
|
5348
|
-
}): Promise<FeaturedCollection>;
|
|
5349
|
-
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
5350
|
-
}
|
|
5351
|
-
/** A single entry in a {@link FeaturedCollection}.
|
|
3871
|
+
* The `object` property references the quoted object, and the `instrument`
|
|
3872
|
+
* property contains the quote post itself.
|
|
3873
|
+
*
|
|
3874
|
+
* The quoted object's author responds with an {@link Accept} (with a
|
|
3875
|
+
* {@link QuoteAuthorization} as `result`) or a {@link Reject}.
|
|
5352
3876
|
*
|
|
5353
|
-
* See [FEP-
|
|
3877
|
+
* See [FEP-044f](https://w3id.org/fep/044f) for details.
|
|
5354
3878
|
*/
|
|
5355
|
-
declare class
|
|
5356
|
-
#private;
|
|
3879
|
+
declare class QuoteRequest extends Activity {
|
|
5357
3880
|
/**
|
|
5358
|
-
* The type URI of {@link
|
|
3881
|
+
* The type URI of {@link QuoteRequest}: `https://w3id.org/fep/044f#QuoteRequest`.
|
|
5359
3882
|
*/
|
|
5360
3883
|
static override get typeId(): URL;
|
|
5361
3884
|
/**
|
|
5362
|
-
* Constructs a new instance of
|
|
3885
|
+
* Constructs a new instance of QuoteRequest with the given values.
|
|
5363
3886
|
* @param values The values to initialize the instance with.
|
|
5364
3887
|
* @param options The options to use for initialization.
|
|
5365
3888
|
*/
|
|
@@ -5418,8 +3941,18 @@ declare class FeaturedItem extends Object$1 {
|
|
|
5418
3941
|
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5419
3942
|
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5420
3943
|
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5421
|
-
|
|
5422
|
-
|
|
3944
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
3945
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
3946
|
+
object?: Object$1 | URL | null;
|
|
3947
|
+
objects?: (Object$1 | URL)[];
|
|
3948
|
+
target?: Object$1 | URL | null;
|
|
3949
|
+
targets?: (Object$1 | URL)[];
|
|
3950
|
+
result?: Object$1 | URL | null;
|
|
3951
|
+
results?: (Object$1 | URL)[];
|
|
3952
|
+
origin?: Object$1 | URL | null;
|
|
3953
|
+
origins?: (Object$1 | URL)[];
|
|
3954
|
+
instrument?: Object$1 | URL | null;
|
|
3955
|
+
instruments?: (Object$1 | URL)[];
|
|
5423
3956
|
}, options?: {
|
|
5424
3957
|
documentLoader?: DocumentLoader$1;
|
|
5425
3958
|
contextLoader?: DocumentLoader$1;
|
|
@@ -5486,43 +4019,22 @@ declare class FeaturedItem extends Object$1 {
|
|
|
5486
4019
|
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5487
4020
|
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5488
4021
|
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5489
|
-
|
|
5490
|
-
|
|
4022
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
4023
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4024
|
+
object?: Object$1 | URL | null;
|
|
4025
|
+
objects?: (Object$1 | URL)[];
|
|
4026
|
+
target?: Object$1 | URL | null;
|
|
4027
|
+
targets?: (Object$1 | URL)[];
|
|
4028
|
+
result?: Object$1 | URL | null;
|
|
4029
|
+
results?: (Object$1 | URL)[];
|
|
4030
|
+
origin?: Object$1 | URL | null;
|
|
4031
|
+
origins?: (Object$1 | URL)[];
|
|
4032
|
+
instrument?: Object$1 | URL | null;
|
|
4033
|
+
instruments?: (Object$1 | URL)[];
|
|
5491
4034
|
}, options?: {
|
|
5492
4035
|
documentLoader?: DocumentLoader$1;
|
|
5493
4036
|
contextLoader?: DocumentLoader$1;
|
|
5494
|
-
}):
|
|
5495
|
-
/**
|
|
5496
|
-
* Similar to
|
|
5497
|
-
* {@link FeaturedItem.getFeaturedObject},
|
|
5498
|
-
* but returns its `@id` URL instead of the object itself.
|
|
5499
|
-
*/
|
|
5500
|
-
get featuredObjectId(): URL | null;
|
|
5501
|
-
/** The object being featured.
|
|
5502
|
-
*/
|
|
5503
|
-
getFeaturedObject(options?: {
|
|
5504
|
-
documentLoader?: DocumentLoader$1;
|
|
5505
|
-
contextLoader?: DocumentLoader$1;
|
|
5506
|
-
suppressError?: boolean;
|
|
5507
|
-
tracerProvider?: TracerProvider;
|
|
5508
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
5509
|
-
}): Promise<Object$1 | null>;
|
|
5510
|
-
/**
|
|
5511
|
-
* Similar to
|
|
5512
|
-
* {@link FeaturedItem.getFeatureAuthorization},
|
|
5513
|
-
* but returns its `@id` URL instead of the object itself.
|
|
5514
|
-
*/
|
|
5515
|
-
get featureAuthorizationId(): URL | null;
|
|
5516
|
-
/** The {@link FeatureAuthorization} proving that the featured actor consented
|
|
5517
|
-
* to inclusion in the featured collection.
|
|
5518
|
-
*/
|
|
5519
|
-
getFeatureAuthorization(options?: {
|
|
5520
|
-
documentLoader?: DocumentLoader$1;
|
|
5521
|
-
contextLoader?: DocumentLoader$1;
|
|
5522
|
-
suppressError?: boolean;
|
|
5523
|
-
tracerProvider?: TracerProvider;
|
|
5524
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
5525
|
-
}): Promise<FeatureAuthorization | null>;
|
|
4037
|
+
}): QuoteRequest;
|
|
5526
4038
|
/**
|
|
5527
4039
|
* Converts this object to a JSON-LD structure.
|
|
5528
4040
|
* @param options The options to use.
|
|
@@ -5555,13 +4067,13 @@ declare class FeaturedItem extends Object$1 {
|
|
|
5555
4067
|
contextLoader?: DocumentLoader$1;
|
|
5556
4068
|
tracerProvider?: TracerProvider;
|
|
5557
4069
|
baseUrl?: URL;
|
|
5558
|
-
}): Promise<
|
|
5559
|
-
protected static
|
|
4070
|
+
}): Promise<QuoteRequest>;
|
|
4071
|
+
protected static __fromJsonLd__QuoteRequest__(json: unknown, span: Span, options?: {
|
|
5560
4072
|
documentLoader?: DocumentLoader$1;
|
|
5561
4073
|
contextLoader?: DocumentLoader$1;
|
|
5562
4074
|
tracerProvider?: TracerProvider;
|
|
5563
4075
|
baseUrl?: URL;
|
|
5564
|
-
}): Promise<
|
|
4076
|
+
}): Promise<QuoteRequest>;
|
|
5565
4077
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
5566
4078
|
}
|
|
5567
4079
|
/** Means of communicating or interacting with the DID subject or associated
|
|
@@ -7420,7 +5932,6 @@ declare class Application extends Object$1 {
|
|
|
7420
5932
|
liked?: Collection | URL | null;
|
|
7421
5933
|
featured?: Collection | URL | null;
|
|
7422
5934
|
featuredTags?: Collection | URL | null;
|
|
7423
|
-
featuredCollections?: Collection | URL | null;
|
|
7424
5935
|
streams?: (Collection | URL)[];
|
|
7425
5936
|
endpoints?: Endpoints | null;
|
|
7426
5937
|
discoverable?: boolean | null;
|
|
@@ -7514,7 +6025,6 @@ declare class Application extends Object$1 {
|
|
|
7514
6025
|
liked?: Collection | URL | null;
|
|
7515
6026
|
featured?: Collection | URL | null;
|
|
7516
6027
|
featuredTags?: Collection | URL | null;
|
|
7517
|
-
featuredCollections?: Collection | URL | null;
|
|
7518
6028
|
streams?: (Collection | URL)[];
|
|
7519
6029
|
endpoints?: Endpoints | null;
|
|
7520
6030
|
discoverable?: boolean | null;
|
|
@@ -7764,21 +6274,6 @@ declare class Application extends Object$1 {
|
|
|
7764
6274
|
}): Promise<Collection | null>;
|
|
7765
6275
|
/**
|
|
7766
6276
|
* Similar to
|
|
7767
|
-
* {@link Application.getFeaturedCollections},
|
|
7768
|
-
* but returns its `@id` URL instead of the object itself.
|
|
7769
|
-
*/
|
|
7770
|
-
get featuredCollectionsId(): URL | null;
|
|
7771
|
-
/** A collection of {@link FeaturedCollection}s created by this actor.
|
|
7772
|
-
*/
|
|
7773
|
-
getFeaturedCollections(options?: {
|
|
7774
|
-
documentLoader?: DocumentLoader$1;
|
|
7775
|
-
contextLoader?: DocumentLoader$1;
|
|
7776
|
-
suppressError?: boolean;
|
|
7777
|
-
tracerProvider?: TracerProvider;
|
|
7778
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
7779
|
-
}): Promise<Collection | null>;
|
|
7780
|
-
/**
|
|
7781
|
-
* Similar to
|
|
7782
6277
|
* {@link Application.getStreams},
|
|
7783
6278
|
* but returns their `@id`s instead of the objects themselves.
|
|
7784
6279
|
*/
|
|
@@ -9313,22 +7808,420 @@ declare class Block extends Ignore {
|
|
|
9313
7808
|
likeAuthorization?: LikeAuthorization | URL | null;
|
|
9314
7809
|
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
9315
7810
|
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
9316
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
9317
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
9318
|
-
object?: Object$1 | URL | null;
|
|
9319
|
-
objects?: (Object$1 | URL)[];
|
|
9320
|
-
target?: Object$1 | URL | null;
|
|
9321
|
-
targets?: (Object$1 | URL)[];
|
|
9322
|
-
result?: Object$1 | URL | null;
|
|
9323
|
-
results?: (Object$1 | URL)[];
|
|
9324
|
-
origin?: Object$1 | URL | null;
|
|
9325
|
-
origins?: (Object$1 | URL)[];
|
|
9326
|
-
instrument?: Object$1 | URL | null;
|
|
9327
|
-
instruments?: (Object$1 | URL)[];
|
|
7811
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
7812
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
7813
|
+
object?: Object$1 | URL | null;
|
|
7814
|
+
objects?: (Object$1 | URL)[];
|
|
7815
|
+
target?: Object$1 | URL | null;
|
|
7816
|
+
targets?: (Object$1 | URL)[];
|
|
7817
|
+
result?: Object$1 | URL | null;
|
|
7818
|
+
results?: (Object$1 | URL)[];
|
|
7819
|
+
origin?: Object$1 | URL | null;
|
|
7820
|
+
origins?: (Object$1 | URL)[];
|
|
7821
|
+
instrument?: Object$1 | URL | null;
|
|
7822
|
+
instruments?: (Object$1 | URL)[];
|
|
7823
|
+
}, options?: {
|
|
7824
|
+
documentLoader?: DocumentLoader$1;
|
|
7825
|
+
contextLoader?: DocumentLoader$1;
|
|
7826
|
+
}): Block;
|
|
7827
|
+
/**
|
|
7828
|
+
* Converts this object to a JSON-LD structure.
|
|
7829
|
+
* @param options The options to use.
|
|
7830
|
+
* - `format`: The format of the output: `compact` or
|
|
7831
|
+
`expand`.
|
|
7832
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
7833
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
7834
|
+
when `format` is set to `'expand'`.
|
|
7835
|
+
* @returns The JSON-LD representation of this object.
|
|
7836
|
+
*/
|
|
7837
|
+
override toJsonLd(options?: {
|
|
7838
|
+
format?: "compact" | "expand";
|
|
7839
|
+
contextLoader?: DocumentLoader$1;
|
|
7840
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
7841
|
+
}): Promise<unknown>;
|
|
7842
|
+
protected override isCompactable(): boolean;
|
|
7843
|
+
/**
|
|
7844
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
7845
|
+
* @param json The JSON-LD structure to convert.
|
|
7846
|
+
* @param options The options to use.
|
|
7847
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
7848
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
7849
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
7850
|
+
* If omitted, the global tracer provider is used.
|
|
7851
|
+
* @returns The object of this type.
|
|
7852
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
7853
|
+
*/
|
|
7854
|
+
static override fromJsonLd(json: unknown, options?: {
|
|
7855
|
+
documentLoader?: DocumentLoader$1;
|
|
7856
|
+
contextLoader?: DocumentLoader$1;
|
|
7857
|
+
tracerProvider?: TracerProvider;
|
|
7858
|
+
baseUrl?: URL;
|
|
7859
|
+
}): Promise<Block>;
|
|
7860
|
+
protected static __fromJsonLd__Block__(json: unknown, span: Span, options?: {
|
|
7861
|
+
documentLoader?: DocumentLoader$1;
|
|
7862
|
+
contextLoader?: DocumentLoader$1;
|
|
7863
|
+
tracerProvider?: TracerProvider;
|
|
7864
|
+
baseUrl?: URL;
|
|
7865
|
+
}): Promise<Block>;
|
|
7866
|
+
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
7867
|
+
}
|
|
7868
|
+
/** A `Collection` is a subtype of {@link Object} that represents ordered or
|
|
7869
|
+
* unordered sets of {@link Object} or {@link Link} instances.
|
|
7870
|
+
*
|
|
7871
|
+
* Refer to the Activity Streams 2.0 Core specification for a complete
|
|
7872
|
+
* description of the Collection type.
|
|
7873
|
+
*/
|
|
7874
|
+
declare class Collection extends Object$1 {
|
|
7875
|
+
#private;
|
|
7876
|
+
/**
|
|
7877
|
+
* The type URI of {@link Collection}: `https://www.w3.org/ns/activitystreams#Collection`.
|
|
7878
|
+
*/
|
|
7879
|
+
static override get typeId(): URL;
|
|
7880
|
+
/**
|
|
7881
|
+
* Constructs a new instance of Collection with the given values.
|
|
7882
|
+
* @param values The values to initialize the instance with.
|
|
7883
|
+
* @param options The options to use for initialization.
|
|
7884
|
+
*/
|
|
7885
|
+
constructor(values: {
|
|
7886
|
+
id?: URL | null;
|
|
7887
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
7888
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
7889
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
7890
|
+
audience?: Object$1 | URL | null;
|
|
7891
|
+
audiences?: (Object$1 | URL)[];
|
|
7892
|
+
content?: string | LanguageString$1 | null;
|
|
7893
|
+
contents?: ((string | LanguageString$1))[];
|
|
7894
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
7895
|
+
name?: string | LanguageString$1 | null;
|
|
7896
|
+
names?: ((string | LanguageString$1))[];
|
|
7897
|
+
endTime?: Temporal.Instant | null;
|
|
7898
|
+
generators?: (Object$1 | Link | URL)[];
|
|
7899
|
+
icon?: Image | URL | null;
|
|
7900
|
+
icons?: (Image | URL)[];
|
|
7901
|
+
image?: Image | URL | null;
|
|
7902
|
+
images?: (Image | URL)[];
|
|
7903
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
7904
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
7905
|
+
location?: Object$1 | Link | URL | null;
|
|
7906
|
+
locations?: (Object$1 | Link | URL)[];
|
|
7907
|
+
preview?: Link | Object$1 | URL | null;
|
|
7908
|
+
previews?: (Link | Object$1 | URL)[];
|
|
7909
|
+
published?: Temporal.Instant | null;
|
|
7910
|
+
replies?: Collection | URL | null;
|
|
7911
|
+
shares?: Collection | URL | null;
|
|
7912
|
+
likes?: Collection | URL | null;
|
|
7913
|
+
emojiReactions?: Collection | URL | null;
|
|
7914
|
+
startTime?: Temporal.Instant | null;
|
|
7915
|
+
summary?: string | LanguageString$1 | null;
|
|
7916
|
+
summaries?: ((string | LanguageString$1))[];
|
|
7917
|
+
tags?: (Object$1 | Link | URL)[];
|
|
7918
|
+
updated?: Temporal.Instant | null;
|
|
7919
|
+
url?: URL | Link | null;
|
|
7920
|
+
urls?: ((URL | Link))[];
|
|
7921
|
+
to?: Object$1 | URL | null;
|
|
7922
|
+
tos?: (Object$1 | URL)[];
|
|
7923
|
+
bto?: Object$1 | URL | null;
|
|
7924
|
+
btos?: (Object$1 | URL)[];
|
|
7925
|
+
cc?: Object$1 | URL | null;
|
|
7926
|
+
ccs?: (Object$1 | URL)[];
|
|
7927
|
+
bcc?: Object$1 | URL | null;
|
|
7928
|
+
bccs?: (Object$1 | URL)[];
|
|
7929
|
+
mediaType?: string | null;
|
|
7930
|
+
duration?: Temporal.Duration | null;
|
|
7931
|
+
sensitive?: boolean | null;
|
|
7932
|
+
source?: Source | null;
|
|
7933
|
+
proof?: DataIntegrityProof | URL | null;
|
|
7934
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
7935
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
7936
|
+
approvedBy?: URL | null;
|
|
7937
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
7938
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
7939
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
7940
|
+
totalItems?: number | null;
|
|
7941
|
+
current?: CollectionPage | URL | null;
|
|
7942
|
+
first?: CollectionPage | URL | null;
|
|
7943
|
+
last?: CollectionPage | URL | null;
|
|
7944
|
+
items?: (Object$1 | Link | URL)[];
|
|
7945
|
+
likesOf?: Object$1 | URL | null;
|
|
7946
|
+
sharesOf?: Object$1 | URL | null;
|
|
7947
|
+
repliesOf?: Object$1 | URL | null;
|
|
7948
|
+
inboxOf?: Object$1 | URL | null;
|
|
7949
|
+
outboxOf?: Object$1 | URL | null;
|
|
7950
|
+
followersOf?: Object$1 | URL | null;
|
|
7951
|
+
followingOf?: Object$1 | URL | null;
|
|
7952
|
+
likedOf?: Object$1 | URL | null;
|
|
7953
|
+
}, options?: {
|
|
7954
|
+
documentLoader?: DocumentLoader$1;
|
|
7955
|
+
contextLoader?: DocumentLoader$1;
|
|
7956
|
+
tracerProvider?: TracerProvider;
|
|
7957
|
+
});
|
|
7958
|
+
/**
|
|
7959
|
+
* Clones this instance, optionally updating it with the given values.
|
|
7960
|
+
* @param values The values to update the clone with.
|
|
7961
|
+
* @param options The options to use for cloning.
|
|
7962
|
+
* @returns The cloned instance.
|
|
7963
|
+
*/
|
|
7964
|
+
override clone(values?: {
|
|
7965
|
+
id?: URL | null;
|
|
7966
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
7967
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
7968
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
7969
|
+
audience?: Object$1 | URL | null;
|
|
7970
|
+
audiences?: (Object$1 | URL)[];
|
|
7971
|
+
content?: string | LanguageString$1 | null;
|
|
7972
|
+
contents?: ((string | LanguageString$1))[];
|
|
7973
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
7974
|
+
name?: string | LanguageString$1 | null;
|
|
7975
|
+
names?: ((string | LanguageString$1))[];
|
|
7976
|
+
endTime?: Temporal.Instant | null;
|
|
7977
|
+
generators?: (Object$1 | Link | URL)[];
|
|
7978
|
+
icon?: Image | URL | null;
|
|
7979
|
+
icons?: (Image | URL)[];
|
|
7980
|
+
image?: Image | URL | null;
|
|
7981
|
+
images?: (Image | URL)[];
|
|
7982
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
7983
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
7984
|
+
location?: Object$1 | Link | URL | null;
|
|
7985
|
+
locations?: (Object$1 | Link | URL)[];
|
|
7986
|
+
preview?: Link | Object$1 | URL | null;
|
|
7987
|
+
previews?: (Link | Object$1 | URL)[];
|
|
7988
|
+
published?: Temporal.Instant | null;
|
|
7989
|
+
replies?: Collection | URL | null;
|
|
7990
|
+
shares?: Collection | URL | null;
|
|
7991
|
+
likes?: Collection | URL | null;
|
|
7992
|
+
emojiReactions?: Collection | URL | null;
|
|
7993
|
+
startTime?: Temporal.Instant | null;
|
|
7994
|
+
summary?: string | LanguageString$1 | null;
|
|
7995
|
+
summaries?: ((string | LanguageString$1))[];
|
|
7996
|
+
tags?: (Object$1 | Link | URL)[];
|
|
7997
|
+
updated?: Temporal.Instant | null;
|
|
7998
|
+
url?: URL | Link | null;
|
|
7999
|
+
urls?: ((URL | Link))[];
|
|
8000
|
+
to?: Object$1 | URL | null;
|
|
8001
|
+
tos?: (Object$1 | URL)[];
|
|
8002
|
+
bto?: Object$1 | URL | null;
|
|
8003
|
+
btos?: (Object$1 | URL)[];
|
|
8004
|
+
cc?: Object$1 | URL | null;
|
|
8005
|
+
ccs?: (Object$1 | URL)[];
|
|
8006
|
+
bcc?: Object$1 | URL | null;
|
|
8007
|
+
bccs?: (Object$1 | URL)[];
|
|
8008
|
+
mediaType?: string | null;
|
|
8009
|
+
duration?: Temporal.Duration | null;
|
|
8010
|
+
sensitive?: boolean | null;
|
|
8011
|
+
source?: Source | null;
|
|
8012
|
+
proof?: DataIntegrityProof | URL | null;
|
|
8013
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
8014
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
8015
|
+
approvedBy?: URL | null;
|
|
8016
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
8017
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
8018
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
8019
|
+
totalItems?: number | null;
|
|
8020
|
+
current?: CollectionPage | URL | null;
|
|
8021
|
+
first?: CollectionPage | URL | null;
|
|
8022
|
+
last?: CollectionPage | URL | null;
|
|
8023
|
+
items?: (Object$1 | Link | URL)[];
|
|
8024
|
+
likesOf?: Object$1 | URL | null;
|
|
8025
|
+
sharesOf?: Object$1 | URL | null;
|
|
8026
|
+
repliesOf?: Object$1 | URL | null;
|
|
8027
|
+
inboxOf?: Object$1 | URL | null;
|
|
8028
|
+
outboxOf?: Object$1 | URL | null;
|
|
8029
|
+
followersOf?: Object$1 | URL | null;
|
|
8030
|
+
followingOf?: Object$1 | URL | null;
|
|
8031
|
+
likedOf?: Object$1 | URL | null;
|
|
9328
8032
|
}, options?: {
|
|
9329
8033
|
documentLoader?: DocumentLoader$1;
|
|
9330
8034
|
contextLoader?: DocumentLoader$1;
|
|
9331
|
-
}):
|
|
8035
|
+
}): Collection;
|
|
8036
|
+
/** A non-negative integer specifying the total number of objects contained by
|
|
8037
|
+
* the logical view of the collection. This number might not reflect the actual
|
|
8038
|
+
* number of items serialized within the {@link Collection} object instance.
|
|
8039
|
+
*/
|
|
8040
|
+
get totalItems(): number | null;
|
|
8041
|
+
/**
|
|
8042
|
+
* Similar to
|
|
8043
|
+
* {@link Collection.getCurrent},
|
|
8044
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8045
|
+
*/
|
|
8046
|
+
get currentId(): URL | null;
|
|
8047
|
+
/** In a paged {@link Collection}, indicates the page that contains
|
|
8048
|
+
* the most recently updated member items.
|
|
8049
|
+
*/
|
|
8050
|
+
getCurrent(options?: {
|
|
8051
|
+
documentLoader?: DocumentLoader$1;
|
|
8052
|
+
contextLoader?: DocumentLoader$1;
|
|
8053
|
+
suppressError?: boolean;
|
|
8054
|
+
tracerProvider?: TracerProvider;
|
|
8055
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8056
|
+
}): Promise<CollectionPage | null>;
|
|
8057
|
+
/**
|
|
8058
|
+
* Similar to
|
|
8059
|
+
* {@link Collection.getFirst},
|
|
8060
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8061
|
+
*/
|
|
8062
|
+
get firstId(): URL | null;
|
|
8063
|
+
/** In a paged {@link Collection}, indicates the furthest preceding page of
|
|
8064
|
+
* items in the collection.
|
|
8065
|
+
*/
|
|
8066
|
+
getFirst(options?: {
|
|
8067
|
+
documentLoader?: DocumentLoader$1;
|
|
8068
|
+
contextLoader?: DocumentLoader$1;
|
|
8069
|
+
suppressError?: boolean;
|
|
8070
|
+
tracerProvider?: TracerProvider;
|
|
8071
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8072
|
+
}): Promise<CollectionPage | null>;
|
|
8073
|
+
/**
|
|
8074
|
+
* Similar to
|
|
8075
|
+
* {@link Collection.getLast},
|
|
8076
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8077
|
+
*/
|
|
8078
|
+
get lastId(): URL | null;
|
|
8079
|
+
/** In a paged {@link Collection}, indicates the furthest proceeding page of
|
|
8080
|
+
* the collection.
|
|
8081
|
+
*/
|
|
8082
|
+
getLast(options?: {
|
|
8083
|
+
documentLoader?: DocumentLoader$1;
|
|
8084
|
+
contextLoader?: DocumentLoader$1;
|
|
8085
|
+
suppressError?: boolean;
|
|
8086
|
+
tracerProvider?: TracerProvider;
|
|
8087
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8088
|
+
}): Promise<CollectionPage | null>;
|
|
8089
|
+
/**
|
|
8090
|
+
* Similar to
|
|
8091
|
+
* {@link Collection.getItems},
|
|
8092
|
+
* but returns their `@id`s instead of the objects themselves.
|
|
8093
|
+
*/
|
|
8094
|
+
get itemIds(): URL[];
|
|
8095
|
+
/** Identifies the items contained in a collection. The items might be ordered
|
|
8096
|
+
* or unordered.
|
|
8097
|
+
*/
|
|
8098
|
+
getItems(options?: {
|
|
8099
|
+
documentLoader?: DocumentLoader$1;
|
|
8100
|
+
contextLoader?: DocumentLoader$1;
|
|
8101
|
+
suppressError?: boolean;
|
|
8102
|
+
tracerProvider?: TracerProvider;
|
|
8103
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8104
|
+
}): AsyncIterable<Object$1 | Link>;
|
|
8105
|
+
/**
|
|
8106
|
+
* Similar to
|
|
8107
|
+
* {@link Collection.getLikesOf},
|
|
8108
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8109
|
+
*/
|
|
8110
|
+
get likesOfId(): URL | null;
|
|
8111
|
+
/** Defines an object for which the collection is the value of the likes property.
|
|
8112
|
+
*/
|
|
8113
|
+
getLikesOf(options?: {
|
|
8114
|
+
documentLoader?: DocumentLoader$1;
|
|
8115
|
+
contextLoader?: DocumentLoader$1;
|
|
8116
|
+
suppressError?: boolean;
|
|
8117
|
+
tracerProvider?: TracerProvider;
|
|
8118
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8119
|
+
}): Promise<Object$1 | null>;
|
|
8120
|
+
/**
|
|
8121
|
+
* Similar to
|
|
8122
|
+
* {@link Collection.getSharesOf},
|
|
8123
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8124
|
+
*/
|
|
8125
|
+
get sharesOfId(): URL | null;
|
|
8126
|
+
/** Defines an object for which the collection is the value of the shares property.
|
|
8127
|
+
*/
|
|
8128
|
+
getSharesOf(options?: {
|
|
8129
|
+
documentLoader?: DocumentLoader$1;
|
|
8130
|
+
contextLoader?: DocumentLoader$1;
|
|
8131
|
+
suppressError?: boolean;
|
|
8132
|
+
tracerProvider?: TracerProvider;
|
|
8133
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8134
|
+
}): Promise<Object$1 | null>;
|
|
8135
|
+
/**
|
|
8136
|
+
* Similar to
|
|
8137
|
+
* {@link Collection.getRepliesOf},
|
|
8138
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8139
|
+
*/
|
|
8140
|
+
get repliesOfId(): URL | null;
|
|
8141
|
+
/** Defines an object for which the collection is the value of the replies property.
|
|
8142
|
+
*/
|
|
8143
|
+
getRepliesOf(options?: {
|
|
8144
|
+
documentLoader?: DocumentLoader$1;
|
|
8145
|
+
contextLoader?: DocumentLoader$1;
|
|
8146
|
+
suppressError?: boolean;
|
|
8147
|
+
tracerProvider?: TracerProvider;
|
|
8148
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8149
|
+
}): Promise<Object$1 | null>;
|
|
8150
|
+
/**
|
|
8151
|
+
* Similar to
|
|
8152
|
+
* {@link Collection.getInboxOf},
|
|
8153
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8154
|
+
*/
|
|
8155
|
+
get inboxOfId(): URL | null;
|
|
8156
|
+
/** Defines an actor for which the collection is the value of the inbox property.
|
|
8157
|
+
*/
|
|
8158
|
+
getInboxOf(options?: {
|
|
8159
|
+
documentLoader?: DocumentLoader$1;
|
|
8160
|
+
contextLoader?: DocumentLoader$1;
|
|
8161
|
+
suppressError?: boolean;
|
|
8162
|
+
tracerProvider?: TracerProvider;
|
|
8163
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8164
|
+
}): Promise<Object$1 | null>;
|
|
8165
|
+
/**
|
|
8166
|
+
* Similar to
|
|
8167
|
+
* {@link Collection.getOutboxOf},
|
|
8168
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8169
|
+
*/
|
|
8170
|
+
get outboxOfId(): URL | null;
|
|
8171
|
+
/** Defines an actor for which the collection is the value of the outbox property.
|
|
8172
|
+
*/
|
|
8173
|
+
getOutboxOf(options?: {
|
|
8174
|
+
documentLoader?: DocumentLoader$1;
|
|
8175
|
+
contextLoader?: DocumentLoader$1;
|
|
8176
|
+
suppressError?: boolean;
|
|
8177
|
+
tracerProvider?: TracerProvider;
|
|
8178
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8179
|
+
}): Promise<Object$1 | null>;
|
|
8180
|
+
/**
|
|
8181
|
+
* Similar to
|
|
8182
|
+
* {@link Collection.getFollowersOf},
|
|
8183
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8184
|
+
*/
|
|
8185
|
+
get followersOfId(): URL | null;
|
|
8186
|
+
/** Defines an actor for which the collection is the value of the followers property.
|
|
8187
|
+
*/
|
|
8188
|
+
getFollowersOf(options?: {
|
|
8189
|
+
documentLoader?: DocumentLoader$1;
|
|
8190
|
+
contextLoader?: DocumentLoader$1;
|
|
8191
|
+
suppressError?: boolean;
|
|
8192
|
+
tracerProvider?: TracerProvider;
|
|
8193
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8194
|
+
}): Promise<Object$1 | null>;
|
|
8195
|
+
/**
|
|
8196
|
+
* Similar to
|
|
8197
|
+
* {@link Collection.getFollowingOf},
|
|
8198
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8199
|
+
*/
|
|
8200
|
+
get followingOfId(): URL | null;
|
|
8201
|
+
/** Defines an actor for which the collection is the value of the following property.
|
|
8202
|
+
*/
|
|
8203
|
+
getFollowingOf(options?: {
|
|
8204
|
+
documentLoader?: DocumentLoader$1;
|
|
8205
|
+
contextLoader?: DocumentLoader$1;
|
|
8206
|
+
suppressError?: boolean;
|
|
8207
|
+
tracerProvider?: TracerProvider;
|
|
8208
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8209
|
+
}): Promise<Object$1 | null>;
|
|
8210
|
+
/**
|
|
8211
|
+
* Similar to
|
|
8212
|
+
* {@link Collection.getLikedOf},
|
|
8213
|
+
* but returns its `@id` URL instead of the object itself.
|
|
8214
|
+
*/
|
|
8215
|
+
get likedOfId(): URL | null;
|
|
8216
|
+
/** Defines an actor for which the collection is the value of the liked property.
|
|
8217
|
+
*/
|
|
8218
|
+
getLikedOf(options?: {
|
|
8219
|
+
documentLoader?: DocumentLoader$1;
|
|
8220
|
+
contextLoader?: DocumentLoader$1;
|
|
8221
|
+
suppressError?: boolean;
|
|
8222
|
+
tracerProvider?: TracerProvider;
|
|
8223
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
8224
|
+
}): Promise<Object$1 | null>;
|
|
9332
8225
|
/**
|
|
9333
8226
|
* Converts this object to a JSON-LD structure.
|
|
9334
8227
|
* @param options The options to use.
|
|
@@ -9361,13 +8254,13 @@ declare class Block extends Ignore {
|
|
|
9361
8254
|
contextLoader?: DocumentLoader$1;
|
|
9362
8255
|
tracerProvider?: TracerProvider;
|
|
9363
8256
|
baseUrl?: URL;
|
|
9364
|
-
}): Promise<
|
|
9365
|
-
protected static
|
|
8257
|
+
}): Promise<Collection>;
|
|
8258
|
+
protected static __fromJsonLd__Collection__(json: unknown, span: Span, options?: {
|
|
9366
8259
|
documentLoader?: DocumentLoader$1;
|
|
9367
8260
|
contextLoader?: DocumentLoader$1;
|
|
9368
8261
|
tracerProvider?: TracerProvider;
|
|
9369
8262
|
baseUrl?: URL;
|
|
9370
|
-
}): Promise<
|
|
8263
|
+
}): Promise<Collection>;
|
|
9371
8264
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
9372
8265
|
}
|
|
9373
8266
|
/** Used to represent distinct subsets of items from a `Collection`.
|
|
@@ -11043,7 +9936,6 @@ declare class Group extends Object$1 {
|
|
|
11043
9936
|
liked?: Collection | URL | null;
|
|
11044
9937
|
featured?: Collection | URL | null;
|
|
11045
9938
|
featuredTags?: Collection | URL | null;
|
|
11046
|
-
featuredCollections?: Collection | URL | null;
|
|
11047
9939
|
streams?: (Collection | URL)[];
|
|
11048
9940
|
endpoints?: Endpoints | null;
|
|
11049
9941
|
discoverable?: boolean | null;
|
|
@@ -11137,7 +10029,6 @@ declare class Group extends Object$1 {
|
|
|
11137
10029
|
liked?: Collection | URL | null;
|
|
11138
10030
|
featured?: Collection | URL | null;
|
|
11139
10031
|
featuredTags?: Collection | URL | null;
|
|
11140
|
-
featuredCollections?: Collection | URL | null;
|
|
11141
10032
|
streams?: (Collection | URL)[];
|
|
11142
10033
|
endpoints?: Endpoints | null;
|
|
11143
10034
|
discoverable?: boolean | null;
|
|
@@ -11378,22 +10269,7 @@ declare class Group extends Object$1 {
|
|
|
11378
10269
|
* on the actor object that points to a {@link Collection} of {@link Hashtag}
|
|
11379
10270
|
* objects specifically.
|
|
11380
10271
|
*/
|
|
11381
|
-
getFeaturedTags(options?: {
|
|
11382
|
-
documentLoader?: DocumentLoader$1;
|
|
11383
|
-
contextLoader?: DocumentLoader$1;
|
|
11384
|
-
suppressError?: boolean;
|
|
11385
|
-
tracerProvider?: TracerProvider;
|
|
11386
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
11387
|
-
}): Promise<Collection | null>;
|
|
11388
|
-
/**
|
|
11389
|
-
* Similar to
|
|
11390
|
-
* {@link Group.getFeaturedCollections},
|
|
11391
|
-
* but returns its `@id` URL instead of the object itself.
|
|
11392
|
-
*/
|
|
11393
|
-
get featuredCollectionsId(): URL | null;
|
|
11394
|
-
/** A collection of {@link FeaturedCollection}s created by this actor.
|
|
11395
|
-
*/
|
|
11396
|
-
getFeaturedCollections(options?: {
|
|
10272
|
+
getFeaturedTags(options?: {
|
|
11397
10273
|
documentLoader?: DocumentLoader$1;
|
|
11398
10274
|
contextLoader?: DocumentLoader$1;
|
|
11399
10275
|
suppressError?: boolean;
|
|
@@ -13767,6 +12643,228 @@ declare class Note extends Object$1 {
|
|
|
13767
12643
|
}): Promise<Note>;
|
|
13768
12644
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
13769
12645
|
}
|
|
12646
|
+
/** A subtype of {@link Collection} in which members of the logical collection
|
|
12647
|
+
* are assumed to always be strictly ordered.
|
|
12648
|
+
*/
|
|
12649
|
+
declare class OrderedCollection extends Collection {
|
|
12650
|
+
#private;
|
|
12651
|
+
/**
|
|
12652
|
+
* The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
|
|
12653
|
+
*/
|
|
12654
|
+
static override get typeId(): URL;
|
|
12655
|
+
/**
|
|
12656
|
+
* Constructs a new instance of OrderedCollection with the given values.
|
|
12657
|
+
* @param values The values to initialize the instance with.
|
|
12658
|
+
* @param options The options to use for initialization.
|
|
12659
|
+
*/
|
|
12660
|
+
constructor(values: {
|
|
12661
|
+
id?: URL | null;
|
|
12662
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
12663
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
12664
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
12665
|
+
audience?: Object$1 | URL | null;
|
|
12666
|
+
audiences?: (Object$1 | URL)[];
|
|
12667
|
+
content?: string | LanguageString$1 | null;
|
|
12668
|
+
contents?: ((string | LanguageString$1))[];
|
|
12669
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
12670
|
+
name?: string | LanguageString$1 | null;
|
|
12671
|
+
names?: ((string | LanguageString$1))[];
|
|
12672
|
+
endTime?: Temporal.Instant | null;
|
|
12673
|
+
generators?: (Object$1 | Link | URL)[];
|
|
12674
|
+
icon?: Image | URL | null;
|
|
12675
|
+
icons?: (Image | URL)[];
|
|
12676
|
+
image?: Image | URL | null;
|
|
12677
|
+
images?: (Image | URL)[];
|
|
12678
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
12679
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
12680
|
+
location?: Object$1 | Link | URL | null;
|
|
12681
|
+
locations?: (Object$1 | Link | URL)[];
|
|
12682
|
+
preview?: Link | Object$1 | URL | null;
|
|
12683
|
+
previews?: (Link | Object$1 | URL)[];
|
|
12684
|
+
published?: Temporal.Instant | null;
|
|
12685
|
+
replies?: Collection | URL | null;
|
|
12686
|
+
shares?: Collection | URL | null;
|
|
12687
|
+
likes?: Collection | URL | null;
|
|
12688
|
+
emojiReactions?: Collection | URL | null;
|
|
12689
|
+
startTime?: Temporal.Instant | null;
|
|
12690
|
+
summary?: string | LanguageString$1 | null;
|
|
12691
|
+
summaries?: ((string | LanguageString$1))[];
|
|
12692
|
+
tags?: (Object$1 | Link | URL)[];
|
|
12693
|
+
updated?: Temporal.Instant | null;
|
|
12694
|
+
url?: URL | Link | null;
|
|
12695
|
+
urls?: ((URL | Link))[];
|
|
12696
|
+
to?: Object$1 | URL | null;
|
|
12697
|
+
tos?: (Object$1 | URL)[];
|
|
12698
|
+
bto?: Object$1 | URL | null;
|
|
12699
|
+
btos?: (Object$1 | URL)[];
|
|
12700
|
+
cc?: Object$1 | URL | null;
|
|
12701
|
+
ccs?: (Object$1 | URL)[];
|
|
12702
|
+
bcc?: Object$1 | URL | null;
|
|
12703
|
+
bccs?: (Object$1 | URL)[];
|
|
12704
|
+
mediaType?: string | null;
|
|
12705
|
+
duration?: Temporal.Duration | null;
|
|
12706
|
+
sensitive?: boolean | null;
|
|
12707
|
+
source?: Source | null;
|
|
12708
|
+
proof?: DataIntegrityProof | URL | null;
|
|
12709
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
12710
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
12711
|
+
approvedBy?: URL | null;
|
|
12712
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
12713
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
12714
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
12715
|
+
totalItems?: number | null;
|
|
12716
|
+
current?: CollectionPage | URL | null;
|
|
12717
|
+
first?: CollectionPage | URL | null;
|
|
12718
|
+
last?: CollectionPage | URL | null;
|
|
12719
|
+
likesOf?: Object$1 | URL | null;
|
|
12720
|
+
sharesOf?: Object$1 | URL | null;
|
|
12721
|
+
repliesOf?: Object$1 | URL | null;
|
|
12722
|
+
inboxOf?: Object$1 | URL | null;
|
|
12723
|
+
outboxOf?: Object$1 | URL | null;
|
|
12724
|
+
followersOf?: Object$1 | URL | null;
|
|
12725
|
+
followingOf?: Object$1 | URL | null;
|
|
12726
|
+
likedOf?: Object$1 | URL | null;
|
|
12727
|
+
items?: (Object$1 | Link | URL)[];
|
|
12728
|
+
}, options?: {
|
|
12729
|
+
documentLoader?: DocumentLoader$1;
|
|
12730
|
+
contextLoader?: DocumentLoader$1;
|
|
12731
|
+
tracerProvider?: TracerProvider;
|
|
12732
|
+
});
|
|
12733
|
+
/**
|
|
12734
|
+
* Clones this instance, optionally updating it with the given values.
|
|
12735
|
+
* @param values The values to update the clone with.
|
|
12736
|
+
* @param options The options to use for cloning.
|
|
12737
|
+
* @returns The cloned instance.
|
|
12738
|
+
*/
|
|
12739
|
+
override clone(values?: {
|
|
12740
|
+
id?: URL | null;
|
|
12741
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
12742
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
12743
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
12744
|
+
audience?: Object$1 | URL | null;
|
|
12745
|
+
audiences?: (Object$1 | URL)[];
|
|
12746
|
+
content?: string | LanguageString$1 | null;
|
|
12747
|
+
contents?: ((string | LanguageString$1))[];
|
|
12748
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
12749
|
+
name?: string | LanguageString$1 | null;
|
|
12750
|
+
names?: ((string | LanguageString$1))[];
|
|
12751
|
+
endTime?: Temporal.Instant | null;
|
|
12752
|
+
generators?: (Object$1 | Link | URL)[];
|
|
12753
|
+
icon?: Image | URL | null;
|
|
12754
|
+
icons?: (Image | URL)[];
|
|
12755
|
+
image?: Image | URL | null;
|
|
12756
|
+
images?: (Image | URL)[];
|
|
12757
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
12758
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
12759
|
+
location?: Object$1 | Link | URL | null;
|
|
12760
|
+
locations?: (Object$1 | Link | URL)[];
|
|
12761
|
+
preview?: Link | Object$1 | URL | null;
|
|
12762
|
+
previews?: (Link | Object$1 | URL)[];
|
|
12763
|
+
published?: Temporal.Instant | null;
|
|
12764
|
+
replies?: Collection | URL | null;
|
|
12765
|
+
shares?: Collection | URL | null;
|
|
12766
|
+
likes?: Collection | URL | null;
|
|
12767
|
+
emojiReactions?: Collection | URL | null;
|
|
12768
|
+
startTime?: Temporal.Instant | null;
|
|
12769
|
+
summary?: string | LanguageString$1 | null;
|
|
12770
|
+
summaries?: ((string | LanguageString$1))[];
|
|
12771
|
+
tags?: (Object$1 | Link | URL)[];
|
|
12772
|
+
updated?: Temporal.Instant | null;
|
|
12773
|
+
url?: URL | Link | null;
|
|
12774
|
+
urls?: ((URL | Link))[];
|
|
12775
|
+
to?: Object$1 | URL | null;
|
|
12776
|
+
tos?: (Object$1 | URL)[];
|
|
12777
|
+
bto?: Object$1 | URL | null;
|
|
12778
|
+
btos?: (Object$1 | URL)[];
|
|
12779
|
+
cc?: Object$1 | URL | null;
|
|
12780
|
+
ccs?: (Object$1 | URL)[];
|
|
12781
|
+
bcc?: Object$1 | URL | null;
|
|
12782
|
+
bccs?: (Object$1 | URL)[];
|
|
12783
|
+
mediaType?: string | null;
|
|
12784
|
+
duration?: Temporal.Duration | null;
|
|
12785
|
+
sensitive?: boolean | null;
|
|
12786
|
+
source?: Source | null;
|
|
12787
|
+
proof?: DataIntegrityProof | URL | null;
|
|
12788
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
12789
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
12790
|
+
approvedBy?: URL | null;
|
|
12791
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
12792
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
12793
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
12794
|
+
totalItems?: number | null;
|
|
12795
|
+
current?: CollectionPage | URL | null;
|
|
12796
|
+
first?: CollectionPage | URL | null;
|
|
12797
|
+
last?: CollectionPage | URL | null;
|
|
12798
|
+
likesOf?: Object$1 | URL | null;
|
|
12799
|
+
sharesOf?: Object$1 | URL | null;
|
|
12800
|
+
repliesOf?: Object$1 | URL | null;
|
|
12801
|
+
inboxOf?: Object$1 | URL | null;
|
|
12802
|
+
outboxOf?: Object$1 | URL | null;
|
|
12803
|
+
followersOf?: Object$1 | URL | null;
|
|
12804
|
+
followingOf?: Object$1 | URL | null;
|
|
12805
|
+
likedOf?: Object$1 | URL | null;
|
|
12806
|
+
items?: (Object$1 | Link | URL)[];
|
|
12807
|
+
}, options?: {
|
|
12808
|
+
documentLoader?: DocumentLoader$1;
|
|
12809
|
+
contextLoader?: DocumentLoader$1;
|
|
12810
|
+
}): OrderedCollection;
|
|
12811
|
+
/**
|
|
12812
|
+
* Similar to
|
|
12813
|
+
* {@link OrderedCollection.getItems},
|
|
12814
|
+
* but returns their `@id`s instead of the objects themselves.
|
|
12815
|
+
*/
|
|
12816
|
+
override get itemIds(): URL[];
|
|
12817
|
+
/** Identifies the items contained in a collection. The items might be ordered
|
|
12818
|
+
* or unordered.
|
|
12819
|
+
*/
|
|
12820
|
+
override getItems(options?: {
|
|
12821
|
+
documentLoader?: DocumentLoader$1;
|
|
12822
|
+
contextLoader?: DocumentLoader$1;
|
|
12823
|
+
suppressError?: boolean;
|
|
12824
|
+
tracerProvider?: TracerProvider;
|
|
12825
|
+
crossOrigin?: "ignore" | "throw" | "trust";
|
|
12826
|
+
}): AsyncIterable<Object$1 | Link>;
|
|
12827
|
+
/**
|
|
12828
|
+
* Converts this object to a JSON-LD structure.
|
|
12829
|
+
* @param options The options to use.
|
|
12830
|
+
* - `format`: The format of the output: `compact` or
|
|
12831
|
+
`expand`.
|
|
12832
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
12833
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
12834
|
+
when `format` is set to `'expand'`.
|
|
12835
|
+
* @returns The JSON-LD representation of this object.
|
|
12836
|
+
*/
|
|
12837
|
+
override toJsonLd(options?: {
|
|
12838
|
+
format?: "compact" | "expand";
|
|
12839
|
+
contextLoader?: DocumentLoader$1;
|
|
12840
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
12841
|
+
}): Promise<unknown>;
|
|
12842
|
+
protected override isCompactable(): boolean;
|
|
12843
|
+
/**
|
|
12844
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
12845
|
+
* @param json The JSON-LD structure to convert.
|
|
12846
|
+
* @param options The options to use.
|
|
12847
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
12848
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
12849
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
12850
|
+
* If omitted, the global tracer provider is used.
|
|
12851
|
+
* @returns The object of this type.
|
|
12852
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
12853
|
+
*/
|
|
12854
|
+
static override fromJsonLd(json: unknown, options?: {
|
|
12855
|
+
documentLoader?: DocumentLoader$1;
|
|
12856
|
+
contextLoader?: DocumentLoader$1;
|
|
12857
|
+
tracerProvider?: TracerProvider;
|
|
12858
|
+
baseUrl?: URL;
|
|
12859
|
+
}): Promise<OrderedCollection>;
|
|
12860
|
+
protected static __fromJsonLd__OrderedCollection__(json: unknown, span: Span, options?: {
|
|
12861
|
+
documentLoader?: DocumentLoader$1;
|
|
12862
|
+
contextLoader?: DocumentLoader$1;
|
|
12863
|
+
tracerProvider?: TracerProvider;
|
|
12864
|
+
baseUrl?: URL;
|
|
12865
|
+
}): Promise<OrderedCollection>;
|
|
12866
|
+
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
12867
|
+
}
|
|
13770
12868
|
/** Used to represent ordered subsets of items from an `OrderedCollection`.
|
|
13771
12869
|
* Refer to the Activity Streams 2.0 Core for a complete description of
|
|
13772
12870
|
* the `OrderedCollectionPage` object.
|
|
@@ -14084,7 +13182,6 @@ declare class Organization extends Object$1 {
|
|
|
14084
13182
|
liked?: Collection | URL | null;
|
|
14085
13183
|
featured?: Collection | URL | null;
|
|
14086
13184
|
featuredTags?: Collection | URL | null;
|
|
14087
|
-
featuredCollections?: Collection | URL | null;
|
|
14088
13185
|
streams?: (Collection | URL)[];
|
|
14089
13186
|
endpoints?: Endpoints | null;
|
|
14090
13187
|
discoverable?: boolean | null;
|
|
@@ -14178,7 +13275,6 @@ declare class Organization extends Object$1 {
|
|
|
14178
13275
|
liked?: Collection | URL | null;
|
|
14179
13276
|
featured?: Collection | URL | null;
|
|
14180
13277
|
featuredTags?: Collection | URL | null;
|
|
14181
|
-
featuredCollections?: Collection | URL | null;
|
|
14182
13278
|
streams?: (Collection | URL)[];
|
|
14183
13279
|
endpoints?: Endpoints | null;
|
|
14184
13280
|
discoverable?: boolean | null;
|
|
@@ -14428,21 +13524,6 @@ declare class Organization extends Object$1 {
|
|
|
14428
13524
|
}): Promise<Collection | null>;
|
|
14429
13525
|
/**
|
|
14430
13526
|
* Similar to
|
|
14431
|
-
* {@link Organization.getFeaturedCollections},
|
|
14432
|
-
* but returns its `@id` URL instead of the object itself.
|
|
14433
|
-
*/
|
|
14434
|
-
get featuredCollectionsId(): URL | null;
|
|
14435
|
-
/** A collection of {@link FeaturedCollection}s created by this actor.
|
|
14436
|
-
*/
|
|
14437
|
-
getFeaturedCollections(options?: {
|
|
14438
|
-
documentLoader?: DocumentLoader$1;
|
|
14439
|
-
contextLoader?: DocumentLoader$1;
|
|
14440
|
-
suppressError?: boolean;
|
|
14441
|
-
tracerProvider?: TracerProvider;
|
|
14442
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
14443
|
-
}): Promise<Collection | null>;
|
|
14444
|
-
/**
|
|
14445
|
-
* Similar to
|
|
14446
13527
|
* {@link Organization.getStreams},
|
|
14447
13528
|
* but returns their `@id`s instead of the objects themselves.
|
|
14448
13529
|
*/
|
|
@@ -14879,7 +13960,6 @@ declare class Person extends Object$1 {
|
|
|
14879
13960
|
liked?: Collection | URL | null;
|
|
14880
13961
|
featured?: Collection | URL | null;
|
|
14881
13962
|
featuredTags?: Collection | URL | null;
|
|
14882
|
-
featuredCollections?: Collection | URL | null;
|
|
14883
13963
|
streams?: (Collection | URL)[];
|
|
14884
13964
|
endpoints?: Endpoints | null;
|
|
14885
13965
|
discoverable?: boolean | null;
|
|
@@ -14973,7 +14053,6 @@ declare class Person extends Object$1 {
|
|
|
14973
14053
|
liked?: Collection | URL | null;
|
|
14974
14054
|
featured?: Collection | URL | null;
|
|
14975
14055
|
featuredTags?: Collection | URL | null;
|
|
14976
|
-
featuredCollections?: Collection | URL | null;
|
|
14977
14056
|
streams?: (Collection | URL)[];
|
|
14978
14057
|
endpoints?: Endpoints | null;
|
|
14979
14058
|
discoverable?: boolean | null;
|
|
@@ -15223,21 +14302,6 @@ declare class Person extends Object$1 {
|
|
|
15223
14302
|
}): Promise<Collection | null>;
|
|
15224
14303
|
/**
|
|
15225
14304
|
* Similar to
|
|
15226
|
-
* {@link Person.getFeaturedCollections},
|
|
15227
|
-
* but returns its `@id` URL instead of the object itself.
|
|
15228
|
-
*/
|
|
15229
|
-
get featuredCollectionsId(): URL | null;
|
|
15230
|
-
/** A collection of {@link FeaturedCollection}s created by this actor.
|
|
15231
|
-
*/
|
|
15232
|
-
getFeaturedCollections(options?: {
|
|
15233
|
-
documentLoader?: DocumentLoader$1;
|
|
15234
|
-
contextLoader?: DocumentLoader$1;
|
|
15235
|
-
suppressError?: boolean;
|
|
15236
|
-
tracerProvider?: TracerProvider;
|
|
15237
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
15238
|
-
}): Promise<Collection | null>;
|
|
15239
|
-
/**
|
|
15240
|
-
* Similar to
|
|
15241
14305
|
* {@link Person.getStreams},
|
|
15242
14306
|
* but returns their `@id`s instead of the objects themselves.
|
|
15243
14307
|
*/
|
|
@@ -17108,7 +16172,6 @@ declare class Service extends Object$1 {
|
|
|
17108
16172
|
liked?: Collection | URL | null;
|
|
17109
16173
|
featured?: Collection | URL | null;
|
|
17110
16174
|
featuredTags?: Collection | URL | null;
|
|
17111
|
-
featuredCollections?: Collection | URL | null;
|
|
17112
16175
|
streams?: (Collection | URL)[];
|
|
17113
16176
|
endpoints?: Endpoints | null;
|
|
17114
16177
|
discoverable?: boolean | null;
|
|
@@ -17202,7 +16265,6 @@ declare class Service extends Object$1 {
|
|
|
17202
16265
|
liked?: Collection | URL | null;
|
|
17203
16266
|
featured?: Collection | URL | null;
|
|
17204
16267
|
featuredTags?: Collection | URL | null;
|
|
17205
|
-
featuredCollections?: Collection | URL | null;
|
|
17206
16268
|
streams?: (Collection | URL)[];
|
|
17207
16269
|
endpoints?: Endpoints | null;
|
|
17208
16270
|
discoverable?: boolean | null;
|
|
@@ -17452,21 +16514,6 @@ declare class Service extends Object$1 {
|
|
|
17452
16514
|
}): Promise<Collection | null>;
|
|
17453
16515
|
/**
|
|
17454
16516
|
* Similar to
|
|
17455
|
-
* {@link Service.getFeaturedCollections},
|
|
17456
|
-
* but returns its `@id` URL instead of the object itself.
|
|
17457
|
-
*/
|
|
17458
|
-
get featuredCollectionsId(): URL | null;
|
|
17459
|
-
/** A collection of {@link FeaturedCollection}s created by this actor.
|
|
17460
|
-
*/
|
|
17461
|
-
getFeaturedCollections(options?: {
|
|
17462
|
-
documentLoader?: DocumentLoader$1;
|
|
17463
|
-
contextLoader?: DocumentLoader$1;
|
|
17464
|
-
suppressError?: boolean;
|
|
17465
|
-
tracerProvider?: TracerProvider;
|
|
17466
|
-
crossOrigin?: "ignore" | "throw" | "trust";
|
|
17467
|
-
}): Promise<Collection | null>;
|
|
17468
|
-
/**
|
|
17469
|
-
* Similar to
|
|
17470
16517
|
* {@link Service.getStreams},
|
|
17471
16518
|
* but returns their `@id`s instead of the objects themselves.
|
|
17472
16519
|
*/
|
|
@@ -19350,7 +18397,7 @@ declare class View extends Activity {
|
|
|
19350
18397
|
/**
|
|
19351
18398
|
* Constructor types for all generated vocabulary entity classes.
|
|
19352
18399
|
*/
|
|
19353
|
-
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
|
|
18400
|
+
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 Agreement | 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;
|
|
19354
18401
|
/**
|
|
19355
18402
|
* Checks whether the given value is a generated vocabulary entity class.
|
|
19356
18403
|
*/
|
|
@@ -19850,4 +18897,4 @@ declare function getTypeId(object: Object$1 | Link | null): URL | null;
|
|
|
19850
18897
|
*/
|
|
19851
18898
|
declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
|
|
19852
18899
|
//#endregion
|
|
19853
|
-
export { $EntityType, Accept, Activity, Actor, ActorDiscoveryResult, ActorTypeName, Add, Agreement, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Commitment, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, type DocumentLoader, Emoji, EmojiReact, Endpoints, Event, Export,
|
|
18900
|
+
export { $EntityType, Accept, Activity, Actor, ActorDiscoveryResult, ActorTypeName, Add, Agreement, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Commitment, 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, ObjectLookupKind, 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, normalizeLinkToImage, parseFediverseHandle, toAcctUrl, traverseCollection };
|