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

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -26,7 +26,7 @@ To be released.
26
26
  - Added `{ type: "featured"; handle: string }` case to `ParseUriResult`
27
27
  type.
28
28
 
29
- - Frequently used JSON-LD contexts are now preloaded. [[74]]
29
+ - Frequently used JSON-LD contexts are now preloaded. [[#74]]
30
30
 
31
31
  - The `fetchDocumentLoader()` function now preloads the following JSON-LD
32
32
  contexts:
@@ -90,6 +90,10 @@ To be released.
90
90
  - `Activity.clone()` method now accepts `instrument` option.
91
91
  - `Activity.clone()` method now accepts `instruments` option.
92
92
 
93
+ - The `items` property of `OrderedCollection` and `OrderedCollectionPage`
94
+ in Activity Vocabulary API is now represented as `orderedItems`
95
+ (was `items`) in JSON-LD.
96
+
93
97
  - The key pair or the key pair for signing outgoing HTTP requests made from
94
98
  the shared inbox now can be configured. This improves the compatibility
95
99
  with other ActivityPub implementations that require authorized fetches
@@ -32,7 +32,9 @@ $defs:
32
32
  container:
33
33
  description: >-
34
34
  The container type of the property values. It can be unspecified.
35
- const: "graph"
35
+ enum:
36
+ - graph
37
+ - list
36
38
  required:
37
39
  - pluralName
38
40
  - allOf:
@@ -8,4 +8,13 @@ description: |
8
8
  are assumed to always be strictly ordered.
9
9
  defaultContext: "https://www.w3.org/ns/activitystreams"
10
10
 
11
- properties: []
11
+ properties:
12
+ - pluralName: items
13
+ singularName: item
14
+ uri: "https://www.w3.org/ns/activitystreams#items"
15
+ container: list
16
+ description: |
17
+ Identifies the items contained in a collection. The items might be ordered
18
+ or unordered.
19
+ range:
20
+ - "https://www.w3.org/ns/activitystreams#Object"
@@ -3034,8 +3034,9 @@ export class Object {
3034
3034
  : await v.toJsonLd(options);
3035
3035
  array.push({ "@graph": element });
3036
3036
  }
3037
- if (array.length > 0)
3037
+ if (array.length > 0) {
3038
3038
  values["https://w3id.org/security#proof"] = array;
3039
+ }
3039
3040
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Object"];
3040
3041
  if (this.id)
3041
3042
  values["@id"] = this.id.href;
@@ -4684,8 +4685,9 @@ export class PropertyValue {
4684
4685
  };
4685
4686
  array.push(element);
4686
4687
  }
4687
- if (array.length > 0)
4688
+ if (array.length > 0) {
4688
4689
  values["http://schema.org#value"] = array;
4690
+ }
4689
4691
  values["@type"] = ["http://schema.org#PropertyValue"];
4690
4692
  if (this.id)
4691
4693
  values["@id"] = this.id.href;
@@ -5131,8 +5133,9 @@ export class DataIntegrityProof {
5131
5133
  };
5132
5134
  array.push(element);
5133
5135
  }
5134
- if (array.length > 0)
5136
+ if (array.length > 0) {
5135
5137
  values["http://purl.org/dc/terms/created"] = array;
5138
+ }
5136
5139
  values["@type"] = ["https://w3id.org/security#DataIntegrityProof"];
5137
5140
  if (this.id)
5138
5141
  values["@id"] = this.id.href;
@@ -5517,8 +5520,9 @@ export class CryptographicKey {
5517
5520
  : await v.toJsonLd(options);
5518
5521
  array.push(element);
5519
5522
  }
5520
- if (array.length > 0)
5523
+ if (array.length > 0) {
5521
5524
  values["https://w3id.org/security#owner"] = array;
5525
+ }
5522
5526
  array = [];
5523
5527
  for (const v of this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD) {
5524
5528
  const element = { "@value": await exportSpki(v) };
@@ -8887,8 +8891,9 @@ export class Application extends Object {
8887
8891
  : await v.toJsonLd(options);
8888
8892
  array.push(element);
8889
8893
  }
8890
- if (array.length > 0)
8894
+ if (array.length > 0) {
8891
8895
  values["https://w3id.org/security#publicKey"] = array;
8896
+ }
8892
8897
  array = [];
8893
8898
  for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
8894
8899
  const element = v instanceof URL
@@ -8914,8 +8919,9 @@ export class Application extends Object {
8914
8919
  : await v.toJsonLd(options);
8915
8920
  array.push(element);
8916
8921
  }
8917
- if (array.length > 0)
8922
+ if (array.length > 0) {
8918
8923
  values["http://www.w3.org/ns/ldp#inbox"] = array;
8924
+ }
8919
8925
  array = [];
8920
8926
  for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
8921
8927
  const element = v instanceof URL
@@ -8963,8 +8969,9 @@ export class Application extends Object {
8963
8969
  : await v.toJsonLd(options);
8964
8970
  array.push(element);
8965
8971
  }
8966
- if (array.length > 0)
8972
+ if (array.length > 0) {
8967
8973
  values["http://joinmastodon.org/ns#featured"] = array;
8974
+ }
8968
8975
  array = [];
8969
8976
  for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
8970
8977
  const element = v instanceof URL
@@ -9004,8 +9011,9 @@ export class Application extends Object {
9004
9011
  const element = { "@value": v };
9005
9012
  array.push(element);
9006
9013
  }
9007
- if (array.length > 0)
9014
+ if (array.length > 0) {
9008
9015
  values["http://joinmastodon.org/ns#memorial"] = array;
9016
+ }
9009
9017
  array = [];
9010
9018
  for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
9011
9019
  const element = { "@value": v };
@@ -13809,8 +13817,9 @@ export class Group extends Object {
13809
13817
  : await v.toJsonLd(options);
13810
13818
  array.push(element);
13811
13819
  }
13812
- if (array.length > 0)
13820
+ if (array.length > 0) {
13813
13821
  values["https://w3id.org/security#publicKey"] = array;
13822
+ }
13814
13823
  array = [];
13815
13824
  for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
13816
13825
  const element = v instanceof URL
@@ -13836,8 +13845,9 @@ export class Group extends Object {
13836
13845
  : await v.toJsonLd(options);
13837
13846
  array.push(element);
13838
13847
  }
13839
- if (array.length > 0)
13848
+ if (array.length > 0) {
13840
13849
  values["http://www.w3.org/ns/ldp#inbox"] = array;
13850
+ }
13841
13851
  array = [];
13842
13852
  for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
13843
13853
  const element = v instanceof URL
@@ -13885,8 +13895,9 @@ export class Group extends Object {
13885
13895
  : await v.toJsonLd(options);
13886
13896
  array.push(element);
13887
13897
  }
13888
- if (array.length > 0)
13898
+ if (array.length > 0) {
13889
13899
  values["http://joinmastodon.org/ns#featured"] = array;
13900
+ }
13890
13901
  array = [];
13891
13902
  for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
13892
13903
  const element = v instanceof URL
@@ -13926,8 +13937,9 @@ export class Group extends Object {
13926
13937
  const element = { "@value": v };
13927
13938
  array.push(element);
13928
13939
  }
13929
- if (array.length > 0)
13940
+ if (array.length > 0) {
13930
13941
  values["http://joinmastodon.org/ns#memorial"] = array;
13942
+ }
13931
13943
  array = [];
13932
13944
  for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
13933
13945
  const element = { "@value": v };
@@ -15880,6 +15892,7 @@ export class OrderedCollection extends Collection {
15880
15892
  static get typeId() {
15881
15893
  return new URL("https://www.w3.org/ns/activitystreams#OrderedCollection");
15882
15894
  }
15895
+ #_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = [];
15883
15896
  /**
15884
15897
  * Constructs a new instance of OrderedCollection with the given values.
15885
15898
  * @param values The values to initialize the instance with.
@@ -15887,6 +15900,17 @@ export class OrderedCollection extends Collection {
15887
15900
  */
15888
15901
  constructor(values, { documentLoader, contextLoader, } = {}) {
15889
15902
  super(values, { documentLoader, contextLoader });
15903
+ if ("items" in values && values.items != null) {
15904
+ if (Array.isArray(values.items) &&
15905
+ values.items.every((v) => v instanceof Object || v instanceof URL)) {
15906
+ // @ts-ignore: type is checked above.
15907
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = values.items;
15908
+ }
15909
+ else {
15910
+ throw new TypeError("The items must be an array of type " +
15911
+ "Object | URL" + ".");
15912
+ }
15913
+ }
15890
15914
  }
15891
15915
  /**
15892
15916
  * Clones this instance, optionally updating it with the given values.
@@ -15896,8 +15920,73 @@ export class OrderedCollection extends Collection {
15896
15920
  */
15897
15921
  clone(values = {}, options = {}) {
15898
15922
  const clone = super.clone(values, options);
15923
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg;
15924
+ if ("items" in values && values.items != null) {
15925
+ if (Array.isArray(values.items) &&
15926
+ values.items.every((v) => v instanceof Object || v instanceof URL)) {
15927
+ // @ts-ignore: type is checked above.
15928
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = values.items;
15929
+ }
15930
+ else {
15931
+ throw new TypeError("The items must be an array of type " +
15932
+ "Object | URL" + ".");
15933
+ }
15934
+ }
15899
15935
  return clone;
15900
15936
  }
15937
+ async #fetchItem(url, options = {}) {
15938
+ const documentLoader = options.documentLoader ?? this._documentLoader ??
15939
+ fetchDocumentLoader;
15940
+ const contextLoader = options.contextLoader ?? this._contextLoader ??
15941
+ fetchDocumentLoader;
15942
+ let fetchResult;
15943
+ try {
15944
+ fetchResult = await documentLoader(url.href);
15945
+ }
15946
+ catch (error) {
15947
+ if (options.suppressError) {
15948
+ getLogger(["fedify", "vocab"]).error("Failed to fetch {url}: {error}", { error, url: url.href });
15949
+ return null;
15950
+ }
15951
+ throw error;
15952
+ }
15953
+ const { document } = fetchResult;
15954
+ try {
15955
+ return await Object.fromJsonLd(document, { documentLoader, contextLoader });
15956
+ }
15957
+ catch (e) {
15958
+ if (!(e instanceof TypeError))
15959
+ throw e;
15960
+ }
15961
+ throw new TypeError("Expected an object of any type of: " +
15962
+ ["https://www.w3.org/ns/activitystreams#Object"].join(", "));
15963
+ }
15964
+ /**
15965
+ * Similar to
15966
+ * {@link OrderedCollection.getItems},
15967
+ * but returns their `@id`s instead of the objects themselves.
15968
+ */
15969
+ get itemIds() {
15970
+ return this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.map((v) => v instanceof URL ? v : v.id).filter((id) => id !== null);
15971
+ }
15972
+ /** Identifies the items contained in a collection. The items might be ordered
15973
+ * or unordered.
15974
+ */
15975
+ async *getItems(options = {}) {
15976
+ const vs = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg;
15977
+ for (let i = 0; i < vs.length; i++) {
15978
+ const v = vs[i];
15979
+ if (v instanceof URL) {
15980
+ const fetched = await this.#fetchItem(v, options);
15981
+ if (fetched == null)
15982
+ continue;
15983
+ vs[i] = fetched;
15984
+ yield fetched;
15985
+ continue;
15986
+ }
15987
+ yield v;
15988
+ }
15989
+ }
15901
15990
  /**
15902
15991
  * Converts this object to a JSON-LD structure.
15903
15992
  * @returns The JSON-LD representation of this object.
@@ -15914,6 +16003,18 @@ export class OrderedCollection extends Collection {
15914
16003
  expand: true,
15915
16004
  });
15916
16005
  const values = baseValues[0];
16006
+ array = [];
16007
+ for (const v of this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg) {
16008
+ const element = v instanceof URL
16009
+ ? { "@id": v.href }
16010
+ : await v.toJsonLd(options);
16011
+ array.push(element);
16012
+ }
16013
+ if (array.length > 0) {
16014
+ values["https://www.w3.org/ns/activitystreams#items"] = {
16015
+ "@list": array,
16016
+ };
16017
+ }
15917
16018
  values["@type"] = [
15918
16019
  "https://www.w3.org/ns/activitystreams#OrderedCollection",
15919
16020
  ];
@@ -15964,10 +16065,35 @@ export class OrderedCollection extends Collection {
15964
16065
  if (!(instance instanceof OrderedCollection)) {
15965
16066
  throw new TypeError("Unexpected type: " + instance.constructor.name);
15966
16067
  }
16068
+ const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = [];
16069
+ for (const v of values["https://www.w3.org/ns/activitystreams#items"] ?? []) {
16070
+ if (v == null)
16071
+ continue;
16072
+ if (typeof v === "object" && "@id" in v && !("@type" in v) &&
16073
+ globalThis.Object.keys(v).length === 1) {
16074
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(new URL(v["@id"]));
16075
+ continue;
16076
+ }
16077
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.push(await Object.fromJsonLd(v, options));
16078
+ }
16079
+ instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg;
15967
16080
  return instance;
15968
16081
  }
15969
16082
  _getCustomInspectProxy() {
15970
16083
  const proxy = super._getCustomInspectProxy();
16084
+ const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg
16085
+ // deno-lint-ignore no-explicit-any
16086
+ .map((v) => v instanceof URL
16087
+ ? {
16088
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
16089
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
16090
+ }
16091
+ : v);
16092
+ if (_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.length > 1 ||
16093
+ !("item" in proxy) &&
16094
+ _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg.length > 0) {
16095
+ proxy.items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg;
16096
+ }
15971
16097
  return proxy;
15972
16098
  }
15973
16099
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -17334,8 +17460,9 @@ export class Organization extends Object {
17334
17460
  : await v.toJsonLd(options);
17335
17461
  array.push(element);
17336
17462
  }
17337
- if (array.length > 0)
17463
+ if (array.length > 0) {
17338
17464
  values["https://w3id.org/security#publicKey"] = array;
17465
+ }
17339
17466
  array = [];
17340
17467
  for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
17341
17468
  const element = v instanceof URL
@@ -17361,8 +17488,9 @@ export class Organization extends Object {
17361
17488
  : await v.toJsonLd(options);
17362
17489
  array.push(element);
17363
17490
  }
17364
- if (array.length > 0)
17491
+ if (array.length > 0) {
17365
17492
  values["http://www.w3.org/ns/ldp#inbox"] = array;
17493
+ }
17366
17494
  array = [];
17367
17495
  for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
17368
17496
  const element = v instanceof URL
@@ -17410,8 +17538,9 @@ export class Organization extends Object {
17410
17538
  : await v.toJsonLd(options);
17411
17539
  array.push(element);
17412
17540
  }
17413
- if (array.length > 0)
17541
+ if (array.length > 0) {
17414
17542
  values["http://joinmastodon.org/ns#featured"] = array;
17543
+ }
17415
17544
  array = [];
17416
17545
  for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
17417
17546
  const element = v instanceof URL
@@ -17451,8 +17580,9 @@ export class Organization extends Object {
17451
17580
  const element = { "@value": v };
17452
17581
  array.push(element);
17453
17582
  }
17454
- if (array.length > 0)
17583
+ if (array.length > 0) {
17455
17584
  values["http://joinmastodon.org/ns#memorial"] = array;
17585
+ }
17456
17586
  array = [];
17457
17587
  for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
17458
17588
  const element = { "@value": v };
@@ -19197,8 +19327,9 @@ export class Person extends Object {
19197
19327
  : await v.toJsonLd(options);
19198
19328
  array.push(element);
19199
19329
  }
19200
- if (array.length > 0)
19330
+ if (array.length > 0) {
19201
19331
  values["https://w3id.org/security#publicKey"] = array;
19332
+ }
19202
19333
  array = [];
19203
19334
  for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
19204
19335
  const element = v instanceof URL
@@ -19224,8 +19355,9 @@ export class Person extends Object {
19224
19355
  : await v.toJsonLd(options);
19225
19356
  array.push(element);
19226
19357
  }
19227
- if (array.length > 0)
19358
+ if (array.length > 0) {
19228
19359
  values["http://www.w3.org/ns/ldp#inbox"] = array;
19360
+ }
19229
19361
  array = [];
19230
19362
  for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
19231
19363
  const element = v instanceof URL
@@ -19273,8 +19405,9 @@ export class Person extends Object {
19273
19405
  : await v.toJsonLd(options);
19274
19406
  array.push(element);
19275
19407
  }
19276
- if (array.length > 0)
19408
+ if (array.length > 0) {
19277
19409
  values["http://joinmastodon.org/ns#featured"] = array;
19410
+ }
19278
19411
  array = [];
19279
19412
  for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
19280
19413
  const element = v instanceof URL
@@ -19314,8 +19447,9 @@ export class Person extends Object {
19314
19447
  const element = { "@value": v };
19315
19448
  array.push(element);
19316
19449
  }
19317
- if (array.length > 0)
19450
+ if (array.length > 0) {
19318
19451
  values["http://joinmastodon.org/ns#memorial"] = array;
19452
+ }
19319
19453
  array = [];
19320
19454
  for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
19321
19455
  const element = { "@value": v };
@@ -22810,8 +22944,9 @@ export class Service extends Object {
22810
22944
  : await v.toJsonLd(options);
22811
22945
  array.push(element);
22812
22946
  }
22813
- if (array.length > 0)
22947
+ if (array.length > 0) {
22814
22948
  values["https://w3id.org/security#publicKey"] = array;
22949
+ }
22815
22950
  array = [];
22816
22951
  for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
22817
22952
  const element = v instanceof URL
@@ -22837,8 +22972,9 @@ export class Service extends Object {
22837
22972
  : await v.toJsonLd(options);
22838
22973
  array.push(element);
22839
22974
  }
22840
- if (array.length > 0)
22975
+ if (array.length > 0) {
22841
22976
  values["http://www.w3.org/ns/ldp#inbox"] = array;
22977
+ }
22842
22978
  array = [];
22843
22979
  for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
22844
22980
  const element = v instanceof URL
@@ -22886,8 +23022,9 @@ export class Service extends Object {
22886
23022
  : await v.toJsonLd(options);
22887
23023
  array.push(element);
22888
23024
  }
22889
- if (array.length > 0)
23025
+ if (array.length > 0) {
22890
23026
  values["http://joinmastodon.org/ns#featured"] = array;
23027
+ }
22891
23028
  array = [];
22892
23029
  for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
22893
23030
  const element = v instanceof URL
@@ -22927,8 +23064,9 @@ export class Service extends Object {
22927
23064
  const element = { "@value": v };
22928
23065
  array.push(element);
22929
23066
  }
22930
- if (array.length > 0)
23067
+ if (array.length > 0) {
22931
23068
  values["http://joinmastodon.org/ns#memorial"] = array;
23069
+ }
22932
23070
  array = [];
22933
23071
  for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
22934
23072
  const element = { "@value": v };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.11.0-dev.242+3298dafc",
3
+ "version": "0.11.0-dev.243+526b3abc",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/codegen/schema.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,WAAW,MAAM,EAAE,GACnB,UAAU,MAAM,EAAE,GAClB,UAAU,MAAM,EAAE,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,cAAc,EAAE,CAAC;IAE7B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;CAC5C,GAAG;IACF;;;OAGG;IACH,OAAO,EAAE,IAAI,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,CAAC,OAAO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B,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,eAAe,GAAG,CAAC,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC;AAExE,KAAK,GAAG,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;AAClD,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACtD,KAAK,cAAc,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC;AAExD;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI3C;AAgCD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CA4BrC"}
@@ -6231,6 +6231,7 @@ export declare class Offer extends Activity {
6231
6231
  * are assumed to always be strictly ordered.
6232
6232
  */
6233
6233
  export declare class OrderedCollection extends Collection {
6234
+ #private;
6234
6235
  /**
6235
6236
  * The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
6236
6237
  */
@@ -6356,6 +6357,20 @@ export declare class OrderedCollection extends Collection {
6356
6357
  documentLoader?: DocumentLoader;
6357
6358
  contextLoader?: DocumentLoader;
6358
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>;
6359
6374
  /**
6360
6375
  * Converts this object to a JSON-LD structure.
6361
6376
  * @returns The JSON-LD representation of this object.