@fedify/fedify 0.9.0-dev.171 → 0.9.0-dev.173

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @fedify/fedify might be problematic. Click here for more details.

@@ -3,143 +3,6 @@ import * as dntShim from "../_dnt.shims.js";
3
3
  import { type LanguageTag } from "@phensley/language-tag";
4
4
  import { type DocumentLoader } from "../runtime/docloader.js";
5
5
  import { LanguageString } from "../runtime/langstr.js";
6
- /** A pair of property name and value.
7
- */
8
- export declare class PropertyValue {
9
- #private;
10
- readonly id: URL | null;
11
- protected get _documentLoader(): DocumentLoader | undefined;
12
- protected get _contextLoader(): DocumentLoader | undefined;
13
- /**
14
- * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
15
- */
16
- static get typeId(): URL;
17
- /**
18
- * Constructs a new instance of PropertyValue with the given values.
19
- * @param values The values to initialize the instance with.
20
- * @param options The options to use for initialization.
21
- */
22
- constructor(values: {
23
- id?: URL | null;
24
- name?: string | LanguageString | null;
25
- value?: string | LanguageString | null;
26
- }, { documentLoader, contextLoader, }?: {
27
- documentLoader?: DocumentLoader;
28
- contextLoader?: DocumentLoader;
29
- });
30
- /**
31
- * Clones this instance, optionally updating it with the given values.
32
- * @param values The values to update the clone with.
33
- * @options The options to use for cloning.
34
- * @returns The cloned instance.
35
- */
36
- clone(values?: {
37
- id?: URL | null;
38
- name?: string | LanguageString | null;
39
- value?: string | LanguageString | null;
40
- }, options?: {
41
- documentLoader?: DocumentLoader;
42
- contextLoader?: DocumentLoader;
43
- }): PropertyValue;
44
- /** The name of a property.
45
- */
46
- get name(): string | LanguageString | null;
47
- /** The value of a property.
48
- */
49
- get value(): string | LanguageString | null;
50
- /**
51
- * Converts this object to a JSON-LD structure.
52
- * @returns The JSON-LD representation of this object.
53
- */
54
- toJsonLd(options?: {
55
- expand?: boolean;
56
- contextLoader?: DocumentLoader;
57
- }): Promise<unknown>;
58
- /**
59
- * Converts a JSON-LD structure to an object of this type.
60
- * @param json The JSON-LD structure to convert.
61
- * @returns The object of this type.
62
- * @throws {TypeError} If the given `json` is invalid.
63
- */
64
- static fromJsonLd(json: unknown, options?: {
65
- documentLoader?: DocumentLoader;
66
- contextLoader?: DocumentLoader;
67
- }): Promise<PropertyValue>;
68
- protected _getCustomInspectProxy(): Record<string, unknown>;
69
- }
70
- /** A key owned by an actor.
71
- */
72
- export declare class CryptographicKey {
73
- #private;
74
- readonly id: URL | null;
75
- protected get _documentLoader(): DocumentLoader | undefined;
76
- protected get _contextLoader(): DocumentLoader | undefined;
77
- /**
78
- * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
79
- */
80
- static get typeId(): URL;
81
- /**
82
- * Constructs a new instance of CryptographicKey with the given values.
83
- * @param values The values to initialize the instance with.
84
- * @param options The options to use for initialization.
85
- */
86
- constructor(values: {
87
- id?: URL | null;
88
- owner?: Application | Group | Organization | Person | Service | URL | null;
89
- publicKey?: dntShim.CryptoKey | null;
90
- }, { documentLoader, contextLoader, }?: {
91
- documentLoader?: DocumentLoader;
92
- contextLoader?: DocumentLoader;
93
- });
94
- /**
95
- * Clones this instance, optionally updating it with the given values.
96
- * @param values The values to update the clone with.
97
- * @options The options to use for cloning.
98
- * @returns The cloned instance.
99
- */
100
- clone(values?: {
101
- id?: URL | null;
102
- owner?: Application | Group | Organization | Person | Service | URL | null;
103
- publicKey?: dntShim.CryptoKey | null;
104
- }, options?: {
105
- documentLoader?: DocumentLoader;
106
- contextLoader?: DocumentLoader;
107
- }): CryptographicKey;
108
- /**
109
- * Similar to
110
- * {@link CryptographicKey.getOwner},
111
- * but returns its `@id` URL instead of the object itself.
112
- */
113
- get ownerId(): URL | null;
114
- /** An actor who owns this key.
115
- */
116
- getOwner(options?: {
117
- documentLoader?: DocumentLoader;
118
- contextLoader?: DocumentLoader;
119
- }): Promise<Application | Group | Organization | Person | Service | null>;
120
- /** A PEM-encoded public key.
121
- */
122
- get publicKey(): dntShim.CryptoKey | null;
123
- /**
124
- * Converts this object to a JSON-LD structure.
125
- * @returns The JSON-LD representation of this object.
126
- */
127
- toJsonLd(options?: {
128
- expand?: boolean;
129
- contextLoader?: DocumentLoader;
130
- }): Promise<unknown>;
131
- /**
132
- * Converts a JSON-LD structure to an object of this type.
133
- * @param json The JSON-LD structure to convert.
134
- * @returns The object of this type.
135
- * @throws {TypeError} If the given `json` is invalid.
136
- */
137
- static fromJsonLd(json: unknown, options?: {
138
- documentLoader?: DocumentLoader;
139
- contextLoader?: DocumentLoader;
140
- }): Promise<CryptographicKey>;
141
- protected _getCustomInspectProxy(): Record<string, unknown>;
142
- }
143
6
  /** Describes an object of any kind. The Object type serves as the base type for
144
7
  * most of the other kinds of objects defined in the Activity Vocabulary,
145
8
  * including other Core types such as {@link Activity},
@@ -715,20 +578,15 @@ export declare class Object {
715
578
  }): Promise<Object>;
716
579
  protected _getCustomInspectProxy(): Record<string, unknown>;
717
580
  }
718
- /** An Activity is a subtype of {@link Object} that describes some form of action
719
- * that may happen, is currently happening, or has already happened.
720
- * The {@link Activity} type itself serves as an abstract base type for all types
721
- * of activities. It is important to note that the {@link Activity} type itself
722
- * does not carry any specific semantics about the kind of action being taken.
581
+ /** Represents a custom emoji.
723
582
  */
724
- export declare class Activity extends Object {
725
- #private;
583
+ export declare class Emoji extends Object {
726
584
  /**
727
- * The type URI of {@link Activity}: `https://www.w3.org/ns/activitystreams#Activity`.
585
+ * The type URI of {@link Emoji}: `http://joinmastodon.org/ns#Emoji`.
728
586
  */
729
587
  static get typeId(): URL;
730
588
  /**
731
- * Constructs a new instance of Activity with the given values.
589
+ * Constructs a new instance of Emoji with the given values.
732
590
  * @param values The values to initialize the instance with.
733
591
  * @param options The options to use for initialization.
734
592
  */
@@ -776,10 +634,6 @@ export declare class Activity extends Object {
776
634
  mediaType?: string | null;
777
635
  duration?: dntShim.Temporal.Duration | null;
778
636
  sensitive?: boolean | null;
779
- actor?: Application | Group | Organization | Person | Service | URL | null;
780
- actors?: (Application | Group | Organization | Person | Service | URL)[];
781
- object?: Object | URL | null;
782
- objects?: (Object | URL)[];
783
637
  }, { documentLoader, contextLoader, }?: {
784
638
  documentLoader?: DocumentLoader;
785
639
  contextLoader?: DocumentLoader;
@@ -834,70 +688,74 @@ export declare class Activity extends Object {
834
688
  mediaType?: string | null;
835
689
  duration?: dntShim.Temporal.Duration | null;
836
690
  sensitive?: boolean | null;
837
- actor?: Application | Group | Organization | Person | Service | URL | null;
838
- actors?: (Application | Group | Organization | Person | Service | URL)[];
839
- object?: Object | URL | null;
840
- objects?: (Object | URL)[];
841
691
  }, options?: {
842
692
  documentLoader?: DocumentLoader;
843
693
  contextLoader?: DocumentLoader;
844
- }): Activity;
694
+ }): Emoji;
845
695
  /**
846
- * Similar to
847
- * {@link Activity.getActor},
848
- * but returns its `@id` URL instead of the object itself.
849
- */
850
- get actorId(): URL | null;
851
- /** Describes one or more entities that either performed or are expected to
852
- * perform the activity. Any single activity can have multiple actors.
853
- * The actor MAY be specified using an indirect {@link Link}.
696
+ * Converts this object to a JSON-LD structure.
697
+ * @returns The JSON-LD representation of this object.
854
698
  */
855
- getActor(options?: {
856
- documentLoader?: DocumentLoader;
699
+ toJsonLd(options?: {
700
+ expand?: boolean;
857
701
  contextLoader?: DocumentLoader;
858
- }): Promise<Application | Group | Organization | Person | Service | null>;
702
+ }): Promise<unknown>;
859
703
  /**
860
- * Similar to
861
- * {@link Activity.getActors},
862
- * but returns their `@id`s instead of the objects themselves.
863
- */
864
- get actorIds(): URL[];
865
- /** Describes one or more entities that either performed or are expected to
866
- * perform the activity. Any single activity can have multiple actors.
867
- * The actor MAY be specified using an indirect {@link Link}.
704
+ * Converts a JSON-LD structure to an object of this type.
705
+ * @param json The JSON-LD structure to convert.
706
+ * @returns The object of this type.
707
+ * @throws {TypeError} If the given `json` is invalid.
868
708
  */
869
- getActors(options?: {
709
+ static fromJsonLd(json: unknown, options?: {
870
710
  documentLoader?: DocumentLoader;
871
711
  contextLoader?: DocumentLoader;
872
- }): AsyncIterable<Application | Group | Organization | Person | Service>;
712
+ }): Promise<Emoji>;
713
+ protected _getCustomInspectProxy(): Record<string, unknown>;
714
+ }
715
+ /** A pair of property name and value.
716
+ */
717
+ export declare class PropertyValue {
718
+ #private;
719
+ readonly id: URL | null;
720
+ protected get _documentLoader(): DocumentLoader | undefined;
721
+ protected get _contextLoader(): DocumentLoader | undefined;
873
722
  /**
874
- * Similar to
875
- * {@link Activity.getObject},
876
- * but returns its `@id` URL instead of the object itself.
723
+ * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
877
724
  */
878
- get objectId(): URL | null;
879
- /** When used within an {@link Activity}, describes the direct object of
880
- * the activity. For instance, in the activity "John added a movie to his
881
- * wishlist", the object of the activity is the movie added.
725
+ static get typeId(): URL;
726
+ /**
727
+ * Constructs a new instance of PropertyValue with the given values.
728
+ * @param values The values to initialize the instance with.
729
+ * @param options The options to use for initialization.
882
730
  */
883
- getObject(options?: {
731
+ constructor(values: {
732
+ id?: URL | null;
733
+ name?: string | LanguageString | null;
734
+ value?: string | LanguageString | null;
735
+ }, { documentLoader, contextLoader, }?: {
884
736
  documentLoader?: DocumentLoader;
885
737
  contextLoader?: DocumentLoader;
886
- }): Promise<Object | null>;
738
+ });
887
739
  /**
888
- * Similar to
889
- * {@link Activity.getObjects},
890
- * but returns their `@id`s instead of the objects themselves.
891
- */
892
- get objectIds(): URL[];
893
- /** When used within an {@link Activity}, describes the direct object of
894
- * the activity. For instance, in the activity "John added a movie to his
895
- * wishlist", the object of the activity is the movie added.
740
+ * Clones this instance, optionally updating it with the given values.
741
+ * @param values The values to update the clone with.
742
+ * @options The options to use for cloning.
743
+ * @returns The cloned instance.
896
744
  */
897
- getObjects(options?: {
745
+ clone(values?: {
746
+ id?: URL | null;
747
+ name?: string | LanguageString | null;
748
+ value?: string | LanguageString | null;
749
+ }, options?: {
898
750
  documentLoader?: DocumentLoader;
899
751
  contextLoader?: DocumentLoader;
900
- }): AsyncIterable<Object>;
752
+ }): PropertyValue;
753
+ /** The name of a property.
754
+ */
755
+ get name(): string | LanguageString | null;
756
+ /** The value of a property.
757
+ */
758
+ get value(): string | LanguageString | null;
901
759
  /**
902
760
  * Converts this object to a JSON-LD structure.
903
761
  * @returns The JSON-LD representation of this object.
@@ -915,20 +773,96 @@ export declare class Activity extends Object {
915
773
  static fromJsonLd(json: unknown, options?: {
916
774
  documentLoader?: DocumentLoader;
917
775
  contextLoader?: DocumentLoader;
918
- }): Promise<Activity>;
776
+ }): Promise<PropertyValue>;
919
777
  protected _getCustomInspectProxy(): Record<string, unknown>;
920
778
  }
921
- /** Indicates that the `actor` accepts the `object`. The `target` property can be
922
- * used in certain circumstances to indicate the context into which the `object`
923
- * has been accepted.
779
+ /** A key owned by an actor.
924
780
  */
925
- export declare class Accept extends Activity {
781
+ export declare class CryptographicKey {
782
+ #private;
783
+ readonly id: URL | null;
784
+ protected get _documentLoader(): DocumentLoader | undefined;
785
+ protected get _contextLoader(): DocumentLoader | undefined;
926
786
  /**
927
- * The type URI of {@link Accept}: `https://www.w3.org/ns/activitystreams#Accept`.
787
+ * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
928
788
  */
929
789
  static get typeId(): URL;
930
790
  /**
931
- * Constructs a new instance of Accept with the given values.
791
+ * Constructs a new instance of CryptographicKey with the given values.
792
+ * @param values The values to initialize the instance with.
793
+ * @param options The options to use for initialization.
794
+ */
795
+ constructor(values: {
796
+ id?: URL | null;
797
+ owner?: Application | Group | Organization | Person | Service | URL | null;
798
+ publicKey?: dntShim.CryptoKey | null;
799
+ }, { documentLoader, contextLoader, }?: {
800
+ documentLoader?: DocumentLoader;
801
+ contextLoader?: DocumentLoader;
802
+ });
803
+ /**
804
+ * Clones this instance, optionally updating it with the given values.
805
+ * @param values The values to update the clone with.
806
+ * @options The options to use for cloning.
807
+ * @returns The cloned instance.
808
+ */
809
+ clone(values?: {
810
+ id?: URL | null;
811
+ owner?: Application | Group | Organization | Person | Service | URL | null;
812
+ publicKey?: dntShim.CryptoKey | null;
813
+ }, options?: {
814
+ documentLoader?: DocumentLoader;
815
+ contextLoader?: DocumentLoader;
816
+ }): CryptographicKey;
817
+ /**
818
+ * Similar to
819
+ * {@link CryptographicKey.getOwner},
820
+ * but returns its `@id` URL instead of the object itself.
821
+ */
822
+ get ownerId(): URL | null;
823
+ /** An actor who owns this key.
824
+ */
825
+ getOwner(options?: {
826
+ documentLoader?: DocumentLoader;
827
+ contextLoader?: DocumentLoader;
828
+ }): Promise<Application | Group | Organization | Person | Service | null>;
829
+ /** A PEM-encoded public key.
830
+ */
831
+ get publicKey(): dntShim.CryptoKey | null;
832
+ /**
833
+ * Converts this object to a JSON-LD structure.
834
+ * @returns The JSON-LD representation of this object.
835
+ */
836
+ toJsonLd(options?: {
837
+ expand?: boolean;
838
+ contextLoader?: DocumentLoader;
839
+ }): Promise<unknown>;
840
+ /**
841
+ * Converts a JSON-LD structure to an object of this type.
842
+ * @param json The JSON-LD structure to convert.
843
+ * @returns The object of this type.
844
+ * @throws {TypeError} If the given `json` is invalid.
845
+ */
846
+ static fromJsonLd(json: unknown, options?: {
847
+ documentLoader?: DocumentLoader;
848
+ contextLoader?: DocumentLoader;
849
+ }): Promise<CryptographicKey>;
850
+ protected _getCustomInspectProxy(): Record<string, unknown>;
851
+ }
852
+ /** An Activity is a subtype of {@link Object} that describes some form of action
853
+ * that may happen, is currently happening, or has already happened.
854
+ * The {@link Activity} type itself serves as an abstract base type for all types
855
+ * of activities. It is important to note that the {@link Activity} type itself
856
+ * does not carry any specific semantics about the kind of action being taken.
857
+ */
858
+ export declare class Activity extends Object {
859
+ #private;
860
+ /**
861
+ * The type URI of {@link Activity}: `https://www.w3.org/ns/activitystreams#Activity`.
862
+ */
863
+ static get typeId(): URL;
864
+ /**
865
+ * Constructs a new instance of Activity with the given values.
932
866
  * @param values The values to initialize the instance with.
933
867
  * @param options The options to use for initialization.
934
868
  */
@@ -1041,7 +975,63 @@ export declare class Accept extends Activity {
1041
975
  }, options?: {
1042
976
  documentLoader?: DocumentLoader;
1043
977
  contextLoader?: DocumentLoader;
1044
- }): Accept;
978
+ }): Activity;
979
+ /**
980
+ * Similar to
981
+ * {@link Activity.getActor},
982
+ * but returns its `@id` URL instead of the object itself.
983
+ */
984
+ get actorId(): URL | null;
985
+ /** Describes one or more entities that either performed or are expected to
986
+ * perform the activity. Any single activity can have multiple actors.
987
+ * The actor MAY be specified using an indirect {@link Link}.
988
+ */
989
+ getActor(options?: {
990
+ documentLoader?: DocumentLoader;
991
+ contextLoader?: DocumentLoader;
992
+ }): Promise<Application | Group | Organization | Person | Service | null>;
993
+ /**
994
+ * Similar to
995
+ * {@link Activity.getActors},
996
+ * but returns their `@id`s instead of the objects themselves.
997
+ */
998
+ get actorIds(): URL[];
999
+ /** Describes one or more entities that either performed or are expected to
1000
+ * perform the activity. Any single activity can have multiple actors.
1001
+ * The actor MAY be specified using an indirect {@link Link}.
1002
+ */
1003
+ getActors(options?: {
1004
+ documentLoader?: DocumentLoader;
1005
+ contextLoader?: DocumentLoader;
1006
+ }): AsyncIterable<Application | Group | Organization | Person | Service>;
1007
+ /**
1008
+ * Similar to
1009
+ * {@link Activity.getObject},
1010
+ * but returns its `@id` URL instead of the object itself.
1011
+ */
1012
+ get objectId(): URL | null;
1013
+ /** When used within an {@link Activity}, describes the direct object of
1014
+ * the activity. For instance, in the activity "John added a movie to his
1015
+ * wishlist", the object of the activity is the movie added.
1016
+ */
1017
+ getObject(options?: {
1018
+ documentLoader?: DocumentLoader;
1019
+ contextLoader?: DocumentLoader;
1020
+ }): Promise<Object | null>;
1021
+ /**
1022
+ * Similar to
1023
+ * {@link Activity.getObjects},
1024
+ * but returns their `@id`s instead of the objects themselves.
1025
+ */
1026
+ get objectIds(): URL[];
1027
+ /** When used within an {@link Activity}, describes the direct object of
1028
+ * the activity. For instance, in the activity "John added a movie to his
1029
+ * wishlist", the object of the activity is the movie added.
1030
+ */
1031
+ getObjects(options?: {
1032
+ documentLoader?: DocumentLoader;
1033
+ contextLoader?: DocumentLoader;
1034
+ }): AsyncIterable<Object>;
1045
1035
  /**
1046
1036
  * Converts this object to a JSON-LD structure.
1047
1037
  * @returns The JSON-LD representation of this object.
@@ -1059,21 +1049,20 @@ export declare class Accept extends Activity {
1059
1049
  static fromJsonLd(json: unknown, options?: {
1060
1050
  documentLoader?: DocumentLoader;
1061
1051
  contextLoader?: DocumentLoader;
1062
- }): Promise<Accept>;
1052
+ }): Promise<Activity>;
1063
1053
  protected _getCustomInspectProxy(): Record<string, unknown>;
1064
1054
  }
1065
- /** Indicates that the `actor` has added the `object` to the `target`.
1066
- * If the `target` property is not explicitly specified, the target would need
1067
- * to be determined implicitly by context. The `origin` can be used to identify
1068
- * the context from which the `object` originated.
1055
+ /** Indicates that the `actor` accepts the `object`. The `target` property can be
1056
+ * used in certain circumstances to indicate the context into which the `object`
1057
+ * has been accepted.
1069
1058
  */
1070
- export declare class Add extends Activity {
1059
+ export declare class Accept extends Activity {
1071
1060
  /**
1072
- * The type URI of {@link Add}: `https://www.w3.org/ns/activitystreams#Add`.
1061
+ * The type URI of {@link Accept}: `https://www.w3.org/ns/activitystreams#Accept`.
1073
1062
  */
1074
1063
  static get typeId(): URL;
1075
1064
  /**
1076
- * Constructs a new instance of Add with the given values.
1065
+ * Constructs a new instance of Accept with the given values.
1077
1066
  * @param values The values to initialize the instance with.
1078
1067
  * @param options The options to use for initialization.
1079
1068
  */
@@ -1186,7 +1175,7 @@ export declare class Add extends Activity {
1186
1175
  }, options?: {
1187
1176
  documentLoader?: DocumentLoader;
1188
1177
  contextLoader?: DocumentLoader;
1189
- }): Add;
1178
+ }): Accept;
1190
1179
  /**
1191
1180
  * Converts this object to a JSON-LD structure.
1192
1181
  * @returns The JSON-LD representation of this object.
@@ -1204,20 +1193,21 @@ export declare class Add extends Activity {
1204
1193
  static fromJsonLd(json: unknown, options?: {
1205
1194
  documentLoader?: DocumentLoader;
1206
1195
  contextLoader?: DocumentLoader;
1207
- }): Promise<Add>;
1196
+ }): Promise<Accept>;
1208
1197
  protected _getCustomInspectProxy(): Record<string, unknown>;
1209
1198
  }
1210
- /** Indicates that the `actor` is calling the `target`'s attention the `object`.
1211
- *
1212
- * The `origin` typically has no defined meaning.
1199
+ /** Indicates that the `actor` has added the `object` to the `target`.
1200
+ * If the `target` property is not explicitly specified, the target would need
1201
+ * to be determined implicitly by context. The `origin` can be used to identify
1202
+ * the context from which the `object` originated.
1213
1203
  */
1214
- export declare class Announce extends Activity {
1204
+ export declare class Add extends Activity {
1215
1205
  /**
1216
- * The type URI of {@link Announce}: `https://www.w3.org/ns/activitystreams#Announce`.
1206
+ * The type URI of {@link Add}: `https://www.w3.org/ns/activitystreams#Add`.
1217
1207
  */
1218
1208
  static get typeId(): URL;
1219
1209
  /**
1220
- * Constructs a new instance of Announce with the given values.
1210
+ * Constructs a new instance of Add with the given values.
1221
1211
  * @param values The values to initialize the instance with.
1222
1212
  * @param options The options to use for initialization.
1223
1213
  */
@@ -1330,7 +1320,7 @@ export declare class Announce extends Activity {
1330
1320
  }, options?: {
1331
1321
  documentLoader?: DocumentLoader;
1332
1322
  contextLoader?: DocumentLoader;
1333
- }): Announce;
1323
+ }): Add;
1334
1324
  /**
1335
1325
  * Converts this object to a JSON-LD structure.
1336
1326
  * @returns The JSON-LD representation of this object.
@@ -1348,19 +1338,20 @@ export declare class Announce extends Activity {
1348
1338
  static fromJsonLd(json: unknown, options?: {
1349
1339
  documentLoader?: DocumentLoader;
1350
1340
  contextLoader?: DocumentLoader;
1351
- }): Promise<Announce>;
1341
+ }): Promise<Add>;
1352
1342
  protected _getCustomInspectProxy(): Record<string, unknown>;
1353
1343
  }
1354
- /** Describes a software application.
1344
+ /** Indicates that the `actor` is calling the `target`'s attention the `object`.
1345
+ *
1346
+ * The `origin` typically has no defined meaning.
1355
1347
  */
1356
- export declare class Application extends Object {
1357
- #private;
1348
+ export declare class Announce extends Activity {
1358
1349
  /**
1359
- * The type URI of {@link Application}: `https://www.w3.org/ns/activitystreams#Application`.
1350
+ * The type URI of {@link Announce}: `https://www.w3.org/ns/activitystreams#Announce`.
1360
1351
  */
1361
1352
  static get typeId(): URL;
1362
1353
  /**
1363
- * Constructs a new instance of Application with the given values.
1354
+ * Constructs a new instance of Announce with the given values.
1364
1355
  * @param values The values to initialize the instance with.
1365
1356
  * @param options The options to use for initialization.
1366
1357
  */
@@ -1408,22 +1399,10 @@ export declare class Application extends Object {
1408
1399
  mediaType?: string | null;
1409
1400
  duration?: dntShim.Temporal.Duration | null;
1410
1401
  sensitive?: boolean | null;
1411
- preferredUsername?: string | LanguageString | null;
1412
- preferredUsernames?: (string | LanguageString)[];
1413
- publicKey?: CryptographicKey | URL | null;
1414
- publicKeys?: (CryptographicKey | URL)[];
1415
- manuallyApprovesFollowers?: boolean | null;
1416
- inbox?: OrderedCollection | URL | null;
1417
- outbox?: OrderedCollection | URL | null;
1418
- following?: Collection | URL | null;
1419
- followers?: Collection | URL | null;
1420
- linked?: Collection | URL | null;
1421
- streams?: (Collection | URL)[];
1422
- endpoints?: Endpoints | null;
1423
- discoverable?: boolean | null;
1424
- suspended?: boolean | null;
1425
- memorial?: boolean | null;
1426
- indexable?: boolean | null;
1402
+ actor?: Application | Group | Organization | Person | Service | URL | null;
1403
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
1404
+ object?: Object | URL | null;
1405
+ objects?: (Object | URL)[];
1427
1406
  }, { documentLoader, contextLoader, }?: {
1428
1407
  documentLoader?: DocumentLoader;
1429
1408
  contextLoader?: DocumentLoader;
@@ -1478,55 +1457,210 @@ export declare class Application extends Object {
1478
1457
  mediaType?: string | null;
1479
1458
  duration?: dntShim.Temporal.Duration | null;
1480
1459
  sensitive?: boolean | null;
1481
- preferredUsername?: string | LanguageString | null;
1482
- preferredUsernames?: (string | LanguageString)[];
1483
- publicKey?: CryptographicKey | URL | null;
1484
- publicKeys?: (CryptographicKey | URL)[];
1485
- manuallyApprovesFollowers?: boolean | null;
1486
- inbox?: OrderedCollection | URL | null;
1487
- outbox?: OrderedCollection | URL | null;
1488
- following?: Collection | URL | null;
1489
- followers?: Collection | URL | null;
1490
- linked?: Collection | URL | null;
1491
- streams?: (Collection | URL)[];
1492
- endpoints?: Endpoints | null;
1493
- discoverable?: boolean | null;
1494
- suspended?: boolean | null;
1495
- memorial?: boolean | null;
1496
- indexable?: boolean | null;
1460
+ actor?: Application | Group | Organization | Person | Service | URL | null;
1461
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
1462
+ object?: Object | URL | null;
1463
+ objects?: (Object | URL)[];
1497
1464
  }, options?: {
1498
1465
  documentLoader?: DocumentLoader;
1499
1466
  contextLoader?: DocumentLoader;
1500
- }): Application;
1501
- /** A short username which may be used to refer to the actor,
1502
- * with no uniqueness guarantees.
1503
- */
1504
- get preferredUsername(): string | LanguageString | null;
1505
- /** A short username which may be used to refer to the actor,
1506
- * with no uniqueness guarantees.
1507
- */
1508
- get preferredUsernames(): (string | LanguageString)[];
1467
+ }): Announce;
1509
1468
  /**
1510
- * Similar to
1511
- * {@link Application.getPublicKey},
1512
- * but returns its `@id` URL instead of the object itself.
1513
- */
1514
- get publicKeyId(): URL | null;
1515
- /** A public part of the key pair owned by this actor.
1469
+ * Converts this object to a JSON-LD structure.
1470
+ * @returns The JSON-LD representation of this object.
1516
1471
  */
1517
- getPublicKey(options?: {
1518
- documentLoader?: DocumentLoader;
1472
+ toJsonLd(options?: {
1473
+ expand?: boolean;
1519
1474
  contextLoader?: DocumentLoader;
1520
- }): Promise<CryptographicKey | null>;
1475
+ }): Promise<unknown>;
1521
1476
  /**
1522
- * Similar to
1523
- * {@link Application.getPublicKeys},
1524
- * but returns their `@id`s instead of the objects themselves.
1525
- */
1526
- get publicKeyIds(): URL[];
1527
- /** A public part of the key pair owned by this actor.
1477
+ * Converts a JSON-LD structure to an object of this type.
1478
+ * @param json The JSON-LD structure to convert.
1479
+ * @returns The object of this type.
1480
+ * @throws {TypeError} If the given `json` is invalid.
1528
1481
  */
1529
- getPublicKeys(options?: {
1482
+ static fromJsonLd(json: unknown, options?: {
1483
+ documentLoader?: DocumentLoader;
1484
+ contextLoader?: DocumentLoader;
1485
+ }): Promise<Announce>;
1486
+ protected _getCustomInspectProxy(): Record<string, unknown>;
1487
+ }
1488
+ /** Describes a software application.
1489
+ */
1490
+ export declare class Application extends Object {
1491
+ #private;
1492
+ /**
1493
+ * The type URI of {@link Application}: `https://www.w3.org/ns/activitystreams#Application`.
1494
+ */
1495
+ static get typeId(): URL;
1496
+ /**
1497
+ * Constructs a new instance of Application with the given values.
1498
+ * @param values The values to initialize the instance with.
1499
+ * @param options The options to use for initialization.
1500
+ */
1501
+ constructor(values: {
1502
+ id?: URL | null;
1503
+ attachments?: (Object | Link | PropertyValue | URL)[];
1504
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
1505
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
1506
+ audience?: Object | URL | null;
1507
+ audiences?: (Object | URL)[];
1508
+ content?: string | LanguageString | null;
1509
+ contents?: (string | LanguageString)[];
1510
+ contexts?: (Object | Link | URL)[];
1511
+ name?: string | LanguageString | null;
1512
+ names?: (string | LanguageString)[];
1513
+ endTime?: dntShim.Temporal.Instant | null;
1514
+ generators?: (Object | Link | URL)[];
1515
+ icon?: Image | URL | null;
1516
+ icons?: (Image | URL)[];
1517
+ image?: Image | URL | null;
1518
+ images?: (Image | URL)[];
1519
+ replyTarget?: Object | Link | URL | null;
1520
+ replyTargets?: (Object | Link | URL)[];
1521
+ location?: Object | Link | URL | null;
1522
+ locations?: (Object | Link | URL)[];
1523
+ preview?: Link | Object | URL | null;
1524
+ previews?: (Link | Object | URL)[];
1525
+ published?: dntShim.Temporal.Instant | null;
1526
+ replies?: Collection | URL | null;
1527
+ startTime?: dntShim.Temporal.Instant | null;
1528
+ summary?: string | LanguageString | null;
1529
+ summaries?: (string | LanguageString)[];
1530
+ tags?: (Object | Link | URL)[];
1531
+ updated?: dntShim.Temporal.Instant | null;
1532
+ url?: URL | Link | null;
1533
+ urls?: (URL | Link)[];
1534
+ to?: Object | URL | null;
1535
+ tos?: (Object | URL)[];
1536
+ bto?: Object | URL | null;
1537
+ btos?: (Object | URL)[];
1538
+ cc?: Object | URL | null;
1539
+ ccs?: (Object | URL)[];
1540
+ bcc?: Object | URL | null;
1541
+ bccs?: (Object | URL)[];
1542
+ mediaType?: string | null;
1543
+ duration?: dntShim.Temporal.Duration | null;
1544
+ sensitive?: boolean | null;
1545
+ preferredUsername?: string | LanguageString | null;
1546
+ preferredUsernames?: (string | LanguageString)[];
1547
+ publicKey?: CryptographicKey | URL | null;
1548
+ publicKeys?: (CryptographicKey | URL)[];
1549
+ manuallyApprovesFollowers?: boolean | null;
1550
+ inbox?: OrderedCollection | URL | null;
1551
+ outbox?: OrderedCollection | URL | null;
1552
+ following?: Collection | URL | null;
1553
+ followers?: Collection | URL | null;
1554
+ linked?: Collection | URL | null;
1555
+ streams?: (Collection | URL)[];
1556
+ endpoints?: Endpoints | null;
1557
+ discoverable?: boolean | null;
1558
+ suspended?: boolean | null;
1559
+ memorial?: boolean | null;
1560
+ indexable?: boolean | null;
1561
+ }, { documentLoader, contextLoader, }?: {
1562
+ documentLoader?: DocumentLoader;
1563
+ contextLoader?: DocumentLoader;
1564
+ });
1565
+ /**
1566
+ * Clones this instance, optionally updating it with the given values.
1567
+ * @param values The values to update the clone with.
1568
+ * @options The options to use for cloning.
1569
+ * @returns The cloned instance.
1570
+ */
1571
+ clone(values?: {
1572
+ id?: URL | null;
1573
+ attachments?: (Object | Link | PropertyValue | URL)[];
1574
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
1575
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
1576
+ audience?: Object | URL | null;
1577
+ audiences?: (Object | URL)[];
1578
+ content?: string | LanguageString | null;
1579
+ contents?: (string | LanguageString)[];
1580
+ contexts?: (Object | Link | URL)[];
1581
+ name?: string | LanguageString | null;
1582
+ names?: (string | LanguageString)[];
1583
+ endTime?: dntShim.Temporal.Instant | null;
1584
+ generators?: (Object | Link | URL)[];
1585
+ icon?: Image | URL | null;
1586
+ icons?: (Image | URL)[];
1587
+ image?: Image | URL | null;
1588
+ images?: (Image | URL)[];
1589
+ replyTarget?: Object | Link | URL | null;
1590
+ replyTargets?: (Object | Link | URL)[];
1591
+ location?: Object | Link | URL | null;
1592
+ locations?: (Object | Link | URL)[];
1593
+ preview?: Link | Object | URL | null;
1594
+ previews?: (Link | Object | URL)[];
1595
+ published?: dntShim.Temporal.Instant | null;
1596
+ replies?: Collection | URL | null;
1597
+ startTime?: dntShim.Temporal.Instant | null;
1598
+ summary?: string | LanguageString | null;
1599
+ summaries?: (string | LanguageString)[];
1600
+ tags?: (Object | Link | URL)[];
1601
+ updated?: dntShim.Temporal.Instant | null;
1602
+ url?: URL | Link | null;
1603
+ urls?: (URL | Link)[];
1604
+ to?: Object | URL | null;
1605
+ tos?: (Object | URL)[];
1606
+ bto?: Object | URL | null;
1607
+ btos?: (Object | URL)[];
1608
+ cc?: Object | URL | null;
1609
+ ccs?: (Object | URL)[];
1610
+ bcc?: Object | URL | null;
1611
+ bccs?: (Object | URL)[];
1612
+ mediaType?: string | null;
1613
+ duration?: dntShim.Temporal.Duration | null;
1614
+ sensitive?: boolean | null;
1615
+ preferredUsername?: string | LanguageString | null;
1616
+ preferredUsernames?: (string | LanguageString)[];
1617
+ publicKey?: CryptographicKey | URL | null;
1618
+ publicKeys?: (CryptographicKey | URL)[];
1619
+ manuallyApprovesFollowers?: boolean | null;
1620
+ inbox?: OrderedCollection | URL | null;
1621
+ outbox?: OrderedCollection | URL | null;
1622
+ following?: Collection | URL | null;
1623
+ followers?: Collection | URL | null;
1624
+ linked?: Collection | URL | null;
1625
+ streams?: (Collection | URL)[];
1626
+ endpoints?: Endpoints | null;
1627
+ discoverable?: boolean | null;
1628
+ suspended?: boolean | null;
1629
+ memorial?: boolean | null;
1630
+ indexable?: boolean | null;
1631
+ }, options?: {
1632
+ documentLoader?: DocumentLoader;
1633
+ contextLoader?: DocumentLoader;
1634
+ }): Application;
1635
+ /** A short username which may be used to refer to the actor,
1636
+ * with no uniqueness guarantees.
1637
+ */
1638
+ get preferredUsername(): string | LanguageString | null;
1639
+ /** A short username which may be used to refer to the actor,
1640
+ * with no uniqueness guarantees.
1641
+ */
1642
+ get preferredUsernames(): (string | LanguageString)[];
1643
+ /**
1644
+ * Similar to
1645
+ * {@link Application.getPublicKey},
1646
+ * but returns its `@id` URL instead of the object itself.
1647
+ */
1648
+ get publicKeyId(): URL | null;
1649
+ /** A public part of the key pair owned by this actor.
1650
+ */
1651
+ getPublicKey(options?: {
1652
+ documentLoader?: DocumentLoader;
1653
+ contextLoader?: DocumentLoader;
1654
+ }): Promise<CryptographicKey | null>;
1655
+ /**
1656
+ * Similar to
1657
+ * {@link Application.getPublicKeys},
1658
+ * but returns their `@id`s instead of the objects themselves.
1659
+ */
1660
+ get publicKeyIds(): URL[];
1661
+ /** A public part of the key pair owned by this actor.
1662
+ */
1663
+ getPublicKeys(options?: {
1530
1664
  documentLoader?: DocumentLoader;
1531
1665
  contextLoader?: DocumentLoader;
1532
1666
  }): AsyncIterable<CryptographicKey>;
@@ -4087,64 +4221,41 @@ export declare class Group extends Object {
4087
4221
  }): Promise<Group>;
4088
4222
  protected _getCustomInspectProxy(): Record<string, unknown>;
4089
4223
  }
4090
- /** An image document of any kind.
4224
+ /** A Link is an indirect, qualified reference to a resource identified by a URL.
4225
+ * The fundamental model for links is established by RFC 5988. Many of the
4226
+ * properties defined by the Activity Vocabulary allow values that are either
4227
+ * instances of {@link Object} or {@link Link}. When a {@link Link} is used,
4228
+ * it establishes a qualified relation connecting the subject (the containing
4229
+ * object) to the resource identified by the `href`. Properties of
4230
+ * the {@link Link} are properties of the reference as opposed to properties of
4231
+ * the resource.
4091
4232
  */
4092
- export declare class Image extends Document {
4233
+ export declare class Link {
4234
+ #private;
4235
+ readonly id: URL | null;
4236
+ protected get _documentLoader(): DocumentLoader | undefined;
4237
+ protected get _contextLoader(): DocumentLoader | undefined;
4093
4238
  /**
4094
- * The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
4239
+ * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
4095
4240
  */
4096
4241
  static get typeId(): URL;
4097
4242
  /**
4098
- * Constructs a new instance of Image with the given values.
4243
+ * Constructs a new instance of Link with the given values.
4099
4244
  * @param values The values to initialize the instance with.
4100
4245
  * @param options The options to use for initialization.
4101
4246
  */
4102
4247
  constructor(values: {
4103
4248
  id?: URL | null;
4104
- attachments?: (Object | Link | PropertyValue | URL)[];
4105
- attribution?: Application | Group | Organization | Person | Service | URL | null;
4106
- attributions?: (Application | Group | Organization | Person | Service | URL)[];
4107
- audience?: Object | URL | null;
4108
- audiences?: (Object | URL)[];
4109
- content?: string | LanguageString | null;
4110
- contents?: (string | LanguageString)[];
4111
- contexts?: (Object | Link | URL)[];
4249
+ href?: URL | null;
4250
+ rel?: string | null;
4251
+ rels?: string[];
4252
+ mediaType?: string | null;
4112
4253
  name?: string | LanguageString | null;
4113
4254
  names?: (string | LanguageString)[];
4114
- endTime?: dntShim.Temporal.Instant | null;
4115
- generators?: (Object | Link | URL)[];
4116
- icon?: Image | URL | null;
4117
- icons?: (Image | URL)[];
4118
- image?: Image | URL | null;
4119
- images?: (Image | URL)[];
4120
- replyTarget?: Object | Link | URL | null;
4121
- replyTargets?: (Object | Link | URL)[];
4122
- location?: Object | Link | URL | null;
4123
- locations?: (Object | Link | URL)[];
4124
- preview?: Link | Object | URL | null;
4125
- previews?: (Link | Object | URL)[];
4126
- published?: dntShim.Temporal.Instant | null;
4127
- replies?: Collection | URL | null;
4128
- startTime?: dntShim.Temporal.Instant | null;
4129
- summary?: string | LanguageString | null;
4130
- summaries?: (string | LanguageString)[];
4131
- tags?: (Object | Link | URL)[];
4132
- updated?: dntShim.Temporal.Instant | null;
4133
- url?: URL | Link | null;
4134
- urls?: (URL | Link)[];
4135
- to?: Object | URL | null;
4136
- tos?: (Object | URL)[];
4137
- bto?: Object | URL | null;
4138
- btos?: (Object | URL)[];
4139
- cc?: Object | URL | null;
4140
- ccs?: (Object | URL)[];
4141
- bcc?: Object | URL | null;
4142
- bccs?: (Object | URL)[];
4143
- mediaType?: string | null;
4144
- duration?: dntShim.Temporal.Duration | null;
4145
- sensitive?: boolean | null;
4146
- width?: number | null;
4255
+ language?: LanguageTag | null;
4147
4256
  height?: number | null;
4257
+ width?: number | null;
4258
+ previews?: (Link | Object | URL)[];
4148
4259
  }, { documentLoader, contextLoader, }?: {
4149
4260
  documentLoader?: DocumentLoader;
4150
4261
  contextLoader?: DocumentLoader;
@@ -4157,13 +4268,246 @@ export declare class Image extends Document {
4157
4268
  */
4158
4269
  clone(values?: {
4159
4270
  id?: URL | null;
4160
- attachments?: (Object | Link | PropertyValue | URL)[];
4161
- attribution?: Application | Group | Organization | Person | Service | URL | null;
4162
- attributions?: (Application | Group | Organization | Person | Service | URL)[];
4163
- audience?: Object | URL | null;
4164
- audiences?: (Object | URL)[];
4165
- content?: string | LanguageString | null;
4166
- contents?: (string | LanguageString)[];
4271
+ href?: URL | null;
4272
+ rel?: string | null;
4273
+ rels?: string[];
4274
+ mediaType?: string | null;
4275
+ name?: string | LanguageString | null;
4276
+ names?: (string | LanguageString)[];
4277
+ language?: LanguageTag | null;
4278
+ height?: number | null;
4279
+ width?: number | null;
4280
+ previews?: (Link | Object | URL)[];
4281
+ }, options?: {
4282
+ documentLoader?: DocumentLoader;
4283
+ contextLoader?: DocumentLoader;
4284
+ }): Link;
4285
+ /** The target resource pointed to by a {@link Link}.
4286
+ */
4287
+ get href(): URL | null;
4288
+ /** A link relation associated with a {@link Link}. The value MUST conform to
4289
+ * both the HTML5 and RFC 5988 "link relation" definitions.
4290
+ *
4291
+ * In the HTML5, any string not containing the space (U+0020), tab (U+0009),
4292
+ * LF (U+000A), FF (U+000C), CR (U+000D) or comma (U+002C) characters can
4293
+ * be used as a valid link relation.
4294
+ */
4295
+ get rel(): string | null;
4296
+ /** A link relation associated with a {@link Link}. The value MUST conform to
4297
+ * both the HTML5 and RFC 5988 "link relation" definitions.
4298
+ *
4299
+ * In the HTML5, any string not containing the space (U+0020), tab (U+0009),
4300
+ * LF (U+000A), FF (U+000C), CR (U+000D) or comma (U+002C) characters can
4301
+ * be used as a valid link relation.
4302
+ */
4303
+ get rels(): string[];
4304
+ /** When used on a {@link Link}, identifies the MIME media type of the
4305
+ * referenced resource.
4306
+ */
4307
+ get mediaType(): string | null;
4308
+ /** A simple, human-readable, plain-text name for the object. HTML markup MUST
4309
+ * NOT be included. The name MAY be expressed using multiple language-tagged
4310
+ * values.
4311
+ */
4312
+ get name(): string | LanguageString | null;
4313
+ /** A simple, human-readable, plain-text name for the object. HTML markup MUST
4314
+ * NOT be included. The name MAY be expressed using multiple language-tagged
4315
+ * values.
4316
+ */
4317
+ get names(): (string | LanguageString)[];
4318
+ /** Hints as to the language used by the target resource.
4319
+ * Value MUST be a BCP 47 Language-Tag.
4320
+ */
4321
+ get language(): LanguageTag | null;
4322
+ /** On a {@link Link}, specifies a hint as to the rendering height in
4323
+ * device-independent pixels of the linked resource.
4324
+ */
4325
+ get height(): number | null;
4326
+ /** On a {@link Link}, specifies a hint as to the rendering width in
4327
+ * device-independent pixels of the linked resource.
4328
+ */
4329
+ get width(): number | null;
4330
+ /**
4331
+ * Similar to
4332
+ * {@link Link.getPreviews},
4333
+ * but returns their `@id`s instead of the objects themselves.
4334
+ */
4335
+ get previewIds(): URL[];
4336
+ /** Identifies an entity that provides a preview of this object.
4337
+ */
4338
+ getPreviews(options?: {
4339
+ documentLoader?: DocumentLoader;
4340
+ contextLoader?: DocumentLoader;
4341
+ }): AsyncIterable<Link | Object>;
4342
+ /**
4343
+ * Converts this object to a JSON-LD structure.
4344
+ * @returns The JSON-LD representation of this object.
4345
+ */
4346
+ toJsonLd(options?: {
4347
+ expand?: boolean;
4348
+ contextLoader?: DocumentLoader;
4349
+ }): Promise<unknown>;
4350
+ /**
4351
+ * Converts a JSON-LD structure to an object of this type.
4352
+ * @param json The JSON-LD structure to convert.
4353
+ * @returns The object of this type.
4354
+ * @throws {TypeError} If the given `json` is invalid.
4355
+ */
4356
+ static fromJsonLd(json: unknown, options?: {
4357
+ documentLoader?: DocumentLoader;
4358
+ contextLoader?: DocumentLoader;
4359
+ }): Promise<Link>;
4360
+ protected _getCustomInspectProxy(): Record<string, unknown>;
4361
+ }
4362
+ /** A specialized {@link Link} that represents an #hashtag.
4363
+ *
4364
+ * See also <https://swicg.github.io/miscellany/#Hashtag>.
4365
+ */
4366
+ export declare class Hashtag extends Link {
4367
+ /**
4368
+ * The type URI of {@link Hashtag}: `https://www.w3.org/ns/activitystreams#Hashtag`.
4369
+ */
4370
+ static get typeId(): URL;
4371
+ /**
4372
+ * Constructs a new instance of Hashtag with the given values.
4373
+ * @param values The values to initialize the instance with.
4374
+ * @param options The options to use for initialization.
4375
+ */
4376
+ constructor(values: {
4377
+ id?: URL | null;
4378
+ href?: URL | null;
4379
+ rel?: string | null;
4380
+ rels?: string[];
4381
+ mediaType?: string | null;
4382
+ name?: string | LanguageString | null;
4383
+ names?: (string | LanguageString)[];
4384
+ language?: LanguageTag | null;
4385
+ height?: number | null;
4386
+ width?: number | null;
4387
+ previews?: (Link | Object | URL)[];
4388
+ }, { documentLoader, contextLoader, }?: {
4389
+ documentLoader?: DocumentLoader;
4390
+ contextLoader?: DocumentLoader;
4391
+ });
4392
+ /**
4393
+ * Clones this instance, optionally updating it with the given values.
4394
+ * @param values The values to update the clone with.
4395
+ * @options The options to use for cloning.
4396
+ * @returns The cloned instance.
4397
+ */
4398
+ clone(values?: {
4399
+ id?: URL | null;
4400
+ href?: URL | null;
4401
+ rel?: string | null;
4402
+ rels?: string[];
4403
+ mediaType?: string | null;
4404
+ name?: string | LanguageString | null;
4405
+ names?: (string | LanguageString)[];
4406
+ language?: LanguageTag | null;
4407
+ height?: number | null;
4408
+ width?: number | null;
4409
+ previews?: (Link | Object | URL)[];
4410
+ }, options?: {
4411
+ documentLoader?: DocumentLoader;
4412
+ contextLoader?: DocumentLoader;
4413
+ }): Hashtag;
4414
+ /**
4415
+ * Converts this object to a JSON-LD structure.
4416
+ * @returns The JSON-LD representation of this object.
4417
+ */
4418
+ toJsonLd(options?: {
4419
+ expand?: boolean;
4420
+ contextLoader?: DocumentLoader;
4421
+ }): Promise<unknown>;
4422
+ /**
4423
+ * Converts a JSON-LD structure to an object of this type.
4424
+ * @param json The JSON-LD structure to convert.
4425
+ * @returns The object of this type.
4426
+ * @throws {TypeError} If the given `json` is invalid.
4427
+ */
4428
+ static fromJsonLd(json: unknown, options?: {
4429
+ documentLoader?: DocumentLoader;
4430
+ contextLoader?: DocumentLoader;
4431
+ }): Promise<Hashtag>;
4432
+ protected _getCustomInspectProxy(): Record<string, unknown>;
4433
+ }
4434
+ /** An image document of any kind.
4435
+ */
4436
+ export declare class Image extends Document {
4437
+ /**
4438
+ * The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
4439
+ */
4440
+ static get typeId(): URL;
4441
+ /**
4442
+ * Constructs a new instance of Image with the given values.
4443
+ * @param values The values to initialize the instance with.
4444
+ * @param options The options to use for initialization.
4445
+ */
4446
+ constructor(values: {
4447
+ id?: URL | null;
4448
+ attachments?: (Object | Link | PropertyValue | URL)[];
4449
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
4450
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
4451
+ audience?: Object | URL | null;
4452
+ audiences?: (Object | URL)[];
4453
+ content?: string | LanguageString | null;
4454
+ contents?: (string | LanguageString)[];
4455
+ contexts?: (Object | Link | URL)[];
4456
+ name?: string | LanguageString | null;
4457
+ names?: (string | LanguageString)[];
4458
+ endTime?: dntShim.Temporal.Instant | null;
4459
+ generators?: (Object | Link | URL)[];
4460
+ icon?: Image | URL | null;
4461
+ icons?: (Image | URL)[];
4462
+ image?: Image | URL | null;
4463
+ images?: (Image | URL)[];
4464
+ replyTarget?: Object | Link | URL | null;
4465
+ replyTargets?: (Object | Link | URL)[];
4466
+ location?: Object | Link | URL | null;
4467
+ locations?: (Object | Link | URL)[];
4468
+ preview?: Link | Object | URL | null;
4469
+ previews?: (Link | Object | URL)[];
4470
+ published?: dntShim.Temporal.Instant | null;
4471
+ replies?: Collection | URL | null;
4472
+ startTime?: dntShim.Temporal.Instant | null;
4473
+ summary?: string | LanguageString | null;
4474
+ summaries?: (string | LanguageString)[];
4475
+ tags?: (Object | Link | URL)[];
4476
+ updated?: dntShim.Temporal.Instant | null;
4477
+ url?: URL | Link | null;
4478
+ urls?: (URL | Link)[];
4479
+ to?: Object | URL | null;
4480
+ tos?: (Object | URL)[];
4481
+ bto?: Object | URL | null;
4482
+ btos?: (Object | URL)[];
4483
+ cc?: Object | URL | null;
4484
+ ccs?: (Object | URL)[];
4485
+ bcc?: Object | URL | null;
4486
+ bccs?: (Object | URL)[];
4487
+ mediaType?: string | null;
4488
+ duration?: dntShim.Temporal.Duration | null;
4489
+ sensitive?: boolean | null;
4490
+ width?: number | null;
4491
+ height?: number | null;
4492
+ }, { documentLoader, contextLoader, }?: {
4493
+ documentLoader?: DocumentLoader;
4494
+ contextLoader?: DocumentLoader;
4495
+ });
4496
+ /**
4497
+ * Clones this instance, optionally updating it with the given values.
4498
+ * @param values The values to update the clone with.
4499
+ * @options The options to use for cloning.
4500
+ * @returns The cloned instance.
4501
+ */
4502
+ clone(values?: {
4503
+ id?: URL | null;
4504
+ attachments?: (Object | Link | PropertyValue | URL)[];
4505
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
4506
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
4507
+ audience?: Object | URL | null;
4508
+ audiences?: (Object | URL)[];
4509
+ content?: string | LanguageString | null;
4510
+ contents?: (string | LanguageString)[];
4167
4511
  contexts?: (Object | Link | URL)[];
4168
4512
  name?: string | LanguageString | null;
4169
4513
  names?: (string | LanguageString)[];
@@ -4512,144 +4856,6 @@ export declare class Like extends Activity {
4512
4856
  }): Promise<Like>;
4513
4857
  protected _getCustomInspectProxy(): Record<string, unknown>;
4514
4858
  }
4515
- /** A Link is an indirect, qualified reference to a resource identified by a URL.
4516
- * The fundamental model for links is established by RFC 5988. Many of the
4517
- * properties defined by the Activity Vocabulary allow values that are either
4518
- * instances of {@link Object} or {@link Link}. When a {@link Link} is used,
4519
- * it establishes a qualified relation connecting the subject (the containing
4520
- * object) to the resource identified by the `href`. Properties of
4521
- * the {@link Link} are properties of the reference as opposed to properties of
4522
- * the resource.
4523
- */
4524
- export declare class Link {
4525
- #private;
4526
- readonly id: URL | null;
4527
- protected get _documentLoader(): DocumentLoader | undefined;
4528
- protected get _contextLoader(): DocumentLoader | undefined;
4529
- /**
4530
- * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
4531
- */
4532
- static get typeId(): URL;
4533
- /**
4534
- * Constructs a new instance of Link with the given values.
4535
- * @param values The values to initialize the instance with.
4536
- * @param options The options to use for initialization.
4537
- */
4538
- constructor(values: {
4539
- id?: URL | null;
4540
- href?: URL | null;
4541
- rel?: string | null;
4542
- rels?: string[];
4543
- mediaType?: string | null;
4544
- name?: string | LanguageString | null;
4545
- names?: (string | LanguageString)[];
4546
- language?: LanguageTag | null;
4547
- height?: number | null;
4548
- width?: number | null;
4549
- previews?: (Link | Object | URL)[];
4550
- }, { documentLoader, contextLoader, }?: {
4551
- documentLoader?: DocumentLoader;
4552
- contextLoader?: DocumentLoader;
4553
- });
4554
- /**
4555
- * Clones this instance, optionally updating it with the given values.
4556
- * @param values The values to update the clone with.
4557
- * @options The options to use for cloning.
4558
- * @returns The cloned instance.
4559
- */
4560
- clone(values?: {
4561
- id?: URL | null;
4562
- href?: URL | null;
4563
- rel?: string | null;
4564
- rels?: string[];
4565
- mediaType?: string | null;
4566
- name?: string | LanguageString | null;
4567
- names?: (string | LanguageString)[];
4568
- language?: LanguageTag | null;
4569
- height?: number | null;
4570
- width?: number | null;
4571
- previews?: (Link | Object | URL)[];
4572
- }, options?: {
4573
- documentLoader?: DocumentLoader;
4574
- contextLoader?: DocumentLoader;
4575
- }): Link;
4576
- /** The target resource pointed to by a {@link Link}.
4577
- */
4578
- get href(): URL | null;
4579
- /** A link relation associated with a {@link Link}. The value MUST conform to
4580
- * both the HTML5 and RFC 5988 "link relation" definitions.
4581
- *
4582
- * In the HTML5, any string not containing the space (U+0020), tab (U+0009),
4583
- * LF (U+000A), FF (U+000C), CR (U+000D) or comma (U+002C) characters can
4584
- * be used as a valid link relation.
4585
- */
4586
- get rel(): string | null;
4587
- /** A link relation associated with a {@link Link}. The value MUST conform to
4588
- * both the HTML5 and RFC 5988 "link relation" definitions.
4589
- *
4590
- * In the HTML5, any string not containing the space (U+0020), tab (U+0009),
4591
- * LF (U+000A), FF (U+000C), CR (U+000D) or comma (U+002C) characters can
4592
- * be used as a valid link relation.
4593
- */
4594
- get rels(): string[];
4595
- /** When used on a {@link Link}, identifies the MIME media type of the
4596
- * referenced resource.
4597
- */
4598
- get mediaType(): string | null;
4599
- /** A simple, human-readable, plain-text name for the object. HTML markup MUST
4600
- * NOT be included. The name MAY be expressed using multiple language-tagged
4601
- * values.
4602
- */
4603
- get name(): string | LanguageString | null;
4604
- /** A simple, human-readable, plain-text name for the object. HTML markup MUST
4605
- * NOT be included. The name MAY be expressed using multiple language-tagged
4606
- * values.
4607
- */
4608
- get names(): (string | LanguageString)[];
4609
- /** Hints as to the language used by the target resource.
4610
- * Value MUST be a BCP 47 Language-Tag.
4611
- */
4612
- get language(): LanguageTag | null;
4613
- /** On a {@link Link}, specifies a hint as to the rendering height in
4614
- * device-independent pixels of the linked resource.
4615
- */
4616
- get height(): number | null;
4617
- /** On a {@link Link}, specifies a hint as to the rendering width in
4618
- * device-independent pixels of the linked resource.
4619
- */
4620
- get width(): number | null;
4621
- /**
4622
- * Similar to
4623
- * {@link Link.getPreviews},
4624
- * but returns their `@id`s instead of the objects themselves.
4625
- */
4626
- get previewIds(): URL[];
4627
- /** Identifies an entity that provides a preview of this object.
4628
- */
4629
- getPreviews(options?: {
4630
- documentLoader?: DocumentLoader;
4631
- contextLoader?: DocumentLoader;
4632
- }): AsyncIterable<Link | Object>;
4633
- /**
4634
- * Converts this object to a JSON-LD structure.
4635
- * @returns The JSON-LD representation of this object.
4636
- */
4637
- toJsonLd(options?: {
4638
- expand?: boolean;
4639
- contextLoader?: DocumentLoader;
4640
- }): Promise<unknown>;
4641
- /**
4642
- * Converts a JSON-LD structure to an object of this type.
4643
- * @param json The JSON-LD structure to convert.
4644
- * @returns The object of this type.
4645
- * @throws {TypeError} If the given `json` is invalid.
4646
- */
4647
- static fromJsonLd(json: unknown, options?: {
4648
- documentLoader?: DocumentLoader;
4649
- contextLoader?: DocumentLoader;
4650
- }): Promise<Link>;
4651
- protected _getCustomInspectProxy(): Record<string, unknown>;
4652
- }
4653
4859
  /** A specialized {@link Link} that represents an @mention.
4654
4860
  */
4655
4861
  export declare class Mention extends Link {