@fedify/fedify 0.12.0-dev.273 → 0.12.0-dev.278
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/CHANGES.md +25 -0
- package/FEDERATION.md +6 -0
- package/esm/federation/middleware.js +3 -1
- package/esm/federation/router.js +13 -4
- package/esm/vocab/move.yaml +13 -0
- package/esm/vocab/read.yaml +11 -0
- package/esm/vocab/tentativeaccept.yaml +12 -0
- package/esm/vocab/tentativereject.yaml +12 -0
- package/esm/vocab/travel.yaml +14 -0
- package/esm/vocab/view.yaml +11 -0
- package/esm/vocab/vocab.js +1033 -144
- package/package.json +1 -1
- package/types/federation/middleware.d.ts +7 -0
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/federation/router.d.ts +12 -1
- package/types/federation/router.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +1095 -110
- package/types/vocab/vocab.d.ts.map +1 -1
package/types/vocab/vocab.d.ts
CHANGED
@@ -6921,6 +6921,171 @@ export declare class Mention extends Link {
|
|
6921
6921
|
}): Promise<Mention>;
|
6922
6922
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
6923
6923
|
}
|
6924
|
+
/** Indicates that the `actor` has moved `object` from `origin` to `target`.
|
6925
|
+
* If the `origin` or `target` are not specified,
|
6926
|
+
* either can be determined by context.
|
6927
|
+
*/
|
6928
|
+
export declare class Move extends Activity {
|
6929
|
+
/**
|
6930
|
+
* The type URI of {@link Move}: `https://www.w3.org/ns/activitystreams#Move`.
|
6931
|
+
*/
|
6932
|
+
static get typeId(): URL;
|
6933
|
+
/**
|
6934
|
+
* Constructs a new instance of Move with the given values.
|
6935
|
+
* @param values The values to initialize the instance with.
|
6936
|
+
* @param options The options to use for initialization.
|
6937
|
+
*/
|
6938
|
+
constructor(values: {
|
6939
|
+
id?: URL | null;
|
6940
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
6941
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
6942
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
6943
|
+
audience?: Object | URL | null;
|
6944
|
+
audiences?: (Object | URL)[];
|
6945
|
+
content?: string | LanguageString | null;
|
6946
|
+
contents?: ((string | LanguageString))[];
|
6947
|
+
contexts?: (Object | Link | URL)[];
|
6948
|
+
name?: string | LanguageString | null;
|
6949
|
+
names?: ((string | LanguageString))[];
|
6950
|
+
endTime?: dntShim.Temporal.Instant | null;
|
6951
|
+
generators?: (Object | Link | URL)[];
|
6952
|
+
icon?: Image | URL | null;
|
6953
|
+
icons?: (Image | URL)[];
|
6954
|
+
image?: Image | URL | null;
|
6955
|
+
images?: (Image | URL)[];
|
6956
|
+
replyTarget?: Object | Link | URL | null;
|
6957
|
+
replyTargets?: (Object | Link | URL)[];
|
6958
|
+
location?: Object | Link | URL | null;
|
6959
|
+
locations?: (Object | Link | URL)[];
|
6960
|
+
preview?: Link | Object | URL | null;
|
6961
|
+
previews?: (Link | Object | URL)[];
|
6962
|
+
published?: dntShim.Temporal.Instant | null;
|
6963
|
+
replies?: Collection | URL | null;
|
6964
|
+
startTime?: dntShim.Temporal.Instant | null;
|
6965
|
+
summary?: string | LanguageString | null;
|
6966
|
+
summaries?: ((string | LanguageString))[];
|
6967
|
+
tags?: (Object | Link | URL)[];
|
6968
|
+
updated?: dntShim.Temporal.Instant | null;
|
6969
|
+
url?: URL | Link | null;
|
6970
|
+
urls?: ((URL | Link))[];
|
6971
|
+
to?: Object | URL | null;
|
6972
|
+
tos?: (Object | URL)[];
|
6973
|
+
bto?: Object | URL | null;
|
6974
|
+
btos?: (Object | URL)[];
|
6975
|
+
cc?: Object | URL | null;
|
6976
|
+
ccs?: (Object | URL)[];
|
6977
|
+
bcc?: Object | URL | null;
|
6978
|
+
bccs?: (Object | URL)[];
|
6979
|
+
mediaType?: string | null;
|
6980
|
+
duration?: dntShim.Temporal.Duration | null;
|
6981
|
+
sensitive?: boolean | null;
|
6982
|
+
proof?: DataIntegrityProof | URL | null;
|
6983
|
+
proofs?: (DataIntegrityProof | URL)[];
|
6984
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
6985
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
6986
|
+
object?: Object | URL | null;
|
6987
|
+
objects?: (Object | URL)[];
|
6988
|
+
target?: Object | URL | null;
|
6989
|
+
targets?: (Object | URL)[];
|
6990
|
+
result?: Object | URL | null;
|
6991
|
+
results?: (Object | URL)[];
|
6992
|
+
origin?: Object | URL | null;
|
6993
|
+
origins?: (Object | URL)[];
|
6994
|
+
instrument?: Object | URL | null;
|
6995
|
+
instruments?: (Object | URL)[];
|
6996
|
+
}, { documentLoader, contextLoader, }?: {
|
6997
|
+
documentLoader?: DocumentLoader;
|
6998
|
+
contextLoader?: DocumentLoader;
|
6999
|
+
});
|
7000
|
+
/**
|
7001
|
+
* Clones this instance, optionally updating it with the given values.
|
7002
|
+
* @param values The values to update the clone with.
|
7003
|
+
* @options The options to use for cloning.
|
7004
|
+
* @returns The cloned instance.
|
7005
|
+
*/
|
7006
|
+
clone(values?: {
|
7007
|
+
id?: URL | null;
|
7008
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
7009
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
7010
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
7011
|
+
audience?: Object | URL | null;
|
7012
|
+
audiences?: (Object | URL)[];
|
7013
|
+
content?: string | LanguageString | null;
|
7014
|
+
contents?: ((string | LanguageString))[];
|
7015
|
+
contexts?: (Object | Link | URL)[];
|
7016
|
+
name?: string | LanguageString | null;
|
7017
|
+
names?: ((string | LanguageString))[];
|
7018
|
+
endTime?: dntShim.Temporal.Instant | null;
|
7019
|
+
generators?: (Object | Link | URL)[];
|
7020
|
+
icon?: Image | URL | null;
|
7021
|
+
icons?: (Image | URL)[];
|
7022
|
+
image?: Image | URL | null;
|
7023
|
+
images?: (Image | URL)[];
|
7024
|
+
replyTarget?: Object | Link | URL | null;
|
7025
|
+
replyTargets?: (Object | Link | URL)[];
|
7026
|
+
location?: Object | Link | URL | null;
|
7027
|
+
locations?: (Object | Link | URL)[];
|
7028
|
+
preview?: Link | Object | URL | null;
|
7029
|
+
previews?: (Link | Object | URL)[];
|
7030
|
+
published?: dntShim.Temporal.Instant | null;
|
7031
|
+
replies?: Collection | URL | null;
|
7032
|
+
startTime?: dntShim.Temporal.Instant | null;
|
7033
|
+
summary?: string | LanguageString | null;
|
7034
|
+
summaries?: ((string | LanguageString))[];
|
7035
|
+
tags?: (Object | Link | URL)[];
|
7036
|
+
updated?: dntShim.Temporal.Instant | null;
|
7037
|
+
url?: URL | Link | null;
|
7038
|
+
urls?: ((URL | Link))[];
|
7039
|
+
to?: Object | URL | null;
|
7040
|
+
tos?: (Object | URL)[];
|
7041
|
+
bto?: Object | URL | null;
|
7042
|
+
btos?: (Object | URL)[];
|
7043
|
+
cc?: Object | URL | null;
|
7044
|
+
ccs?: (Object | URL)[];
|
7045
|
+
bcc?: Object | URL | null;
|
7046
|
+
bccs?: (Object | URL)[];
|
7047
|
+
mediaType?: string | null;
|
7048
|
+
duration?: dntShim.Temporal.Duration | null;
|
7049
|
+
sensitive?: boolean | null;
|
7050
|
+
proof?: DataIntegrityProof | URL | null;
|
7051
|
+
proofs?: (DataIntegrityProof | URL)[];
|
7052
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
7053
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
7054
|
+
object?: Object | URL | null;
|
7055
|
+
objects?: (Object | URL)[];
|
7056
|
+
target?: Object | URL | null;
|
7057
|
+
targets?: (Object | URL)[];
|
7058
|
+
result?: Object | URL | null;
|
7059
|
+
results?: (Object | URL)[];
|
7060
|
+
origin?: Object | URL | null;
|
7061
|
+
origins?: (Object | URL)[];
|
7062
|
+
instrument?: Object | URL | null;
|
7063
|
+
instruments?: (Object | URL)[];
|
7064
|
+
}, options?: {
|
7065
|
+
documentLoader?: DocumentLoader;
|
7066
|
+
contextLoader?: DocumentLoader;
|
7067
|
+
}): Move;
|
7068
|
+
/**
|
7069
|
+
* Converts this object to a JSON-LD structure.
|
7070
|
+
* @returns The JSON-LD representation of this object.
|
7071
|
+
*/
|
7072
|
+
toJsonLd(options?: {
|
7073
|
+
expand?: boolean;
|
7074
|
+
contextLoader?: DocumentLoader;
|
7075
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
7076
|
+
}): Promise<unknown>;
|
7077
|
+
/**
|
7078
|
+
* Converts a JSON-LD structure to an object of this type.
|
7079
|
+
* @param json The JSON-LD structure to convert.
|
7080
|
+
* @returns The object of this type.
|
7081
|
+
* @throws {TypeError} If the given `json` is invalid.
|
7082
|
+
*/
|
7083
|
+
static fromJsonLd(json: unknown, options?: {
|
7084
|
+
documentLoader?: DocumentLoader;
|
7085
|
+
contextLoader?: DocumentLoader;
|
7086
|
+
}): Promise<Move>;
|
7087
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
7088
|
+
}
|
6924
7089
|
/** Represents a short written work typically less than a single paragraph in
|
6925
7090
|
* length.
|
6926
7091
|
*/
|
@@ -8937,16 +9102,15 @@ export declare class Question extends IntransitiveActivity {
|
|
8937
9102
|
}): Promise<Question>;
|
8938
9103
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
8939
9104
|
}
|
8940
|
-
/** Indicates that the `actor`
|
8941
|
-
* `origin` typically have no defined meaning.
|
9105
|
+
/** Indicates that the `actor` has read the `object`.
|
8942
9106
|
*/
|
8943
|
-
export declare class
|
9107
|
+
export declare class Read extends Activity {
|
8944
9108
|
/**
|
8945
|
-
* The type URI of {@link
|
9109
|
+
* The type URI of {@link Read}: `https://www.w3.org/ns/activitystreams#Read`.
|
8946
9110
|
*/
|
8947
9111
|
static get typeId(): URL;
|
8948
9112
|
/**
|
8949
|
-
* Constructs a new instance of
|
9113
|
+
* Constructs a new instance of Read with the given values.
|
8950
9114
|
* @param values The values to initialize the instance with.
|
8951
9115
|
* @param options The options to use for initialization.
|
8952
9116
|
*/
|
@@ -9079,7 +9243,7 @@ export declare class Reject extends Activity {
|
|
9079
9243
|
}, options?: {
|
9080
9244
|
documentLoader?: DocumentLoader;
|
9081
9245
|
contextLoader?: DocumentLoader;
|
9082
|
-
}):
|
9246
|
+
}): Read;
|
9083
9247
|
/**
|
9084
9248
|
* Converts this object to a JSON-LD structure.
|
9085
9249
|
* @returns The JSON-LD representation of this object.
|
@@ -9098,25 +9262,19 @@ export declare class Reject extends Activity {
|
|
9098
9262
|
static fromJsonLd(json: unknown, options?: {
|
9099
9263
|
documentLoader?: DocumentLoader;
|
9100
9264
|
contextLoader?: DocumentLoader;
|
9101
|
-
}): Promise<
|
9265
|
+
}): Promise<Read>;
|
9102
9266
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
9103
9267
|
}
|
9104
|
-
/**
|
9105
|
-
*
|
9106
|
-
* are used to identify the connected individuals.
|
9107
|
-
*
|
9108
|
-
* See [5.2 Representing Relationships Between
|
9109
|
-
* Entities](https://www.w3.org/TR/activitystreams-vocabulary/#connections)
|
9110
|
-
* for additional information.
|
9268
|
+
/** Indicates that the `actor` is rejecting the `object`. The `target` and
|
9269
|
+
* `origin` typically have no defined meaning.
|
9111
9270
|
*/
|
9112
|
-
export declare class
|
9113
|
-
#private;
|
9271
|
+
export declare class Reject extends Activity {
|
9114
9272
|
/**
|
9115
|
-
* The type URI of {@link
|
9273
|
+
* The type URI of {@link Reject}: `https://www.w3.org/ns/activitystreams#Reject`.
|
9116
9274
|
*/
|
9117
9275
|
static get typeId(): URL;
|
9118
9276
|
/**
|
9119
|
-
* Constructs a new instance of
|
9277
|
+
* Constructs a new instance of Reject with the given values.
|
9120
9278
|
* @param values The values to initialize the instance with.
|
9121
9279
|
* @param options The options to use for initialization.
|
9122
9280
|
*/
|
@@ -9166,11 +9324,18 @@ export declare class Relationship extends Object {
|
|
9166
9324
|
sensitive?: boolean | null;
|
9167
9325
|
proof?: DataIntegrityProof | URL | null;
|
9168
9326
|
proofs?: (DataIntegrityProof | URL)[];
|
9169
|
-
|
9327
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
9328
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
9170
9329
|
object?: Object | URL | null;
|
9171
9330
|
objects?: (Object | URL)[];
|
9172
|
-
|
9173
|
-
|
9331
|
+
target?: Object | URL | null;
|
9332
|
+
targets?: (Object | URL)[];
|
9333
|
+
result?: Object | URL | null;
|
9334
|
+
results?: (Object | URL)[];
|
9335
|
+
origin?: Object | URL | null;
|
9336
|
+
origins?: (Object | URL)[];
|
9337
|
+
instrument?: Object | URL | null;
|
9338
|
+
instruments?: (Object | URL)[];
|
9174
9339
|
}, { documentLoader, contextLoader, }?: {
|
9175
9340
|
documentLoader?: DocumentLoader;
|
9176
9341
|
contextLoader?: DocumentLoader;
|
@@ -9227,47 +9392,210 @@ export declare class Relationship extends Object {
|
|
9227
9392
|
sensitive?: boolean | null;
|
9228
9393
|
proof?: DataIntegrityProof | URL | null;
|
9229
9394
|
proofs?: (DataIntegrityProof | URL)[];
|
9230
|
-
|
9395
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
9396
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
9231
9397
|
object?: Object | URL | null;
|
9232
9398
|
objects?: (Object | URL)[];
|
9233
|
-
|
9234
|
-
|
9399
|
+
target?: Object | URL | null;
|
9400
|
+
targets?: (Object | URL)[];
|
9401
|
+
result?: Object | URL | null;
|
9402
|
+
results?: (Object | URL)[];
|
9403
|
+
origin?: Object | URL | null;
|
9404
|
+
origins?: (Object | URL)[];
|
9405
|
+
instrument?: Object | URL | null;
|
9406
|
+
instruments?: (Object | URL)[];
|
9235
9407
|
}, options?: {
|
9236
9408
|
documentLoader?: DocumentLoader;
|
9237
9409
|
contextLoader?: DocumentLoader;
|
9238
|
-
}):
|
9410
|
+
}): Reject;
|
9239
9411
|
/**
|
9240
|
-
*
|
9241
|
-
*
|
9242
|
-
* but returns its `@id` URL instead of the object itself.
|
9243
|
-
*/
|
9244
|
-
get subjectId(): URL | null;
|
9245
|
-
/** On a {@link Relationship} object, the {@link Relationship.subject} property
|
9246
|
-
* identifies one of the connected individuals. For instance,
|
9247
|
-
* for a {@link Relationship} object describing "John is related to Sally",
|
9248
|
-
* the {@link Relationship.subject} property would refer to John.
|
9412
|
+
* Converts this object to a JSON-LD structure.
|
9413
|
+
* @returns The JSON-LD representation of this object.
|
9249
9414
|
*/
|
9250
|
-
|
9251
|
-
|
9415
|
+
toJsonLd(options?: {
|
9416
|
+
expand?: boolean;
|
9252
9417
|
contextLoader?: DocumentLoader;
|
9253
|
-
|
9254
|
-
}): Promise<
|
9418
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
9419
|
+
}): Promise<unknown>;
|
9255
9420
|
/**
|
9256
|
-
*
|
9257
|
-
*
|
9258
|
-
*
|
9259
|
-
|
9260
|
-
get objectId(): URL | null;
|
9261
|
-
/** Describes the entity to which the {@link Relationship.subject} is related.
|
9421
|
+
* Converts a JSON-LD structure to an object of this type.
|
9422
|
+
* @param json The JSON-LD structure to convert.
|
9423
|
+
* @returns The object of this type.
|
9424
|
+
* @throws {TypeError} If the given `json` is invalid.
|
9262
9425
|
*/
|
9263
|
-
|
9426
|
+
static fromJsonLd(json: unknown, options?: {
|
9264
9427
|
documentLoader?: DocumentLoader;
|
9265
9428
|
contextLoader?: DocumentLoader;
|
9266
|
-
|
9267
|
-
|
9429
|
+
}): Promise<Reject>;
|
9430
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
9431
|
+
}
|
9432
|
+
/** Describes a relationship between two individuals.
|
9433
|
+
* The {@link Relationship.subject} and {@link Relationship.object} properties
|
9434
|
+
* are used to identify the connected individuals.
|
9435
|
+
*
|
9436
|
+
* See [5.2 Representing Relationships Between
|
9437
|
+
* Entities](https://www.w3.org/TR/activitystreams-vocabulary/#connections)
|
9438
|
+
* for additional information.
|
9439
|
+
*/
|
9440
|
+
export declare class Relationship extends Object {
|
9441
|
+
#private;
|
9268
9442
|
/**
|
9269
|
-
*
|
9270
|
-
|
9443
|
+
* The type URI of {@link Relationship}: `https://www.w3.org/ns/activitystreams#Relationship`.
|
9444
|
+
*/
|
9445
|
+
static get typeId(): URL;
|
9446
|
+
/**
|
9447
|
+
* Constructs a new instance of Relationship with the given values.
|
9448
|
+
* @param values The values to initialize the instance with.
|
9449
|
+
* @param options The options to use for initialization.
|
9450
|
+
*/
|
9451
|
+
constructor(values: {
|
9452
|
+
id?: URL | null;
|
9453
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
9454
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
9455
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
9456
|
+
audience?: Object | URL | null;
|
9457
|
+
audiences?: (Object | URL)[];
|
9458
|
+
content?: string | LanguageString | null;
|
9459
|
+
contents?: ((string | LanguageString))[];
|
9460
|
+
contexts?: (Object | Link | URL)[];
|
9461
|
+
name?: string | LanguageString | null;
|
9462
|
+
names?: ((string | LanguageString))[];
|
9463
|
+
endTime?: dntShim.Temporal.Instant | null;
|
9464
|
+
generators?: (Object | Link | URL)[];
|
9465
|
+
icon?: Image | URL | null;
|
9466
|
+
icons?: (Image | URL)[];
|
9467
|
+
image?: Image | URL | null;
|
9468
|
+
images?: (Image | URL)[];
|
9469
|
+
replyTarget?: Object | Link | URL | null;
|
9470
|
+
replyTargets?: (Object | Link | URL)[];
|
9471
|
+
location?: Object | Link | URL | null;
|
9472
|
+
locations?: (Object | Link | URL)[];
|
9473
|
+
preview?: Link | Object | URL | null;
|
9474
|
+
previews?: (Link | Object | URL)[];
|
9475
|
+
published?: dntShim.Temporal.Instant | null;
|
9476
|
+
replies?: Collection | URL | null;
|
9477
|
+
startTime?: dntShim.Temporal.Instant | null;
|
9478
|
+
summary?: string | LanguageString | null;
|
9479
|
+
summaries?: ((string | LanguageString))[];
|
9480
|
+
tags?: (Object | Link | URL)[];
|
9481
|
+
updated?: dntShim.Temporal.Instant | null;
|
9482
|
+
url?: URL | Link | null;
|
9483
|
+
urls?: ((URL | Link))[];
|
9484
|
+
to?: Object | URL | null;
|
9485
|
+
tos?: (Object | URL)[];
|
9486
|
+
bto?: Object | URL | null;
|
9487
|
+
btos?: (Object | URL)[];
|
9488
|
+
cc?: Object | URL | null;
|
9489
|
+
ccs?: (Object | URL)[];
|
9490
|
+
bcc?: Object | URL | null;
|
9491
|
+
bccs?: (Object | URL)[];
|
9492
|
+
mediaType?: string | null;
|
9493
|
+
duration?: dntShim.Temporal.Duration | null;
|
9494
|
+
sensitive?: boolean | null;
|
9495
|
+
proof?: DataIntegrityProof | URL | null;
|
9496
|
+
proofs?: (DataIntegrityProof | URL)[];
|
9497
|
+
subject?: Object | URL | null;
|
9498
|
+
object?: Object | URL | null;
|
9499
|
+
objects?: (Object | URL)[];
|
9500
|
+
relationship?: Object | URL | null;
|
9501
|
+
relationships?: (Object | URL)[];
|
9502
|
+
}, { documentLoader, contextLoader, }?: {
|
9503
|
+
documentLoader?: DocumentLoader;
|
9504
|
+
contextLoader?: DocumentLoader;
|
9505
|
+
});
|
9506
|
+
/**
|
9507
|
+
* Clones this instance, optionally updating it with the given values.
|
9508
|
+
* @param values The values to update the clone with.
|
9509
|
+
* @options The options to use for cloning.
|
9510
|
+
* @returns The cloned instance.
|
9511
|
+
*/
|
9512
|
+
clone(values?: {
|
9513
|
+
id?: URL | null;
|
9514
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
9515
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
9516
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
9517
|
+
audience?: Object | URL | null;
|
9518
|
+
audiences?: (Object | URL)[];
|
9519
|
+
content?: string | LanguageString | null;
|
9520
|
+
contents?: ((string | LanguageString))[];
|
9521
|
+
contexts?: (Object | Link | URL)[];
|
9522
|
+
name?: string | LanguageString | null;
|
9523
|
+
names?: ((string | LanguageString))[];
|
9524
|
+
endTime?: dntShim.Temporal.Instant | null;
|
9525
|
+
generators?: (Object | Link | URL)[];
|
9526
|
+
icon?: Image | URL | null;
|
9527
|
+
icons?: (Image | URL)[];
|
9528
|
+
image?: Image | URL | null;
|
9529
|
+
images?: (Image | URL)[];
|
9530
|
+
replyTarget?: Object | Link | URL | null;
|
9531
|
+
replyTargets?: (Object | Link | URL)[];
|
9532
|
+
location?: Object | Link | URL | null;
|
9533
|
+
locations?: (Object | Link | URL)[];
|
9534
|
+
preview?: Link | Object | URL | null;
|
9535
|
+
previews?: (Link | Object | URL)[];
|
9536
|
+
published?: dntShim.Temporal.Instant | null;
|
9537
|
+
replies?: Collection | URL | null;
|
9538
|
+
startTime?: dntShim.Temporal.Instant | null;
|
9539
|
+
summary?: string | LanguageString | null;
|
9540
|
+
summaries?: ((string | LanguageString))[];
|
9541
|
+
tags?: (Object | Link | URL)[];
|
9542
|
+
updated?: dntShim.Temporal.Instant | null;
|
9543
|
+
url?: URL | Link | null;
|
9544
|
+
urls?: ((URL | Link))[];
|
9545
|
+
to?: Object | URL | null;
|
9546
|
+
tos?: (Object | URL)[];
|
9547
|
+
bto?: Object | URL | null;
|
9548
|
+
btos?: (Object | URL)[];
|
9549
|
+
cc?: Object | URL | null;
|
9550
|
+
ccs?: (Object | URL)[];
|
9551
|
+
bcc?: Object | URL | null;
|
9552
|
+
bccs?: (Object | URL)[];
|
9553
|
+
mediaType?: string | null;
|
9554
|
+
duration?: dntShim.Temporal.Duration | null;
|
9555
|
+
sensitive?: boolean | null;
|
9556
|
+
proof?: DataIntegrityProof | URL | null;
|
9557
|
+
proofs?: (DataIntegrityProof | URL)[];
|
9558
|
+
subject?: Object | URL | null;
|
9559
|
+
object?: Object | URL | null;
|
9560
|
+
objects?: (Object | URL)[];
|
9561
|
+
relationship?: Object | URL | null;
|
9562
|
+
relationships?: (Object | URL)[];
|
9563
|
+
}, options?: {
|
9564
|
+
documentLoader?: DocumentLoader;
|
9565
|
+
contextLoader?: DocumentLoader;
|
9566
|
+
}): Relationship;
|
9567
|
+
/**
|
9568
|
+
* Similar to
|
9569
|
+
* {@link Relationship.getSubject},
|
9570
|
+
* but returns its `@id` URL instead of the object itself.
|
9571
|
+
*/
|
9572
|
+
get subjectId(): URL | null;
|
9573
|
+
/** On a {@link Relationship} object, the {@link Relationship.subject} property
|
9574
|
+
* identifies one of the connected individuals. For instance,
|
9575
|
+
* for a {@link Relationship} object describing "John is related to Sally",
|
9576
|
+
* the {@link Relationship.subject} property would refer to John.
|
9577
|
+
*/
|
9578
|
+
getSubject(options?: {
|
9579
|
+
documentLoader?: DocumentLoader;
|
9580
|
+
contextLoader?: DocumentLoader;
|
9581
|
+
suppressError?: boolean;
|
9582
|
+
}): Promise<Object | null>;
|
9583
|
+
/**
|
9584
|
+
* Similar to
|
9585
|
+
* {@link Relationship.getObject},
|
9586
|
+
* but returns its `@id` URL instead of the object itself.
|
9587
|
+
*/
|
9588
|
+
get objectId(): URL | null;
|
9589
|
+
/** Describes the entity to which the {@link Relationship.subject} is related.
|
9590
|
+
*/
|
9591
|
+
getObject(options?: {
|
9592
|
+
documentLoader?: DocumentLoader;
|
9593
|
+
contextLoader?: DocumentLoader;
|
9594
|
+
suppressError?: boolean;
|
9595
|
+
}): Promise<Object | null>;
|
9596
|
+
/**
|
9597
|
+
* Similar to
|
9598
|
+
* {@link Relationship.getObjects},
|
9271
9599
|
* but returns their `@id`s instead of the objects themselves.
|
9272
9600
|
*/
|
9273
9601
|
get objectIds(): URL[];
|
@@ -9916,18 +10244,16 @@ export declare class Service extends Object {
|
|
9916
10244
|
}): Promise<Service>;
|
9917
10245
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
9918
10246
|
}
|
9919
|
-
/** A
|
9920
|
-
*
|
9921
|
-
* an object at this position, but it has been deleted.
|
10247
|
+
/** A specialization of {@link Accept} indicating that
|
10248
|
+
* the acceptance is tentative.
|
9922
10249
|
*/
|
9923
|
-
export declare class
|
9924
|
-
#private;
|
10250
|
+
export declare class TentativeAccept extends Accept {
|
9925
10251
|
/**
|
9926
|
-
* The type URI of {@link
|
10252
|
+
* The type URI of {@link TentativeAccept}: `https://www.w3.org/ns/activitystreams#TentativeAccept`.
|
9927
10253
|
*/
|
9928
10254
|
static get typeId(): URL;
|
9929
10255
|
/**
|
9930
|
-
* Constructs a new instance of
|
10256
|
+
* Constructs a new instance of TentativeAccept with the given values.
|
9931
10257
|
* @param values The values to initialize the instance with.
|
9932
10258
|
* @param options The options to use for initialization.
|
9933
10259
|
*/
|
@@ -9977,7 +10303,18 @@ export declare class Tombstone extends Object {
|
|
9977
10303
|
sensitive?: boolean | null;
|
9978
10304
|
proof?: DataIntegrityProof | URL | null;
|
9979
10305
|
proofs?: (DataIntegrityProof | URL)[];
|
9980
|
-
|
10306
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
10307
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10308
|
+
object?: Object | URL | null;
|
10309
|
+
objects?: (Object | URL)[];
|
10310
|
+
target?: Object | URL | null;
|
10311
|
+
targets?: (Object | URL)[];
|
10312
|
+
result?: Object | URL | null;
|
10313
|
+
results?: (Object | URL)[];
|
10314
|
+
origin?: Object | URL | null;
|
10315
|
+
origins?: (Object | URL)[];
|
10316
|
+
instrument?: Object | URL | null;
|
10317
|
+
instruments?: (Object | URL)[];
|
9981
10318
|
}, { documentLoader, contextLoader, }?: {
|
9982
10319
|
documentLoader?: DocumentLoader;
|
9983
10320
|
contextLoader?: DocumentLoader;
|
@@ -10034,15 +10371,22 @@ export declare class Tombstone extends Object {
|
|
10034
10371
|
sensitive?: boolean | null;
|
10035
10372
|
proof?: DataIntegrityProof | URL | null;
|
10036
10373
|
proofs?: (DataIntegrityProof | URL)[];
|
10037
|
-
|
10374
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
10375
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10376
|
+
object?: Object | URL | null;
|
10377
|
+
objects?: (Object | URL)[];
|
10378
|
+
target?: Object | URL | null;
|
10379
|
+
targets?: (Object | URL)[];
|
10380
|
+
result?: Object | URL | null;
|
10381
|
+
results?: (Object | URL)[];
|
10382
|
+
origin?: Object | URL | null;
|
10383
|
+
origins?: (Object | URL)[];
|
10384
|
+
instrument?: Object | URL | null;
|
10385
|
+
instruments?: (Object | URL)[];
|
10038
10386
|
}, options?: {
|
10039
10387
|
documentLoader?: DocumentLoader;
|
10040
10388
|
contextLoader?: DocumentLoader;
|
10041
|
-
}):
|
10042
|
-
/** On a `Tombstone` object, the `deleted` property is a timestamp for when
|
10043
|
-
* the object was deleted.
|
10044
|
-
*/
|
10045
|
-
get deleted(): dntShim.Temporal.Instant | null;
|
10389
|
+
}): TentativeAccept;
|
10046
10390
|
/**
|
10047
10391
|
* Converts this object to a JSON-LD structure.
|
10048
10392
|
* @returns The JSON-LD representation of this object.
|
@@ -10061,24 +10405,19 @@ export declare class Tombstone extends Object {
|
|
10061
10405
|
static fromJsonLd(json: unknown, options?: {
|
10062
10406
|
documentLoader?: DocumentLoader;
|
10063
10407
|
contextLoader?: DocumentLoader;
|
10064
|
-
}): Promise<
|
10408
|
+
}): Promise<TentativeAccept>;
|
10065
10409
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10066
10410
|
}
|
10067
|
-
/**
|
10068
|
-
* the
|
10069
|
-
* action (for instance, a person may have previously "liked" an article but,
|
10070
|
-
* for whatever reason, might choose to undo that like at some later point in
|
10071
|
-
* time).
|
10072
|
-
*
|
10073
|
-
* The `target` and `origin` typically have no defined meaning.
|
10411
|
+
/** A specialization of {@link Reject} in which
|
10412
|
+
* the rejection is considered tentative.
|
10074
10413
|
*/
|
10075
|
-
export declare class
|
10414
|
+
export declare class TentativeReject extends Reject {
|
10076
10415
|
/**
|
10077
|
-
* The type URI of {@link
|
10416
|
+
* The type URI of {@link TentativeReject}: `https://www.w3.org/ns/activitystreams#TentativeReject`.
|
10078
10417
|
*/
|
10079
10418
|
static get typeId(): URL;
|
10080
10419
|
/**
|
10081
|
-
* Constructs a new instance of
|
10420
|
+
* Constructs a new instance of TentativeReject with the given values.
|
10082
10421
|
* @param values The values to initialize the instance with.
|
10083
10422
|
* @param options The options to use for initialization.
|
10084
10423
|
*/
|
@@ -10211,7 +10550,7 @@ export declare class Undo extends Activity {
|
|
10211
10550
|
}, options?: {
|
10212
10551
|
documentLoader?: DocumentLoader;
|
10213
10552
|
contextLoader?: DocumentLoader;
|
10214
|
-
}):
|
10553
|
+
}): TentativeReject;
|
10215
10554
|
/**
|
10216
10555
|
* Converts this object to a JSON-LD structure.
|
10217
10556
|
* @returns The JSON-LD representation of this object.
|
@@ -10230,22 +10569,21 @@ export declare class Undo extends Activity {
|
|
10230
10569
|
static fromJsonLd(json: unknown, options?: {
|
10231
10570
|
documentLoader?: DocumentLoader;
|
10232
10571
|
contextLoader?: DocumentLoader;
|
10233
|
-
}): Promise<
|
10572
|
+
}): Promise<TentativeReject>;
|
10234
10573
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10235
10574
|
}
|
10236
|
-
/**
|
10237
|
-
*
|
10238
|
-
*
|
10239
|
-
*
|
10240
|
-
* The `target` and `origin` typically have no defined meaning.
|
10575
|
+
/** A `Tombstone` represents a content object that has been deleted.
|
10576
|
+
* It can be used in {@link Collection}s to signify that there used to be
|
10577
|
+
* an object at this position, but it has been deleted.
|
10241
10578
|
*/
|
10242
|
-
export declare class
|
10579
|
+
export declare class Tombstone extends Object {
|
10580
|
+
#private;
|
10243
10581
|
/**
|
10244
|
-
* The type URI of {@link
|
10582
|
+
* The type URI of {@link Tombstone}: `https://www.w3.org/ns/activitystreams#Tombstone`.
|
10245
10583
|
*/
|
10246
10584
|
static get typeId(): URL;
|
10247
10585
|
/**
|
10248
|
-
* Constructs a new instance of
|
10586
|
+
* Constructs a new instance of Tombstone with the given values.
|
10249
10587
|
* @param values The values to initialize the instance with.
|
10250
10588
|
* @param options The options to use for initialization.
|
10251
10589
|
*/
|
@@ -10295,18 +10633,7 @@ export declare class Update extends Activity {
|
|
10295
10633
|
sensitive?: boolean | null;
|
10296
10634
|
proof?: DataIntegrityProof | URL | null;
|
10297
10635
|
proofs?: (DataIntegrityProof | URL)[];
|
10298
|
-
|
10299
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10300
|
-
object?: Object | URL | null;
|
10301
|
-
objects?: (Object | URL)[];
|
10302
|
-
target?: Object | URL | null;
|
10303
|
-
targets?: (Object | URL)[];
|
10304
|
-
result?: Object | URL | null;
|
10305
|
-
results?: (Object | URL)[];
|
10306
|
-
origin?: Object | URL | null;
|
10307
|
-
origins?: (Object | URL)[];
|
10308
|
-
instrument?: Object | URL | null;
|
10309
|
-
instruments?: (Object | URL)[];
|
10636
|
+
deleted?: dntShim.Temporal.Instant | null;
|
10310
10637
|
}, { documentLoader, contextLoader, }?: {
|
10311
10638
|
documentLoader?: DocumentLoader;
|
10312
10639
|
contextLoader?: DocumentLoader;
|
@@ -10363,22 +10690,15 @@ export declare class Update extends Activity {
|
|
10363
10690
|
sensitive?: boolean | null;
|
10364
10691
|
proof?: DataIntegrityProof | URL | null;
|
10365
10692
|
proofs?: (DataIntegrityProof | URL)[];
|
10366
|
-
|
10367
|
-
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10368
|
-
object?: Object | URL | null;
|
10369
|
-
objects?: (Object | URL)[];
|
10370
|
-
target?: Object | URL | null;
|
10371
|
-
targets?: (Object | URL)[];
|
10372
|
-
result?: Object | URL | null;
|
10373
|
-
results?: (Object | URL)[];
|
10374
|
-
origin?: Object | URL | null;
|
10375
|
-
origins?: (Object | URL)[];
|
10376
|
-
instrument?: Object | URL | null;
|
10377
|
-
instruments?: (Object | URL)[];
|
10693
|
+
deleted?: dntShim.Temporal.Instant | null;
|
10378
10694
|
}, options?: {
|
10379
10695
|
documentLoader?: DocumentLoader;
|
10380
10696
|
contextLoader?: DocumentLoader;
|
10381
|
-
}):
|
10697
|
+
}): Tombstone;
|
10698
|
+
/** On a `Tombstone` object, the `deleted` property is a timestamp for when
|
10699
|
+
* the object was deleted.
|
10700
|
+
*/
|
10701
|
+
get deleted(): dntShim.Temporal.Instant | null;
|
10382
10702
|
/**
|
10383
10703
|
* Converts this object to a JSON-LD structure.
|
10384
10704
|
* @returns The JSON-LD representation of this object.
|
@@ -10397,7 +10717,509 @@ export declare class Update extends Activity {
|
|
10397
10717
|
static fromJsonLd(json: unknown, options?: {
|
10398
10718
|
documentLoader?: DocumentLoader;
|
10399
10719
|
contextLoader?: DocumentLoader;
|
10400
|
-
}): Promise<
|
10720
|
+
}): Promise<Tombstone>;
|
10721
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10722
|
+
}
|
10723
|
+
/** Indicates that the `actor` is traveling to `target` from `origin`.
|
10724
|
+
* `Travel` is an `IntransitiveObject` whose `actor` specifies the direct object.
|
10725
|
+
* If the `target` or `origin` are not specified,
|
10726
|
+
* either can be determined by context.
|
10727
|
+
*/
|
10728
|
+
export declare class Travel extends IntransitiveActivity {
|
10729
|
+
/**
|
10730
|
+
* The type URI of {@link Travel}: `https://www.w3.org/ns/activitystreams#Travel`.
|
10731
|
+
*/
|
10732
|
+
static get typeId(): URL;
|
10733
|
+
/**
|
10734
|
+
* Constructs a new instance of Travel with the given values.
|
10735
|
+
* @param values The values to initialize the instance with.
|
10736
|
+
* @param options The options to use for initialization.
|
10737
|
+
*/
|
10738
|
+
constructor(values: {
|
10739
|
+
id?: URL | null;
|
10740
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
10741
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
10742
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
10743
|
+
audience?: Object | URL | null;
|
10744
|
+
audiences?: (Object | URL)[];
|
10745
|
+
content?: string | LanguageString | null;
|
10746
|
+
contents?: ((string | LanguageString))[];
|
10747
|
+
contexts?: (Object | Link | URL)[];
|
10748
|
+
name?: string | LanguageString | null;
|
10749
|
+
names?: ((string | LanguageString))[];
|
10750
|
+
endTime?: dntShim.Temporal.Instant | null;
|
10751
|
+
generators?: (Object | Link | URL)[];
|
10752
|
+
icon?: Image | URL | null;
|
10753
|
+
icons?: (Image | URL)[];
|
10754
|
+
image?: Image | URL | null;
|
10755
|
+
images?: (Image | URL)[];
|
10756
|
+
replyTarget?: Object | Link | URL | null;
|
10757
|
+
replyTargets?: (Object | Link | URL)[];
|
10758
|
+
location?: Object | Link | URL | null;
|
10759
|
+
locations?: (Object | Link | URL)[];
|
10760
|
+
preview?: Link | Object | URL | null;
|
10761
|
+
previews?: (Link | Object | URL)[];
|
10762
|
+
published?: dntShim.Temporal.Instant | null;
|
10763
|
+
replies?: Collection | URL | null;
|
10764
|
+
startTime?: dntShim.Temporal.Instant | null;
|
10765
|
+
summary?: string | LanguageString | null;
|
10766
|
+
summaries?: ((string | LanguageString))[];
|
10767
|
+
tags?: (Object | Link | URL)[];
|
10768
|
+
updated?: dntShim.Temporal.Instant | null;
|
10769
|
+
url?: URL | Link | null;
|
10770
|
+
urls?: ((URL | Link))[];
|
10771
|
+
to?: Object | URL | null;
|
10772
|
+
tos?: (Object | URL)[];
|
10773
|
+
bto?: Object | URL | null;
|
10774
|
+
btos?: (Object | URL)[];
|
10775
|
+
cc?: Object | URL | null;
|
10776
|
+
ccs?: (Object | URL)[];
|
10777
|
+
bcc?: Object | URL | null;
|
10778
|
+
bccs?: (Object | URL)[];
|
10779
|
+
mediaType?: string | null;
|
10780
|
+
duration?: dntShim.Temporal.Duration | null;
|
10781
|
+
sensitive?: boolean | null;
|
10782
|
+
proof?: DataIntegrityProof | URL | null;
|
10783
|
+
proofs?: (DataIntegrityProof | URL)[];
|
10784
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
10785
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10786
|
+
object?: Object | URL | null;
|
10787
|
+
objects?: (Object | URL)[];
|
10788
|
+
target?: Object | URL | null;
|
10789
|
+
targets?: (Object | URL)[];
|
10790
|
+
result?: Object | URL | null;
|
10791
|
+
results?: (Object | URL)[];
|
10792
|
+
origin?: Object | URL | null;
|
10793
|
+
origins?: (Object | URL)[];
|
10794
|
+
instrument?: Object | URL | null;
|
10795
|
+
instruments?: (Object | URL)[];
|
10796
|
+
}, { documentLoader, contextLoader, }?: {
|
10797
|
+
documentLoader?: DocumentLoader;
|
10798
|
+
contextLoader?: DocumentLoader;
|
10799
|
+
});
|
10800
|
+
/**
|
10801
|
+
* Clones this instance, optionally updating it with the given values.
|
10802
|
+
* @param values The values to update the clone with.
|
10803
|
+
* @options The options to use for cloning.
|
10804
|
+
* @returns The cloned instance.
|
10805
|
+
*/
|
10806
|
+
clone(values?: {
|
10807
|
+
id?: URL | null;
|
10808
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
10809
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
10810
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
10811
|
+
audience?: Object | URL | null;
|
10812
|
+
audiences?: (Object | URL)[];
|
10813
|
+
content?: string | LanguageString | null;
|
10814
|
+
contents?: ((string | LanguageString))[];
|
10815
|
+
contexts?: (Object | Link | URL)[];
|
10816
|
+
name?: string | LanguageString | null;
|
10817
|
+
names?: ((string | LanguageString))[];
|
10818
|
+
endTime?: dntShim.Temporal.Instant | null;
|
10819
|
+
generators?: (Object | Link | URL)[];
|
10820
|
+
icon?: Image | URL | null;
|
10821
|
+
icons?: (Image | URL)[];
|
10822
|
+
image?: Image | URL | null;
|
10823
|
+
images?: (Image | URL)[];
|
10824
|
+
replyTarget?: Object | Link | URL | null;
|
10825
|
+
replyTargets?: (Object | Link | URL)[];
|
10826
|
+
location?: Object | Link | URL | null;
|
10827
|
+
locations?: (Object | Link | URL)[];
|
10828
|
+
preview?: Link | Object | URL | null;
|
10829
|
+
previews?: (Link | Object | URL)[];
|
10830
|
+
published?: dntShim.Temporal.Instant | null;
|
10831
|
+
replies?: Collection | URL | null;
|
10832
|
+
startTime?: dntShim.Temporal.Instant | null;
|
10833
|
+
summary?: string | LanguageString | null;
|
10834
|
+
summaries?: ((string | LanguageString))[];
|
10835
|
+
tags?: (Object | Link | URL)[];
|
10836
|
+
updated?: dntShim.Temporal.Instant | null;
|
10837
|
+
url?: URL | Link | null;
|
10838
|
+
urls?: ((URL | Link))[];
|
10839
|
+
to?: Object | URL | null;
|
10840
|
+
tos?: (Object | URL)[];
|
10841
|
+
bto?: Object | URL | null;
|
10842
|
+
btos?: (Object | URL)[];
|
10843
|
+
cc?: Object | URL | null;
|
10844
|
+
ccs?: (Object | URL)[];
|
10845
|
+
bcc?: Object | URL | null;
|
10846
|
+
bccs?: (Object | URL)[];
|
10847
|
+
mediaType?: string | null;
|
10848
|
+
duration?: dntShim.Temporal.Duration | null;
|
10849
|
+
sensitive?: boolean | null;
|
10850
|
+
proof?: DataIntegrityProof | URL | null;
|
10851
|
+
proofs?: (DataIntegrityProof | URL)[];
|
10852
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
10853
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10854
|
+
object?: Object | URL | null;
|
10855
|
+
objects?: (Object | URL)[];
|
10856
|
+
target?: Object | URL | null;
|
10857
|
+
targets?: (Object | URL)[];
|
10858
|
+
result?: Object | URL | null;
|
10859
|
+
results?: (Object | URL)[];
|
10860
|
+
origin?: Object | URL | null;
|
10861
|
+
origins?: (Object | URL)[];
|
10862
|
+
instrument?: Object | URL | null;
|
10863
|
+
instruments?: (Object | URL)[];
|
10864
|
+
}, options?: {
|
10865
|
+
documentLoader?: DocumentLoader;
|
10866
|
+
contextLoader?: DocumentLoader;
|
10867
|
+
}): Travel;
|
10868
|
+
/**
|
10869
|
+
* Converts this object to a JSON-LD structure.
|
10870
|
+
* @returns The JSON-LD representation of this object.
|
10871
|
+
*/
|
10872
|
+
toJsonLd(options?: {
|
10873
|
+
expand?: boolean;
|
10874
|
+
contextLoader?: DocumentLoader;
|
10875
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
10876
|
+
}): Promise<unknown>;
|
10877
|
+
/**
|
10878
|
+
* Converts a JSON-LD structure to an object of this type.
|
10879
|
+
* @param json The JSON-LD structure to convert.
|
10880
|
+
* @returns The object of this type.
|
10881
|
+
* @throws {TypeError} If the given `json` is invalid.
|
10882
|
+
*/
|
10883
|
+
static fromJsonLd(json: unknown, options?: {
|
10884
|
+
documentLoader?: DocumentLoader;
|
10885
|
+
contextLoader?: DocumentLoader;
|
10886
|
+
}): Promise<Travel>;
|
10887
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10888
|
+
}
|
10889
|
+
/** Indicates that the `actor` is undoing the `object`. In most cases,
|
10890
|
+
* the `object` will be an {@link Activity} describing some previously performed
|
10891
|
+
* action (for instance, a person may have previously "liked" an article but,
|
10892
|
+
* for whatever reason, might choose to undo that like at some later point in
|
10893
|
+
* time).
|
10894
|
+
*
|
10895
|
+
* The `target` and `origin` typically have no defined meaning.
|
10896
|
+
*/
|
10897
|
+
export declare class Undo extends Activity {
|
10898
|
+
/**
|
10899
|
+
* The type URI of {@link Undo}: `https://www.w3.org/ns/activitystreams#Undo`.
|
10900
|
+
*/
|
10901
|
+
static get typeId(): URL;
|
10902
|
+
/**
|
10903
|
+
* Constructs a new instance of Undo with the given values.
|
10904
|
+
* @param values The values to initialize the instance with.
|
10905
|
+
* @param options The options to use for initialization.
|
10906
|
+
*/
|
10907
|
+
constructor(values: {
|
10908
|
+
id?: URL | null;
|
10909
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
10910
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
10911
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
10912
|
+
audience?: Object | URL | null;
|
10913
|
+
audiences?: (Object | URL)[];
|
10914
|
+
content?: string | LanguageString | null;
|
10915
|
+
contents?: ((string | LanguageString))[];
|
10916
|
+
contexts?: (Object | Link | URL)[];
|
10917
|
+
name?: string | LanguageString | null;
|
10918
|
+
names?: ((string | LanguageString))[];
|
10919
|
+
endTime?: dntShim.Temporal.Instant | null;
|
10920
|
+
generators?: (Object | Link | URL)[];
|
10921
|
+
icon?: Image | URL | null;
|
10922
|
+
icons?: (Image | URL)[];
|
10923
|
+
image?: Image | URL | null;
|
10924
|
+
images?: (Image | URL)[];
|
10925
|
+
replyTarget?: Object | Link | URL | null;
|
10926
|
+
replyTargets?: (Object | Link | URL)[];
|
10927
|
+
location?: Object | Link | URL | null;
|
10928
|
+
locations?: (Object | Link | URL)[];
|
10929
|
+
preview?: Link | Object | URL | null;
|
10930
|
+
previews?: (Link | Object | URL)[];
|
10931
|
+
published?: dntShim.Temporal.Instant | null;
|
10932
|
+
replies?: Collection | URL | null;
|
10933
|
+
startTime?: dntShim.Temporal.Instant | null;
|
10934
|
+
summary?: string | LanguageString | null;
|
10935
|
+
summaries?: ((string | LanguageString))[];
|
10936
|
+
tags?: (Object | Link | URL)[];
|
10937
|
+
updated?: dntShim.Temporal.Instant | null;
|
10938
|
+
url?: URL | Link | null;
|
10939
|
+
urls?: ((URL | Link))[];
|
10940
|
+
to?: Object | URL | null;
|
10941
|
+
tos?: (Object | URL)[];
|
10942
|
+
bto?: Object | URL | null;
|
10943
|
+
btos?: (Object | URL)[];
|
10944
|
+
cc?: Object | URL | null;
|
10945
|
+
ccs?: (Object | URL)[];
|
10946
|
+
bcc?: Object | URL | null;
|
10947
|
+
bccs?: (Object | URL)[];
|
10948
|
+
mediaType?: string | null;
|
10949
|
+
duration?: dntShim.Temporal.Duration | null;
|
10950
|
+
sensitive?: boolean | null;
|
10951
|
+
proof?: DataIntegrityProof | URL | null;
|
10952
|
+
proofs?: (DataIntegrityProof | URL)[];
|
10953
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
10954
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
10955
|
+
object?: Object | URL | null;
|
10956
|
+
objects?: (Object | URL)[];
|
10957
|
+
target?: Object | URL | null;
|
10958
|
+
targets?: (Object | URL)[];
|
10959
|
+
result?: Object | URL | null;
|
10960
|
+
results?: (Object | URL)[];
|
10961
|
+
origin?: Object | URL | null;
|
10962
|
+
origins?: (Object | URL)[];
|
10963
|
+
instrument?: Object | URL | null;
|
10964
|
+
instruments?: (Object | URL)[];
|
10965
|
+
}, { documentLoader, contextLoader, }?: {
|
10966
|
+
documentLoader?: DocumentLoader;
|
10967
|
+
contextLoader?: DocumentLoader;
|
10968
|
+
});
|
10969
|
+
/**
|
10970
|
+
* Clones this instance, optionally updating it with the given values.
|
10971
|
+
* @param values The values to update the clone with.
|
10972
|
+
* @options The options to use for cloning.
|
10973
|
+
* @returns The cloned instance.
|
10974
|
+
*/
|
10975
|
+
clone(values?: {
|
10976
|
+
id?: URL | null;
|
10977
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
10978
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
10979
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
10980
|
+
audience?: Object | URL | null;
|
10981
|
+
audiences?: (Object | URL)[];
|
10982
|
+
content?: string | LanguageString | null;
|
10983
|
+
contents?: ((string | LanguageString))[];
|
10984
|
+
contexts?: (Object | Link | URL)[];
|
10985
|
+
name?: string | LanguageString | null;
|
10986
|
+
names?: ((string | LanguageString))[];
|
10987
|
+
endTime?: dntShim.Temporal.Instant | null;
|
10988
|
+
generators?: (Object | Link | URL)[];
|
10989
|
+
icon?: Image | URL | null;
|
10990
|
+
icons?: (Image | URL)[];
|
10991
|
+
image?: Image | URL | null;
|
10992
|
+
images?: (Image | URL)[];
|
10993
|
+
replyTarget?: Object | Link | URL | null;
|
10994
|
+
replyTargets?: (Object | Link | URL)[];
|
10995
|
+
location?: Object | Link | URL | null;
|
10996
|
+
locations?: (Object | Link | URL)[];
|
10997
|
+
preview?: Link | Object | URL | null;
|
10998
|
+
previews?: (Link | Object | URL)[];
|
10999
|
+
published?: dntShim.Temporal.Instant | null;
|
11000
|
+
replies?: Collection | URL | null;
|
11001
|
+
startTime?: dntShim.Temporal.Instant | null;
|
11002
|
+
summary?: string | LanguageString | null;
|
11003
|
+
summaries?: ((string | LanguageString))[];
|
11004
|
+
tags?: (Object | Link | URL)[];
|
11005
|
+
updated?: dntShim.Temporal.Instant | null;
|
11006
|
+
url?: URL | Link | null;
|
11007
|
+
urls?: ((URL | Link))[];
|
11008
|
+
to?: Object | URL | null;
|
11009
|
+
tos?: (Object | URL)[];
|
11010
|
+
bto?: Object | URL | null;
|
11011
|
+
btos?: (Object | URL)[];
|
11012
|
+
cc?: Object | URL | null;
|
11013
|
+
ccs?: (Object | URL)[];
|
11014
|
+
bcc?: Object | URL | null;
|
11015
|
+
bccs?: (Object | URL)[];
|
11016
|
+
mediaType?: string | null;
|
11017
|
+
duration?: dntShim.Temporal.Duration | null;
|
11018
|
+
sensitive?: boolean | null;
|
11019
|
+
proof?: DataIntegrityProof | URL | null;
|
11020
|
+
proofs?: (DataIntegrityProof | URL)[];
|
11021
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
11022
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
11023
|
+
object?: Object | URL | null;
|
11024
|
+
objects?: (Object | URL)[];
|
11025
|
+
target?: Object | URL | null;
|
11026
|
+
targets?: (Object | URL)[];
|
11027
|
+
result?: Object | URL | null;
|
11028
|
+
results?: (Object | URL)[];
|
11029
|
+
origin?: Object | URL | null;
|
11030
|
+
origins?: (Object | URL)[];
|
11031
|
+
instrument?: Object | URL | null;
|
11032
|
+
instruments?: (Object | URL)[];
|
11033
|
+
}, options?: {
|
11034
|
+
documentLoader?: DocumentLoader;
|
11035
|
+
contextLoader?: DocumentLoader;
|
11036
|
+
}): Undo;
|
11037
|
+
/**
|
11038
|
+
* Converts this object to a JSON-LD structure.
|
11039
|
+
* @returns The JSON-LD representation of this object.
|
11040
|
+
*/
|
11041
|
+
toJsonLd(options?: {
|
11042
|
+
expand?: boolean;
|
11043
|
+
contextLoader?: DocumentLoader;
|
11044
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
11045
|
+
}): Promise<unknown>;
|
11046
|
+
/**
|
11047
|
+
* Converts a JSON-LD structure to an object of this type.
|
11048
|
+
* @param json The JSON-LD structure to convert.
|
11049
|
+
* @returns The object of this type.
|
11050
|
+
* @throws {TypeError} If the given `json` is invalid.
|
11051
|
+
*/
|
11052
|
+
static fromJsonLd(json: unknown, options?: {
|
11053
|
+
documentLoader?: DocumentLoader;
|
11054
|
+
contextLoader?: DocumentLoader;
|
11055
|
+
}): Promise<Undo>;
|
11056
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
11057
|
+
}
|
11058
|
+
/** Indicates that the `actor` has updated the `object`. Note, however,
|
11059
|
+
* that this vocabulary does not define a mechanism for describing the actual
|
11060
|
+
* set of modifications made to `object`.
|
11061
|
+
*
|
11062
|
+
* The `target` and `origin` typically have no defined meaning.
|
11063
|
+
*/
|
11064
|
+
export declare class Update extends Activity {
|
11065
|
+
/**
|
11066
|
+
* The type URI of {@link Update}: `https://www.w3.org/ns/activitystreams#Update`.
|
11067
|
+
*/
|
11068
|
+
static get typeId(): URL;
|
11069
|
+
/**
|
11070
|
+
* Constructs a new instance of Update with the given values.
|
11071
|
+
* @param values The values to initialize the instance with.
|
11072
|
+
* @param options The options to use for initialization.
|
11073
|
+
*/
|
11074
|
+
constructor(values: {
|
11075
|
+
id?: URL | null;
|
11076
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
11077
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
11078
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
11079
|
+
audience?: Object | URL | null;
|
11080
|
+
audiences?: (Object | URL)[];
|
11081
|
+
content?: string | LanguageString | null;
|
11082
|
+
contents?: ((string | LanguageString))[];
|
11083
|
+
contexts?: (Object | Link | URL)[];
|
11084
|
+
name?: string | LanguageString | null;
|
11085
|
+
names?: ((string | LanguageString))[];
|
11086
|
+
endTime?: dntShim.Temporal.Instant | null;
|
11087
|
+
generators?: (Object | Link | URL)[];
|
11088
|
+
icon?: Image | URL | null;
|
11089
|
+
icons?: (Image | URL)[];
|
11090
|
+
image?: Image | URL | null;
|
11091
|
+
images?: (Image | URL)[];
|
11092
|
+
replyTarget?: Object | Link | URL | null;
|
11093
|
+
replyTargets?: (Object | Link | URL)[];
|
11094
|
+
location?: Object | Link | URL | null;
|
11095
|
+
locations?: (Object | Link | URL)[];
|
11096
|
+
preview?: Link | Object | URL | null;
|
11097
|
+
previews?: (Link | Object | URL)[];
|
11098
|
+
published?: dntShim.Temporal.Instant | null;
|
11099
|
+
replies?: Collection | URL | null;
|
11100
|
+
startTime?: dntShim.Temporal.Instant | null;
|
11101
|
+
summary?: string | LanguageString | null;
|
11102
|
+
summaries?: ((string | LanguageString))[];
|
11103
|
+
tags?: (Object | Link | URL)[];
|
11104
|
+
updated?: dntShim.Temporal.Instant | null;
|
11105
|
+
url?: URL | Link | null;
|
11106
|
+
urls?: ((URL | Link))[];
|
11107
|
+
to?: Object | URL | null;
|
11108
|
+
tos?: (Object | URL)[];
|
11109
|
+
bto?: Object | URL | null;
|
11110
|
+
btos?: (Object | URL)[];
|
11111
|
+
cc?: Object | URL | null;
|
11112
|
+
ccs?: (Object | URL)[];
|
11113
|
+
bcc?: Object | URL | null;
|
11114
|
+
bccs?: (Object | URL)[];
|
11115
|
+
mediaType?: string | null;
|
11116
|
+
duration?: dntShim.Temporal.Duration | null;
|
11117
|
+
sensitive?: boolean | null;
|
11118
|
+
proof?: DataIntegrityProof | URL | null;
|
11119
|
+
proofs?: (DataIntegrityProof | URL)[];
|
11120
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
11121
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
11122
|
+
object?: Object | URL | null;
|
11123
|
+
objects?: (Object | URL)[];
|
11124
|
+
target?: Object | URL | null;
|
11125
|
+
targets?: (Object | URL)[];
|
11126
|
+
result?: Object | URL | null;
|
11127
|
+
results?: (Object | URL)[];
|
11128
|
+
origin?: Object | URL | null;
|
11129
|
+
origins?: (Object | URL)[];
|
11130
|
+
instrument?: Object | URL | null;
|
11131
|
+
instruments?: (Object | URL)[];
|
11132
|
+
}, { documentLoader, contextLoader, }?: {
|
11133
|
+
documentLoader?: DocumentLoader;
|
11134
|
+
contextLoader?: DocumentLoader;
|
11135
|
+
});
|
11136
|
+
/**
|
11137
|
+
* Clones this instance, optionally updating it with the given values.
|
11138
|
+
* @param values The values to update the clone with.
|
11139
|
+
* @options The options to use for cloning.
|
11140
|
+
* @returns The cloned instance.
|
11141
|
+
*/
|
11142
|
+
clone(values?: {
|
11143
|
+
id?: URL | null;
|
11144
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
11145
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
11146
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
11147
|
+
audience?: Object | URL | null;
|
11148
|
+
audiences?: (Object | URL)[];
|
11149
|
+
content?: string | LanguageString | null;
|
11150
|
+
contents?: ((string | LanguageString))[];
|
11151
|
+
contexts?: (Object | Link | URL)[];
|
11152
|
+
name?: string | LanguageString | null;
|
11153
|
+
names?: ((string | LanguageString))[];
|
11154
|
+
endTime?: dntShim.Temporal.Instant | null;
|
11155
|
+
generators?: (Object | Link | URL)[];
|
11156
|
+
icon?: Image | URL | null;
|
11157
|
+
icons?: (Image | URL)[];
|
11158
|
+
image?: Image | URL | null;
|
11159
|
+
images?: (Image | URL)[];
|
11160
|
+
replyTarget?: Object | Link | URL | null;
|
11161
|
+
replyTargets?: (Object | Link | URL)[];
|
11162
|
+
location?: Object | Link | URL | null;
|
11163
|
+
locations?: (Object | Link | URL)[];
|
11164
|
+
preview?: Link | Object | URL | null;
|
11165
|
+
previews?: (Link | Object | URL)[];
|
11166
|
+
published?: dntShim.Temporal.Instant | null;
|
11167
|
+
replies?: Collection | URL | null;
|
11168
|
+
startTime?: dntShim.Temporal.Instant | null;
|
11169
|
+
summary?: string | LanguageString | null;
|
11170
|
+
summaries?: ((string | LanguageString))[];
|
11171
|
+
tags?: (Object | Link | URL)[];
|
11172
|
+
updated?: dntShim.Temporal.Instant | null;
|
11173
|
+
url?: URL | Link | null;
|
11174
|
+
urls?: ((URL | Link))[];
|
11175
|
+
to?: Object | URL | null;
|
11176
|
+
tos?: (Object | URL)[];
|
11177
|
+
bto?: Object | URL | null;
|
11178
|
+
btos?: (Object | URL)[];
|
11179
|
+
cc?: Object | URL | null;
|
11180
|
+
ccs?: (Object | URL)[];
|
11181
|
+
bcc?: Object | URL | null;
|
11182
|
+
bccs?: (Object | URL)[];
|
11183
|
+
mediaType?: string | null;
|
11184
|
+
duration?: dntShim.Temporal.Duration | null;
|
11185
|
+
sensitive?: boolean | null;
|
11186
|
+
proof?: DataIntegrityProof | URL | null;
|
11187
|
+
proofs?: (DataIntegrityProof | URL)[];
|
11188
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
11189
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
11190
|
+
object?: Object | URL | null;
|
11191
|
+
objects?: (Object | URL)[];
|
11192
|
+
target?: Object | URL | null;
|
11193
|
+
targets?: (Object | URL)[];
|
11194
|
+
result?: Object | URL | null;
|
11195
|
+
results?: (Object | URL)[];
|
11196
|
+
origin?: Object | URL | null;
|
11197
|
+
origins?: (Object | URL)[];
|
11198
|
+
instrument?: Object | URL | null;
|
11199
|
+
instruments?: (Object | URL)[];
|
11200
|
+
}, options?: {
|
11201
|
+
documentLoader?: DocumentLoader;
|
11202
|
+
contextLoader?: DocumentLoader;
|
11203
|
+
}): Update;
|
11204
|
+
/**
|
11205
|
+
* Converts this object to a JSON-LD structure.
|
11206
|
+
* @returns The JSON-LD representation of this object.
|
11207
|
+
*/
|
11208
|
+
toJsonLd(options?: {
|
11209
|
+
expand?: boolean;
|
11210
|
+
contextLoader?: DocumentLoader;
|
11211
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
11212
|
+
}): Promise<unknown>;
|
11213
|
+
/**
|
11214
|
+
* Converts a JSON-LD structure to an object of this type.
|
11215
|
+
* @param json The JSON-LD structure to convert.
|
11216
|
+
* @returns The object of this type.
|
11217
|
+
* @throws {TypeError} If the given `json` is invalid.
|
11218
|
+
*/
|
11219
|
+
static fromJsonLd(json: unknown, options?: {
|
11220
|
+
documentLoader?: DocumentLoader;
|
11221
|
+
contextLoader?: DocumentLoader;
|
11222
|
+
}): Promise<Update>;
|
10401
11223
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10402
11224
|
}
|
10403
11225
|
/** Represents a video document of any kind.
|
@@ -10543,4 +11365,167 @@ export declare class Video extends Document {
|
|
10543
11365
|
}): Promise<Video>;
|
10544
11366
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
10545
11367
|
}
|
11368
|
+
/** Indicates that the `actor` has viewed the object.
|
11369
|
+
*/
|
11370
|
+
export declare class View extends Activity {
|
11371
|
+
/**
|
11372
|
+
* The type URI of {@link View}: `https://www.w3.org/ns/activitystreams#View`.
|
11373
|
+
*/
|
11374
|
+
static get typeId(): URL;
|
11375
|
+
/**
|
11376
|
+
* Constructs a new instance of View with the given values.
|
11377
|
+
* @param values The values to initialize the instance with.
|
11378
|
+
* @param options The options to use for initialization.
|
11379
|
+
*/
|
11380
|
+
constructor(values: {
|
11381
|
+
id?: URL | null;
|
11382
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
11383
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
11384
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
11385
|
+
audience?: Object | URL | null;
|
11386
|
+
audiences?: (Object | URL)[];
|
11387
|
+
content?: string | LanguageString | null;
|
11388
|
+
contents?: ((string | LanguageString))[];
|
11389
|
+
contexts?: (Object | Link | URL)[];
|
11390
|
+
name?: string | LanguageString | null;
|
11391
|
+
names?: ((string | LanguageString))[];
|
11392
|
+
endTime?: dntShim.Temporal.Instant | null;
|
11393
|
+
generators?: (Object | Link | URL)[];
|
11394
|
+
icon?: Image | URL | null;
|
11395
|
+
icons?: (Image | URL)[];
|
11396
|
+
image?: Image | URL | null;
|
11397
|
+
images?: (Image | URL)[];
|
11398
|
+
replyTarget?: Object | Link | URL | null;
|
11399
|
+
replyTargets?: (Object | Link | URL)[];
|
11400
|
+
location?: Object | Link | URL | null;
|
11401
|
+
locations?: (Object | Link | URL)[];
|
11402
|
+
preview?: Link | Object | URL | null;
|
11403
|
+
previews?: (Link | Object | URL)[];
|
11404
|
+
published?: dntShim.Temporal.Instant | null;
|
11405
|
+
replies?: Collection | URL | null;
|
11406
|
+
startTime?: dntShim.Temporal.Instant | null;
|
11407
|
+
summary?: string | LanguageString | null;
|
11408
|
+
summaries?: ((string | LanguageString))[];
|
11409
|
+
tags?: (Object | Link | URL)[];
|
11410
|
+
updated?: dntShim.Temporal.Instant | null;
|
11411
|
+
url?: URL | Link | null;
|
11412
|
+
urls?: ((URL | Link))[];
|
11413
|
+
to?: Object | URL | null;
|
11414
|
+
tos?: (Object | URL)[];
|
11415
|
+
bto?: Object | URL | null;
|
11416
|
+
btos?: (Object | URL)[];
|
11417
|
+
cc?: Object | URL | null;
|
11418
|
+
ccs?: (Object | URL)[];
|
11419
|
+
bcc?: Object | URL | null;
|
11420
|
+
bccs?: (Object | URL)[];
|
11421
|
+
mediaType?: string | null;
|
11422
|
+
duration?: dntShim.Temporal.Duration | null;
|
11423
|
+
sensitive?: boolean | null;
|
11424
|
+
proof?: DataIntegrityProof | URL | null;
|
11425
|
+
proofs?: (DataIntegrityProof | URL)[];
|
11426
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
11427
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
11428
|
+
object?: Object | URL | null;
|
11429
|
+
objects?: (Object | URL)[];
|
11430
|
+
target?: Object | URL | null;
|
11431
|
+
targets?: (Object | URL)[];
|
11432
|
+
result?: Object | URL | null;
|
11433
|
+
results?: (Object | URL)[];
|
11434
|
+
origin?: Object | URL | null;
|
11435
|
+
origins?: (Object | URL)[];
|
11436
|
+
instrument?: Object | URL | null;
|
11437
|
+
instruments?: (Object | URL)[];
|
11438
|
+
}, { documentLoader, contextLoader, }?: {
|
11439
|
+
documentLoader?: DocumentLoader;
|
11440
|
+
contextLoader?: DocumentLoader;
|
11441
|
+
});
|
11442
|
+
/**
|
11443
|
+
* Clones this instance, optionally updating it with the given values.
|
11444
|
+
* @param values The values to update the clone with.
|
11445
|
+
* @options The options to use for cloning.
|
11446
|
+
* @returns The cloned instance.
|
11447
|
+
*/
|
11448
|
+
clone(values?: {
|
11449
|
+
id?: URL | null;
|
11450
|
+
attachments?: (Object | Link | PropertyValue | URL)[];
|
11451
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
11452
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
11453
|
+
audience?: Object | URL | null;
|
11454
|
+
audiences?: (Object | URL)[];
|
11455
|
+
content?: string | LanguageString | null;
|
11456
|
+
contents?: ((string | LanguageString))[];
|
11457
|
+
contexts?: (Object | Link | URL)[];
|
11458
|
+
name?: string | LanguageString | null;
|
11459
|
+
names?: ((string | LanguageString))[];
|
11460
|
+
endTime?: dntShim.Temporal.Instant | null;
|
11461
|
+
generators?: (Object | Link | URL)[];
|
11462
|
+
icon?: Image | URL | null;
|
11463
|
+
icons?: (Image | URL)[];
|
11464
|
+
image?: Image | URL | null;
|
11465
|
+
images?: (Image | URL)[];
|
11466
|
+
replyTarget?: Object | Link | URL | null;
|
11467
|
+
replyTargets?: (Object | Link | URL)[];
|
11468
|
+
location?: Object | Link | URL | null;
|
11469
|
+
locations?: (Object | Link | URL)[];
|
11470
|
+
preview?: Link | Object | URL | null;
|
11471
|
+
previews?: (Link | Object | URL)[];
|
11472
|
+
published?: dntShim.Temporal.Instant | null;
|
11473
|
+
replies?: Collection | URL | null;
|
11474
|
+
startTime?: dntShim.Temporal.Instant | null;
|
11475
|
+
summary?: string | LanguageString | null;
|
11476
|
+
summaries?: ((string | LanguageString))[];
|
11477
|
+
tags?: (Object | Link | URL)[];
|
11478
|
+
updated?: dntShim.Temporal.Instant | null;
|
11479
|
+
url?: URL | Link | null;
|
11480
|
+
urls?: ((URL | Link))[];
|
11481
|
+
to?: Object | URL | null;
|
11482
|
+
tos?: (Object | URL)[];
|
11483
|
+
bto?: Object | URL | null;
|
11484
|
+
btos?: (Object | URL)[];
|
11485
|
+
cc?: Object | URL | null;
|
11486
|
+
ccs?: (Object | URL)[];
|
11487
|
+
bcc?: Object | URL | null;
|
11488
|
+
bccs?: (Object | URL)[];
|
11489
|
+
mediaType?: string | null;
|
11490
|
+
duration?: dntShim.Temporal.Duration | null;
|
11491
|
+
sensitive?: boolean | null;
|
11492
|
+
proof?: DataIntegrityProof | URL | null;
|
11493
|
+
proofs?: (DataIntegrityProof | URL)[];
|
11494
|
+
actor?: Application | Group | Organization | Person | Service | URL | null;
|
11495
|
+
actors?: (Application | Group | Organization | Person | Service | URL)[];
|
11496
|
+
object?: Object | URL | null;
|
11497
|
+
objects?: (Object | URL)[];
|
11498
|
+
target?: Object | URL | null;
|
11499
|
+
targets?: (Object | URL)[];
|
11500
|
+
result?: Object | URL | null;
|
11501
|
+
results?: (Object | URL)[];
|
11502
|
+
origin?: Object | URL | null;
|
11503
|
+
origins?: (Object | URL)[];
|
11504
|
+
instrument?: Object | URL | null;
|
11505
|
+
instruments?: (Object | URL)[];
|
11506
|
+
}, options?: {
|
11507
|
+
documentLoader?: DocumentLoader;
|
11508
|
+
contextLoader?: DocumentLoader;
|
11509
|
+
}): View;
|
11510
|
+
/**
|
11511
|
+
* Converts this object to a JSON-LD structure.
|
11512
|
+
* @returns The JSON-LD representation of this object.
|
11513
|
+
*/
|
11514
|
+
toJsonLd(options?: {
|
11515
|
+
expand?: boolean;
|
11516
|
+
contextLoader?: DocumentLoader;
|
11517
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
11518
|
+
}): Promise<unknown>;
|
11519
|
+
/**
|
11520
|
+
* Converts a JSON-LD structure to an object of this type.
|
11521
|
+
* @param json The JSON-LD structure to convert.
|
11522
|
+
* @returns The object of this type.
|
11523
|
+
* @throws {TypeError} If the given `json` is invalid.
|
11524
|
+
*/
|
11525
|
+
static fromJsonLd(json: unknown, options?: {
|
11526
|
+
documentLoader?: DocumentLoader;
|
11527
|
+
contextLoader?: DocumentLoader;
|
11528
|
+
}): Promise<View>;
|
11529
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
11530
|
+
}
|
10546
11531
|
//# sourceMappingURL=vocab.d.ts.map
|