@fedify/fedify 0.11.0-dev.241 → 0.11.0-dev.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1163,6 +1163,14 @@ export declare class Activity extends Object {
1163
1163
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1164
1164
  object?: Object | URL | null;
1165
1165
  objects?: (Object | URL)[];
1166
+ target?: Object | URL | null;
1167
+ targets?: (Object | URL)[];
1168
+ result?: Object | URL | null;
1169
+ results?: (Object | URL)[];
1170
+ origin?: Object | URL | null;
1171
+ origins?: (Object | URL)[];
1172
+ instrument?: Object | URL | null;
1173
+ instruments?: (Object | URL)[];
1166
1174
  }, { documentLoader, contextLoader, }?: {
1167
1175
  documentLoader?: DocumentLoader;
1168
1176
  contextLoader?: DocumentLoader;
@@ -1223,6 +1231,14 @@ export declare class Activity extends Object {
1223
1231
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1224
1232
  object?: Object | URL | null;
1225
1233
  objects?: (Object | URL)[];
1234
+ target?: Object | URL | null;
1235
+ targets?: (Object | URL)[];
1236
+ result?: Object | URL | null;
1237
+ results?: (Object | URL)[];
1238
+ origin?: Object | URL | null;
1239
+ origins?: (Object | URL)[];
1240
+ instrument?: Object | URL | null;
1241
+ instruments?: (Object | URL)[];
1226
1242
  }, options?: {
1227
1243
  documentLoader?: DocumentLoader;
1228
1244
  contextLoader?: DocumentLoader;
@@ -1287,6 +1303,132 @@ export declare class Activity extends Object {
1287
1303
  contextLoader?: DocumentLoader;
1288
1304
  suppressError?: boolean;
1289
1305
  }): AsyncIterable<Object>;
1306
+ /**
1307
+ * Similar to
1308
+ * {@link Activity.getTarget},
1309
+ * but returns its `@id` URL instead of the object itself.
1310
+ */
1311
+ get targetId(): URL | null;
1312
+ /** Describes the indirect object, or target, of the activity. The precise
1313
+ * meaning of the target is largely dependent on the type of action being
1314
+ * described but will often be the object of the English preposition "to".
1315
+ * For instance, in the activity "John added a movie to his wishlist",
1316
+ * the target of the activity is John's wishlist. An activity can have more
1317
+ * than one target.
1318
+ */
1319
+ getTarget(options?: {
1320
+ documentLoader?: DocumentLoader;
1321
+ contextLoader?: DocumentLoader;
1322
+ suppressError?: boolean;
1323
+ }): Promise<Object | null>;
1324
+ /**
1325
+ * Similar to
1326
+ * {@link Activity.getTargets},
1327
+ * but returns their `@id`s instead of the objects themselves.
1328
+ */
1329
+ get targetIds(): URL[];
1330
+ /** Describes the indirect object, or target, of the activity. The precise
1331
+ * meaning of the target is largely dependent on the type of action being
1332
+ * described but will often be the object of the English preposition "to".
1333
+ * For instance, in the activity "John added a movie to his wishlist",
1334
+ * the target of the activity is John's wishlist. An activity can have more
1335
+ * than one target.
1336
+ */
1337
+ getTargets(options?: {
1338
+ documentLoader?: DocumentLoader;
1339
+ contextLoader?: DocumentLoader;
1340
+ suppressError?: boolean;
1341
+ }): AsyncIterable<Object>;
1342
+ /**
1343
+ * Similar to
1344
+ * {@link Activity.getResult},
1345
+ * but returns its `@id` URL instead of the object itself.
1346
+ */
1347
+ get resultId(): URL | null;
1348
+ /** Describes the result of the activity. For instance, if a particular action
1349
+ * results in the creation of a new resource, the result property can be used
1350
+ * to describe that new resource.
1351
+ */
1352
+ getResult(options?: {
1353
+ documentLoader?: DocumentLoader;
1354
+ contextLoader?: DocumentLoader;
1355
+ suppressError?: boolean;
1356
+ }): Promise<Object | null>;
1357
+ /**
1358
+ * Similar to
1359
+ * {@link Activity.getResults},
1360
+ * but returns their `@id`s instead of the objects themselves.
1361
+ */
1362
+ get resultIds(): URL[];
1363
+ /** Describes the result of the activity. For instance, if a particular action
1364
+ * results in the creation of a new resource, the result property can be used
1365
+ * to describe that new resource.
1366
+ */
1367
+ getResults(options?: {
1368
+ documentLoader?: DocumentLoader;
1369
+ contextLoader?: DocumentLoader;
1370
+ suppressError?: boolean;
1371
+ }): AsyncIterable<Object>;
1372
+ /**
1373
+ * Similar to
1374
+ * {@link Activity.getOrigin},
1375
+ * but returns its `@id` URL instead of the object itself.
1376
+ */
1377
+ get originId(): URL | null;
1378
+ /** Describes an indirect object of the activity from which the activity is
1379
+ * directed. The precise meaning of the origin is the object of the English
1380
+ * preposition "from". For instance, in the activity "John moved an item to
1381
+ * List B from List A", the origin of the activity is "List A".
1382
+ */
1383
+ getOrigin(options?: {
1384
+ documentLoader?: DocumentLoader;
1385
+ contextLoader?: DocumentLoader;
1386
+ suppressError?: boolean;
1387
+ }): Promise<Object | null>;
1388
+ /**
1389
+ * Similar to
1390
+ * {@link Activity.getOrigins},
1391
+ * but returns their `@id`s instead of the objects themselves.
1392
+ */
1393
+ get originIds(): URL[];
1394
+ /** Describes an indirect object of the activity from which the activity is
1395
+ * directed. The precise meaning of the origin is the object of the English
1396
+ * preposition "from". For instance, in the activity "John moved an item to
1397
+ * List B from List A", the origin of the activity is "List A".
1398
+ */
1399
+ getOrigins(options?: {
1400
+ documentLoader?: DocumentLoader;
1401
+ contextLoader?: DocumentLoader;
1402
+ suppressError?: boolean;
1403
+ }): AsyncIterable<Object>;
1404
+ /**
1405
+ * Similar to
1406
+ * {@link Activity.getInstrument},
1407
+ * but returns its `@id` URL instead of the object itself.
1408
+ */
1409
+ get instrumentId(): URL | null;
1410
+ /** Identifies one or more objects used (or to be used) in the completion of
1411
+ * an {@link Activity}.
1412
+ */
1413
+ getInstrument(options?: {
1414
+ documentLoader?: DocumentLoader;
1415
+ contextLoader?: DocumentLoader;
1416
+ suppressError?: boolean;
1417
+ }): Promise<Object | null>;
1418
+ /**
1419
+ * Similar to
1420
+ * {@link Activity.getInstruments},
1421
+ * but returns their `@id`s instead of the objects themselves.
1422
+ */
1423
+ get instrumentIds(): URL[];
1424
+ /** Identifies one or more objects used (or to be used) in the completion of
1425
+ * an {@link Activity}.
1426
+ */
1427
+ getInstruments(options?: {
1428
+ documentLoader?: DocumentLoader;
1429
+ contextLoader?: DocumentLoader;
1430
+ suppressError?: boolean;
1431
+ }): AsyncIterable<Object>;
1290
1432
  /**
1291
1433
  * Converts this object to a JSON-LD structure.
1292
1434
  * @returns The JSON-LD representation of this object.
@@ -1372,6 +1514,14 @@ export declare class Accept extends Activity {
1372
1514
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1373
1515
  object?: Object | URL | null;
1374
1516
  objects?: (Object | URL)[];
1517
+ target?: Object | URL | null;
1518
+ targets?: (Object | URL)[];
1519
+ result?: Object | URL | null;
1520
+ results?: (Object | URL)[];
1521
+ origin?: Object | URL | null;
1522
+ origins?: (Object | URL)[];
1523
+ instrument?: Object | URL | null;
1524
+ instruments?: (Object | URL)[];
1375
1525
  }, { documentLoader, contextLoader, }?: {
1376
1526
  documentLoader?: DocumentLoader;
1377
1527
  contextLoader?: DocumentLoader;
@@ -1432,6 +1582,14 @@ export declare class Accept extends Activity {
1432
1582
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1433
1583
  object?: Object | URL | null;
1434
1584
  objects?: (Object | URL)[];
1585
+ target?: Object | URL | null;
1586
+ targets?: (Object | URL)[];
1587
+ result?: Object | URL | null;
1588
+ results?: (Object | URL)[];
1589
+ origin?: Object | URL | null;
1590
+ origins?: (Object | URL)[];
1591
+ instrument?: Object | URL | null;
1592
+ instruments?: (Object | URL)[];
1435
1593
  }, options?: {
1436
1594
  documentLoader?: DocumentLoader;
1437
1595
  contextLoader?: DocumentLoader;
@@ -1522,6 +1680,14 @@ export declare class Add extends Activity {
1522
1680
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1523
1681
  object?: Object | URL | null;
1524
1682
  objects?: (Object | URL)[];
1683
+ target?: Object | URL | null;
1684
+ targets?: (Object | URL)[];
1685
+ result?: Object | URL | null;
1686
+ results?: (Object | URL)[];
1687
+ origin?: Object | URL | null;
1688
+ origins?: (Object | URL)[];
1689
+ instrument?: Object | URL | null;
1690
+ instruments?: (Object | URL)[];
1525
1691
  }, { documentLoader, contextLoader, }?: {
1526
1692
  documentLoader?: DocumentLoader;
1527
1693
  contextLoader?: DocumentLoader;
@@ -1582,6 +1748,14 @@ export declare class Add extends Activity {
1582
1748
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1583
1749
  object?: Object | URL | null;
1584
1750
  objects?: (Object | URL)[];
1751
+ target?: Object | URL | null;
1752
+ targets?: (Object | URL)[];
1753
+ result?: Object | URL | null;
1754
+ results?: (Object | URL)[];
1755
+ origin?: Object | URL | null;
1756
+ origins?: (Object | URL)[];
1757
+ instrument?: Object | URL | null;
1758
+ instruments?: (Object | URL)[];
1585
1759
  }, options?: {
1586
1760
  documentLoader?: DocumentLoader;
1587
1761
  contextLoader?: DocumentLoader;
@@ -1671,6 +1845,14 @@ export declare class Announce extends Activity {
1671
1845
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1672
1846
  object?: Object | URL | null;
1673
1847
  objects?: (Object | URL)[];
1848
+ target?: Object | URL | null;
1849
+ targets?: (Object | URL)[];
1850
+ result?: Object | URL | null;
1851
+ results?: (Object | URL)[];
1852
+ origin?: Object | URL | null;
1853
+ origins?: (Object | URL)[];
1854
+ instrument?: Object | URL | null;
1855
+ instruments?: (Object | URL)[];
1674
1856
  }, { documentLoader, contextLoader, }?: {
1675
1857
  documentLoader?: DocumentLoader;
1676
1858
  contextLoader?: DocumentLoader;
@@ -1731,6 +1913,14 @@ export declare class Announce extends Activity {
1731
1913
  actors?: (Application | Group | Organization | Person | Service | URL)[];
1732
1914
  object?: Object | URL | null;
1733
1915
  objects?: (Object | URL)[];
1916
+ target?: Object | URL | null;
1917
+ targets?: (Object | URL)[];
1918
+ result?: Object | URL | null;
1919
+ results?: (Object | URL)[];
1920
+ origin?: Object | URL | null;
1921
+ origins?: (Object | URL)[];
1922
+ instrument?: Object | URL | null;
1923
+ instruments?: (Object | URL)[];
1734
1924
  }, options?: {
1735
1925
  documentLoader?: DocumentLoader;
1736
1926
  contextLoader?: DocumentLoader;
@@ -2225,6 +2415,14 @@ export declare class IntransitiveActivity extends Activity {
2225
2415
  actors?: (Application | Group | Organization | Person | Service | URL)[];
2226
2416
  object?: Object | URL | null;
2227
2417
  objects?: (Object | URL)[];
2418
+ target?: Object | URL | null;
2419
+ targets?: (Object | URL)[];
2420
+ result?: Object | URL | null;
2421
+ results?: (Object | URL)[];
2422
+ origin?: Object | URL | null;
2423
+ origins?: (Object | URL)[];
2424
+ instrument?: Object | URL | null;
2425
+ instruments?: (Object | URL)[];
2228
2426
  }, { documentLoader, contextLoader, }?: {
2229
2427
  documentLoader?: DocumentLoader;
2230
2428
  contextLoader?: DocumentLoader;
@@ -2285,6 +2483,14 @@ export declare class IntransitiveActivity extends Activity {
2285
2483
  actors?: (Application | Group | Organization | Person | Service | URL)[];
2286
2484
  object?: Object | URL | null;
2287
2485
  objects?: (Object | URL)[];
2486
+ target?: Object | URL | null;
2487
+ targets?: (Object | URL)[];
2488
+ result?: Object | URL | null;
2489
+ results?: (Object | URL)[];
2490
+ origin?: Object | URL | null;
2491
+ origins?: (Object | URL)[];
2492
+ instrument?: Object | URL | null;
2493
+ instruments?: (Object | URL)[];
2288
2494
  }, options?: {
2289
2495
  documentLoader?: DocumentLoader;
2290
2496
  contextLoader?: DocumentLoader;
@@ -2374,6 +2580,14 @@ export declare class Arrive extends IntransitiveActivity {
2374
2580
  actors?: (Application | Group | Organization | Person | Service | URL)[];
2375
2581
  object?: Object | URL | null;
2376
2582
  objects?: (Object | URL)[];
2583
+ target?: Object | URL | null;
2584
+ targets?: (Object | URL)[];
2585
+ result?: Object | URL | null;
2586
+ results?: (Object | URL)[];
2587
+ origin?: Object | URL | null;
2588
+ origins?: (Object | URL)[];
2589
+ instrument?: Object | URL | null;
2590
+ instruments?: (Object | URL)[];
2377
2591
  }, { documentLoader, contextLoader, }?: {
2378
2592
  documentLoader?: DocumentLoader;
2379
2593
  contextLoader?: DocumentLoader;
@@ -2434,6 +2648,14 @@ export declare class Arrive extends IntransitiveActivity {
2434
2648
  actors?: (Application | Group | Organization | Person | Service | URL)[];
2435
2649
  object?: Object | URL | null;
2436
2650
  objects?: (Object | URL)[];
2651
+ target?: Object | URL | null;
2652
+ targets?: (Object | URL)[];
2653
+ result?: Object | URL | null;
2654
+ results?: (Object | URL)[];
2655
+ origin?: Object | URL | null;
2656
+ origins?: (Object | URL)[];
2657
+ instrument?: Object | URL | null;
2658
+ instruments?: (Object | URL)[];
2437
2659
  }, options?: {
2438
2660
  documentLoader?: DocumentLoader;
2439
2661
  contextLoader?: DocumentLoader;
@@ -2956,6 +3178,14 @@ export declare class Ignore extends Activity {
2956
3178
  actors?: (Application | Group | Organization | Person | Service | URL)[];
2957
3179
  object?: Object | URL | null;
2958
3180
  objects?: (Object | URL)[];
3181
+ target?: Object | URL | null;
3182
+ targets?: (Object | URL)[];
3183
+ result?: Object | URL | null;
3184
+ results?: (Object | URL)[];
3185
+ origin?: Object | URL | null;
3186
+ origins?: (Object | URL)[];
3187
+ instrument?: Object | URL | null;
3188
+ instruments?: (Object | URL)[];
2959
3189
  }, { documentLoader, contextLoader, }?: {
2960
3190
  documentLoader?: DocumentLoader;
2961
3191
  contextLoader?: DocumentLoader;
@@ -3016,6 +3246,14 @@ export declare class Ignore extends Activity {
3016
3246
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3017
3247
  object?: Object | URL | null;
3018
3248
  objects?: (Object | URL)[];
3249
+ target?: Object | URL | null;
3250
+ targets?: (Object | URL)[];
3251
+ result?: Object | URL | null;
3252
+ results?: (Object | URL)[];
3253
+ origin?: Object | URL | null;
3254
+ origins?: (Object | URL)[];
3255
+ instrument?: Object | URL | null;
3256
+ instruments?: (Object | URL)[];
3019
3257
  }, options?: {
3020
3258
  documentLoader?: DocumentLoader;
3021
3259
  contextLoader?: DocumentLoader;
@@ -3106,6 +3344,14 @@ export declare class Block extends Ignore {
3106
3344
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3107
3345
  object?: Object | URL | null;
3108
3346
  objects?: (Object | URL)[];
3347
+ target?: Object | URL | null;
3348
+ targets?: (Object | URL)[];
3349
+ result?: Object | URL | null;
3350
+ results?: (Object | URL)[];
3351
+ origin?: Object | URL | null;
3352
+ origins?: (Object | URL)[];
3353
+ instrument?: Object | URL | null;
3354
+ instruments?: (Object | URL)[];
3109
3355
  }, { documentLoader, contextLoader, }?: {
3110
3356
  documentLoader?: DocumentLoader;
3111
3357
  contextLoader?: DocumentLoader;
@@ -3166,6 +3412,14 @@ export declare class Block extends Ignore {
3166
3412
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3167
3413
  object?: Object | URL | null;
3168
3414
  objects?: (Object | URL)[];
3415
+ target?: Object | URL | null;
3416
+ targets?: (Object | URL)[];
3417
+ result?: Object | URL | null;
3418
+ results?: (Object | URL)[];
3419
+ origin?: Object | URL | null;
3420
+ origins?: (Object | URL)[];
3421
+ instrument?: Object | URL | null;
3422
+ instruments?: (Object | URL)[];
3169
3423
  }, options?: {
3170
3424
  documentLoader?: DocumentLoader;
3171
3425
  contextLoader?: DocumentLoader;
@@ -3255,10 +3509,10 @@ export declare class Collection extends Object {
3255
3509
  proof?: DataIntegrityProof | URL | null;
3256
3510
  proofs?: (DataIntegrityProof | URL)[];
3257
3511
  totalItems?: number | null;
3258
- current?: CollectionPage | Link | URL | null;
3259
- first?: CollectionPage | Link | URL | null;
3260
- last?: CollectionPage | Link | URL | null;
3261
- items?: (Object | Link | URL)[];
3512
+ current?: CollectionPage | URL | null;
3513
+ first?: CollectionPage | URL | null;
3514
+ last?: CollectionPage | URL | null;
3515
+ items?: (Object | URL)[];
3262
3516
  }, { documentLoader, contextLoader, }?: {
3263
3517
  documentLoader?: DocumentLoader;
3264
3518
  contextLoader?: DocumentLoader;
@@ -3316,10 +3570,10 @@ export declare class Collection extends Object {
3316
3570
  proof?: DataIntegrityProof | URL | null;
3317
3571
  proofs?: (DataIntegrityProof | URL)[];
3318
3572
  totalItems?: number | null;
3319
- current?: CollectionPage | Link | URL | null;
3320
- first?: CollectionPage | Link | URL | null;
3321
- last?: CollectionPage | Link | URL | null;
3322
- items?: (Object | Link | URL)[];
3573
+ current?: CollectionPage | URL | null;
3574
+ first?: CollectionPage | URL | null;
3575
+ last?: CollectionPage | URL | null;
3576
+ items?: (Object | URL)[];
3323
3577
  }, options?: {
3324
3578
  documentLoader?: DocumentLoader;
3325
3579
  contextLoader?: DocumentLoader;
@@ -3342,7 +3596,7 @@ export declare class Collection extends Object {
3342
3596
  documentLoader?: DocumentLoader;
3343
3597
  contextLoader?: DocumentLoader;
3344
3598
  suppressError?: boolean;
3345
- }): Promise<CollectionPage | Link | null>;
3599
+ }): Promise<CollectionPage | null>;
3346
3600
  /**
3347
3601
  * Similar to
3348
3602
  * {@link Collection.getFirst},
@@ -3356,7 +3610,7 @@ export declare class Collection extends Object {
3356
3610
  documentLoader?: DocumentLoader;
3357
3611
  contextLoader?: DocumentLoader;
3358
3612
  suppressError?: boolean;
3359
- }): Promise<CollectionPage | Link | null>;
3613
+ }): Promise<CollectionPage | null>;
3360
3614
  /**
3361
3615
  * Similar to
3362
3616
  * {@link Collection.getLast},
@@ -3370,7 +3624,7 @@ export declare class Collection extends Object {
3370
3624
  documentLoader?: DocumentLoader;
3371
3625
  contextLoader?: DocumentLoader;
3372
3626
  suppressError?: boolean;
3373
- }): Promise<CollectionPage | Link | null>;
3627
+ }): Promise<CollectionPage | null>;
3374
3628
  /**
3375
3629
  * Similar to
3376
3630
  * {@link Collection.getItems},
@@ -3384,7 +3638,7 @@ export declare class Collection extends Object {
3384
3638
  documentLoader?: DocumentLoader;
3385
3639
  contextLoader?: DocumentLoader;
3386
3640
  suppressError?: boolean;
3387
- }): AsyncIterable<Object | Link>;
3641
+ }): AsyncIterable<Object>;
3388
3642
  /**
3389
3643
  * Converts this object to a JSON-LD structure.
3390
3644
  * @returns The JSON-LD representation of this object.
@@ -3468,13 +3722,13 @@ export declare class CollectionPage extends Collection {
3468
3722
  proof?: DataIntegrityProof | URL | null;
3469
3723
  proofs?: (DataIntegrityProof | URL)[];
3470
3724
  totalItems?: number | null;
3471
- current?: CollectionPage | Link | URL | null;
3472
- first?: CollectionPage | Link | URL | null;
3473
- last?: CollectionPage | Link | URL | null;
3474
- items?: (Object | Link | URL)[];
3475
- partOf?: Link | Collection | URL | null;
3476
- next?: CollectionPage | Link | URL | null;
3477
- prev?: CollectionPage | Link | URL | null;
3725
+ current?: CollectionPage | URL | null;
3726
+ first?: CollectionPage | URL | null;
3727
+ last?: CollectionPage | URL | null;
3728
+ items?: (Object | URL)[];
3729
+ partOf?: Collection | URL | null;
3730
+ next?: CollectionPage | URL | null;
3731
+ prev?: CollectionPage | URL | null;
3478
3732
  }, { documentLoader, contextLoader, }?: {
3479
3733
  documentLoader?: DocumentLoader;
3480
3734
  contextLoader?: DocumentLoader;
@@ -3532,13 +3786,13 @@ export declare class CollectionPage extends Collection {
3532
3786
  proof?: DataIntegrityProof | URL | null;
3533
3787
  proofs?: (DataIntegrityProof | URL)[];
3534
3788
  totalItems?: number | null;
3535
- current?: CollectionPage | Link | URL | null;
3536
- first?: CollectionPage | Link | URL | null;
3537
- last?: CollectionPage | Link | URL | null;
3538
- items?: (Object | Link | URL)[];
3539
- partOf?: Link | Collection | URL | null;
3540
- next?: CollectionPage | Link | URL | null;
3541
- prev?: CollectionPage | Link | URL | null;
3789
+ current?: CollectionPage | URL | null;
3790
+ first?: CollectionPage | URL | null;
3791
+ last?: CollectionPage | URL | null;
3792
+ items?: (Object | URL)[];
3793
+ partOf?: Collection | URL | null;
3794
+ next?: CollectionPage | URL | null;
3795
+ prev?: CollectionPage | URL | null;
3542
3796
  }, options?: {
3543
3797
  documentLoader?: DocumentLoader;
3544
3798
  contextLoader?: DocumentLoader;
@@ -3556,7 +3810,7 @@ export declare class CollectionPage extends Collection {
3556
3810
  documentLoader?: DocumentLoader;
3557
3811
  contextLoader?: DocumentLoader;
3558
3812
  suppressError?: boolean;
3559
- }): Promise<Link | Collection | null>;
3813
+ }): Promise<Collection | null>;
3560
3814
  /**
3561
3815
  * Similar to
3562
3816
  * {@link CollectionPage.getNext},
@@ -3569,7 +3823,7 @@ export declare class CollectionPage extends Collection {
3569
3823
  documentLoader?: DocumentLoader;
3570
3824
  contextLoader?: DocumentLoader;
3571
3825
  suppressError?: boolean;
3572
- }): Promise<CollectionPage | Link | null>;
3826
+ }): Promise<CollectionPage | null>;
3573
3827
  /**
3574
3828
  * Similar to
3575
3829
  * {@link CollectionPage.getPrev},
@@ -3582,7 +3836,7 @@ export declare class CollectionPage extends Collection {
3582
3836
  documentLoader?: DocumentLoader;
3583
3837
  contextLoader?: DocumentLoader;
3584
3838
  suppressError?: boolean;
3585
- }): Promise<CollectionPage | Link | null>;
3839
+ }): Promise<CollectionPage | null>;
3586
3840
  /**
3587
3841
  * Converts this object to a JSON-LD structure.
3588
3842
  * @returns The JSON-LD representation of this object.
@@ -3666,6 +3920,14 @@ export declare class Create extends Activity {
3666
3920
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3667
3921
  object?: Object | URL | null;
3668
3922
  objects?: (Object | URL)[];
3923
+ target?: Object | URL | null;
3924
+ targets?: (Object | URL)[];
3925
+ result?: Object | URL | null;
3926
+ results?: (Object | URL)[];
3927
+ origin?: Object | URL | null;
3928
+ origins?: (Object | URL)[];
3929
+ instrument?: Object | URL | null;
3930
+ instruments?: (Object | URL)[];
3669
3931
  }, { documentLoader, contextLoader, }?: {
3670
3932
  documentLoader?: DocumentLoader;
3671
3933
  contextLoader?: DocumentLoader;
@@ -3726,6 +3988,14 @@ export declare class Create extends Activity {
3726
3988
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3727
3989
  object?: Object | URL | null;
3728
3990
  objects?: (Object | URL)[];
3991
+ target?: Object | URL | null;
3992
+ targets?: (Object | URL)[];
3993
+ result?: Object | URL | null;
3994
+ results?: (Object | URL)[];
3995
+ origin?: Object | URL | null;
3996
+ origins?: (Object | URL)[];
3997
+ instrument?: Object | URL | null;
3998
+ instruments?: (Object | URL)[];
3729
3999
  }, options?: {
3730
4000
  documentLoader?: DocumentLoader;
3731
4001
  contextLoader?: DocumentLoader;
@@ -3814,6 +4084,14 @@ export declare class Delete extends Activity {
3814
4084
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3815
4085
  object?: Object | URL | null;
3816
4086
  objects?: (Object | URL)[];
4087
+ target?: Object | URL | null;
4088
+ targets?: (Object | URL)[];
4089
+ result?: Object | URL | null;
4090
+ results?: (Object | URL)[];
4091
+ origin?: Object | URL | null;
4092
+ origins?: (Object | URL)[];
4093
+ instrument?: Object | URL | null;
4094
+ instruments?: (Object | URL)[];
3817
4095
  }, { documentLoader, contextLoader, }?: {
3818
4096
  documentLoader?: DocumentLoader;
3819
4097
  contextLoader?: DocumentLoader;
@@ -3874,6 +4152,14 @@ export declare class Delete extends Activity {
3874
4152
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3875
4153
  object?: Object | URL | null;
3876
4154
  objects?: (Object | URL)[];
4155
+ target?: Object | URL | null;
4156
+ targets?: (Object | URL)[];
4157
+ result?: Object | URL | null;
4158
+ results?: (Object | URL)[];
4159
+ origin?: Object | URL | null;
4160
+ origins?: (Object | URL)[];
4161
+ instrument?: Object | URL | null;
4162
+ instruments?: (Object | URL)[];
3877
4163
  }, options?: {
3878
4164
  documentLoader?: DocumentLoader;
3879
4165
  contextLoader?: DocumentLoader;
@@ -3961,6 +4247,14 @@ export declare class Dislike extends Activity {
3961
4247
  actors?: (Application | Group | Organization | Person | Service | URL)[];
3962
4248
  object?: Object | URL | null;
3963
4249
  objects?: (Object | URL)[];
4250
+ target?: Object | URL | null;
4251
+ targets?: (Object | URL)[];
4252
+ result?: Object | URL | null;
4253
+ results?: (Object | URL)[];
4254
+ origin?: Object | URL | null;
4255
+ origins?: (Object | URL)[];
4256
+ instrument?: Object | URL | null;
4257
+ instruments?: (Object | URL)[];
3964
4258
  }, { documentLoader, contextLoader, }?: {
3965
4259
  documentLoader?: DocumentLoader;
3966
4260
  contextLoader?: DocumentLoader;
@@ -4021,6 +4315,14 @@ export declare class Dislike extends Activity {
4021
4315
  actors?: (Application | Group | Organization | Person | Service | URL)[];
4022
4316
  object?: Object | URL | null;
4023
4317
  objects?: (Object | URL)[];
4318
+ target?: Object | URL | null;
4319
+ targets?: (Object | URL)[];
4320
+ result?: Object | URL | null;
4321
+ results?: (Object | URL)[];
4322
+ origin?: Object | URL | null;
4323
+ origins?: (Object | URL)[];
4324
+ instrument?: Object | URL | null;
4325
+ instruments?: (Object | URL)[];
4024
4326
  }, options?: {
4025
4327
  documentLoader?: DocumentLoader;
4026
4328
  contextLoader?: DocumentLoader;
@@ -4357,6 +4659,14 @@ export declare class Flag extends Activity {
4357
4659
  actors?: (Application | Group | Organization | Person | Service | URL)[];
4358
4660
  object?: Object | URL | null;
4359
4661
  objects?: (Object | URL)[];
4662
+ target?: Object | URL | null;
4663
+ targets?: (Object | URL)[];
4664
+ result?: Object | URL | null;
4665
+ results?: (Object | URL)[];
4666
+ origin?: Object | URL | null;
4667
+ origins?: (Object | URL)[];
4668
+ instrument?: Object | URL | null;
4669
+ instruments?: (Object | URL)[];
4360
4670
  }, { documentLoader, contextLoader, }?: {
4361
4671
  documentLoader?: DocumentLoader;
4362
4672
  contextLoader?: DocumentLoader;
@@ -4417,6 +4727,14 @@ export declare class Flag extends Activity {
4417
4727
  actors?: (Application | Group | Organization | Person | Service | URL)[];
4418
4728
  object?: Object | URL | null;
4419
4729
  objects?: (Object | URL)[];
4730
+ target?: Object | URL | null;
4731
+ targets?: (Object | URL)[];
4732
+ result?: Object | URL | null;
4733
+ results?: (Object | URL)[];
4734
+ origin?: Object | URL | null;
4735
+ origins?: (Object | URL)[];
4736
+ instrument?: Object | URL | null;
4737
+ instruments?: (Object | URL)[];
4420
4738
  }, options?: {
4421
4739
  documentLoader?: DocumentLoader;
4422
4740
  contextLoader?: DocumentLoader;
@@ -4507,6 +4825,14 @@ export declare class Follow extends Activity {
4507
4825
  actors?: (Application | Group | Organization | Person | Service | URL)[];
4508
4826
  object?: Object | URL | null;
4509
4827
  objects?: (Object | URL)[];
4828
+ target?: Object | URL | null;
4829
+ targets?: (Object | URL)[];
4830
+ result?: Object | URL | null;
4831
+ results?: (Object | URL)[];
4832
+ origin?: Object | URL | null;
4833
+ origins?: (Object | URL)[];
4834
+ instrument?: Object | URL | null;
4835
+ instruments?: (Object | URL)[];
4510
4836
  }, { documentLoader, contextLoader, }?: {
4511
4837
  documentLoader?: DocumentLoader;
4512
4838
  contextLoader?: DocumentLoader;
@@ -4567,6 +4893,14 @@ export declare class Follow extends Activity {
4567
4893
  actors?: (Application | Group | Organization | Person | Service | URL)[];
4568
4894
  object?: Object | URL | null;
4569
4895
  objects?: (Object | URL)[];
4896
+ target?: Object | URL | null;
4897
+ targets?: (Object | URL)[];
4898
+ result?: Object | URL | null;
4899
+ results?: (Object | URL)[];
4900
+ origin?: Object | URL | null;
4901
+ origins?: (Object | URL)[];
4902
+ instrument?: Object | URL | null;
4903
+ instruments?: (Object | URL)[];
4570
4904
  }, options?: {
4571
4905
  documentLoader?: DocumentLoader;
4572
4906
  contextLoader?: DocumentLoader;
@@ -5416,6 +5750,14 @@ export declare class Like extends Activity {
5416
5750
  actors?: (Application | Group | Organization | Person | Service | URL)[];
5417
5751
  object?: Object | URL | null;
5418
5752
  objects?: (Object | URL)[];
5753
+ target?: Object | URL | null;
5754
+ targets?: (Object | URL)[];
5755
+ result?: Object | URL | null;
5756
+ results?: (Object | URL)[];
5757
+ origin?: Object | URL | null;
5758
+ origins?: (Object | URL)[];
5759
+ instrument?: Object | URL | null;
5760
+ instruments?: (Object | URL)[];
5419
5761
  }, { documentLoader, contextLoader, }?: {
5420
5762
  documentLoader?: DocumentLoader;
5421
5763
  contextLoader?: DocumentLoader;
@@ -5476,6 +5818,14 @@ export declare class Like extends Activity {
5476
5818
  actors?: (Application | Group | Organization | Person | Service | URL)[];
5477
5819
  object?: Object | URL | null;
5478
5820
  objects?: (Object | URL)[];
5821
+ target?: Object | URL | null;
5822
+ targets?: (Object | URL)[];
5823
+ result?: Object | URL | null;
5824
+ results?: (Object | URL)[];
5825
+ origin?: Object | URL | null;
5826
+ origins?: (Object | URL)[];
5827
+ instrument?: Object | URL | null;
5828
+ instruments?: (Object | URL)[];
5479
5829
  }, options?: {
5480
5830
  documentLoader?: DocumentLoader;
5481
5831
  contextLoader?: DocumentLoader;
@@ -5776,6 +6126,14 @@ export declare class Offer extends Activity {
5776
6126
  actors?: (Application | Group | Organization | Person | Service | URL)[];
5777
6127
  object?: Object | URL | null;
5778
6128
  objects?: (Object | URL)[];
6129
+ target?: Object | URL | null;
6130
+ targets?: (Object | URL)[];
6131
+ result?: Object | URL | null;
6132
+ results?: (Object | URL)[];
6133
+ origin?: Object | URL | null;
6134
+ origins?: (Object | URL)[];
6135
+ instrument?: Object | URL | null;
6136
+ instruments?: (Object | URL)[];
5779
6137
  }, { documentLoader, contextLoader, }?: {
5780
6138
  documentLoader?: DocumentLoader;
5781
6139
  contextLoader?: DocumentLoader;
@@ -5836,6 +6194,14 @@ export declare class Offer extends Activity {
5836
6194
  actors?: (Application | Group | Organization | Person | Service | URL)[];
5837
6195
  object?: Object | URL | null;
5838
6196
  objects?: (Object | URL)[];
6197
+ target?: Object | URL | null;
6198
+ targets?: (Object | URL)[];
6199
+ result?: Object | URL | null;
6200
+ results?: (Object | URL)[];
6201
+ origin?: Object | URL | null;
6202
+ origins?: (Object | URL)[];
6203
+ instrument?: Object | URL | null;
6204
+ instruments?: (Object | URL)[];
5839
6205
  }, options?: {
5840
6206
  documentLoader?: DocumentLoader;
5841
6207
  contextLoader?: DocumentLoader;
@@ -5865,6 +6231,7 @@ export declare class Offer extends Activity {
5865
6231
  * are assumed to always be strictly ordered.
5866
6232
  */
5867
6233
  export declare class OrderedCollection extends Collection {
6234
+ #private;
5868
6235
  /**
5869
6236
  * The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
5870
6237
  */
@@ -5921,10 +6288,10 @@ export declare class OrderedCollection extends Collection {
5921
6288
  proof?: DataIntegrityProof | URL | null;
5922
6289
  proofs?: (DataIntegrityProof | URL)[];
5923
6290
  totalItems?: number | null;
5924
- current?: CollectionPage | Link | URL | null;
5925
- first?: CollectionPage | Link | URL | null;
5926
- last?: CollectionPage | Link | URL | null;
5927
- items?: (Object | Link | URL)[];
6291
+ current?: CollectionPage | URL | null;
6292
+ first?: CollectionPage | URL | null;
6293
+ last?: CollectionPage | URL | null;
6294
+ items?: (Object | URL)[];
5928
6295
  }, { documentLoader, contextLoader, }?: {
5929
6296
  documentLoader?: DocumentLoader;
5930
6297
  contextLoader?: DocumentLoader;
@@ -5982,14 +6349,28 @@ export declare class OrderedCollection extends Collection {
5982
6349
  proof?: DataIntegrityProof | URL | null;
5983
6350
  proofs?: (DataIntegrityProof | URL)[];
5984
6351
  totalItems?: number | null;
5985
- current?: CollectionPage | Link | URL | null;
5986
- first?: CollectionPage | Link | URL | null;
5987
- last?: CollectionPage | Link | URL | null;
5988
- items?: (Object | Link | URL)[];
6352
+ current?: CollectionPage | URL | null;
6353
+ first?: CollectionPage | URL | null;
6354
+ last?: CollectionPage | URL | null;
6355
+ items?: (Object | URL)[];
5989
6356
  }, options?: {
5990
6357
  documentLoader?: DocumentLoader;
5991
6358
  contextLoader?: DocumentLoader;
5992
6359
  }): OrderedCollection;
6360
+ /**
6361
+ * Similar to
6362
+ * {@link OrderedCollection.getItems},
6363
+ * but returns their `@id`s instead of the objects themselves.
6364
+ */
6365
+ get itemIds(): URL[];
6366
+ /** Identifies the items contained in a collection. The items might be ordered
6367
+ * or unordered.
6368
+ */
6369
+ getItems(options?: {
6370
+ documentLoader?: DocumentLoader;
6371
+ contextLoader?: DocumentLoader;
6372
+ suppressError?: boolean;
6373
+ }): AsyncIterable<Object>;
5993
6374
  /**
5994
6375
  * Converts this object to a JSON-LD structure.
5995
6376
  * @returns The JSON-LD representation of this object.
@@ -6073,13 +6454,13 @@ export declare class OrderedCollectionPage extends CollectionPage {
6073
6454
  proof?: DataIntegrityProof | URL | null;
6074
6455
  proofs?: (DataIntegrityProof | URL)[];
6075
6456
  totalItems?: number | null;
6076
- current?: CollectionPage | Link | URL | null;
6077
- first?: CollectionPage | Link | URL | null;
6078
- last?: CollectionPage | Link | URL | null;
6079
- items?: (Object | Link | URL)[];
6080
- partOf?: Link | Collection | URL | null;
6081
- next?: CollectionPage | Link | URL | null;
6082
- prev?: CollectionPage | Link | URL | null;
6457
+ current?: CollectionPage | URL | null;
6458
+ first?: CollectionPage | URL | null;
6459
+ last?: CollectionPage | URL | null;
6460
+ items?: (Object | URL)[];
6461
+ partOf?: Collection | URL | null;
6462
+ next?: CollectionPage | URL | null;
6463
+ prev?: CollectionPage | URL | null;
6083
6464
  startIndex?: number | null;
6084
6465
  }, { documentLoader, contextLoader, }?: {
6085
6466
  documentLoader?: DocumentLoader;
@@ -6138,13 +6519,13 @@ export declare class OrderedCollectionPage extends CollectionPage {
6138
6519
  proof?: DataIntegrityProof | URL | null;
6139
6520
  proofs?: (DataIntegrityProof | URL)[];
6140
6521
  totalItems?: number | null;
6141
- current?: CollectionPage | Link | URL | null;
6142
- first?: CollectionPage | Link | URL | null;
6143
- last?: CollectionPage | Link | URL | null;
6144
- items?: (Object | Link | URL)[];
6145
- partOf?: Link | Collection | URL | null;
6146
- next?: CollectionPage | Link | URL | null;
6147
- prev?: CollectionPage | Link | URL | null;
6522
+ current?: CollectionPage | URL | null;
6523
+ first?: CollectionPage | URL | null;
6524
+ last?: CollectionPage | URL | null;
6525
+ items?: (Object | URL)[];
6526
+ partOf?: Collection | URL | null;
6527
+ next?: CollectionPage | URL | null;
6528
+ prev?: CollectionPage | URL | null;
6148
6529
  startIndex?: number | null;
6149
6530
  }, options?: {
6150
6531
  documentLoader?: DocumentLoader;
@@ -7537,6 +7918,14 @@ export declare class Question extends IntransitiveActivity {
7537
7918
  actors?: (Application | Group | Organization | Person | Service | URL)[];
7538
7919
  object?: Object | URL | null;
7539
7920
  objects?: (Object | URL)[];
7921
+ target?: Object | URL | null;
7922
+ targets?: (Object | URL)[];
7923
+ result?: Object | URL | null;
7924
+ results?: (Object | URL)[];
7925
+ origin?: Object | URL | null;
7926
+ origins?: (Object | URL)[];
7927
+ instrument?: Object | URL | null;
7928
+ instruments?: (Object | URL)[];
7540
7929
  exclusiveOptions?: (Object | URL)[];
7541
7930
  inclusiveOptions?: (Object | URL)[];
7542
7931
  }, { documentLoader, contextLoader, }?: {
@@ -7599,6 +7988,14 @@ export declare class Question extends IntransitiveActivity {
7599
7988
  actors?: (Application | Group | Organization | Person | Service | URL)[];
7600
7989
  object?: Object | URL | null;
7601
7990
  objects?: (Object | URL)[];
7991
+ target?: Object | URL | null;
7992
+ targets?: (Object | URL)[];
7993
+ result?: Object | URL | null;
7994
+ results?: (Object | URL)[];
7995
+ origin?: Object | URL | null;
7996
+ origins?: (Object | URL)[];
7997
+ instrument?: Object | URL | null;
7998
+ instruments?: (Object | URL)[];
7602
7999
  exclusiveOptions?: (Object | URL)[];
7603
8000
  inclusiveOptions?: (Object | URL)[];
7604
8001
  }, options?: {
@@ -7719,6 +8116,14 @@ export declare class Reject extends Activity {
7719
8116
  actors?: (Application | Group | Organization | Person | Service | URL)[];
7720
8117
  object?: Object | URL | null;
7721
8118
  objects?: (Object | URL)[];
8119
+ target?: Object | URL | null;
8120
+ targets?: (Object | URL)[];
8121
+ result?: Object | URL | null;
8122
+ results?: (Object | URL)[];
8123
+ origin?: Object | URL | null;
8124
+ origins?: (Object | URL)[];
8125
+ instrument?: Object | URL | null;
8126
+ instruments?: (Object | URL)[];
7722
8127
  }, { documentLoader, contextLoader, }?: {
7723
8128
  documentLoader?: DocumentLoader;
7724
8129
  contextLoader?: DocumentLoader;
@@ -7779,6 +8184,14 @@ export declare class Reject extends Activity {
7779
8184
  actors?: (Application | Group | Organization | Person | Service | URL)[];
7780
8185
  object?: Object | URL | null;
7781
8186
  objects?: (Object | URL)[];
8187
+ target?: Object | URL | null;
8188
+ targets?: (Object | URL)[];
8189
+ result?: Object | URL | null;
8190
+ results?: (Object | URL)[];
8191
+ origin?: Object | URL | null;
8192
+ origins?: (Object | URL)[];
8193
+ instrument?: Object | URL | null;
8194
+ instruments?: (Object | URL)[];
7782
8195
  }, options?: {
7783
8196
  documentLoader?: DocumentLoader;
7784
8197
  contextLoader?: DocumentLoader;
@@ -8095,6 +8508,14 @@ export declare class Remove extends Activity {
8095
8508
  actors?: (Application | Group | Organization | Person | Service | URL)[];
8096
8509
  object?: Object | URL | null;
8097
8510
  objects?: (Object | URL)[];
8511
+ target?: Object | URL | null;
8512
+ targets?: (Object | URL)[];
8513
+ result?: Object | URL | null;
8514
+ results?: (Object | URL)[];
8515
+ origin?: Object | URL | null;
8516
+ origins?: (Object | URL)[];
8517
+ instrument?: Object | URL | null;
8518
+ instruments?: (Object | URL)[];
8098
8519
  }, { documentLoader, contextLoader, }?: {
8099
8520
  documentLoader?: DocumentLoader;
8100
8521
  contextLoader?: DocumentLoader;
@@ -8155,6 +8576,14 @@ export declare class Remove extends Activity {
8155
8576
  actors?: (Application | Group | Organization | Person | Service | URL)[];
8156
8577
  object?: Object | URL | null;
8157
8578
  objects?: (Object | URL)[];
8579
+ target?: Object | URL | null;
8580
+ targets?: (Object | URL)[];
8581
+ result?: Object | URL | null;
8582
+ results?: (Object | URL)[];
8583
+ origin?: Object | URL | null;
8584
+ origins?: (Object | URL)[];
8585
+ instrument?: Object | URL | null;
8586
+ instruments?: (Object | URL)[];
8158
8587
  }, options?: {
8159
8588
  documentLoader?: DocumentLoader;
8160
8589
  contextLoader?: DocumentLoader;
@@ -8801,6 +9230,14 @@ export declare class Undo extends Activity {
8801
9230
  actors?: (Application | Group | Organization | Person | Service | URL)[];
8802
9231
  object?: Object | URL | null;
8803
9232
  objects?: (Object | URL)[];
9233
+ target?: Object | URL | null;
9234
+ targets?: (Object | URL)[];
9235
+ result?: Object | URL | null;
9236
+ results?: (Object | URL)[];
9237
+ origin?: Object | URL | null;
9238
+ origins?: (Object | URL)[];
9239
+ instrument?: Object | URL | null;
9240
+ instruments?: (Object | URL)[];
8804
9241
  }, { documentLoader, contextLoader, }?: {
8805
9242
  documentLoader?: DocumentLoader;
8806
9243
  contextLoader?: DocumentLoader;
@@ -8861,6 +9298,14 @@ export declare class Undo extends Activity {
8861
9298
  actors?: (Application | Group | Organization | Person | Service | URL)[];
8862
9299
  object?: Object | URL | null;
8863
9300
  objects?: (Object | URL)[];
9301
+ target?: Object | URL | null;
9302
+ targets?: (Object | URL)[];
9303
+ result?: Object | URL | null;
9304
+ results?: (Object | URL)[];
9305
+ origin?: Object | URL | null;
9306
+ origins?: (Object | URL)[];
9307
+ instrument?: Object | URL | null;
9308
+ instruments?: (Object | URL)[];
8864
9309
  }, options?: {
8865
9310
  documentLoader?: DocumentLoader;
8866
9311
  contextLoader?: DocumentLoader;
@@ -8952,6 +9397,14 @@ export declare class Update extends Activity {
8952
9397
  actors?: (Application | Group | Organization | Person | Service | URL)[];
8953
9398
  object?: Object | URL | null;
8954
9399
  objects?: (Object | URL)[];
9400
+ target?: Object | URL | null;
9401
+ targets?: (Object | URL)[];
9402
+ result?: Object | URL | null;
9403
+ results?: (Object | URL)[];
9404
+ origin?: Object | URL | null;
9405
+ origins?: (Object | URL)[];
9406
+ instrument?: Object | URL | null;
9407
+ instruments?: (Object | URL)[];
8955
9408
  }, { documentLoader, contextLoader, }?: {
8956
9409
  documentLoader?: DocumentLoader;
8957
9410
  contextLoader?: DocumentLoader;
@@ -9012,6 +9465,14 @@ export declare class Update extends Activity {
9012
9465
  actors?: (Application | Group | Organization | Person | Service | URL)[];
9013
9466
  object?: Object | URL | null;
9014
9467
  objects?: (Object | URL)[];
9468
+ target?: Object | URL | null;
9469
+ targets?: (Object | URL)[];
9470
+ result?: Object | URL | null;
9471
+ results?: (Object | URL)[];
9472
+ origin?: Object | URL | null;
9473
+ origins?: (Object | URL)[];
9474
+ instrument?: Object | URL | null;
9475
+ instruments?: (Object | URL)[];
9015
9476
  }, options?: {
9016
9477
  documentLoader?: DocumentLoader;
9017
9478
  contextLoader?: DocumentLoader;