@fedify/fedify 0.11.0-dev.238 → 0.11.0-dev.239

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -17,6 +17,10 @@ To be released.
17
17
 
18
18
  - Added `Federation.setInboxDispatcher()` method. [[#71]]
19
19
  - Added `Federation.setLikedDispatcher()` method.
20
+ - Added `Context.getLikedUri()` method.
21
+ - Added `{ type: "liked"; handle: string }` case to `ParseUriResult` type.
22
+ - Renamed `linked` property (which was a typo) to `liked` in
23
+ `Application`, `Group`, `Organization`, `Person`, and `Service` classes.
20
24
 
21
25
  - Frequently used JSON-LD contexts are now preloaded. [[74]]
22
26
 
@@ -130,7 +130,7 @@ properties:
130
130
  range:
131
131
  - "https://www.w3.org/ns/activitystreams#Collection"
132
132
 
133
- - singularName: linked
133
+ - singularName: liked
134
134
  functional: true
135
135
  uri: "https://www.w3.org/ns/activitystreams#liked"
136
136
  description: |
@@ -130,7 +130,7 @@ properties:
130
130
  range:
131
131
  - "https://www.w3.org/ns/activitystreams#Collection"
132
132
 
133
- - singularName: linked
133
+ - singularName: liked
134
134
  functional: true
135
135
  uri: "https://www.w3.org/ns/activitystreams#liked"
136
136
  description: |
@@ -130,7 +130,7 @@ properties:
130
130
  range:
131
131
  - "https://www.w3.org/ns/activitystreams#Collection"
132
132
 
133
- - singularName: linked
133
+ - singularName: liked
134
134
  functional: true
135
135
  uri: "https://www.w3.org/ns/activitystreams#liked"
136
136
  description: |
@@ -130,7 +130,7 @@ properties:
130
130
  range:
131
131
  - "https://www.w3.org/ns/activitystreams#Collection"
132
132
 
133
- - singularName: linked
133
+ - singularName: liked
134
134
  functional: true
135
135
  uri: "https://www.w3.org/ns/activitystreams#liked"
136
136
  description: |
@@ -130,7 +130,7 @@ properties:
130
130
  range:
131
131
  - "https://www.w3.org/ns/activitystreams#Collection"
132
132
 
133
- - singularName: linked
133
+ - singularName: liked
134
134
  functional: true
135
135
  uri: "https://www.w3.org/ns/activitystreams#liked"
136
136
  description: |
@@ -7159,13 +7159,13 @@ export class Application extends Object {
7159
7159
  "Collection | URL" + ".");
7160
7160
  }
7161
7161
  }
7162
- if ("linked" in values && values.linked != null) {
7163
- if (values.linked instanceof Collection || values.linked instanceof URL) {
7162
+ if ("liked" in values && values.liked != null) {
7163
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
7164
7164
  // @ts-ignore: type is checked above.
7165
- this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
7165
+ this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
7166
7166
  }
7167
7167
  else {
7168
- throw new TypeError("The linked must be of type " +
7168
+ throw new TypeError("The liked must be of type " +
7169
7169
  "Collection | URL" + ".");
7170
7170
  }
7171
7171
  }
@@ -7385,13 +7385,13 @@ export class Application extends Object {
7385
7385
  }
7386
7386
  }
7387
7387
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU;
7388
- if ("linked" in values && values.linked != null) {
7389
- if (values.linked instanceof Collection || values.linked instanceof URL) {
7388
+ if ("liked" in values && values.liked != null) {
7389
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
7390
7390
  // @ts-ignore: type is checked above.
7391
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
7391
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
7392
7392
  }
7393
7393
  else {
7394
- throw new TypeError("The linked must be of type " +
7394
+ throw new TypeError("The liked must be of type " +
7395
7395
  "Collection | URL" + ".");
7396
7396
  }
7397
7397
  }
@@ -7908,7 +7908,7 @@ export class Application extends Object {
7908
7908
  }
7909
7909
  return v;
7910
7910
  }
7911
- async #fetchLinked(url, options = {}) {
7911
+ async #fetchLiked(url, options = {}) {
7912
7912
  const documentLoader = options.documentLoader ?? this._documentLoader ??
7913
7913
  fetchDocumentLoader;
7914
7914
  const contextLoader = options.contextLoader ?? this._contextLoader ??
@@ -7937,10 +7937,10 @@ export class Application extends Object {
7937
7937
  }
7938
7938
  /**
7939
7939
  * Similar to
7940
- * {@link Application.getLinked},
7940
+ * {@link Application.getLiked},
7941
7941
  * but returns its `@id` URL instead of the object itself.
7942
7942
  */
7943
- get linkedId() {
7943
+ get likedId() {
7944
7944
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
7945
7945
  return null;
7946
7946
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
@@ -7955,12 +7955,12 @@ export class Application extends Object {
7955
7955
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
7956
7956
  * user or as appropriate when no authentication is given.
7957
7957
  */
7958
- async getLinked(options = {}) {
7958
+ async getLiked(options = {}) {
7959
7959
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
7960
7960
  return null;
7961
7961
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
7962
7962
  if (v instanceof URL) {
7963
- const fetched = await this.#fetchLinked(v, options);
7963
+ const fetched = await this.#fetchLiked(v, options);
7964
7964
  if (fetched == null)
7965
7965
  return null;
7966
7966
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0] = fetched;
@@ -8552,7 +8552,7 @@ export class Application extends Object {
8552
8552
  }
8553
8553
  : v);
8554
8554
  if (_3bgkPwJanyTCoVFM9ovRcus8tKkU.length == 1) {
8555
- proxy.linked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
8555
+ proxy.liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
8556
8556
  }
8557
8557
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9
8558
8558
  // deno-lint-ignore no-explicit-any
@@ -12231,13 +12231,13 @@ export class Group extends Object {
12231
12231
  "Collection | URL" + ".");
12232
12232
  }
12233
12233
  }
12234
- if ("linked" in values && values.linked != null) {
12235
- if (values.linked instanceof Collection || values.linked instanceof URL) {
12234
+ if ("liked" in values && values.liked != null) {
12235
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
12236
12236
  // @ts-ignore: type is checked above.
12237
- this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
12237
+ this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
12238
12238
  }
12239
12239
  else {
12240
- throw new TypeError("The linked must be of type " +
12240
+ throw new TypeError("The liked must be of type " +
12241
12241
  "Collection | URL" + ".");
12242
12242
  }
12243
12243
  }
@@ -12457,13 +12457,13 @@ export class Group extends Object {
12457
12457
  }
12458
12458
  }
12459
12459
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU;
12460
- if ("linked" in values && values.linked != null) {
12461
- if (values.linked instanceof Collection || values.linked instanceof URL) {
12460
+ if ("liked" in values && values.liked != null) {
12461
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
12462
12462
  // @ts-ignore: type is checked above.
12463
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
12463
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
12464
12464
  }
12465
12465
  else {
12466
- throw new TypeError("The linked must be of type " +
12466
+ throw new TypeError("The liked must be of type " +
12467
12467
  "Collection | URL" + ".");
12468
12468
  }
12469
12469
  }
@@ -12980,7 +12980,7 @@ export class Group extends Object {
12980
12980
  }
12981
12981
  return v;
12982
12982
  }
12983
- async #fetchLinked(url, options = {}) {
12983
+ async #fetchLiked(url, options = {}) {
12984
12984
  const documentLoader = options.documentLoader ?? this._documentLoader ??
12985
12985
  fetchDocumentLoader;
12986
12986
  const contextLoader = options.contextLoader ?? this._contextLoader ??
@@ -13009,10 +13009,10 @@ export class Group extends Object {
13009
13009
  }
13010
13010
  /**
13011
13011
  * Similar to
13012
- * {@link Group.getLinked},
13012
+ * {@link Group.getLiked},
13013
13013
  * but returns its `@id` URL instead of the object itself.
13014
13014
  */
13015
- get linkedId() {
13015
+ get likedId() {
13016
13016
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
13017
13017
  return null;
13018
13018
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
@@ -13027,12 +13027,12 @@ export class Group extends Object {
13027
13027
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
13028
13028
  * user or as appropriate when no authentication is given.
13029
13029
  */
13030
- async getLinked(options = {}) {
13030
+ async getLiked(options = {}) {
13031
13031
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
13032
13032
  return null;
13033
13033
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
13034
13034
  if (v instanceof URL) {
13035
- const fetched = await this.#fetchLinked(v, options);
13035
+ const fetched = await this.#fetchLiked(v, options);
13036
13036
  if (fetched == null)
13037
13037
  return null;
13038
13038
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0] = fetched;
@@ -13624,7 +13624,7 @@ export class Group extends Object {
13624
13624
  }
13625
13625
  : v);
13626
13626
  if (_3bgkPwJanyTCoVFM9ovRcus8tKkU.length == 1) {
13627
- proxy.linked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
13627
+ proxy.liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
13628
13628
  }
13629
13629
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9
13630
13630
  // deno-lint-ignore no-explicit-any
@@ -15643,13 +15643,13 @@ export class Organization extends Object {
15643
15643
  "Collection | URL" + ".");
15644
15644
  }
15645
15645
  }
15646
- if ("linked" in values && values.linked != null) {
15647
- if (values.linked instanceof Collection || values.linked instanceof URL) {
15646
+ if ("liked" in values && values.liked != null) {
15647
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
15648
15648
  // @ts-ignore: type is checked above.
15649
- this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
15649
+ this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
15650
15650
  }
15651
15651
  else {
15652
- throw new TypeError("The linked must be of type " +
15652
+ throw new TypeError("The liked must be of type " +
15653
15653
  "Collection | URL" + ".");
15654
15654
  }
15655
15655
  }
@@ -15869,13 +15869,13 @@ export class Organization extends Object {
15869
15869
  }
15870
15870
  }
15871
15871
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU;
15872
- if ("linked" in values && values.linked != null) {
15873
- if (values.linked instanceof Collection || values.linked instanceof URL) {
15872
+ if ("liked" in values && values.liked != null) {
15873
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
15874
15874
  // @ts-ignore: type is checked above.
15875
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
15875
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
15876
15876
  }
15877
15877
  else {
15878
- throw new TypeError("The linked must be of type " +
15878
+ throw new TypeError("The liked must be of type " +
15879
15879
  "Collection | URL" + ".");
15880
15880
  }
15881
15881
  }
@@ -16392,7 +16392,7 @@ export class Organization extends Object {
16392
16392
  }
16393
16393
  return v;
16394
16394
  }
16395
- async #fetchLinked(url, options = {}) {
16395
+ async #fetchLiked(url, options = {}) {
16396
16396
  const documentLoader = options.documentLoader ?? this._documentLoader ??
16397
16397
  fetchDocumentLoader;
16398
16398
  const contextLoader = options.contextLoader ?? this._contextLoader ??
@@ -16421,10 +16421,10 @@ export class Organization extends Object {
16421
16421
  }
16422
16422
  /**
16423
16423
  * Similar to
16424
- * {@link Organization.getLinked},
16424
+ * {@link Organization.getLiked},
16425
16425
  * but returns its `@id` URL instead of the object itself.
16426
16426
  */
16427
- get linkedId() {
16427
+ get likedId() {
16428
16428
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
16429
16429
  return null;
16430
16430
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
@@ -16439,12 +16439,12 @@ export class Organization extends Object {
16439
16439
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
16440
16440
  * user or as appropriate when no authentication is given.
16441
16441
  */
16442
- async getLinked(options = {}) {
16442
+ async getLiked(options = {}) {
16443
16443
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
16444
16444
  return null;
16445
16445
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
16446
16446
  if (v instanceof URL) {
16447
- const fetched = await this.#fetchLinked(v, options);
16447
+ const fetched = await this.#fetchLiked(v, options);
16448
16448
  if (fetched == null)
16449
16449
  return null;
16450
16450
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0] = fetched;
@@ -17036,7 +17036,7 @@ export class Organization extends Object {
17036
17036
  }
17037
17037
  : v);
17038
17038
  if (_3bgkPwJanyTCoVFM9ovRcus8tKkU.length == 1) {
17039
- proxy.linked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
17039
+ proxy.liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
17040
17040
  }
17041
17041
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9
17042
17042
  // deno-lint-ignore no-explicit-any
@@ -17393,13 +17393,13 @@ export class Person extends Object {
17393
17393
  "Collection | URL" + ".");
17394
17394
  }
17395
17395
  }
17396
- if ("linked" in values && values.linked != null) {
17397
- if (values.linked instanceof Collection || values.linked instanceof URL) {
17396
+ if ("liked" in values && values.liked != null) {
17397
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
17398
17398
  // @ts-ignore: type is checked above.
17399
- this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
17399
+ this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
17400
17400
  }
17401
17401
  else {
17402
- throw new TypeError("The linked must be of type " +
17402
+ throw new TypeError("The liked must be of type " +
17403
17403
  "Collection | URL" + ".");
17404
17404
  }
17405
17405
  }
@@ -17619,13 +17619,13 @@ export class Person extends Object {
17619
17619
  }
17620
17620
  }
17621
17621
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU;
17622
- if ("linked" in values && values.linked != null) {
17623
- if (values.linked instanceof Collection || values.linked instanceof URL) {
17622
+ if ("liked" in values && values.liked != null) {
17623
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
17624
17624
  // @ts-ignore: type is checked above.
17625
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
17625
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
17626
17626
  }
17627
17627
  else {
17628
- throw new TypeError("The linked must be of type " +
17628
+ throw new TypeError("The liked must be of type " +
17629
17629
  "Collection | URL" + ".");
17630
17630
  }
17631
17631
  }
@@ -18142,7 +18142,7 @@ export class Person extends Object {
18142
18142
  }
18143
18143
  return v;
18144
18144
  }
18145
- async #fetchLinked(url, options = {}) {
18145
+ async #fetchLiked(url, options = {}) {
18146
18146
  const documentLoader = options.documentLoader ?? this._documentLoader ??
18147
18147
  fetchDocumentLoader;
18148
18148
  const contextLoader = options.contextLoader ?? this._contextLoader ??
@@ -18171,10 +18171,10 @@ export class Person extends Object {
18171
18171
  }
18172
18172
  /**
18173
18173
  * Similar to
18174
- * {@link Person.getLinked},
18174
+ * {@link Person.getLiked},
18175
18175
  * but returns its `@id` URL instead of the object itself.
18176
18176
  */
18177
- get linkedId() {
18177
+ get likedId() {
18178
18178
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
18179
18179
  return null;
18180
18180
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
@@ -18189,12 +18189,12 @@ export class Person extends Object {
18189
18189
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
18190
18190
  * user or as appropriate when no authentication is given.
18191
18191
  */
18192
- async getLinked(options = {}) {
18192
+ async getLiked(options = {}) {
18193
18193
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
18194
18194
  return null;
18195
18195
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
18196
18196
  if (v instanceof URL) {
18197
- const fetched = await this.#fetchLinked(v, options);
18197
+ const fetched = await this.#fetchLiked(v, options);
18198
18198
  if (fetched == null)
18199
18199
  return null;
18200
18200
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0] = fetched;
@@ -18786,7 +18786,7 @@ export class Person extends Object {
18786
18786
  }
18787
18787
  : v);
18788
18788
  if (_3bgkPwJanyTCoVFM9ovRcus8tKkU.length == 1) {
18789
- proxy.linked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
18789
+ proxy.liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
18790
18790
  }
18791
18791
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9
18792
18792
  // deno-lint-ignore no-explicit-any
@@ -20893,13 +20893,13 @@ export class Service extends Object {
20893
20893
  "Collection | URL" + ".");
20894
20894
  }
20895
20895
  }
20896
- if ("linked" in values && values.linked != null) {
20897
- if (values.linked instanceof Collection || values.linked instanceof URL) {
20896
+ if ("liked" in values && values.liked != null) {
20897
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
20898
20898
  // @ts-ignore: type is checked above.
20899
- this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
20899
+ this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
20900
20900
  }
20901
20901
  else {
20902
- throw new TypeError("The linked must be of type " +
20902
+ throw new TypeError("The liked must be of type " +
20903
20903
  "Collection | URL" + ".");
20904
20904
  }
20905
20905
  }
@@ -21119,13 +21119,13 @@ export class Service extends Object {
21119
21119
  }
21120
21120
  }
21121
21121
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU;
21122
- if ("linked" in values && values.linked != null) {
21123
- if (values.linked instanceof Collection || values.linked instanceof URL) {
21122
+ if ("liked" in values && values.liked != null) {
21123
+ if (values.liked instanceof Collection || values.liked instanceof URL) {
21124
21124
  // @ts-ignore: type is checked above.
21125
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.linked];
21125
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU = [values.liked];
21126
21126
  }
21127
21127
  else {
21128
- throw new TypeError("The linked must be of type " +
21128
+ throw new TypeError("The liked must be of type " +
21129
21129
  "Collection | URL" + ".");
21130
21130
  }
21131
21131
  }
@@ -21642,7 +21642,7 @@ export class Service extends Object {
21642
21642
  }
21643
21643
  return v;
21644
21644
  }
21645
- async #fetchLinked(url, options = {}) {
21645
+ async #fetchLiked(url, options = {}) {
21646
21646
  const documentLoader = options.documentLoader ?? this._documentLoader ??
21647
21647
  fetchDocumentLoader;
21648
21648
  const contextLoader = options.contextLoader ?? this._contextLoader ??
@@ -21671,10 +21671,10 @@ export class Service extends Object {
21671
21671
  }
21672
21672
  /**
21673
21673
  * Similar to
21674
- * {@link Service.getLinked},
21674
+ * {@link Service.getLiked},
21675
21675
  * but returns its `@id` URL instead of the object itself.
21676
21676
  */
21677
- get linkedId() {
21677
+ get likedId() {
21678
21678
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
21679
21679
  return null;
21680
21680
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
@@ -21689,12 +21689,12 @@ export class Service extends Object {
21689
21689
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
21690
21690
  * user or as appropriate when no authentication is given.
21691
21691
  */
21692
- async getLinked(options = {}) {
21692
+ async getLiked(options = {}) {
21693
21693
  if (this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU.length < 1)
21694
21694
  return null;
21695
21695
  const v = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
21696
21696
  if (v instanceof URL) {
21697
- const fetched = await this.#fetchLinked(v, options);
21697
+ const fetched = await this.#fetchLiked(v, options);
21698
21698
  if (fetched == null)
21699
21699
  return null;
21700
21700
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU[0] = fetched;
@@ -22286,7 +22286,7 @@ export class Service extends Object {
22286
22286
  }
22287
22287
  : v);
22288
22288
  if (_3bgkPwJanyTCoVFM9ovRcus8tKkU.length == 1) {
22289
- proxy.linked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
22289
+ proxy.liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU[0];
22290
22290
  }
22291
22291
  const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9 = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9
22292
22292
  // deno-lint-ignore no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.11.0-dev.238+d579f961",
3
+ "version": "0.11.0-dev.239+558eb733",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1826,7 +1826,7 @@ export declare class Application extends Object {
1826
1826
  outbox?: OrderedCollection | URL | null;
1827
1827
  following?: Collection | URL | null;
1828
1828
  followers?: Collection | URL | null;
1829
- linked?: Collection | URL | null;
1829
+ liked?: Collection | URL | null;
1830
1830
  streams?: (Collection | URL)[];
1831
1831
  endpoints?: Endpoints | null;
1832
1832
  discoverable?: boolean | null;
@@ -1900,7 +1900,7 @@ export declare class Application extends Object {
1900
1900
  outbox?: OrderedCollection | URL | null;
1901
1901
  following?: Collection | URL | null;
1902
1902
  followers?: Collection | URL | null;
1903
- linked?: Collection | URL | null;
1903
+ liked?: Collection | URL | null;
1904
1904
  streams?: (Collection | URL)[];
1905
1905
  endpoints?: Endpoints | null;
1906
1906
  discoverable?: boolean | null;
@@ -2071,10 +2071,10 @@ export declare class Application extends Object {
2071
2071
  }): Promise<Collection | null>;
2072
2072
  /**
2073
2073
  * Similar to
2074
- * {@link Application.getLinked},
2074
+ * {@link Application.getLiked},
2075
2075
  * but returns its `@id` URL instead of the object itself.
2076
2076
  */
2077
- get linkedId(): URL | null;
2077
+ get likedId(): URL | null;
2078
2078
  /** This is a list of every object from all of the actor's {@link Like}
2079
2079
  * activities, added as a
2080
2080
  * [side effect](https://www.w3.org/TR/activitypub/#like-activity-outbox).
@@ -2082,7 +2082,7 @@ export declare class Application extends Object {
2082
2082
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
2083
2083
  * user or as appropriate when no authentication is given.
2084
2084
  */
2085
- getLinked(options?: {
2085
+ getLiked(options?: {
2086
2086
  documentLoader?: DocumentLoader;
2087
2087
  contextLoader?: DocumentLoader;
2088
2088
  suppressError?: boolean;
@@ -4644,7 +4644,7 @@ export declare class Group extends Object {
4644
4644
  outbox?: OrderedCollection | URL | null;
4645
4645
  following?: Collection | URL | null;
4646
4646
  followers?: Collection | URL | null;
4647
- linked?: Collection | URL | null;
4647
+ liked?: Collection | URL | null;
4648
4648
  streams?: (Collection | URL)[];
4649
4649
  endpoints?: Endpoints | null;
4650
4650
  discoverable?: boolean | null;
@@ -4718,7 +4718,7 @@ export declare class Group extends Object {
4718
4718
  outbox?: OrderedCollection | URL | null;
4719
4719
  following?: Collection | URL | null;
4720
4720
  followers?: Collection | URL | null;
4721
- linked?: Collection | URL | null;
4721
+ liked?: Collection | URL | null;
4722
4722
  streams?: (Collection | URL)[];
4723
4723
  endpoints?: Endpoints | null;
4724
4724
  discoverable?: boolean | null;
@@ -4889,10 +4889,10 @@ export declare class Group extends Object {
4889
4889
  }): Promise<Collection | null>;
4890
4890
  /**
4891
4891
  * Similar to
4892
- * {@link Group.getLinked},
4892
+ * {@link Group.getLiked},
4893
4893
  * but returns its `@id` URL instead of the object itself.
4894
4894
  */
4895
- get linkedId(): URL | null;
4895
+ get likedId(): URL | null;
4896
4896
  /** This is a list of every object from all of the actor's {@link Like}
4897
4897
  * activities, added as a
4898
4898
  * [side effect](https://www.w3.org/TR/activitypub/#like-activity-outbox).
@@ -4900,7 +4900,7 @@ export declare class Group extends Object {
4900
4900
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
4901
4901
  * user or as appropriate when no authentication is given.
4902
4902
  */
4903
- getLinked(options?: {
4903
+ getLiked(options?: {
4904
4904
  documentLoader?: DocumentLoader;
4905
4905
  contextLoader?: DocumentLoader;
4906
4906
  suppressError?: boolean;
@@ -6209,7 +6209,7 @@ export declare class Organization extends Object {
6209
6209
  outbox?: OrderedCollection | URL | null;
6210
6210
  following?: Collection | URL | null;
6211
6211
  followers?: Collection | URL | null;
6212
- linked?: Collection | URL | null;
6212
+ liked?: Collection | URL | null;
6213
6213
  streams?: (Collection | URL)[];
6214
6214
  endpoints?: Endpoints | null;
6215
6215
  discoverable?: boolean | null;
@@ -6283,7 +6283,7 @@ export declare class Organization extends Object {
6283
6283
  outbox?: OrderedCollection | URL | null;
6284
6284
  following?: Collection | URL | null;
6285
6285
  followers?: Collection | URL | null;
6286
- linked?: Collection | URL | null;
6286
+ liked?: Collection | URL | null;
6287
6287
  streams?: (Collection | URL)[];
6288
6288
  endpoints?: Endpoints | null;
6289
6289
  discoverable?: boolean | null;
@@ -6454,10 +6454,10 @@ export declare class Organization extends Object {
6454
6454
  }): Promise<Collection | null>;
6455
6455
  /**
6456
6456
  * Similar to
6457
- * {@link Organization.getLinked},
6457
+ * {@link Organization.getLiked},
6458
6458
  * but returns its `@id` URL instead of the object itself.
6459
6459
  */
6460
- get linkedId(): URL | null;
6460
+ get likedId(): URL | null;
6461
6461
  /** This is a list of every object from all of the actor's {@link Like}
6462
6462
  * activities, added as a
6463
6463
  * [side effect](https://www.w3.org/TR/activitypub/#like-activity-outbox).
@@ -6465,7 +6465,7 @@ export declare class Organization extends Object {
6465
6465
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
6466
6466
  * user or as appropriate when no authentication is given.
6467
6467
  */
6468
- getLinked(options?: {
6468
+ getLiked(options?: {
6469
6469
  documentLoader?: DocumentLoader;
6470
6470
  contextLoader?: DocumentLoader;
6471
6471
  suppressError?: boolean;
@@ -6739,7 +6739,7 @@ export declare class Person extends Object {
6739
6739
  outbox?: OrderedCollection | URL | null;
6740
6740
  following?: Collection | URL | null;
6741
6741
  followers?: Collection | URL | null;
6742
- linked?: Collection | URL | null;
6742
+ liked?: Collection | URL | null;
6743
6743
  streams?: (Collection | URL)[];
6744
6744
  endpoints?: Endpoints | null;
6745
6745
  discoverable?: boolean | null;
@@ -6813,7 +6813,7 @@ export declare class Person extends Object {
6813
6813
  outbox?: OrderedCollection | URL | null;
6814
6814
  following?: Collection | URL | null;
6815
6815
  followers?: Collection | URL | null;
6816
- linked?: Collection | URL | null;
6816
+ liked?: Collection | URL | null;
6817
6817
  streams?: (Collection | URL)[];
6818
6818
  endpoints?: Endpoints | null;
6819
6819
  discoverable?: boolean | null;
@@ -6984,10 +6984,10 @@ export declare class Person extends Object {
6984
6984
  }): Promise<Collection | null>;
6985
6985
  /**
6986
6986
  * Similar to
6987
- * {@link Person.getLinked},
6987
+ * {@link Person.getLiked},
6988
6988
  * but returns its `@id` URL instead of the object itself.
6989
6989
  */
6990
- get linkedId(): URL | null;
6990
+ get likedId(): URL | null;
6991
6991
  /** This is a list of every object from all of the actor's {@link Like}
6992
6992
  * activities, added as a
6993
6993
  * [side effect](https://www.w3.org/TR/activitypub/#like-activity-outbox).
@@ -6995,7 +6995,7 @@ export declare class Person extends Object {
6995
6995
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
6996
6996
  * user or as appropriate when no authentication is given.
6997
6997
  */
6998
- getLinked(options?: {
6998
+ getLiked(options?: {
6999
6999
  documentLoader?: DocumentLoader;
7000
7000
  contextLoader?: DocumentLoader;
7001
7001
  suppressError?: boolean;
@@ -8178,7 +8178,7 @@ export declare class Service extends Object {
8178
8178
  outbox?: OrderedCollection | URL | null;
8179
8179
  following?: Collection | URL | null;
8180
8180
  followers?: Collection | URL | null;
8181
- linked?: Collection | URL | null;
8181
+ liked?: Collection | URL | null;
8182
8182
  streams?: (Collection | URL)[];
8183
8183
  endpoints?: Endpoints | null;
8184
8184
  discoverable?: boolean | null;
@@ -8252,7 +8252,7 @@ export declare class Service extends Object {
8252
8252
  outbox?: OrderedCollection | URL | null;
8253
8253
  following?: Collection | URL | null;
8254
8254
  followers?: Collection | URL | null;
8255
- linked?: Collection | URL | null;
8255
+ liked?: Collection | URL | null;
8256
8256
  streams?: (Collection | URL)[];
8257
8257
  endpoints?: Endpoints | null;
8258
8258
  discoverable?: boolean | null;
@@ -8423,10 +8423,10 @@ export declare class Service extends Object {
8423
8423
  }): Promise<Collection | null>;
8424
8424
  /**
8425
8425
  * Similar to
8426
- * {@link Service.getLinked},
8426
+ * {@link Service.getLiked},
8427
8427
  * but returns its `@id` URL instead of the object itself.
8428
8428
  */
8429
- get linkedId(): URL | null;
8429
+ get likedId(): URL | null;
8430
8430
  /** This is a list of every object from all of the actor's {@link Like}
8431
8431
  * activities, added as a
8432
8432
  * [side effect](https://www.w3.org/TR/activitypub/#like-activity-outbox).
@@ -8434,7 +8434,7 @@ export declare class Service extends Object {
8434
8434
  * a {@link Collection} and MAY be filtered on privileges of an authenticated
8435
8435
  * user or as appropriate when no authentication is given.
8436
8436
  */
8437
- getLinked(options?: {
8437
+ getLiked(options?: {
8438
8438
  documentLoader?: DocumentLoader;
8439
8439
  contextLoader?: DocumentLoader;
8440
8440
  suppressError?: boolean;