@fedify/fedify 0.14.0-dev.327 → 0.14.0-dev.328
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +9 -0
- package/esm/sig/proof.js +1 -0
- package/esm/vocab/vocab.js +2371 -174
- package/package.json +1 -1
- package/types/sig/proof.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +473 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/types/vocab/vocab.d.ts
CHANGED
@@ -617,9 +617,16 @@ export declare class Object {
|
|
617
617
|
}): AsyncIterable<DataIntegrityProof>;
|
618
618
|
/**
|
619
619
|
* Converts this object to a JSON-LD structure.
|
620
|
+
* @param options The options to use.
|
621
|
+
* - `format`: The format of the output: `compact` or
|
622
|
+
`expand`.
|
623
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
624
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
625
|
+
when `format` is set to `'expand'`.
|
620
626
|
* @returns The JSON-LD representation of this object.
|
621
627
|
*/
|
622
628
|
toJsonLd(options?: {
|
629
|
+
format?: "compact" | "expand";
|
623
630
|
expand?: boolean;
|
624
631
|
contextLoader?: DocumentLoader;
|
625
632
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -639,6 +646,7 @@ export declare class Object {
|
|
639
646
|
/** Represents a custom emoji.
|
640
647
|
*/
|
641
648
|
export declare class Emoji extends Object {
|
649
|
+
#private;
|
642
650
|
/**
|
643
651
|
* The type URI of {@link Emoji}: `http://joinmastodon.org/ns#Emoji`.
|
644
652
|
*/
|
@@ -756,9 +764,16 @@ export declare class Emoji extends Object {
|
|
756
764
|
}): Emoji;
|
757
765
|
/**
|
758
766
|
* Converts this object to a JSON-LD structure.
|
767
|
+
* @param options The options to use.
|
768
|
+
* - `format`: The format of the output: `compact` or
|
769
|
+
`expand`.
|
770
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
771
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
772
|
+
when `format` is set to `'expand'`.
|
759
773
|
* @returns The JSON-LD representation of this object.
|
760
774
|
*/
|
761
775
|
toJsonLd(options?: {
|
776
|
+
format?: "compact" | "expand";
|
762
777
|
expand?: boolean;
|
763
778
|
contextLoader?: DocumentLoader;
|
764
779
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -782,6 +797,7 @@ export declare class Emoji extends Object {
|
|
782
797
|
* a {@link Create} activity.
|
783
798
|
*/
|
784
799
|
export declare class ChatMessage extends Object {
|
800
|
+
#private;
|
785
801
|
/**
|
786
802
|
* The type URI of {@link ChatMessage}: `http://litepub.social/ns#ChatMessage`.
|
787
803
|
*/
|
@@ -899,9 +915,16 @@ export declare class ChatMessage extends Object {
|
|
899
915
|
}): ChatMessage;
|
900
916
|
/**
|
901
917
|
* Converts this object to a JSON-LD structure.
|
918
|
+
* @param options The options to use.
|
919
|
+
* - `format`: The format of the output: `compact` or
|
920
|
+
`expand`.
|
921
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
922
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
923
|
+
when `format` is set to `'expand'`.
|
902
924
|
* @returns The JSON-LD representation of this object.
|
903
925
|
*/
|
904
926
|
toJsonLd(options?: {
|
927
|
+
format?: "compact" | "expand";
|
905
928
|
expand?: boolean;
|
906
929
|
contextLoader?: DocumentLoader;
|
907
930
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -964,9 +987,16 @@ export declare class PropertyValue {
|
|
964
987
|
get value(): string | LanguageString | null;
|
965
988
|
/**
|
966
989
|
* Converts this object to a JSON-LD structure.
|
990
|
+
* @param options The options to use.
|
991
|
+
* - `format`: The format of the output: `compact` or
|
992
|
+
`expand`.
|
993
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
994
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
995
|
+
when `format` is set to `'expand'`.
|
967
996
|
* @returns The JSON-LD representation of this object.
|
968
997
|
*/
|
969
998
|
toJsonLd(options?: {
|
999
|
+
format?: "compact" | "expand";
|
970
1000
|
expand?: boolean;
|
971
1001
|
contextLoader?: DocumentLoader;
|
972
1002
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1064,9 +1094,16 @@ export declare class DataIntegrityProof {
|
|
1064
1094
|
get created(): dntShim.Temporal.Instant | null;
|
1065
1095
|
/**
|
1066
1096
|
* Converts this object to a JSON-LD structure.
|
1097
|
+
* @param options The options to use.
|
1098
|
+
* - `format`: The format of the output: `compact` or
|
1099
|
+
`expand`.
|
1100
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1101
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1102
|
+
when `format` is set to `'expand'`.
|
1067
1103
|
* @returns The JSON-LD representation of this object.
|
1068
1104
|
*/
|
1069
1105
|
toJsonLd(options?: {
|
1106
|
+
format?: "compact" | "expand";
|
1070
1107
|
expand?: boolean;
|
1071
1108
|
contextLoader?: DocumentLoader;
|
1072
1109
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1139,9 +1176,16 @@ export declare class CryptographicKey {
|
|
1139
1176
|
get publicKey(): dntShim.CryptoKey | null;
|
1140
1177
|
/**
|
1141
1178
|
* Converts this object to a JSON-LD structure.
|
1179
|
+
* @param options The options to use.
|
1180
|
+
* - `format`: The format of the output: `compact` or
|
1181
|
+
`expand`.
|
1182
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1183
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1184
|
+
when `format` is set to `'expand'`.
|
1142
1185
|
* @returns The JSON-LD representation of this object.
|
1143
1186
|
*/
|
1144
1187
|
toJsonLd(options?: {
|
1188
|
+
format?: "compact" | "expand";
|
1145
1189
|
expand?: boolean;
|
1146
1190
|
contextLoader?: DocumentLoader;
|
1147
1191
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1220,9 +1264,16 @@ export declare class Multikey {
|
|
1220
1264
|
get publicKey(): dntShim.CryptoKey | null;
|
1221
1265
|
/**
|
1222
1266
|
* Converts this object to a JSON-LD structure.
|
1267
|
+
* @param options The options to use.
|
1268
|
+
* - `format`: The format of the output: `compact` or
|
1269
|
+
`expand`.
|
1270
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1271
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1272
|
+
when `format` is set to `'expand'`.
|
1223
1273
|
* @returns The JSON-LD representation of this object.
|
1224
1274
|
*/
|
1225
1275
|
toJsonLd(options?: {
|
1276
|
+
format?: "compact" | "expand";
|
1226
1277
|
expand?: boolean;
|
1227
1278
|
contextLoader?: DocumentLoader;
|
1228
1279
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1574,9 +1625,16 @@ export declare class Activity extends Object {
|
|
1574
1625
|
}): AsyncIterable<Object>;
|
1575
1626
|
/**
|
1576
1627
|
* Converts this object to a JSON-LD structure.
|
1628
|
+
* @param options The options to use.
|
1629
|
+
* - `format`: The format of the output: `compact` or
|
1630
|
+
`expand`.
|
1631
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1632
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1633
|
+
when `format` is set to `'expand'`.
|
1577
1634
|
* @returns The JSON-LD representation of this object.
|
1578
1635
|
*/
|
1579
1636
|
toJsonLd(options?: {
|
1637
|
+
format?: "compact" | "expand";
|
1580
1638
|
expand?: boolean;
|
1581
1639
|
contextLoader?: DocumentLoader;
|
1582
1640
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1598,6 +1656,7 @@ export declare class Activity extends Object {
|
|
1598
1656
|
* has been accepted.
|
1599
1657
|
*/
|
1600
1658
|
export declare class Accept extends Activity {
|
1659
|
+
#private;
|
1601
1660
|
/**
|
1602
1661
|
* The type URI of {@link Accept}: `https://www.w3.org/ns/activitystreams#Accept`.
|
1603
1662
|
*/
|
@@ -1739,9 +1798,16 @@ export declare class Accept extends Activity {
|
|
1739
1798
|
}): Accept;
|
1740
1799
|
/**
|
1741
1800
|
* Converts this object to a JSON-LD structure.
|
1801
|
+
* @param options The options to use.
|
1802
|
+
* - `format`: The format of the output: `compact` or
|
1803
|
+
`expand`.
|
1804
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1805
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1806
|
+
when `format` is set to `'expand'`.
|
1742
1807
|
* @returns The JSON-LD representation of this object.
|
1743
1808
|
*/
|
1744
1809
|
toJsonLd(options?: {
|
1810
|
+
format?: "compact" | "expand";
|
1745
1811
|
expand?: boolean;
|
1746
1812
|
contextLoader?: DocumentLoader;
|
1747
1813
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1764,6 +1830,7 @@ export declare class Accept extends Activity {
|
|
1764
1830
|
* the context from which the `object` originated.
|
1765
1831
|
*/
|
1766
1832
|
export declare class Add extends Activity {
|
1833
|
+
#private;
|
1767
1834
|
/**
|
1768
1835
|
* The type URI of {@link Add}: `https://www.w3.org/ns/activitystreams#Add`.
|
1769
1836
|
*/
|
@@ -1905,9 +1972,16 @@ export declare class Add extends Activity {
|
|
1905
1972
|
}): Add;
|
1906
1973
|
/**
|
1907
1974
|
* Converts this object to a JSON-LD structure.
|
1975
|
+
* @param options The options to use.
|
1976
|
+
* - `format`: The format of the output: `compact` or
|
1977
|
+
`expand`.
|
1978
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
1979
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
1980
|
+
when `format` is set to `'expand'`.
|
1908
1981
|
* @returns The JSON-LD representation of this object.
|
1909
1982
|
*/
|
1910
1983
|
toJsonLd(options?: {
|
1984
|
+
format?: "compact" | "expand";
|
1911
1985
|
expand?: boolean;
|
1912
1986
|
contextLoader?: DocumentLoader;
|
1913
1987
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -1929,6 +2003,7 @@ export declare class Add extends Activity {
|
|
1929
2003
|
* The `origin` typically has no defined meaning.
|
1930
2004
|
*/
|
1931
2005
|
export declare class Announce extends Activity {
|
2006
|
+
#private;
|
1932
2007
|
/**
|
1933
2008
|
* The type URI of {@link Announce}: `https://www.w3.org/ns/activitystreams#Announce`.
|
1934
2009
|
*/
|
@@ -2070,9 +2145,16 @@ export declare class Announce extends Activity {
|
|
2070
2145
|
}): Announce;
|
2071
2146
|
/**
|
2072
2147
|
* Converts this object to a JSON-LD structure.
|
2148
|
+
* @param options The options to use.
|
2149
|
+
* - `format`: The format of the output: `compact` or
|
2150
|
+
`expand`.
|
2151
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
2152
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
2153
|
+
when `format` is set to `'expand'`.
|
2073
2154
|
* @returns The JSON-LD representation of this object.
|
2074
2155
|
*/
|
2075
2156
|
toJsonLd(options?: {
|
2157
|
+
format?: "compact" | "expand";
|
2076
2158
|
expand?: boolean;
|
2077
2159
|
contextLoader?: DocumentLoader;
|
2078
2160
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -2493,9 +2575,16 @@ export declare class Application extends Object {
|
|
2493
2575
|
get indexable(): boolean | null;
|
2494
2576
|
/**
|
2495
2577
|
* Converts this object to a JSON-LD structure.
|
2578
|
+
* @param options The options to use.
|
2579
|
+
* - `format`: The format of the output: `compact` or
|
2580
|
+
`expand`.
|
2581
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
2582
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
2583
|
+
when `format` is set to `'expand'`.
|
2496
2584
|
* @returns The JSON-LD representation of this object.
|
2497
2585
|
*/
|
2498
2586
|
toJsonLd(options?: {
|
2587
|
+
format?: "compact" | "expand";
|
2499
2588
|
expand?: boolean;
|
2500
2589
|
contextLoader?: DocumentLoader;
|
2501
2590
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -2517,6 +2606,7 @@ export declare class Application extends Object {
|
|
2517
2606
|
* inappropriate for these activities.
|
2518
2607
|
*/
|
2519
2608
|
export declare class IntransitiveActivity extends Activity {
|
2609
|
+
#private;
|
2520
2610
|
/**
|
2521
2611
|
* The type URI of {@link IntransitiveActivity}: `https://www.w3.org/ns/activitystreams#IntransitiveActivity`.
|
2522
2612
|
*/
|
@@ -2658,9 +2748,16 @@ export declare class IntransitiveActivity extends Activity {
|
|
2658
2748
|
}): IntransitiveActivity;
|
2659
2749
|
/**
|
2660
2750
|
* Converts this object to a JSON-LD structure.
|
2751
|
+
* @param options The options to use.
|
2752
|
+
* - `format`: The format of the output: `compact` or
|
2753
|
+
`expand`.
|
2754
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
2755
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
2756
|
+
when `format` is set to `'expand'`.
|
2661
2757
|
* @returns The JSON-LD representation of this object.
|
2662
2758
|
*/
|
2663
2759
|
toJsonLd(options?: {
|
2760
|
+
format?: "compact" | "expand";
|
2664
2761
|
expand?: boolean;
|
2665
2762
|
contextLoader?: DocumentLoader;
|
2666
2763
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -2682,6 +2779,7 @@ export declare class IntransitiveActivity extends Activity {
|
|
2682
2779
|
* The `target` typically has no defined meaning.
|
2683
2780
|
*/
|
2684
2781
|
export declare class Arrive extends IntransitiveActivity {
|
2782
|
+
#private;
|
2685
2783
|
/**
|
2686
2784
|
* The type URI of {@link Arrive}: `https://www.w3.org/ns/activitystreams#Arrive`.
|
2687
2785
|
*/
|
@@ -2823,9 +2921,16 @@ export declare class Arrive extends IntransitiveActivity {
|
|
2823
2921
|
}): Arrive;
|
2824
2922
|
/**
|
2825
2923
|
* Converts this object to a JSON-LD structure.
|
2924
|
+
* @param options The options to use.
|
2925
|
+
* - `format`: The format of the output: `compact` or
|
2926
|
+
`expand`.
|
2927
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
2928
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
2929
|
+
when `format` is set to `'expand'`.
|
2826
2930
|
* @returns The JSON-LD representation of this object.
|
2827
2931
|
*/
|
2828
2932
|
toJsonLd(options?: {
|
2933
|
+
format?: "compact" | "expand";
|
2829
2934
|
expand?: boolean;
|
2830
2935
|
contextLoader?: DocumentLoader;
|
2831
2936
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -2845,6 +2950,7 @@ export declare class Arrive extends IntransitiveActivity {
|
|
2845
2950
|
/** Represents any kind of multi-paragraph written work.
|
2846
2951
|
*/
|
2847
2952
|
export declare class Article extends Object {
|
2953
|
+
#private;
|
2848
2954
|
/**
|
2849
2955
|
* The type URI of {@link Article}: `https://www.w3.org/ns/activitystreams#Article`.
|
2850
2956
|
*/
|
@@ -2962,9 +3068,16 @@ export declare class Article extends Object {
|
|
2962
3068
|
}): Article;
|
2963
3069
|
/**
|
2964
3070
|
* Converts this object to a JSON-LD structure.
|
3071
|
+
* @param options The options to use.
|
3072
|
+
* - `format`: The format of the output: `compact` or
|
3073
|
+
`expand`.
|
3074
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3075
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3076
|
+
when `format` is set to `'expand'`.
|
2965
3077
|
* @returns The JSON-LD representation of this object.
|
2966
3078
|
*/
|
2967
3079
|
toJsonLd(options?: {
|
3080
|
+
format?: "compact" | "expand";
|
2968
3081
|
expand?: boolean;
|
2969
3082
|
contextLoader?: DocumentLoader;
|
2970
3083
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -3114,9 +3227,16 @@ export declare class Document extends Object {
|
|
3114
3227
|
get height(): number | null;
|
3115
3228
|
/**
|
3116
3229
|
* Converts this object to a JSON-LD structure.
|
3230
|
+
* @param options The options to use.
|
3231
|
+
* - `format`: The format of the output: `compact` or
|
3232
|
+
`expand`.
|
3233
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3234
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3235
|
+
when `format` is set to `'expand'`.
|
3117
3236
|
* @returns The JSON-LD representation of this object.
|
3118
3237
|
*/
|
3119
3238
|
toJsonLd(options?: {
|
3239
|
+
format?: "compact" | "expand";
|
3120
3240
|
expand?: boolean;
|
3121
3241
|
contextLoader?: DocumentLoader;
|
3122
3242
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -3136,6 +3256,7 @@ export declare class Document extends Object {
|
|
3136
3256
|
/** Represents an audio document of any kind.
|
3137
3257
|
*/
|
3138
3258
|
export declare class Audio extends Document {
|
3259
|
+
#private;
|
3139
3260
|
/**
|
3140
3261
|
* The type URI of {@link Audio}: `https://www.w3.org/ns/activitystreams#Audio`.
|
3141
3262
|
*/
|
@@ -3257,9 +3378,16 @@ export declare class Audio extends Document {
|
|
3257
3378
|
}): Audio;
|
3258
3379
|
/**
|
3259
3380
|
* Converts this object to a JSON-LD structure.
|
3381
|
+
* @param options The options to use.
|
3382
|
+
* - `format`: The format of the output: `compact` or
|
3383
|
+
`expand`.
|
3384
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3385
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3386
|
+
when `format` is set to `'expand'`.
|
3260
3387
|
* @returns The JSON-LD representation of this object.
|
3261
3388
|
*/
|
3262
3389
|
toJsonLd(options?: {
|
3390
|
+
format?: "compact" | "expand";
|
3263
3391
|
expand?: boolean;
|
3264
3392
|
contextLoader?: DocumentLoader;
|
3265
3393
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -3280,6 +3408,7 @@ export declare class Audio extends Document {
|
|
3280
3408
|
* `origin` typically have no defined meaning.
|
3281
3409
|
*/
|
3282
3410
|
export declare class Ignore extends Activity {
|
3411
|
+
#private;
|
3283
3412
|
/**
|
3284
3413
|
* The type URI of {@link Ignore}: `https://www.w3.org/ns/activitystreams#Ignore`.
|
3285
3414
|
*/
|
@@ -3421,9 +3550,16 @@ export declare class Ignore extends Activity {
|
|
3421
3550
|
}): Ignore;
|
3422
3551
|
/**
|
3423
3552
|
* Converts this object to a JSON-LD structure.
|
3553
|
+
* @param options The options to use.
|
3554
|
+
* - `format`: The format of the output: `compact` or
|
3555
|
+
`expand`.
|
3556
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3557
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3558
|
+
when `format` is set to `'expand'`.
|
3424
3559
|
* @returns The JSON-LD representation of this object.
|
3425
3560
|
*/
|
3426
3561
|
toJsonLd(options?: {
|
3562
|
+
format?: "compact" | "expand";
|
3427
3563
|
expand?: boolean;
|
3428
3564
|
contextLoader?: DocumentLoader;
|
3429
3565
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -3446,6 +3582,7 @@ export declare class Ignore extends Activity {
|
|
3446
3582
|
* and `origin` typically have no defined meaning.
|
3447
3583
|
*/
|
3448
3584
|
export declare class Block extends Ignore {
|
3585
|
+
#private;
|
3449
3586
|
/**
|
3450
3587
|
* The type URI of {@link Block}: `https://www.w3.org/ns/activitystreams#Block`.
|
3451
3588
|
*/
|
@@ -3587,9 +3724,16 @@ export declare class Block extends Ignore {
|
|
3587
3724
|
}): Block;
|
3588
3725
|
/**
|
3589
3726
|
* Converts this object to a JSON-LD structure.
|
3727
|
+
* @param options The options to use.
|
3728
|
+
* - `format`: The format of the output: `compact` or
|
3729
|
+
`expand`.
|
3730
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3731
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3732
|
+
when `format` is set to `'expand'`.
|
3590
3733
|
* @returns The JSON-LD representation of this object.
|
3591
3734
|
*/
|
3592
3735
|
toJsonLd(options?: {
|
3736
|
+
format?: "compact" | "expand";
|
3593
3737
|
expand?: boolean;
|
3594
3738
|
contextLoader?: DocumentLoader;
|
3595
3739
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -3802,9 +3946,16 @@ export declare class Collection extends Object {
|
|
3802
3946
|
}): AsyncIterable<Object | Link>;
|
3803
3947
|
/**
|
3804
3948
|
* Converts this object to a JSON-LD structure.
|
3949
|
+
* @param options The options to use.
|
3950
|
+
* - `format`: The format of the output: `compact` or
|
3951
|
+
`expand`.
|
3952
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
3953
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
3954
|
+
when `format` is set to `'expand'`.
|
3805
3955
|
* @returns The JSON-LD representation of this object.
|
3806
3956
|
*/
|
3807
3957
|
toJsonLd(options?: {
|
3958
|
+
format?: "compact" | "expand";
|
3808
3959
|
expand?: boolean;
|
3809
3960
|
contextLoader?: DocumentLoader;
|
3810
3961
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4000,9 +4151,16 @@ export declare class CollectionPage extends Collection {
|
|
4000
4151
|
}): Promise<CollectionPage | null>;
|
4001
4152
|
/**
|
4002
4153
|
* Converts this object to a JSON-LD structure.
|
4154
|
+
* @param options The options to use.
|
4155
|
+
* - `format`: The format of the output: `compact` or
|
4156
|
+
`expand`.
|
4157
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4158
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4159
|
+
when `format` is set to `'expand'`.
|
4003
4160
|
* @returns The JSON-LD representation of this object.
|
4004
4161
|
*/
|
4005
4162
|
toJsonLd(options?: {
|
4163
|
+
format?: "compact" | "expand";
|
4006
4164
|
expand?: boolean;
|
4007
4165
|
contextLoader?: DocumentLoader;
|
4008
4166
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4022,6 +4180,7 @@ export declare class CollectionPage extends Collection {
|
|
4022
4180
|
/** Indicates that the `actor` has created the `object`.
|
4023
4181
|
*/
|
4024
4182
|
export declare class Create extends Activity {
|
4183
|
+
#private;
|
4025
4184
|
/**
|
4026
4185
|
* The type URI of {@link Create}: `https://www.w3.org/ns/activitystreams#Create`.
|
4027
4186
|
*/
|
@@ -4163,9 +4322,16 @@ export declare class Create extends Activity {
|
|
4163
4322
|
}): Create;
|
4164
4323
|
/**
|
4165
4324
|
* Converts this object to a JSON-LD structure.
|
4325
|
+
* @param options The options to use.
|
4326
|
+
* - `format`: The format of the output: `compact` or
|
4327
|
+
`expand`.
|
4328
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4329
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4330
|
+
when `format` is set to `'expand'`.
|
4166
4331
|
* @returns The JSON-LD representation of this object.
|
4167
4332
|
*/
|
4168
4333
|
toJsonLd(options?: {
|
4334
|
+
format?: "compact" | "expand";
|
4169
4335
|
expand?: boolean;
|
4170
4336
|
contextLoader?: DocumentLoader;
|
4171
4337
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4186,6 +4352,7 @@ export declare class Create extends Activity {
|
|
4186
4352
|
* the `origin` indicates the context from which the `object` was deleted.
|
4187
4353
|
*/
|
4188
4354
|
export declare class Delete extends Activity {
|
4355
|
+
#private;
|
4189
4356
|
/**
|
4190
4357
|
* The type URI of {@link Delete}: `https://www.w3.org/ns/activitystreams#Delete`.
|
4191
4358
|
*/
|
@@ -4327,9 +4494,16 @@ export declare class Delete extends Activity {
|
|
4327
4494
|
}): Delete;
|
4328
4495
|
/**
|
4329
4496
|
* Converts this object to a JSON-LD structure.
|
4497
|
+
* @param options The options to use.
|
4498
|
+
* - `format`: The format of the output: `compact` or
|
4499
|
+
`expand`.
|
4500
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4501
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4502
|
+
when `format` is set to `'expand'`.
|
4330
4503
|
* @returns The JSON-LD representation of this object.
|
4331
4504
|
*/
|
4332
4505
|
toJsonLd(options?: {
|
4506
|
+
format?: "compact" | "expand";
|
4333
4507
|
expand?: boolean;
|
4334
4508
|
contextLoader?: DocumentLoader;
|
4335
4509
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4349,6 +4523,7 @@ export declare class Delete extends Activity {
|
|
4349
4523
|
/** Indicates that the `actor` dislikes the `object`.
|
4350
4524
|
*/
|
4351
4525
|
export declare class Dislike extends Activity {
|
4526
|
+
#private;
|
4352
4527
|
/**
|
4353
4528
|
* The type URI of {@link Dislike}: `https://www.w3.org/ns/activitystreams#Dislike`.
|
4354
4529
|
*/
|
@@ -4490,9 +4665,16 @@ export declare class Dislike extends Activity {
|
|
4490
4665
|
}): Dislike;
|
4491
4666
|
/**
|
4492
4667
|
* Converts this object to a JSON-LD structure.
|
4668
|
+
* @param options The options to use.
|
4669
|
+
* - `format`: The format of the output: `compact` or
|
4670
|
+
`expand`.
|
4671
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4672
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4673
|
+
when `format` is set to `'expand'`.
|
4493
4674
|
* @returns The JSON-LD representation of this object.
|
4494
4675
|
*/
|
4495
4676
|
toJsonLd(options?: {
|
4677
|
+
format?: "compact" | "expand";
|
4496
4678
|
expand?: boolean;
|
4497
4679
|
contextLoader?: DocumentLoader;
|
4498
4680
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4598,9 +4780,16 @@ export declare class Endpoints {
|
|
4598
4780
|
get sharedInbox(): URL | null;
|
4599
4781
|
/**
|
4600
4782
|
* Converts this object to a JSON-LD structure.
|
4783
|
+
* @param options The options to use.
|
4784
|
+
* - `format`: The format of the output: `compact` or
|
4785
|
+
`expand`.
|
4786
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4787
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4788
|
+
when `format` is set to `'expand'`.
|
4601
4789
|
* @returns The JSON-LD representation of this object.
|
4602
4790
|
*/
|
4603
4791
|
toJsonLd(options?: {
|
4792
|
+
format?: "compact" | "expand";
|
4604
4793
|
expand?: boolean;
|
4605
4794
|
contextLoader?: DocumentLoader;
|
4606
4795
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4620,6 +4809,7 @@ export declare class Endpoints {
|
|
4620
4809
|
/** Represents any kind of event.
|
4621
4810
|
*/
|
4622
4811
|
export declare class Event extends Object {
|
4812
|
+
#private;
|
4623
4813
|
/**
|
4624
4814
|
* The type URI of {@link Event}: `https://www.w3.org/ns/activitystreams#Event`.
|
4625
4815
|
*/
|
@@ -4737,9 +4927,16 @@ export declare class Event extends Object {
|
|
4737
4927
|
}): Event;
|
4738
4928
|
/**
|
4739
4929
|
* Converts this object to a JSON-LD structure.
|
4930
|
+
* @param options The options to use.
|
4931
|
+
* - `format`: The format of the output: `compact` or
|
4932
|
+
`expand`.
|
4933
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
4934
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
4935
|
+
when `format` is set to `'expand'`.
|
4740
4936
|
* @returns The JSON-LD representation of this object.
|
4741
4937
|
*/
|
4742
4938
|
toJsonLd(options?: {
|
4939
|
+
format?: "compact" | "expand";
|
4743
4940
|
expand?: boolean;
|
4744
4941
|
contextLoader?: DocumentLoader;
|
4745
4942
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4761,6 +4958,7 @@ export declare class Event extends Object {
|
|
4761
4958
|
* inappropriate for any number of reasons.
|
4762
4959
|
*/
|
4763
4960
|
export declare class Flag extends Activity {
|
4961
|
+
#private;
|
4764
4962
|
/**
|
4765
4963
|
* The type URI of {@link Flag}: `https://www.w3.org/ns/activitystreams#Flag`.
|
4766
4964
|
*/
|
@@ -4902,9 +5100,16 @@ export declare class Flag extends Activity {
|
|
4902
5100
|
}): Flag;
|
4903
5101
|
/**
|
4904
5102
|
* Converts this object to a JSON-LD structure.
|
5103
|
+
* @param options The options to use.
|
5104
|
+
* - `format`: The format of the output: `compact` or
|
5105
|
+
`expand`.
|
5106
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
5107
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
5108
|
+
when `format` is set to `'expand'`.
|
4905
5109
|
* @returns The JSON-LD representation of this object.
|
4906
5110
|
*/
|
4907
5111
|
toJsonLd(options?: {
|
5112
|
+
format?: "compact" | "expand";
|
4908
5113
|
expand?: boolean;
|
4909
5114
|
contextLoader?: DocumentLoader;
|
4910
5115
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -4927,6 +5132,7 @@ export declare class Flag extends Activity {
|
|
4927
5132
|
* `origin` typically have no defined meaning.
|
4928
5133
|
*/
|
4929
5134
|
export declare class Follow extends Activity {
|
5135
|
+
#private;
|
4930
5136
|
/**
|
4931
5137
|
* The type URI of {@link Follow}: `https://www.w3.org/ns/activitystreams#Follow`.
|
4932
5138
|
*/
|
@@ -5068,9 +5274,16 @@ export declare class Follow extends Activity {
|
|
5068
5274
|
}): Follow;
|
5069
5275
|
/**
|
5070
5276
|
* Converts this object to a JSON-LD structure.
|
5277
|
+
* @param options The options to use.
|
5278
|
+
* - `format`: The format of the output: `compact` or
|
5279
|
+
`expand`.
|
5280
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
5281
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
5282
|
+
when `format` is set to `'expand'`.
|
5071
5283
|
* @returns The JSON-LD representation of this object.
|
5072
5284
|
*/
|
5073
5285
|
toJsonLd(options?: {
|
5286
|
+
format?: "compact" | "expand";
|
5074
5287
|
expand?: boolean;
|
5075
5288
|
contextLoader?: DocumentLoader;
|
5076
5289
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -5491,9 +5704,16 @@ export declare class Group extends Object {
|
|
5491
5704
|
get indexable(): boolean | null;
|
5492
5705
|
/**
|
5493
5706
|
* Converts this object to a JSON-LD structure.
|
5707
|
+
* @param options The options to use.
|
5708
|
+
* - `format`: The format of the output: `compact` or
|
5709
|
+
`expand`.
|
5710
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
5711
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
5712
|
+
when `format` is set to `'expand'`.
|
5494
5713
|
* @returns The JSON-LD representation of this object.
|
5495
5714
|
*/
|
5496
5715
|
toJsonLd(options?: {
|
5716
|
+
format?: "compact" | "expand";
|
5497
5717
|
expand?: boolean;
|
5498
5718
|
contextLoader?: DocumentLoader;
|
5499
5719
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -5631,9 +5851,16 @@ export declare class Link {
|
|
5631
5851
|
}): AsyncIterable<Link | Object>;
|
5632
5852
|
/**
|
5633
5853
|
* Converts this object to a JSON-LD structure.
|
5854
|
+
* @param options The options to use.
|
5855
|
+
* - `format`: The format of the output: `compact` or
|
5856
|
+
`expand`.
|
5857
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
5858
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
5859
|
+
when `format` is set to `'expand'`.
|
5634
5860
|
* @returns The JSON-LD representation of this object.
|
5635
5861
|
*/
|
5636
5862
|
toJsonLd(options?: {
|
5863
|
+
format?: "compact" | "expand";
|
5637
5864
|
expand?: boolean;
|
5638
5865
|
contextLoader?: DocumentLoader;
|
5639
5866
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -5655,6 +5882,7 @@ export declare class Link {
|
|
5655
5882
|
* See also <https://swicg.github.io/miscellany/#Hashtag>.
|
5656
5883
|
*/
|
5657
5884
|
export declare class Hashtag extends Link {
|
5885
|
+
#private;
|
5658
5886
|
/**
|
5659
5887
|
* The type URI of {@link Hashtag}: `https://www.w3.org/ns/activitystreams#Hashtag`.
|
5660
5888
|
*/
|
@@ -5704,9 +5932,16 @@ export declare class Hashtag extends Link {
|
|
5704
5932
|
}): Hashtag;
|
5705
5933
|
/**
|
5706
5934
|
* Converts this object to a JSON-LD structure.
|
5935
|
+
* @param options The options to use.
|
5936
|
+
* - `format`: The format of the output: `compact` or
|
5937
|
+
`expand`.
|
5938
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
5939
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
5940
|
+
when `format` is set to `'expand'`.
|
5707
5941
|
* @returns The JSON-LD representation of this object.
|
5708
5942
|
*/
|
5709
5943
|
toJsonLd(options?: {
|
5944
|
+
format?: "compact" | "expand";
|
5710
5945
|
expand?: boolean;
|
5711
5946
|
contextLoader?: DocumentLoader;
|
5712
5947
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -5726,6 +5961,7 @@ export declare class Hashtag extends Link {
|
|
5726
5961
|
/** An image document of any kind.
|
5727
5962
|
*/
|
5728
5963
|
export declare class Image extends Document {
|
5964
|
+
#private;
|
5729
5965
|
/**
|
5730
5966
|
* The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
|
5731
5967
|
*/
|
@@ -5847,9 +6083,16 @@ export declare class Image extends Document {
|
|
5847
6083
|
}): Image;
|
5848
6084
|
/**
|
5849
6085
|
* Converts this object to a JSON-LD structure.
|
6086
|
+
* @param options The options to use.
|
6087
|
+
* - `format`: The format of the output: `compact` or
|
6088
|
+
`expand`.
|
6089
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6090
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6091
|
+
when `format` is set to `'expand'`.
|
5850
6092
|
* @returns The JSON-LD representation of this object.
|
5851
6093
|
*/
|
5852
6094
|
toJsonLd(options?: {
|
6095
|
+
format?: "compact" | "expand";
|
5853
6096
|
expand?: boolean;
|
5854
6097
|
contextLoader?: DocumentLoader;
|
5855
6098
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -5871,6 +6114,7 @@ export declare class Image extends Document {
|
|
5871
6114
|
* the object is being offered.
|
5872
6115
|
*/
|
5873
6116
|
export declare class Offer extends Activity {
|
6117
|
+
#private;
|
5874
6118
|
/**
|
5875
6119
|
* The type URI of {@link Offer}: `https://www.w3.org/ns/activitystreams#Offer`.
|
5876
6120
|
*/
|
@@ -6012,9 +6256,16 @@ export declare class Offer extends Activity {
|
|
6012
6256
|
}): Offer;
|
6013
6257
|
/**
|
6014
6258
|
* Converts this object to a JSON-LD structure.
|
6259
|
+
* @param options The options to use.
|
6260
|
+
* - `format`: The format of the output: `compact` or
|
6261
|
+
`expand`.
|
6262
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6263
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6264
|
+
when `format` is set to `'expand'`.
|
6015
6265
|
* @returns The JSON-LD representation of this object.
|
6016
6266
|
*/
|
6017
6267
|
toJsonLd(options?: {
|
6268
|
+
format?: "compact" | "expand";
|
6018
6269
|
expand?: boolean;
|
6019
6270
|
contextLoader?: DocumentLoader;
|
6020
6271
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6035,6 +6286,7 @@ export declare class Offer extends Activity {
|
|
6035
6286
|
* for the `object` to the `target`.
|
6036
6287
|
*/
|
6037
6288
|
export declare class Invite extends Offer {
|
6289
|
+
#private;
|
6038
6290
|
/**
|
6039
6291
|
* The type URI of {@link Invite}: `https://www.w3.org/ns/activitystreams#Invite`.
|
6040
6292
|
*/
|
@@ -6176,9 +6428,16 @@ export declare class Invite extends Offer {
|
|
6176
6428
|
}): Invite;
|
6177
6429
|
/**
|
6178
6430
|
* Converts this object to a JSON-LD structure.
|
6431
|
+
* @param options The options to use.
|
6432
|
+
* - `format`: The format of the output: `compact` or
|
6433
|
+
`expand`.
|
6434
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6435
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6436
|
+
when `format` is set to `'expand'`.
|
6179
6437
|
* @returns The JSON-LD representation of this object.
|
6180
6438
|
*/
|
6181
6439
|
toJsonLd(options?: {
|
6440
|
+
format?: "compact" | "expand";
|
6182
6441
|
expand?: boolean;
|
6183
6442
|
contextLoader?: DocumentLoader;
|
6184
6443
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6199,6 +6458,7 @@ export declare class Invite extends Offer {
|
|
6199
6458
|
* The `target` and `origin` typically have no defined meaning.
|
6200
6459
|
*/
|
6201
6460
|
export declare class Join extends Activity {
|
6461
|
+
#private;
|
6202
6462
|
/**
|
6203
6463
|
* The type URI of {@link Join}: `https://www.w3.org/ns/activitystreams#Join`.
|
6204
6464
|
*/
|
@@ -6340,9 +6600,16 @@ export declare class Join extends Activity {
|
|
6340
6600
|
}): Join;
|
6341
6601
|
/**
|
6342
6602
|
* Converts this object to a JSON-LD structure.
|
6603
|
+
* @param options The options to use.
|
6604
|
+
* - `format`: The format of the output: `compact` or
|
6605
|
+
`expand`.
|
6606
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6607
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6608
|
+
when `format` is set to `'expand'`.
|
6343
6609
|
* @returns The JSON-LD representation of this object.
|
6344
6610
|
*/
|
6345
6611
|
toJsonLd(options?: {
|
6612
|
+
format?: "compact" | "expand";
|
6346
6613
|
expand?: boolean;
|
6347
6614
|
contextLoader?: DocumentLoader;
|
6348
6615
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6363,6 +6630,7 @@ export declare class Join extends Activity {
|
|
6363
6630
|
* The `target` and `origin` typically have no meaning.
|
6364
6631
|
*/
|
6365
6632
|
export declare class Leave extends Activity {
|
6633
|
+
#private;
|
6366
6634
|
/**
|
6367
6635
|
* The type URI of {@link Leave}: `https://www.w3.org/ns/activitystreams#Leave`.
|
6368
6636
|
*/
|
@@ -6504,9 +6772,16 @@ export declare class Leave extends Activity {
|
|
6504
6772
|
}): Leave;
|
6505
6773
|
/**
|
6506
6774
|
* Converts this object to a JSON-LD structure.
|
6775
|
+
* @param options The options to use.
|
6776
|
+
* - `format`: The format of the output: `compact` or
|
6777
|
+
`expand`.
|
6778
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6779
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6780
|
+
when `format` is set to `'expand'`.
|
6507
6781
|
* @returns The JSON-LD representation of this object.
|
6508
6782
|
*/
|
6509
6783
|
toJsonLd(options?: {
|
6784
|
+
format?: "compact" | "expand";
|
6510
6785
|
expand?: boolean;
|
6511
6786
|
contextLoader?: DocumentLoader;
|
6512
6787
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6527,6 +6802,7 @@ export declare class Leave extends Activity {
|
|
6527
6802
|
* The `target` and `origin` typically have no defined meaning.
|
6528
6803
|
*/
|
6529
6804
|
export declare class Like extends Activity {
|
6805
|
+
#private;
|
6530
6806
|
/**
|
6531
6807
|
* The type URI of {@link Like}: `https://www.w3.org/ns/activitystreams#Like`.
|
6532
6808
|
*/
|
@@ -6668,9 +6944,16 @@ export declare class Like extends Activity {
|
|
6668
6944
|
}): Like;
|
6669
6945
|
/**
|
6670
6946
|
* Converts this object to a JSON-LD structure.
|
6947
|
+
* @param options The options to use.
|
6948
|
+
* - `format`: The format of the output: `compact` or
|
6949
|
+
`expand`.
|
6950
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
6951
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
6952
|
+
when `format` is set to `'expand'`.
|
6671
6953
|
* @returns The JSON-LD representation of this object.
|
6672
6954
|
*/
|
6673
6955
|
toJsonLd(options?: {
|
6956
|
+
format?: "compact" | "expand";
|
6674
6957
|
expand?: boolean;
|
6675
6958
|
contextLoader?: DocumentLoader;
|
6676
6959
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6690,6 +6973,7 @@ export declare class Like extends Activity {
|
|
6690
6973
|
/** Indicates that the `actor` has listened to the `object`.
|
6691
6974
|
*/
|
6692
6975
|
export declare class Listen extends Activity {
|
6976
|
+
#private;
|
6693
6977
|
/**
|
6694
6978
|
* The type URI of {@link Listen}: `https://www.w3.org/ns/activitystreams#Listen`.
|
6695
6979
|
*/
|
@@ -6831,9 +7115,16 @@ export declare class Listen extends Activity {
|
|
6831
7115
|
}): Listen;
|
6832
7116
|
/**
|
6833
7117
|
* Converts this object to a JSON-LD structure.
|
7118
|
+
* @param options The options to use.
|
7119
|
+
* - `format`: The format of the output: `compact` or
|
7120
|
+
`expand`.
|
7121
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7122
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7123
|
+
when `format` is set to `'expand'`.
|
6834
7124
|
* @returns The JSON-LD representation of this object.
|
6835
7125
|
*/
|
6836
7126
|
toJsonLd(options?: {
|
7127
|
+
format?: "compact" | "expand";
|
6837
7128
|
expand?: boolean;
|
6838
7129
|
contextLoader?: DocumentLoader;
|
6839
7130
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6853,6 +7144,7 @@ export declare class Listen extends Activity {
|
|
6853
7144
|
/** A specialized {@link Link} that represents an @mention.
|
6854
7145
|
*/
|
6855
7146
|
export declare class Mention extends Link {
|
7147
|
+
#private;
|
6856
7148
|
/**
|
6857
7149
|
* The type URI of {@link Mention}: `https://www.w3.org/ns/activitystreams#Mention`.
|
6858
7150
|
*/
|
@@ -6902,9 +7194,16 @@ export declare class Mention extends Link {
|
|
6902
7194
|
}): Mention;
|
6903
7195
|
/**
|
6904
7196
|
* Converts this object to a JSON-LD structure.
|
7197
|
+
* @param options The options to use.
|
7198
|
+
* - `format`: The format of the output: `compact` or
|
7199
|
+
`expand`.
|
7200
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7201
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7202
|
+
when `format` is set to `'expand'`.
|
6905
7203
|
* @returns The JSON-LD representation of this object.
|
6906
7204
|
*/
|
6907
7205
|
toJsonLd(options?: {
|
7206
|
+
format?: "compact" | "expand";
|
6908
7207
|
expand?: boolean;
|
6909
7208
|
contextLoader?: DocumentLoader;
|
6910
7209
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -6926,6 +7225,7 @@ export declare class Mention extends Link {
|
|
6926
7225
|
* either can be determined by context.
|
6927
7226
|
*/
|
6928
7227
|
export declare class Move extends Activity {
|
7228
|
+
#private;
|
6929
7229
|
/**
|
6930
7230
|
* The type URI of {@link Move}: `https://www.w3.org/ns/activitystreams#Move`.
|
6931
7231
|
*/
|
@@ -7067,9 +7367,16 @@ export declare class Move extends Activity {
|
|
7067
7367
|
}): Move;
|
7068
7368
|
/**
|
7069
7369
|
* Converts this object to a JSON-LD structure.
|
7370
|
+
* @param options The options to use.
|
7371
|
+
* - `format`: The format of the output: `compact` or
|
7372
|
+
`expand`.
|
7373
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7374
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7375
|
+
when `format` is set to `'expand'`.
|
7070
7376
|
* @returns The JSON-LD representation of this object.
|
7071
7377
|
*/
|
7072
7378
|
toJsonLd(options?: {
|
7379
|
+
format?: "compact" | "expand";
|
7073
7380
|
expand?: boolean;
|
7074
7381
|
contextLoader?: DocumentLoader;
|
7075
7382
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -7090,6 +7397,7 @@ export declare class Move extends Activity {
|
|
7090
7397
|
* length.
|
7091
7398
|
*/
|
7092
7399
|
export declare class Note extends Object {
|
7400
|
+
#private;
|
7093
7401
|
/**
|
7094
7402
|
* The type URI of {@link Note}: `https://www.w3.org/ns/activitystreams#Note`.
|
7095
7403
|
*/
|
@@ -7207,9 +7515,16 @@ export declare class Note extends Object {
|
|
7207
7515
|
}): Note;
|
7208
7516
|
/**
|
7209
7517
|
* Converts this object to a JSON-LD structure.
|
7518
|
+
* @param options The options to use.
|
7519
|
+
* - `format`: The format of the output: `compact` or
|
7520
|
+
`expand`.
|
7521
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7522
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7523
|
+
when `format` is set to `'expand'`.
|
7210
7524
|
* @returns The JSON-LD representation of this object.
|
7211
7525
|
*/
|
7212
7526
|
toJsonLd(options?: {
|
7527
|
+
format?: "compact" | "expand";
|
7213
7528
|
expand?: boolean;
|
7214
7529
|
contextLoader?: DocumentLoader;
|
7215
7530
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -7372,9 +7687,16 @@ export declare class OrderedCollection extends Collection {
|
|
7372
7687
|
}): AsyncIterable<Object | Link>;
|
7373
7688
|
/**
|
7374
7689
|
* Converts this object to a JSON-LD structure.
|
7690
|
+
* @param options The options to use.
|
7691
|
+
* - `format`: The format of the output: `compact` or
|
7692
|
+
`expand`.
|
7693
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7694
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7695
|
+
when `format` is set to `'expand'`.
|
7375
7696
|
* @returns The JSON-LD representation of this object.
|
7376
7697
|
*/
|
7377
7698
|
toJsonLd(options?: {
|
7699
|
+
format?: "compact" | "expand";
|
7378
7700
|
expand?: boolean;
|
7379
7701
|
contextLoader?: DocumentLoader;
|
7380
7702
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -7550,9 +7872,16 @@ export declare class OrderedCollectionPage extends CollectionPage {
|
|
7550
7872
|
get startIndex(): number | null;
|
7551
7873
|
/**
|
7552
7874
|
* Converts this object to a JSON-LD structure.
|
7875
|
+
* @param options The options to use.
|
7876
|
+
* - `format`: The format of the output: `compact` or
|
7877
|
+
`expand`.
|
7878
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
7879
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
7880
|
+
when `format` is set to `'expand'`.
|
7553
7881
|
* @returns The JSON-LD representation of this object.
|
7554
7882
|
*/
|
7555
7883
|
toJsonLd(options?: {
|
7884
|
+
format?: "compact" | "expand";
|
7556
7885
|
expand?: boolean;
|
7557
7886
|
contextLoader?: DocumentLoader;
|
7558
7887
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -7973,9 +8302,16 @@ export declare class Organization extends Object {
|
|
7973
8302
|
get indexable(): boolean | null;
|
7974
8303
|
/**
|
7975
8304
|
* Converts this object to a JSON-LD structure.
|
8305
|
+
* @param options The options to use.
|
8306
|
+
* - `format`: The format of the output: `compact` or
|
8307
|
+
`expand`.
|
8308
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
8309
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
8310
|
+
when `format` is set to `'expand'`.
|
7976
8311
|
* @returns The JSON-LD representation of this object.
|
7977
8312
|
*/
|
7978
8313
|
toJsonLd(options?: {
|
8314
|
+
format?: "compact" | "expand";
|
7979
8315
|
expand?: boolean;
|
7980
8316
|
contextLoader?: DocumentLoader;
|
7981
8317
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -7995,6 +8331,7 @@ export declare class Organization extends Object {
|
|
7995
8331
|
/** Represents a Web Page.
|
7996
8332
|
*/
|
7997
8333
|
export declare class Page extends Document {
|
8334
|
+
#private;
|
7998
8335
|
/**
|
7999
8336
|
* The type URI of {@link Page}: `https://www.w3.org/ns/activitystreams#Page`.
|
8000
8337
|
*/
|
@@ -8116,9 +8453,16 @@ export declare class Page extends Document {
|
|
8116
8453
|
}): Page;
|
8117
8454
|
/**
|
8118
8455
|
* Converts this object to a JSON-LD structure.
|
8456
|
+
* @param options The options to use.
|
8457
|
+
* - `format`: The format of the output: `compact` or
|
8458
|
+
`expand`.
|
8459
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
8460
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
8461
|
+
when `format` is set to `'expand'`.
|
8119
8462
|
* @returns The JSON-LD representation of this object.
|
8120
8463
|
*/
|
8121
8464
|
toJsonLd(options?: {
|
8465
|
+
format?: "compact" | "expand";
|
8122
8466
|
expand?: boolean;
|
8123
8467
|
contextLoader?: DocumentLoader;
|
8124
8468
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -8539,9 +8883,16 @@ export declare class Person extends Object {
|
|
8539
8883
|
get indexable(): boolean | null;
|
8540
8884
|
/**
|
8541
8885
|
* Converts this object to a JSON-LD structure.
|
8886
|
+
* @param options The options to use.
|
8887
|
+
* - `format`: The format of the output: `compact` or
|
8888
|
+
`expand`.
|
8889
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
8890
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
8891
|
+
when `format` is set to `'expand'`.
|
8542
8892
|
* @returns The JSON-LD representation of this object.
|
8543
8893
|
*/
|
8544
8894
|
toJsonLd(options?: {
|
8895
|
+
format?: "compact" | "expand";
|
8545
8896
|
expand?: boolean;
|
8546
8897
|
contextLoader?: DocumentLoader;
|
8547
8898
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -8719,9 +9070,16 @@ export declare class Place extends Object {
|
|
8719
9070
|
get units(): "cm" | "feet" | "inches" | "km" | "m" | "miles" | URL | null;
|
8720
9071
|
/**
|
8721
9072
|
* Converts this object to a JSON-LD structure.
|
9073
|
+
* @param options The options to use.
|
9074
|
+
* - `format`: The format of the output: `compact` or
|
9075
|
+
`expand`.
|
9076
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
9077
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
9078
|
+
when `format` is set to `'expand'`.
|
8722
9079
|
* @returns The JSON-LD representation of this object.
|
8723
9080
|
*/
|
8724
9081
|
toJsonLd(options?: {
|
9082
|
+
format?: "compact" | "expand";
|
8725
9083
|
expand?: boolean;
|
8726
9084
|
contextLoader?: DocumentLoader;
|
8727
9085
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -8879,9 +9237,16 @@ export declare class Profile extends Object {
|
|
8879
9237
|
}): Promise<Object | null>;
|
8880
9238
|
/**
|
8881
9239
|
* Converts this object to a JSON-LD structure.
|
9240
|
+
* @param options The options to use.
|
9241
|
+
* - `format`: The format of the output: `compact` or
|
9242
|
+
`expand`.
|
9243
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
9244
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
9245
|
+
when `format` is set to `'expand'`.
|
8882
9246
|
* @returns The JSON-LD representation of this object.
|
8883
9247
|
*/
|
8884
9248
|
toJsonLd(options?: {
|
9249
|
+
format?: "compact" | "expand";
|
8885
9250
|
expand?: boolean;
|
8886
9251
|
contextLoader?: DocumentLoader;
|
8887
9252
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -9096,9 +9461,16 @@ export declare class Question extends IntransitiveActivity {
|
|
9096
9461
|
get voters(): number | null;
|
9097
9462
|
/**
|
9098
9463
|
* Converts this object to a JSON-LD structure.
|
9464
|
+
* @param options The options to use.
|
9465
|
+
* - `format`: The format of the output: `compact` or
|
9466
|
+
`expand`.
|
9467
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
9468
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
9469
|
+
when `format` is set to `'expand'`.
|
9099
9470
|
* @returns The JSON-LD representation of this object.
|
9100
9471
|
*/
|
9101
9472
|
toJsonLd(options?: {
|
9473
|
+
format?: "compact" | "expand";
|
9102
9474
|
expand?: boolean;
|
9103
9475
|
contextLoader?: DocumentLoader;
|
9104
9476
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -9118,6 +9490,7 @@ export declare class Question extends IntransitiveActivity {
|
|
9118
9490
|
/** Indicates that the `actor` has read the `object`.
|
9119
9491
|
*/
|
9120
9492
|
export declare class Read extends Activity {
|
9493
|
+
#private;
|
9121
9494
|
/**
|
9122
9495
|
* The type URI of {@link Read}: `https://www.w3.org/ns/activitystreams#Read`.
|
9123
9496
|
*/
|
@@ -9259,9 +9632,16 @@ export declare class Read extends Activity {
|
|
9259
9632
|
}): Read;
|
9260
9633
|
/**
|
9261
9634
|
* Converts this object to a JSON-LD structure.
|
9635
|
+
* @param options The options to use.
|
9636
|
+
* - `format`: The format of the output: `compact` or
|
9637
|
+
`expand`.
|
9638
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
9639
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
9640
|
+
when `format` is set to `'expand'`.
|
9262
9641
|
* @returns The JSON-LD representation of this object.
|
9263
9642
|
*/
|
9264
9643
|
toJsonLd(options?: {
|
9644
|
+
format?: "compact" | "expand";
|
9265
9645
|
expand?: boolean;
|
9266
9646
|
contextLoader?: DocumentLoader;
|
9267
9647
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -9282,6 +9662,7 @@ export declare class Read extends Activity {
|
|
9282
9662
|
* `origin` typically have no defined meaning.
|
9283
9663
|
*/
|
9284
9664
|
export declare class Reject extends Activity {
|
9665
|
+
#private;
|
9285
9666
|
/**
|
9286
9667
|
* The type URI of {@link Reject}: `https://www.w3.org/ns/activitystreams#Reject`.
|
9287
9668
|
*/
|
@@ -9423,9 +9804,16 @@ export declare class Reject extends Activity {
|
|
9423
9804
|
}): Reject;
|
9424
9805
|
/**
|
9425
9806
|
* Converts this object to a JSON-LD structure.
|
9807
|
+
* @param options The options to use.
|
9808
|
+
* - `format`: The format of the output: `compact` or
|
9809
|
+
`expand`.
|
9810
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
9811
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
9812
|
+
when `format` is set to `'expand'`.
|
9426
9813
|
* @returns The JSON-LD representation of this object.
|
9427
9814
|
*/
|
9428
9815
|
toJsonLd(options?: {
|
9816
|
+
format?: "compact" | "expand";
|
9429
9817
|
expand?: boolean;
|
9430
9818
|
contextLoader?: DocumentLoader;
|
9431
9819
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -9651,9 +10039,16 @@ export declare class Relationship extends Object {
|
|
9651
10039
|
}): AsyncIterable<Object>;
|
9652
10040
|
/**
|
9653
10041
|
* Converts this object to a JSON-LD structure.
|
10042
|
+
* @param options The options to use.
|
10043
|
+
* - `format`: The format of the output: `compact` or
|
10044
|
+
`expand`.
|
10045
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
10046
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
10047
|
+
when `format` is set to `'expand'`.
|
9654
10048
|
* @returns The JSON-LD representation of this object.
|
9655
10049
|
*/
|
9656
10050
|
toJsonLd(options?: {
|
10051
|
+
format?: "compact" | "expand";
|
9657
10052
|
expand?: boolean;
|
9658
10053
|
contextLoader?: DocumentLoader;
|
9659
10054
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -9674,6 +10069,7 @@ export declare class Relationship extends Object {
|
|
9674
10069
|
* the `origin` indicates the context from which the `object` is being removed.
|
9675
10070
|
*/
|
9676
10071
|
export declare class Remove extends Activity {
|
10072
|
+
#private;
|
9677
10073
|
/**
|
9678
10074
|
* The type URI of {@link Remove}: `https://www.w3.org/ns/activitystreams#Remove`.
|
9679
10075
|
*/
|
@@ -9815,9 +10211,16 @@ export declare class Remove extends Activity {
|
|
9815
10211
|
}): Remove;
|
9816
10212
|
/**
|
9817
10213
|
* Converts this object to a JSON-LD structure.
|
10214
|
+
* @param options The options to use.
|
10215
|
+
* - `format`: The format of the output: `compact` or
|
10216
|
+
`expand`.
|
10217
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
10218
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
10219
|
+
when `format` is set to `'expand'`.
|
9818
10220
|
* @returns The JSON-LD representation of this object.
|
9819
10221
|
*/
|
9820
10222
|
toJsonLd(options?: {
|
10223
|
+
format?: "compact" | "expand";
|
9821
10224
|
expand?: boolean;
|
9822
10225
|
contextLoader?: DocumentLoader;
|
9823
10226
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10238,9 +10641,16 @@ export declare class Service extends Object {
|
|
10238
10641
|
get indexable(): boolean | null;
|
10239
10642
|
/**
|
10240
10643
|
* Converts this object to a JSON-LD structure.
|
10644
|
+
* @param options The options to use.
|
10645
|
+
* - `format`: The format of the output: `compact` or
|
10646
|
+
`expand`.
|
10647
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
10648
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
10649
|
+
when `format` is set to `'expand'`.
|
10241
10650
|
* @returns The JSON-LD representation of this object.
|
10242
10651
|
*/
|
10243
10652
|
toJsonLd(options?: {
|
10653
|
+
format?: "compact" | "expand";
|
10244
10654
|
expand?: boolean;
|
10245
10655
|
contextLoader?: DocumentLoader;
|
10246
10656
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10261,6 +10671,7 @@ export declare class Service extends Object {
|
|
10261
10671
|
* the acceptance is tentative.
|
10262
10672
|
*/
|
10263
10673
|
export declare class TentativeAccept extends Accept {
|
10674
|
+
#private;
|
10264
10675
|
/**
|
10265
10676
|
* The type URI of {@link TentativeAccept}: `https://www.w3.org/ns/activitystreams#TentativeAccept`.
|
10266
10677
|
*/
|
@@ -10402,9 +10813,16 @@ export declare class TentativeAccept extends Accept {
|
|
10402
10813
|
}): TentativeAccept;
|
10403
10814
|
/**
|
10404
10815
|
* Converts this object to a JSON-LD structure.
|
10816
|
+
* @param options The options to use.
|
10817
|
+
* - `format`: The format of the output: `compact` or
|
10818
|
+
`expand`.
|
10819
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
10820
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
10821
|
+
when `format` is set to `'expand'`.
|
10405
10822
|
* @returns The JSON-LD representation of this object.
|
10406
10823
|
*/
|
10407
10824
|
toJsonLd(options?: {
|
10825
|
+
format?: "compact" | "expand";
|
10408
10826
|
expand?: boolean;
|
10409
10827
|
contextLoader?: DocumentLoader;
|
10410
10828
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10425,6 +10843,7 @@ export declare class TentativeAccept extends Accept {
|
|
10425
10843
|
* the rejection is considered tentative.
|
10426
10844
|
*/
|
10427
10845
|
export declare class TentativeReject extends Reject {
|
10846
|
+
#private;
|
10428
10847
|
/**
|
10429
10848
|
* The type URI of {@link TentativeReject}: `https://www.w3.org/ns/activitystreams#TentativeReject`.
|
10430
10849
|
*/
|
@@ -10566,9 +10985,16 @@ export declare class TentativeReject extends Reject {
|
|
10566
10985
|
}): TentativeReject;
|
10567
10986
|
/**
|
10568
10987
|
* Converts this object to a JSON-LD structure.
|
10988
|
+
* @param options The options to use.
|
10989
|
+
* - `format`: The format of the output: `compact` or
|
10990
|
+
`expand`.
|
10991
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
10992
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
10993
|
+
when `format` is set to `'expand'`.
|
10569
10994
|
* @returns The JSON-LD representation of this object.
|
10570
10995
|
*/
|
10571
10996
|
toJsonLd(options?: {
|
10997
|
+
format?: "compact" | "expand";
|
10572
10998
|
expand?: boolean;
|
10573
10999
|
contextLoader?: DocumentLoader;
|
10574
11000
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10714,9 +11140,16 @@ export declare class Tombstone extends Object {
|
|
10714
11140
|
get deleted(): dntShim.Temporal.Instant | null;
|
10715
11141
|
/**
|
10716
11142
|
* Converts this object to a JSON-LD structure.
|
11143
|
+
* @param options The options to use.
|
11144
|
+
* - `format`: The format of the output: `compact` or
|
11145
|
+
`expand`.
|
11146
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11147
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11148
|
+
when `format` is set to `'expand'`.
|
10717
11149
|
* @returns The JSON-LD representation of this object.
|
10718
11150
|
*/
|
10719
11151
|
toJsonLd(options?: {
|
11152
|
+
format?: "compact" | "expand";
|
10720
11153
|
expand?: boolean;
|
10721
11154
|
contextLoader?: DocumentLoader;
|
10722
11155
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10739,6 +11172,7 @@ export declare class Tombstone extends Object {
|
|
10739
11172
|
* either can be determined by context.
|
10740
11173
|
*/
|
10741
11174
|
export declare class Travel extends IntransitiveActivity {
|
11175
|
+
#private;
|
10742
11176
|
/**
|
10743
11177
|
* The type URI of {@link Travel}: `https://www.w3.org/ns/activitystreams#Travel`.
|
10744
11178
|
*/
|
@@ -10880,9 +11314,16 @@ export declare class Travel extends IntransitiveActivity {
|
|
10880
11314
|
}): Travel;
|
10881
11315
|
/**
|
10882
11316
|
* Converts this object to a JSON-LD structure.
|
11317
|
+
* @param options The options to use.
|
11318
|
+
* - `format`: The format of the output: `compact` or
|
11319
|
+
`expand`.
|
11320
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11321
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11322
|
+
when `format` is set to `'expand'`.
|
10883
11323
|
* @returns The JSON-LD representation of this object.
|
10884
11324
|
*/
|
10885
11325
|
toJsonLd(options?: {
|
11326
|
+
format?: "compact" | "expand";
|
10886
11327
|
expand?: boolean;
|
10887
11328
|
contextLoader?: DocumentLoader;
|
10888
11329
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -10908,6 +11349,7 @@ export declare class Travel extends IntransitiveActivity {
|
|
10908
11349
|
* The `target` and `origin` typically have no defined meaning.
|
10909
11350
|
*/
|
10910
11351
|
export declare class Undo extends Activity {
|
11352
|
+
#private;
|
10911
11353
|
/**
|
10912
11354
|
* The type URI of {@link Undo}: `https://www.w3.org/ns/activitystreams#Undo`.
|
10913
11355
|
*/
|
@@ -11049,9 +11491,16 @@ export declare class Undo extends Activity {
|
|
11049
11491
|
}): Undo;
|
11050
11492
|
/**
|
11051
11493
|
* Converts this object to a JSON-LD structure.
|
11494
|
+
* @param options The options to use.
|
11495
|
+
* - `format`: The format of the output: `compact` or
|
11496
|
+
`expand`.
|
11497
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11498
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11499
|
+
when `format` is set to `'expand'`.
|
11052
11500
|
* @returns The JSON-LD representation of this object.
|
11053
11501
|
*/
|
11054
11502
|
toJsonLd(options?: {
|
11503
|
+
format?: "compact" | "expand";
|
11055
11504
|
expand?: boolean;
|
11056
11505
|
contextLoader?: DocumentLoader;
|
11057
11506
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -11075,6 +11524,7 @@ export declare class Undo extends Activity {
|
|
11075
11524
|
* The `target` and `origin` typically have no defined meaning.
|
11076
11525
|
*/
|
11077
11526
|
export declare class Update extends Activity {
|
11527
|
+
#private;
|
11078
11528
|
/**
|
11079
11529
|
* The type URI of {@link Update}: `https://www.w3.org/ns/activitystreams#Update`.
|
11080
11530
|
*/
|
@@ -11216,9 +11666,16 @@ export declare class Update extends Activity {
|
|
11216
11666
|
}): Update;
|
11217
11667
|
/**
|
11218
11668
|
* Converts this object to a JSON-LD structure.
|
11669
|
+
* @param options The options to use.
|
11670
|
+
* - `format`: The format of the output: `compact` or
|
11671
|
+
`expand`.
|
11672
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11673
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11674
|
+
when `format` is set to `'expand'`.
|
11219
11675
|
* @returns The JSON-LD representation of this object.
|
11220
11676
|
*/
|
11221
11677
|
toJsonLd(options?: {
|
11678
|
+
format?: "compact" | "expand";
|
11222
11679
|
expand?: boolean;
|
11223
11680
|
contextLoader?: DocumentLoader;
|
11224
11681
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -11238,6 +11695,7 @@ export declare class Update extends Activity {
|
|
11238
11695
|
/** Represents a video document of any kind.
|
11239
11696
|
*/
|
11240
11697
|
export declare class Video extends Document {
|
11698
|
+
#private;
|
11241
11699
|
/**
|
11242
11700
|
* The type URI of {@link Video}: `https://www.w3.org/ns/activitystreams#Video`.
|
11243
11701
|
*/
|
@@ -11359,9 +11817,16 @@ export declare class Video extends Document {
|
|
11359
11817
|
}): Video;
|
11360
11818
|
/**
|
11361
11819
|
* Converts this object to a JSON-LD structure.
|
11820
|
+
* @param options The options to use.
|
11821
|
+
* - `format`: The format of the output: `compact` or
|
11822
|
+
`expand`.
|
11823
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11824
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11825
|
+
when `format` is set to `'expand'`.
|
11362
11826
|
* @returns The JSON-LD representation of this object.
|
11363
11827
|
*/
|
11364
11828
|
toJsonLd(options?: {
|
11829
|
+
format?: "compact" | "expand";
|
11365
11830
|
expand?: boolean;
|
11366
11831
|
contextLoader?: DocumentLoader;
|
11367
11832
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
@@ -11381,6 +11846,7 @@ export declare class Video extends Document {
|
|
11381
11846
|
/** Indicates that the `actor` has viewed the object.
|
11382
11847
|
*/
|
11383
11848
|
export declare class View extends Activity {
|
11849
|
+
#private;
|
11384
11850
|
/**
|
11385
11851
|
* The type URI of {@link View}: `https://www.w3.org/ns/activitystreams#View`.
|
11386
11852
|
*/
|
@@ -11522,9 +11988,16 @@ export declare class View extends Activity {
|
|
11522
11988
|
}): View;
|
11523
11989
|
/**
|
11524
11990
|
* Converts this object to a JSON-LD structure.
|
11991
|
+
* @param options The options to use.
|
11992
|
+
* - `format`: The format of the output: `compact` or
|
11993
|
+
`expand`.
|
11994
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
11995
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
11996
|
+
when `format` is set to `'expand'`.
|
11525
11997
|
* @returns The JSON-LD representation of this object.
|
11526
11998
|
*/
|
11527
11999
|
toJsonLd(options?: {
|
12000
|
+
format?: "compact" | "expand";
|
11528
12001
|
expand?: boolean;
|
11529
12002
|
contextLoader?: DocumentLoader;
|
11530
12003
|
context?: string | Record<string, string> | (string | Record<string, string>)[];
|