@fedify/vocab 2.4.0-dev.1528 → 2.4.0-dev.1564
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 +10919 -8374
- package/dist/mod.d.cts +1618 -665
- package/dist/mod.d.ts +1618 -665
- package/dist/mod.js +10916 -8375
- package/dist-tests/{actor-BP_hyy_7.mjs → actor-B6FsWrG4.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/application.yaml +13 -0
- package/dist-tests/featureauthorization.yaml +33 -0
- package/dist-tests/featuredcollection.yaml +41 -0
- package/dist-tests/featureditem.yaml +34 -0
- package/dist-tests/featurerequest.yaml +21 -0
- package/dist-tests/group.yaml +13 -0
- package/dist-tests/interactionpolicy.yaml +16 -1
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/organization.yaml +13 -0
- package/dist-tests/person.yaml +13 -0
- package/dist-tests/service.yaml +13 -0
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-CQX0Zq_l.mjs → vocab-DOHLQ4UQ.mjs} +10919 -8374
- package/dist-tests/vocab.test.mjs +199 -1
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +609 -0
- package/src/application.yaml +13 -0
- package/src/featureauthorization.yaml +33 -0
- package/src/featuredcollection.yaml +41 -0
- package/src/featureditem.yaml +34 -0
- package/src/featurerequest.yaml +21 -0
- package/src/group.yaml +13 -0
- package/src/interactionpolicy.yaml +16 -1
- package/src/organization.yaml +13 -0
- package/src/person.yaml +13 -0
- package/src/service.yaml +13 -0
- package/src/vocab.test.ts +286 -0
package/dist/mod.d.cts
CHANGED
|
@@ -2563,6 +2563,7 @@ declare class InteractionPolicy {
|
|
|
2563
2563
|
*/
|
|
2564
2564
|
constructor(values: {
|
|
2565
2565
|
id?: URL | null;
|
|
2566
|
+
canFeature?: InteractionRule | null;
|
|
2566
2567
|
canLike?: InteractionRule | null;
|
|
2567
2568
|
canReply?: InteractionRule | null;
|
|
2568
2569
|
canAnnounce?: InteractionRule | null;
|
|
@@ -2580,6 +2581,7 @@ declare class InteractionPolicy {
|
|
|
2580
2581
|
*/
|
|
2581
2582
|
clone(values?: {
|
|
2582
2583
|
id?: URL | null;
|
|
2584
|
+
canFeature?: InteractionRule | null;
|
|
2583
2585
|
canLike?: InteractionRule | null;
|
|
2584
2586
|
canReply?: InteractionRule | null;
|
|
2585
2587
|
canAnnounce?: InteractionRule | null;
|
|
@@ -2588,6 +2590,12 @@ declare class InteractionPolicy {
|
|
|
2588
2590
|
documentLoader?: DocumentLoader$1;
|
|
2589
2591
|
contextLoader?: DocumentLoader$1;
|
|
2590
2592
|
}): 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;
|
|
2591
2599
|
/** The sub-policy specifying who can like the post.
|
|
2592
2600
|
*
|
|
2593
2601
|
* When absent, implementations should assume that anyone can like the post
|
|
@@ -4034,7 +4042,1487 @@ declare class QuoteRequest extends Activity {
|
|
|
4034
4042
|
}, options?: {
|
|
4035
4043
|
documentLoader?: DocumentLoader$1;
|
|
4036
4044
|
contextLoader?: DocumentLoader$1;
|
|
4037
|
-
}): QuoteRequest;
|
|
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}.
|
|
5352
|
+
*
|
|
5353
|
+
* See [FEP-7aa9](https://w3id.org/fep/7aa9) for details.
|
|
5354
|
+
*/
|
|
5355
|
+
declare class FeaturedItem extends Object$1 {
|
|
5356
|
+
#private;
|
|
5357
|
+
/**
|
|
5358
|
+
* The type URI of {@link FeaturedItem}: `https://w3id.org/fep/7aa9#FeaturedItem`.
|
|
5359
|
+
*/
|
|
5360
|
+
static override get typeId(): URL;
|
|
5361
|
+
/**
|
|
5362
|
+
* Constructs a new instance of FeaturedItem with the given values.
|
|
5363
|
+
* @param values The values to initialize the instance with.
|
|
5364
|
+
* @param options The options to use for initialization.
|
|
5365
|
+
*/
|
|
5366
|
+
constructor(values: {
|
|
5367
|
+
id?: URL | null;
|
|
5368
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
5369
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
5370
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
5371
|
+
audience?: Object$1 | URL | null;
|
|
5372
|
+
audiences?: (Object$1 | URL)[];
|
|
5373
|
+
content?: string | LanguageString$1 | null;
|
|
5374
|
+
contents?: ((string | LanguageString$1))[];
|
|
5375
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
5376
|
+
name?: string | LanguageString$1 | null;
|
|
5377
|
+
names?: ((string | LanguageString$1))[];
|
|
5378
|
+
endTime?: Temporal.Instant | null;
|
|
5379
|
+
generators?: (Object$1 | Link | URL)[];
|
|
5380
|
+
icon?: Image | URL | null;
|
|
5381
|
+
icons?: (Image | URL)[];
|
|
5382
|
+
image?: Image | URL | null;
|
|
5383
|
+
images?: (Image | URL)[];
|
|
5384
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
5385
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
5386
|
+
location?: Object$1 | Link | URL | null;
|
|
5387
|
+
locations?: (Object$1 | Link | URL)[];
|
|
5388
|
+
preview?: Link | Object$1 | URL | null;
|
|
5389
|
+
previews?: (Link | Object$1 | URL)[];
|
|
5390
|
+
published?: Temporal.Instant | null;
|
|
5391
|
+
replies?: Collection | URL | null;
|
|
5392
|
+
shares?: Collection | URL | null;
|
|
5393
|
+
likes?: Collection | URL | null;
|
|
5394
|
+
emojiReactions?: Collection | URL | null;
|
|
5395
|
+
startTime?: Temporal.Instant | null;
|
|
5396
|
+
summary?: string | LanguageString$1 | null;
|
|
5397
|
+
summaries?: ((string | LanguageString$1))[];
|
|
5398
|
+
tags?: (Object$1 | Link | URL)[];
|
|
5399
|
+
updated?: Temporal.Instant | null;
|
|
5400
|
+
url?: URL | Link | null;
|
|
5401
|
+
urls?: ((URL | Link))[];
|
|
5402
|
+
to?: Object$1 | URL | null;
|
|
5403
|
+
tos?: (Object$1 | URL)[];
|
|
5404
|
+
bto?: Object$1 | URL | null;
|
|
5405
|
+
btos?: (Object$1 | URL)[];
|
|
5406
|
+
cc?: Object$1 | URL | null;
|
|
5407
|
+
ccs?: (Object$1 | URL)[];
|
|
5408
|
+
bcc?: Object$1 | URL | null;
|
|
5409
|
+
bccs?: (Object$1 | URL)[];
|
|
5410
|
+
mediaType?: string | null;
|
|
5411
|
+
duration?: Temporal.Duration | null;
|
|
5412
|
+
sensitive?: boolean | null;
|
|
5413
|
+
source?: Source | null;
|
|
5414
|
+
proof?: DataIntegrityProof | URL | null;
|
|
5415
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
5416
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
5417
|
+
approvedBy?: URL | null;
|
|
5418
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5419
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5420
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5421
|
+
featuredObject?: Object$1 | URL | null;
|
|
5422
|
+
featureAuthorization?: FeatureAuthorization | URL | null;
|
|
5423
|
+
}, options?: {
|
|
5424
|
+
documentLoader?: DocumentLoader$1;
|
|
5425
|
+
contextLoader?: DocumentLoader$1;
|
|
5426
|
+
tracerProvider?: TracerProvider;
|
|
5427
|
+
});
|
|
5428
|
+
/**
|
|
5429
|
+
* Clones this instance, optionally updating it with the given values.
|
|
5430
|
+
* @param values The values to update the clone with.
|
|
5431
|
+
* @param options The options to use for cloning.
|
|
5432
|
+
* @returns The cloned instance.
|
|
5433
|
+
*/
|
|
5434
|
+
override clone(values?: {
|
|
5435
|
+
id?: URL | null;
|
|
5436
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
5437
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
5438
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
5439
|
+
audience?: Object$1 | URL | null;
|
|
5440
|
+
audiences?: (Object$1 | URL)[];
|
|
5441
|
+
content?: string | LanguageString$1 | null;
|
|
5442
|
+
contents?: ((string | LanguageString$1))[];
|
|
5443
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
5444
|
+
name?: string | LanguageString$1 | null;
|
|
5445
|
+
names?: ((string | LanguageString$1))[];
|
|
5446
|
+
endTime?: Temporal.Instant | null;
|
|
5447
|
+
generators?: (Object$1 | Link | URL)[];
|
|
5448
|
+
icon?: Image | URL | null;
|
|
5449
|
+
icons?: (Image | URL)[];
|
|
5450
|
+
image?: Image | URL | null;
|
|
5451
|
+
images?: (Image | URL)[];
|
|
5452
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
5453
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
5454
|
+
location?: Object$1 | Link | URL | null;
|
|
5455
|
+
locations?: (Object$1 | Link | URL)[];
|
|
5456
|
+
preview?: Link | Object$1 | URL | null;
|
|
5457
|
+
previews?: (Link | Object$1 | URL)[];
|
|
5458
|
+
published?: Temporal.Instant | null;
|
|
5459
|
+
replies?: Collection | URL | null;
|
|
5460
|
+
shares?: Collection | URL | null;
|
|
5461
|
+
likes?: Collection | URL | null;
|
|
5462
|
+
emojiReactions?: Collection | URL | null;
|
|
5463
|
+
startTime?: Temporal.Instant | null;
|
|
5464
|
+
summary?: string | LanguageString$1 | null;
|
|
5465
|
+
summaries?: ((string | LanguageString$1))[];
|
|
5466
|
+
tags?: (Object$1 | Link | URL)[];
|
|
5467
|
+
updated?: Temporal.Instant | null;
|
|
5468
|
+
url?: URL | Link | null;
|
|
5469
|
+
urls?: ((URL | Link))[];
|
|
5470
|
+
to?: Object$1 | URL | null;
|
|
5471
|
+
tos?: (Object$1 | URL)[];
|
|
5472
|
+
bto?: Object$1 | URL | null;
|
|
5473
|
+
btos?: (Object$1 | URL)[];
|
|
5474
|
+
cc?: Object$1 | URL | null;
|
|
5475
|
+
ccs?: (Object$1 | URL)[];
|
|
5476
|
+
bcc?: Object$1 | URL | null;
|
|
5477
|
+
bccs?: (Object$1 | URL)[];
|
|
5478
|
+
mediaType?: string | null;
|
|
5479
|
+
duration?: Temporal.Duration | null;
|
|
5480
|
+
sensitive?: boolean | null;
|
|
5481
|
+
source?: Source | null;
|
|
5482
|
+
proof?: DataIntegrityProof | URL | null;
|
|
5483
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
5484
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
5485
|
+
approvedBy?: URL | null;
|
|
5486
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
5487
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
5488
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
5489
|
+
featuredObject?: Object$1 | URL | null;
|
|
5490
|
+
featureAuthorization?: FeatureAuthorization | URL | null;
|
|
5491
|
+
}, options?: {
|
|
5492
|
+
documentLoader?: DocumentLoader$1;
|
|
5493
|
+
contextLoader?: DocumentLoader$1;
|
|
5494
|
+
}): FeaturedItem;
|
|
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>;
|
|
4038
5526
|
/**
|
|
4039
5527
|
* Converts this object to a JSON-LD structure.
|
|
4040
5528
|
* @param options The options to use.
|
|
@@ -4067,13 +5555,13 @@ declare class QuoteRequest extends Activity {
|
|
|
4067
5555
|
contextLoader?: DocumentLoader$1;
|
|
4068
5556
|
tracerProvider?: TracerProvider;
|
|
4069
5557
|
baseUrl?: URL;
|
|
4070
|
-
}): Promise<
|
|
4071
|
-
protected static
|
|
5558
|
+
}): Promise<FeaturedItem>;
|
|
5559
|
+
protected static __fromJsonLd__FeaturedItem__(json: unknown, span: Span, options?: {
|
|
4072
5560
|
documentLoader?: DocumentLoader$1;
|
|
4073
5561
|
contextLoader?: DocumentLoader$1;
|
|
4074
5562
|
tracerProvider?: TracerProvider;
|
|
4075
5563
|
baseUrl?: URL;
|
|
4076
|
-
}): Promise<
|
|
5564
|
+
}): Promise<FeaturedItem>;
|
|
4077
5565
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4078
5566
|
}
|
|
4079
5567
|
/** Means of communicating or interacting with the DID subject or associated
|
|
@@ -5932,6 +7420,7 @@ declare class Application extends Object$1 {
|
|
|
5932
7420
|
liked?: Collection | URL | null;
|
|
5933
7421
|
featured?: Collection | URL | null;
|
|
5934
7422
|
featuredTags?: Collection | URL | null;
|
|
7423
|
+
featuredCollections?: Collection | URL | null;
|
|
5935
7424
|
streams?: (Collection | URL)[];
|
|
5936
7425
|
endpoints?: Endpoints | null;
|
|
5937
7426
|
discoverable?: boolean | null;
|
|
@@ -6025,6 +7514,7 @@ declare class Application extends Object$1 {
|
|
|
6025
7514
|
liked?: Collection | URL | null;
|
|
6026
7515
|
featured?: Collection | URL | null;
|
|
6027
7516
|
featuredTags?: Collection | URL | null;
|
|
7517
|
+
featuredCollections?: Collection | URL | null;
|
|
6028
7518
|
streams?: (Collection | URL)[];
|
|
6029
7519
|
endpoints?: Endpoints | null;
|
|
6030
7520
|
discoverable?: boolean | null;
|
|
@@ -6274,6 +7764,21 @@ declare class Application extends Object$1 {
|
|
|
6274
7764
|
}): Promise<Collection | null>;
|
|
6275
7765
|
/**
|
|
6276
7766
|
* 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
|
|
6277
7782
|
* {@link Application.getStreams},
|
|
6278
7783
|
* but returns their `@id`s instead of the objects themselves.
|
|
6279
7784
|
*/
|
|
@@ -7720,236 +9225,28 @@ declare class Block extends Ignore {
|
|
|
7720
9225
|
bcc?: Object$1 | URL | null;
|
|
7721
9226
|
bccs?: (Object$1 | URL)[];
|
|
7722
9227
|
mediaType?: string | null;
|
|
7723
|
-
duration?: Temporal.Duration | null;
|
|
7724
|
-
sensitive?: boolean | null;
|
|
7725
|
-
source?: Source | null;
|
|
7726
|
-
proof?: DataIntegrityProof | URL | null;
|
|
7727
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
7728
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
7729
|
-
approvedBy?: URL | null;
|
|
7730
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
7731
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
7732
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
7733
|
-
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
7734
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
7735
|
-
object?: Object$1 | URL | null;
|
|
7736
|
-
objects?: (Object$1 | URL)[];
|
|
7737
|
-
target?: Object$1 | URL | null;
|
|
7738
|
-
targets?: (Object$1 | URL)[];
|
|
7739
|
-
result?: Object$1 | URL | null;
|
|
7740
|
-
results?: (Object$1 | URL)[];
|
|
7741
|
-
origin?: Object$1 | URL | null;
|
|
7742
|
-
origins?: (Object$1 | URL)[];
|
|
7743
|
-
instrument?: Object$1 | URL | null;
|
|
7744
|
-
instruments?: (Object$1 | URL)[];
|
|
7745
|
-
}, options?: {
|
|
7746
|
-
documentLoader?: DocumentLoader$1;
|
|
7747
|
-
contextLoader?: DocumentLoader$1;
|
|
7748
|
-
tracerProvider?: TracerProvider;
|
|
7749
|
-
});
|
|
7750
|
-
/**
|
|
7751
|
-
* Clones this instance, optionally updating it with the given values.
|
|
7752
|
-
* @param values The values to update the clone with.
|
|
7753
|
-
* @param options The options to use for cloning.
|
|
7754
|
-
* @returns The cloned instance.
|
|
7755
|
-
*/
|
|
7756
|
-
override clone(values?: {
|
|
7757
|
-
id?: URL | null;
|
|
7758
|
-
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
7759
|
-
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
7760
|
-
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
7761
|
-
audience?: Object$1 | URL | null;
|
|
7762
|
-
audiences?: (Object$1 | URL)[];
|
|
7763
|
-
content?: string | LanguageString$1 | null;
|
|
7764
|
-
contents?: ((string | LanguageString$1))[];
|
|
7765
|
-
contexts?: (Object$1 | Link | URL)[];
|
|
7766
|
-
name?: string | LanguageString$1 | null;
|
|
7767
|
-
names?: ((string | LanguageString$1))[];
|
|
7768
|
-
endTime?: Temporal.Instant | null;
|
|
7769
|
-
generators?: (Object$1 | Link | URL)[];
|
|
7770
|
-
icon?: Image | URL | null;
|
|
7771
|
-
icons?: (Image | URL)[];
|
|
7772
|
-
image?: Image | URL | null;
|
|
7773
|
-
images?: (Image | URL)[];
|
|
7774
|
-
replyTarget?: Object$1 | Link | URL | null;
|
|
7775
|
-
replyTargets?: (Object$1 | Link | URL)[];
|
|
7776
|
-
location?: Object$1 | Link | URL | null;
|
|
7777
|
-
locations?: (Object$1 | Link | URL)[];
|
|
7778
|
-
preview?: Link | Object$1 | URL | null;
|
|
7779
|
-
previews?: (Link | Object$1 | URL)[];
|
|
7780
|
-
published?: Temporal.Instant | null;
|
|
7781
|
-
replies?: Collection | URL | null;
|
|
7782
|
-
shares?: Collection | URL | null;
|
|
7783
|
-
likes?: Collection | URL | null;
|
|
7784
|
-
emojiReactions?: Collection | URL | null;
|
|
7785
|
-
startTime?: Temporal.Instant | null;
|
|
7786
|
-
summary?: string | LanguageString$1 | null;
|
|
7787
|
-
summaries?: ((string | LanguageString$1))[];
|
|
7788
|
-
tags?: (Object$1 | Link | URL)[];
|
|
7789
|
-
updated?: Temporal.Instant | null;
|
|
7790
|
-
url?: URL | Link | null;
|
|
7791
|
-
urls?: ((URL | Link))[];
|
|
7792
|
-
to?: Object$1 | URL | null;
|
|
7793
|
-
tos?: (Object$1 | URL)[];
|
|
7794
|
-
bto?: Object$1 | URL | null;
|
|
7795
|
-
btos?: (Object$1 | URL)[];
|
|
7796
|
-
cc?: Object$1 | URL | null;
|
|
7797
|
-
ccs?: (Object$1 | URL)[];
|
|
7798
|
-
bcc?: Object$1 | URL | null;
|
|
7799
|
-
bccs?: (Object$1 | URL)[];
|
|
7800
|
-
mediaType?: string | null;
|
|
7801
|
-
duration?: Temporal.Duration | null;
|
|
7802
|
-
sensitive?: boolean | null;
|
|
7803
|
-
source?: Source | null;
|
|
7804
|
-
proof?: DataIntegrityProof | URL | null;
|
|
7805
|
-
proofs?: (DataIntegrityProof | URL)[];
|
|
7806
|
-
interactionPolicy?: InteractionPolicy | null;
|
|
7807
|
-
approvedBy?: URL | null;
|
|
7808
|
-
likeAuthorization?: LikeAuthorization | URL | null;
|
|
7809
|
-
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
7810
|
-
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
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;
|
|
9228
|
+
duration?: Temporal.Duration | null;
|
|
9229
|
+
sensitive?: boolean | null;
|
|
9230
|
+
source?: Source | null;
|
|
9231
|
+
proof?: DataIntegrityProof | URL | null;
|
|
9232
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
9233
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
9234
|
+
approvedBy?: URL | null;
|
|
9235
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
9236
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
9237
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
9238
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
9239
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
|
9240
|
+
object?: Object$1 | URL | null;
|
|
9241
|
+
objects?: (Object$1 | URL)[];
|
|
9242
|
+
target?: Object$1 | URL | null;
|
|
9243
|
+
targets?: (Object$1 | URL)[];
|
|
9244
|
+
result?: Object$1 | URL | null;
|
|
9245
|
+
results?: (Object$1 | URL)[];
|
|
9246
|
+
origin?: Object$1 | URL | null;
|
|
9247
|
+
origins?: (Object$1 | URL)[];
|
|
9248
|
+
instrument?: Object$1 | URL | null;
|
|
9249
|
+
instruments?: (Object$1 | URL)[];
|
|
7953
9250
|
}, options?: {
|
|
7954
9251
|
documentLoader?: DocumentLoader$1;
|
|
7955
9252
|
contextLoader?: DocumentLoader$1;
|
|
@@ -8016,212 +9313,22 @@ declare class Collection extends Object$1 {
|
|
|
8016
9313
|
likeAuthorization?: LikeAuthorization | URL | null;
|
|
8017
9314
|
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
8018
9315
|
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
likedOf?: Object$1 | 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)[];
|
|
8032
9328
|
}, options?: {
|
|
8033
9329
|
documentLoader?: DocumentLoader$1;
|
|
8034
9330
|
contextLoader?: DocumentLoader$1;
|
|
8035
|
-
}):
|
|
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>;
|
|
9331
|
+
}): Block;
|
|
8225
9332
|
/**
|
|
8226
9333
|
* Converts this object to a JSON-LD structure.
|
|
8227
9334
|
* @param options The options to use.
|
|
@@ -8254,13 +9361,13 @@ declare class Collection extends Object$1 {
|
|
|
8254
9361
|
contextLoader?: DocumentLoader$1;
|
|
8255
9362
|
tracerProvider?: TracerProvider;
|
|
8256
9363
|
baseUrl?: URL;
|
|
8257
|
-
}): Promise<
|
|
8258
|
-
protected static
|
|
9364
|
+
}): Promise<Block>;
|
|
9365
|
+
protected static __fromJsonLd__Block__(json: unknown, span: Span, options?: {
|
|
8259
9366
|
documentLoader?: DocumentLoader$1;
|
|
8260
9367
|
contextLoader?: DocumentLoader$1;
|
|
8261
9368
|
tracerProvider?: TracerProvider;
|
|
8262
9369
|
baseUrl?: URL;
|
|
8263
|
-
}): Promise<
|
|
9370
|
+
}): Promise<Block>;
|
|
8264
9371
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
8265
9372
|
}
|
|
8266
9373
|
/** Used to represent distinct subsets of items from a `Collection`.
|
|
@@ -9936,6 +11043,7 @@ declare class Group extends Object$1 {
|
|
|
9936
11043
|
liked?: Collection | URL | null;
|
|
9937
11044
|
featured?: Collection | URL | null;
|
|
9938
11045
|
featuredTags?: Collection | URL | null;
|
|
11046
|
+
featuredCollections?: Collection | URL | null;
|
|
9939
11047
|
streams?: (Collection | URL)[];
|
|
9940
11048
|
endpoints?: Endpoints | null;
|
|
9941
11049
|
discoverable?: boolean | null;
|
|
@@ -10029,6 +11137,7 @@ declare class Group extends Object$1 {
|
|
|
10029
11137
|
liked?: Collection | URL | null;
|
|
10030
11138
|
featured?: Collection | URL | null;
|
|
10031
11139
|
featuredTags?: Collection | URL | null;
|
|
11140
|
+
featuredCollections?: Collection | URL | null;
|
|
10032
11141
|
streams?: (Collection | URL)[];
|
|
10033
11142
|
endpoints?: Endpoints | null;
|
|
10034
11143
|
discoverable?: boolean | null;
|
|
@@ -10269,7 +11378,22 @@ declare class Group extends Object$1 {
|
|
|
10269
11378
|
* on the actor object that points to a {@link Collection} of {@link Hashtag}
|
|
10270
11379
|
* objects specifically.
|
|
10271
11380
|
*/
|
|
10272
|
-
getFeaturedTags(options?: {
|
|
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?: {
|
|
10273
11397
|
documentLoader?: DocumentLoader$1;
|
|
10274
11398
|
contextLoader?: DocumentLoader$1;
|
|
10275
11399
|
suppressError?: boolean;
|
|
@@ -12643,228 +13767,6 @@ declare class Note extends Object$1 {
|
|
|
12643
13767
|
}): Promise<Note>;
|
|
12644
13768
|
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
12645
13769
|
}
|
|
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
|
-
}
|
|
12868
13770
|
/** Used to represent ordered subsets of items from an `OrderedCollection`.
|
|
12869
13771
|
* Refer to the Activity Streams 2.0 Core for a complete description of
|
|
12870
13772
|
* the `OrderedCollectionPage` object.
|
|
@@ -13182,6 +14084,7 @@ declare class Organization extends Object$1 {
|
|
|
13182
14084
|
liked?: Collection | URL | null;
|
|
13183
14085
|
featured?: Collection | URL | null;
|
|
13184
14086
|
featuredTags?: Collection | URL | null;
|
|
14087
|
+
featuredCollections?: Collection | URL | null;
|
|
13185
14088
|
streams?: (Collection | URL)[];
|
|
13186
14089
|
endpoints?: Endpoints | null;
|
|
13187
14090
|
discoverable?: boolean | null;
|
|
@@ -13275,6 +14178,7 @@ declare class Organization extends Object$1 {
|
|
|
13275
14178
|
liked?: Collection | URL | null;
|
|
13276
14179
|
featured?: Collection | URL | null;
|
|
13277
14180
|
featuredTags?: Collection | URL | null;
|
|
14181
|
+
featuredCollections?: Collection | URL | null;
|
|
13278
14182
|
streams?: (Collection | URL)[];
|
|
13279
14183
|
endpoints?: Endpoints | null;
|
|
13280
14184
|
discoverable?: boolean | null;
|
|
@@ -13524,6 +14428,21 @@ declare class Organization extends Object$1 {
|
|
|
13524
14428
|
}): Promise<Collection | null>;
|
|
13525
14429
|
/**
|
|
13526
14430
|
* 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
|
|
13527
14446
|
* {@link Organization.getStreams},
|
|
13528
14447
|
* but returns their `@id`s instead of the objects themselves.
|
|
13529
14448
|
*/
|
|
@@ -13960,6 +14879,7 @@ declare class Person extends Object$1 {
|
|
|
13960
14879
|
liked?: Collection | URL | null;
|
|
13961
14880
|
featured?: Collection | URL | null;
|
|
13962
14881
|
featuredTags?: Collection | URL | null;
|
|
14882
|
+
featuredCollections?: Collection | URL | null;
|
|
13963
14883
|
streams?: (Collection | URL)[];
|
|
13964
14884
|
endpoints?: Endpoints | null;
|
|
13965
14885
|
discoverable?: boolean | null;
|
|
@@ -14053,6 +14973,7 @@ declare class Person extends Object$1 {
|
|
|
14053
14973
|
liked?: Collection | URL | null;
|
|
14054
14974
|
featured?: Collection | URL | null;
|
|
14055
14975
|
featuredTags?: Collection | URL | null;
|
|
14976
|
+
featuredCollections?: Collection | URL | null;
|
|
14056
14977
|
streams?: (Collection | URL)[];
|
|
14057
14978
|
endpoints?: Endpoints | null;
|
|
14058
14979
|
discoverable?: boolean | null;
|
|
@@ -14302,6 +15223,21 @@ declare class Person extends Object$1 {
|
|
|
14302
15223
|
}): Promise<Collection | null>;
|
|
14303
15224
|
/**
|
|
14304
15225
|
* 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
|
|
14305
15241
|
* {@link Person.getStreams},
|
|
14306
15242
|
* but returns their `@id`s instead of the objects themselves.
|
|
14307
15243
|
*/
|
|
@@ -16172,6 +17108,7 @@ declare class Service extends Object$1 {
|
|
|
16172
17108
|
liked?: Collection | URL | null;
|
|
16173
17109
|
featured?: Collection | URL | null;
|
|
16174
17110
|
featuredTags?: Collection | URL | null;
|
|
17111
|
+
featuredCollections?: Collection | URL | null;
|
|
16175
17112
|
streams?: (Collection | URL)[];
|
|
16176
17113
|
endpoints?: Endpoints | null;
|
|
16177
17114
|
discoverable?: boolean | null;
|
|
@@ -16265,6 +17202,7 @@ declare class Service extends Object$1 {
|
|
|
16265
17202
|
liked?: Collection | URL | null;
|
|
16266
17203
|
featured?: Collection | URL | null;
|
|
16267
17204
|
featuredTags?: Collection | URL | null;
|
|
17205
|
+
featuredCollections?: Collection | URL | null;
|
|
16268
17206
|
streams?: (Collection | URL)[];
|
|
16269
17207
|
endpoints?: Endpoints | null;
|
|
16270
17208
|
discoverable?: boolean | null;
|
|
@@ -16514,6 +17452,21 @@ declare class Service extends Object$1 {
|
|
|
16514
17452
|
}): Promise<Collection | null>;
|
|
16515
17453
|
/**
|
|
16516
17454
|
* 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
|
|
16517
17470
|
* {@link Service.getStreams},
|
|
16518
17471
|
* but returns their `@id`s instead of the objects themselves.
|
|
16519
17472
|
*/
|
|
@@ -18397,7 +19350,7 @@ declare class View extends Activity {
|
|
|
18397
19350
|
/**
|
|
18398
19351
|
* Constructor types for all generated vocabulary entity classes.
|
|
18399
19352
|
*/
|
|
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
|
|
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 FeatureAuthorization | typeof FeatureRequest | typeof Collection | typeof OrderedCollection | typeof FeaturedCollection | typeof FeaturedItem | 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 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 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;
|
|
18401
19354
|
/**
|
|
18402
19355
|
* Checks whether the given value is a generated vocabulary entity class.
|
|
18403
19356
|
*/
|
|
@@ -18897,4 +19850,4 @@ declare function getTypeId(object: Object$1 | Link | null): URL | null;
|
|
|
18897
19850
|
*/
|
|
18898
19851
|
declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
|
|
18899
19852
|
//#endregion
|
|
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 };
|
|
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, FeatureAuthorization, FeatureRequest, FeaturedCollection, FeaturedItem, 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 };
|