@fedify/vocab 2.4.0-dev.1634 → 2.4.0-pr.934.40

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.
@@ -4,7 +4,7 @@ import "node:module";
4
4
  import { SpanStatusCode, trace } from "@opentelemetry/api";
5
5
  import jsonld from "@fedify/vocab-runtime/jsonld";
6
6
  import { getLogger } from "@logtape/logtape";
7
- import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, getDocumentLoader, importMultibaseKey, importPem, isDecimal, isGatewayUrl, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
7
+ import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, getDocumentLoader, importMultibaseKey, importPem, isDecimal, parseDecimal, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
8
8
  import { compactJsonLdCache, isTrustedIriOrigin, normalizeJsonLdIris } from "@fedify/vocab-runtime/internal/jsonld-cache";
9
9
  import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
10
10
  //#region \0rolldown/runtime.js
@@ -46,8 +46,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
46
46
  * When an `icon` or `image` property on a vocabulary object contains an
47
47
  * explicit ActivityStreams `Link` rather than an `Image`, this preprocessor
48
48
  * converts it into an `Image` by mapping `href` to `url`, copying
49
- * `mediaType`, `name`, `width`, `height`, and `digestMultibase`, and
50
- * discarding the rest.
49
+ * `mediaType`, `name`, `width`, and `height`, and discarding the rest.
51
50
  *
52
51
  * If the value is not a Link, or the Link has no `href`, it returns
53
52
  * `undefined` so the normal range decoder continues.
@@ -68,8 +67,7 @@ const normalizeLinkToImage = async (value, context) => {
68
67
  mediaType: link.mediaType,
69
68
  names: link.names != null && link.names.length > 0 ? link.names : void 0,
70
69
  width: link.width,
71
- height: link.height,
72
- digestMultibase: link.digestMultibase
70
+ height: link.height
73
71
  });
74
72
  };
75
73
  //#endregion
@@ -22082,7 +22080,6 @@ var Application = class Application extends Object$1 {
22082
22080
  #_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
22083
22081
  #_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
22084
22082
  #_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
22085
- #_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
22086
22083
  #_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
22087
22084
  #_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
22088
22085
  #_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
@@ -22151,13 +22148,6 @@ var Application = class Application extends Object$1 {
22151
22148
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
22152
22149
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
22153
22150
  }
22154
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
22155
- else throw new TypeError("The gateway must be of type URL.");
22156
- if ("gateways" in values && values.gateways != null) {
22157
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
22158
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
22159
- else throw new TypeError("The gateways must be an array of type URL.");
22160
- }
22161
22151
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
22162
22152
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
22163
22153
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
@@ -22288,14 +22278,6 @@ var Application = class Application extends Object$1 {
22288
22278
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
22289
22279
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
22290
22280
  }
22291
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
22292
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
22293
- else throw new TypeError("The gateway must be of type URL.");
22294
- if ("gateways" in values && values.gateways != null) {
22295
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
22296
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
22297
- else throw new TypeError("The gateways must be an array of type URL.");
22298
- }
22299
22281
  clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
22300
22282
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
22301
22283
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
@@ -22769,24 +22751,6 @@ var Application = class Application extends Object$1 {
22769
22751
  yield v;
22770
22752
  }
22771
22753
  }
22772
- /** Gateways where the latest version of this portable actor object can be
22773
- * retrieved.
22774
- *
22775
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
22776
- */
22777
- get gateway() {
22778
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
22779
- if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
22780
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
22781
- }
22782
- /** Gateways where the latest version of this portable actor object can be
22783
- * retrieved.
22784
- *
22785
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
22786
- */
22787
- get gateways() {
22788
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
22789
- }
22790
22754
  /** When `true`, conveys that for this actor, follow requests are not usually
22791
22755
  * automatically approved, but instead are examined by a person who may accept
22792
22756
  * or reject the request, at some time in the future. Setting of `false`
@@ -24656,12 +24620,6 @@ var Application = class Application extends Object$1 {
24656
24620
  }
24657
24621
  if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
24658
24622
  compactItems = [];
24659
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
24660
- const item = formatIri(v);
24661
- compactItems.push(item);
24662
- }
24663
- if (compactItems.length > 0) result["gateways"] = compactItems;
24664
- compactItems = [];
24665
24623
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
24666
24624
  const item = v;
24667
24625
  compactItems.push(item);
@@ -24877,7 +24835,6 @@ var Application = class Application extends Object$1 {
24877
24835
  if (this.id != null) result["id"] = formatIri(this.id);
24878
24836
  result["@context"] = [
24879
24837
  "https://www.w3.org/ns/activitystreams",
24880
- "https://w3id.org/fep/ef61",
24881
24838
  "https://w3id.org/security/v1",
24882
24839
  "https://w3id.org/security/data-integrity/v1",
24883
24840
  "https://www.w3.org/ns/did/v1",
@@ -24950,12 +24907,6 @@ var Application = class Application extends Object$1 {
24950
24907
  }
24951
24908
  if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
24952
24909
  array = [];
24953
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
24954
- const element = { "@id": formatIri(v) };
24955
- array.push(element);
24956
- }
24957
- if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
24958
- array = [];
24959
24910
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
24960
24911
  const element = { "@value": v };
24961
24912
  array.push(element);
@@ -25080,7 +25031,6 @@ var Application = class Application extends Object$1 {
25080
25031
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
25081
25032
  const docContext = options.context ?? [
25082
25033
  "https://www.w3.org/ns/activitystreams",
25083
- "https://w3id.org/fep/ef61",
25084
25034
  "https://w3id.org/security/v1",
25085
25035
  "https://w3id.org/security/data-integrity/v1",
25086
25036
  "https://www.w3.org/ns/did/v1",
@@ -25244,15 +25194,6 @@ var Application = class Application extends Object$1 {
25244
25194
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
25245
25195
  }
25246
25196
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
25247
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
25248
- let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
25249
- for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
25250
- if (v == null) continue;
25251
- const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
25252
- if (typeof decoded === "undefined") continue;
25253
- _hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
25254
- }
25255
- instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
25256
25197
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
25257
25198
  let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
25258
25199
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
@@ -25594,12 +25535,6 @@ var Application = class Application extends Object$1 {
25594
25535
  } : v);
25595
25536
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
25596
25537
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
25597
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
25598
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
25599
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
25600
- } : v);
25601
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
25602
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
25603
25538
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
25604
25539
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
25605
25540
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -26690,7 +26625,6 @@ var Document = class Document extends Object$1 {
26690
26625
  }
26691
26626
  #_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
26692
26627
  #_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
26693
- #_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
26694
26628
  /**
26695
26629
  * Constructs a new instance of Document with the given values.
26696
26630
  * @param values The values to initialize the instance with.
@@ -26702,8 +26636,6 @@ var Document = class Document extends Object$1 {
26702
26636
  else throw new TypeError("The width must be of type number.");
26703
26637
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
26704
26638
  else throw new TypeError("The height must be of type number.");
26705
- if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
26706
- else throw new TypeError("The digestMultibase must be of type string.");
26707
26639
  }
26708
26640
  /**
26709
26641
  * Clones this instance, optionally updating it with the given values.
@@ -26726,9 +26658,6 @@ var Document = class Document extends Object$1 {
26726
26658
  clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
26727
26659
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
26728
26660
  else throw new TypeError("The height must be of type number.");
26729
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
26730
- if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
26731
- else throw new TypeError("The digestMultibase must be of type string.");
26732
26661
  return clone;
26733
26662
  }
26734
26663
  /** Specifies a hint as to the rendering width in
@@ -26747,16 +26676,6 @@ var Document = class Document extends Object$1 {
26747
26676
  if (this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.length < 1) return null;
26748
26677
  return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
26749
26678
  }
26750
- /** The multibase-encoded integrity digest of an external resource represented
26751
- * by this document.
26752
- *
26753
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
26754
- */
26755
- get digestMultibase() {
26756
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
26757
- if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
26758
- return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
26759
- }
26760
26679
  /**
26761
26680
  * Converts this object to a JSON-LD structure.
26762
26681
  * @param options The options to use.
@@ -26792,18 +26711,11 @@ var Document = class Document extends Object$1 {
26792
26711
  compactItems.push(item);
26793
26712
  }
26794
26713
  if (compactItems.length > 0) result["height"] = compactItems.length > 1 ? compactItems : compactItems[0];
26795
- compactItems = [];
26796
- for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
26797
- const item = v;
26798
- compactItems.push(item);
26799
- }
26800
- if (compactItems.length > 0) result["digestMultibase"] = compactItems.length > 1 ? compactItems : compactItems[0];
26801
26714
  result["type"] = "Document";
26802
26715
  if (this.id != null) result["id"] = formatIri(this.id);
26803
26716
  result["@context"] = [
26804
26717
  "https://www.w3.org/ns/activitystreams",
26805
- "https://w3id.org/security/data-integrity/v2",
26806
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
26718
+ "https://w3id.org/security/data-integrity/v1",
26807
26719
  "https://gotosocial.org/ns"
26808
26720
  ];
26809
26721
  return result;
@@ -26832,19 +26744,12 @@ var Document = class Document extends Object$1 {
26832
26744
  array.push(element);
26833
26745
  }
26834
26746
  if (array.length > 0) values["https://www.w3.org/ns/activitystreams#height"] = array;
26835
- array = [];
26836
- for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
26837
- const element = { "@value": v };
26838
- array.push(element);
26839
- }
26840
- if (array.length > 0) values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = array;
26841
26747
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
26842
26748
  if (this.id != null) values["@id"] = formatIri(this.id);
26843
26749
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
26844
26750
  const docContext = options.context ?? [
26845
26751
  "https://www.w3.org/ns/activitystreams",
26846
- "https://w3id.org/security/data-integrity/v2",
26847
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
26752
+ "https://w3id.org/security/data-integrity/v1",
26848
26753
  "https://gotosocial.org/ns"
26849
26754
  ];
26850
26755
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -26945,15 +26850,6 @@ var Document = class Document extends Object$1 {
26945
26850
  _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
26946
26851
  }
26947
26852
  instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
26948
- const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
26949
- let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
26950
- for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
26951
- if (v == null) continue;
26952
- const decoded = v["@value"];
26953
- if (typeof decoded === "undefined") continue;
26954
- _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
26955
- }
26956
- instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
26957
26853
  if (!("_fromSubclass" in options) || !options._fromSubclass) try {
26958
26854
  if (cacheJsonLd != null && cacheJsonLd !== expanded) {
26959
26855
  const compactArray = Array.isArray(json) && json.length === 1;
@@ -26978,11 +26874,6 @@ var Document = class Document extends Object$1 {
26978
26874
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
26979
26875
  } : v);
26980
26876
  if (_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.length == 1) proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
26981
- const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.map((v) => v instanceof URL ? {
26982
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
26983
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
26984
- } : v);
26985
- if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
26986
26877
  return proxy;
26987
26878
  }
26988
26879
  };
@@ -27052,8 +26943,7 @@ var Audio = class Audio extends Document {
27052
26943
  if (this.id != null) result["id"] = formatIri(this.id);
27053
26944
  result["@context"] = [
27054
26945
  "https://www.w3.org/ns/activitystreams",
27055
- "https://w3id.org/security/data-integrity/v2",
27056
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
26946
+ "https://w3id.org/security/data-integrity/v1",
27057
26947
  "https://gotosocial.org/ns"
27058
26948
  ];
27059
26949
  return result;
@@ -27068,8 +26958,7 @@ var Audio = class Audio extends Document {
27068
26958
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
27069
26959
  const docContext = options.context ?? [
27070
26960
  "https://www.w3.org/ns/activitystreams",
27071
- "https://w3id.org/security/data-integrity/v2",
27072
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
26961
+ "https://w3id.org/security/data-integrity/v1",
27073
26962
  "https://gotosocial.org/ns"
27074
26963
  ];
27075
26964
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -29820,7 +29709,6 @@ var Group = class Group extends Object$1 {
29820
29709
  #_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
29821
29710
  #_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
29822
29711
  #_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
29823
- #_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
29824
29712
  #_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
29825
29713
  #_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
29826
29714
  #_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
@@ -29889,13 +29777,6 @@ var Group = class Group extends Object$1 {
29889
29777
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
29890
29778
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
29891
29779
  }
29892
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
29893
- else throw new TypeError("The gateway must be of type URL.");
29894
- if ("gateways" in values && values.gateways != null) {
29895
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
29896
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
29897
- else throw new TypeError("The gateways must be an array of type URL.");
29898
- }
29899
29780
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
29900
29781
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
29901
29782
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
@@ -30026,14 +29907,6 @@ var Group = class Group extends Object$1 {
30026
29907
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
30027
29908
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
30028
29909
  }
30029
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
30030
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
30031
- else throw new TypeError("The gateway must be of type URL.");
30032
- if ("gateways" in values && values.gateways != null) {
30033
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
30034
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
30035
- else throw new TypeError("The gateways must be an array of type URL.");
30036
- }
30037
29910
  clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
30038
29911
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
30039
29912
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
@@ -30507,24 +30380,6 @@ var Group = class Group extends Object$1 {
30507
30380
  yield v;
30508
30381
  }
30509
30382
  }
30510
- /** Gateways where the latest version of this portable actor object can be
30511
- * retrieved.
30512
- *
30513
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
30514
- */
30515
- get gateway() {
30516
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
30517
- if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
30518
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
30519
- }
30520
- /** Gateways where the latest version of this portable actor object can be
30521
- * retrieved.
30522
- *
30523
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
30524
- */
30525
- get gateways() {
30526
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
30527
- }
30528
30383
  /** When `true`, conveys that for this actor, follow requests are not usually
30529
30384
  * automatically approved, but instead are examined by a person who may accept
30530
30385
  * or reject the request, at some time in the future. Setting of `false`
@@ -32394,12 +32249,6 @@ var Group = class Group extends Object$1 {
32394
32249
  }
32395
32250
  if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
32396
32251
  compactItems = [];
32397
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
32398
- const item = formatIri(v);
32399
- compactItems.push(item);
32400
- }
32401
- if (compactItems.length > 0) result["gateways"] = compactItems;
32402
- compactItems = [];
32403
32252
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
32404
32253
  const item = v;
32405
32254
  compactItems.push(item);
@@ -32615,7 +32464,6 @@ var Group = class Group extends Object$1 {
32615
32464
  if (this.id != null) result["id"] = formatIri(this.id);
32616
32465
  result["@context"] = [
32617
32466
  "https://www.w3.org/ns/activitystreams",
32618
- "https://w3id.org/fep/ef61",
32619
32467
  "https://w3id.org/security/v1",
32620
32468
  "https://w3id.org/security/data-integrity/v1",
32621
32469
  "https://www.w3.org/ns/did/v1",
@@ -32688,12 +32536,6 @@ var Group = class Group extends Object$1 {
32688
32536
  }
32689
32537
  if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
32690
32538
  array = [];
32691
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
32692
- const element = { "@id": formatIri(v) };
32693
- array.push(element);
32694
- }
32695
- if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
32696
- array = [];
32697
32539
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
32698
32540
  const element = { "@value": v };
32699
32541
  array.push(element);
@@ -32818,7 +32660,6 @@ var Group = class Group extends Object$1 {
32818
32660
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
32819
32661
  const docContext = options.context ?? [
32820
32662
  "https://www.w3.org/ns/activitystreams",
32821
- "https://w3id.org/fep/ef61",
32822
32663
  "https://w3id.org/security/v1",
32823
32664
  "https://w3id.org/security/data-integrity/v1",
32824
32665
  "https://www.w3.org/ns/did/v1",
@@ -32982,15 +32823,6 @@ var Group = class Group extends Object$1 {
32982
32823
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
32983
32824
  }
32984
32825
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
32985
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
32986
- let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
32987
- for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
32988
- if (v == null) continue;
32989
- const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
32990
- if (typeof decoded === "undefined") continue;
32991
- _hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
32992
- }
32993
- instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
32994
32826
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
32995
32827
  let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
32996
32828
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
@@ -33332,12 +33164,6 @@ var Group = class Group extends Object$1 {
33332
33164
  } : v);
33333
33165
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
33334
33166
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
33335
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
33336
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
33337
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
33338
- } : v);
33339
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
33340
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
33341
33167
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
33342
33168
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
33343
33169
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -33496,7 +33322,6 @@ var Link = class Link {
33496
33322
  #_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
33497
33323
  #_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [];
33498
33324
  #_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
33499
- #_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
33500
33325
  #_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
33501
33326
  #_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [];
33502
33327
  #_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
@@ -33528,8 +33353,6 @@ var Link = class Link {
33528
33353
  }
33529
33354
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
33530
33355
  else throw new TypeError("The mediaType must be of type string.");
33531
- if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
33532
- else throw new TypeError("The digestMultibase must be of type string.");
33533
33356
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
33534
33357
  else throw new TypeError("The name must be of type string | LanguageString.");
33535
33358
  if ("names" in values && values.names != null) {
@@ -33577,9 +33400,6 @@ var Link = class Link {
33577
33400
  clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
33578
33401
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
33579
33402
  else throw new TypeError("The mediaType must be of type string.");
33580
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
33581
- if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
33582
- else throw new TypeError("The digestMultibase must be of type string.");
33583
33403
  clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
33584
33404
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
33585
33405
  else throw new TypeError("The name must be of type string | LanguageString.");
@@ -33643,15 +33463,6 @@ var Link = class Link {
33643
33463
  if (this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.length < 1) return null;
33644
33464
  return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
33645
33465
  }
33646
- /** The multibase-encoded integrity digest of the linked resource.
33647
- *
33648
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
33649
- */
33650
- get digestMultibase() {
33651
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
33652
- if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
33653
- return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
33654
- }
33655
33466
  /** A simple, human-readable, plain-text name for the object. HTML markup MUST
33656
33467
  * NOT be included. The name MAY be expressed using multiple language-tagged
33657
33468
  * values.
@@ -33864,12 +33675,6 @@ var Link = class Link {
33864
33675
  }
33865
33676
  if (compactItems.length > 0) result["mediaType"] = compactItems.length > 1 ? compactItems : compactItems[0];
33866
33677
  compactItems = [];
33867
- for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
33868
- const item = v;
33869
- compactItems.push(item);
33870
- }
33871
- if (compactItems.length > 0) result["digestMultibase"] = compactItems.length > 1 ? compactItems : compactItems[0];
33872
- compactItems = [];
33873
33678
  for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
33874
33679
  const item = typeof v === "string" ? v : {
33875
33680
  "@value": v.toString(),
@@ -33912,7 +33717,7 @@ var Link = class Link {
33912
33717
  if (compactItems.length > 0) result["preview"] = compactItems.length > 1 ? compactItems : compactItems[0];
33913
33718
  result["type"] = "Link";
33914
33719
  if (this.id != null) result["id"] = formatIri(this.id);
33915
- result["@context"] = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"];
33720
+ result["@context"] = "https://www.w3.org/ns/activitystreams";
33916
33721
  return result;
33917
33722
  }
33918
33723
  let array;
@@ -33936,12 +33741,6 @@ var Link = class Link {
33936
33741
  }
33937
33742
  if (array.length > 0) values["https://www.w3.org/ns/activitystreams#mediaType"] = array;
33938
33743
  array = [];
33939
- for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
33940
- const element = { "@value": v };
33941
- array.push(element);
33942
- }
33943
- if (array.length > 0) values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = array;
33944
- array = [];
33945
33744
  for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
33946
33745
  const element = typeof v === "string" ? { "@value": v } : {
33947
33746
  "@value": v.toString(),
@@ -33983,7 +33782,7 @@ var Link = class Link {
33983
33782
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Link"];
33984
33783
  if (this.id != null) values["@id"] = formatIri(this.id);
33985
33784
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
33986
- const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"];
33785
+ const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
33987
33786
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
33988
33787
  if (docContext != null) {}
33989
33788
  return compacted;
@@ -34082,15 +33881,6 @@ var Link = class Link {
34082
33881
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
34083
33882
  }
34084
33883
  instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
34085
- const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
34086
- let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
34087
- for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
34088
- if (v == null) continue;
34089
- const decoded = v["@value"];
34090
- if (typeof decoded === "undefined") continue;
34091
- _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
34092
- }
34093
- instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
34094
33884
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
34095
33885
  let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
34096
33886
  for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
@@ -34255,11 +34045,6 @@ var Link = class Link {
34255
34045
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
34256
34046
  } : v);
34257
34047
  if (_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.length == 1) proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
34258
- const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.map((v) => v instanceof URL ? {
34259
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
34260
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
34261
- } : v);
34262
- if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
34263
34048
  const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.map((v) => v instanceof URL ? {
34264
34049
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
34265
34050
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -34522,8 +34307,7 @@ var Image = class Image extends Document {
34522
34307
  if (this.id != null) result["id"] = formatIri(this.id);
34523
34308
  result["@context"] = [
34524
34309
  "https://www.w3.org/ns/activitystreams",
34525
- "https://w3id.org/security/data-integrity/v2",
34526
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
34310
+ "https://w3id.org/security/data-integrity/v1",
34527
34311
  "https://gotosocial.org/ns"
34528
34312
  ];
34529
34313
  return result;
@@ -34538,8 +34322,7 @@ var Image = class Image extends Document {
34538
34322
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
34539
34323
  const docContext = options.context ?? [
34540
34324
  "https://www.w3.org/ns/activitystreams",
34541
- "https://w3id.org/security/data-integrity/v2",
34542
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
34325
+ "https://w3id.org/security/data-integrity/v1",
34543
34326
  "https://gotosocial.org/ns"
34544
34327
  ];
34545
34328
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -37150,7 +36933,6 @@ var Organization = class Organization extends Object$1 {
37150
36933
  #_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
37151
36934
  #_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
37152
36935
  #_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
37153
- #_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
37154
36936
  #_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
37155
36937
  #_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
37156
36938
  #_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
@@ -37219,13 +37001,6 @@ var Organization = class Organization extends Object$1 {
37219
37001
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
37220
37002
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
37221
37003
  }
37222
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
37223
- else throw new TypeError("The gateway must be of type URL.");
37224
- if ("gateways" in values && values.gateways != null) {
37225
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
37226
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
37227
- else throw new TypeError("The gateways must be an array of type URL.");
37228
- }
37229
37004
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
37230
37005
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
37231
37006
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
@@ -37356,14 +37131,6 @@ var Organization = class Organization extends Object$1 {
37356
37131
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
37357
37132
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
37358
37133
  }
37359
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
37360
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
37361
- else throw new TypeError("The gateway must be of type URL.");
37362
- if ("gateways" in values && values.gateways != null) {
37363
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
37364
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
37365
- else throw new TypeError("The gateways must be an array of type URL.");
37366
- }
37367
37134
  clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
37368
37135
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
37369
37136
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
@@ -37837,24 +37604,6 @@ var Organization = class Organization extends Object$1 {
37837
37604
  yield v;
37838
37605
  }
37839
37606
  }
37840
- /** Gateways where the latest version of this portable actor object can be
37841
- * retrieved.
37842
- *
37843
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
37844
- */
37845
- get gateway() {
37846
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
37847
- if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
37848
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
37849
- }
37850
- /** Gateways where the latest version of this portable actor object can be
37851
- * retrieved.
37852
- *
37853
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
37854
- */
37855
- get gateways() {
37856
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
37857
- }
37858
37607
  /** When `true`, conveys that for this actor, follow requests are not usually
37859
37608
  * automatically approved, but instead are examined by a person who may accept
37860
37609
  * or reject the request, at some time in the future. Setting of `false`
@@ -39724,12 +39473,6 @@ var Organization = class Organization extends Object$1 {
39724
39473
  }
39725
39474
  if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
39726
39475
  compactItems = [];
39727
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
39728
- const item = formatIri(v);
39729
- compactItems.push(item);
39730
- }
39731
- if (compactItems.length > 0) result["gateways"] = compactItems;
39732
- compactItems = [];
39733
39476
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
39734
39477
  const item = v;
39735
39478
  compactItems.push(item);
@@ -39945,7 +39688,6 @@ var Organization = class Organization extends Object$1 {
39945
39688
  if (this.id != null) result["id"] = formatIri(this.id);
39946
39689
  result["@context"] = [
39947
39690
  "https://www.w3.org/ns/activitystreams",
39948
- "https://w3id.org/fep/ef61",
39949
39691
  "https://w3id.org/security/v1",
39950
39692
  "https://w3id.org/security/data-integrity/v1",
39951
39693
  "https://www.w3.org/ns/did/v1",
@@ -40018,12 +39760,6 @@ var Organization = class Organization extends Object$1 {
40018
39760
  }
40019
39761
  if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
40020
39762
  array = [];
40021
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
40022
- const element = { "@id": formatIri(v) };
40023
- array.push(element);
40024
- }
40025
- if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
40026
- array = [];
40027
39763
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
40028
39764
  const element = { "@value": v };
40029
39765
  array.push(element);
@@ -40148,7 +39884,6 @@ var Organization = class Organization extends Object$1 {
40148
39884
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
40149
39885
  const docContext = options.context ?? [
40150
39886
  "https://www.w3.org/ns/activitystreams",
40151
- "https://w3id.org/fep/ef61",
40152
39887
  "https://w3id.org/security/v1",
40153
39888
  "https://w3id.org/security/data-integrity/v1",
40154
39889
  "https://www.w3.org/ns/did/v1",
@@ -40312,15 +40047,6 @@ var Organization = class Organization extends Object$1 {
40312
40047
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
40313
40048
  }
40314
40049
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
40315
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
40316
- let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
40317
- for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
40318
- if (v == null) continue;
40319
- const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
40320
- if (typeof decoded === "undefined") continue;
40321
- _hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
40322
- }
40323
- instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
40324
40050
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
40325
40051
  let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
40326
40052
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
@@ -40662,12 +40388,6 @@ var Organization = class Organization extends Object$1 {
40662
40388
  } : v);
40663
40389
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
40664
40390
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
40665
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
40666
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
40667
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
40668
- } : v);
40669
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
40670
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
40671
40391
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
40672
40392
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
40673
40393
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -40839,8 +40559,7 @@ var Page = class Page extends Document {
40839
40559
  if (this.id != null) result["id"] = formatIri(this.id);
40840
40560
  result["@context"] = [
40841
40561
  "https://www.w3.org/ns/activitystreams",
40842
- "https://w3id.org/security/data-integrity/v2",
40843
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
40562
+ "https://w3id.org/security/data-integrity/v1",
40844
40563
  "https://gotosocial.org/ns"
40845
40564
  ];
40846
40565
  return result;
@@ -40855,8 +40574,7 @@ var Page = class Page extends Document {
40855
40574
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
40856
40575
  const docContext = options.context ?? [
40857
40576
  "https://www.w3.org/ns/activitystreams",
40858
- "https://w3id.org/security/data-integrity/v2",
40859
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
40577
+ "https://w3id.org/security/data-integrity/v1",
40860
40578
  "https://gotosocial.org/ns"
40861
40579
  ];
40862
40580
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -40971,7 +40689,6 @@ var Person = class Person extends Object$1 {
40971
40689
  #_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
40972
40690
  #_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
40973
40691
  #_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
40974
- #_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
40975
40692
  #_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
40976
40693
  #_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
40977
40694
  #_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
@@ -41040,13 +40757,6 @@ var Person = class Person extends Object$1 {
41040
40757
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
41041
40758
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
41042
40759
  }
41043
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
41044
- else throw new TypeError("The gateway must be of type URL.");
41045
- if ("gateways" in values && values.gateways != null) {
41046
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
41047
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
41048
- else throw new TypeError("The gateways must be an array of type URL.");
41049
- }
41050
40760
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
41051
40761
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
41052
40762
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
@@ -41177,14 +40887,6 @@ var Person = class Person extends Object$1 {
41177
40887
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
41178
40888
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
41179
40889
  }
41180
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
41181
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
41182
- else throw new TypeError("The gateway must be of type URL.");
41183
- if ("gateways" in values && values.gateways != null) {
41184
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
41185
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
41186
- else throw new TypeError("The gateways must be an array of type URL.");
41187
- }
41188
40890
  clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
41189
40891
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
41190
40892
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
@@ -41658,24 +41360,6 @@ var Person = class Person extends Object$1 {
41658
41360
  yield v;
41659
41361
  }
41660
41362
  }
41661
- /** Gateways where the latest version of this portable actor object can be
41662
- * retrieved.
41663
- *
41664
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
41665
- */
41666
- get gateway() {
41667
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
41668
- if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
41669
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
41670
- }
41671
- /** Gateways where the latest version of this portable actor object can be
41672
- * retrieved.
41673
- *
41674
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
41675
- */
41676
- get gateways() {
41677
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
41678
- }
41679
41363
  /** When `true`, conveys that for this actor, follow requests are not usually
41680
41364
  * automatically approved, but instead are examined by a person who may accept
41681
41365
  * or reject the request, at some time in the future. Setting of `false`
@@ -43545,12 +43229,6 @@ var Person = class Person extends Object$1 {
43545
43229
  }
43546
43230
  if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
43547
43231
  compactItems = [];
43548
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
43549
- const item = formatIri(v);
43550
- compactItems.push(item);
43551
- }
43552
- if (compactItems.length > 0) result["gateways"] = compactItems;
43553
- compactItems = [];
43554
43232
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
43555
43233
  const item = v;
43556
43234
  compactItems.push(item);
@@ -43766,7 +43444,6 @@ var Person = class Person extends Object$1 {
43766
43444
  if (this.id != null) result["id"] = formatIri(this.id);
43767
43445
  result["@context"] = [
43768
43446
  "https://www.w3.org/ns/activitystreams",
43769
- "https://w3id.org/fep/ef61",
43770
43447
  "https://w3id.org/security/v1",
43771
43448
  "https://w3id.org/security/data-integrity/v1",
43772
43449
  "https://www.w3.org/ns/did/v1",
@@ -43839,12 +43516,6 @@ var Person = class Person extends Object$1 {
43839
43516
  }
43840
43517
  if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
43841
43518
  array = [];
43842
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
43843
- const element = { "@id": formatIri(v) };
43844
- array.push(element);
43845
- }
43846
- if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
43847
- array = [];
43848
43519
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
43849
43520
  const element = { "@value": v };
43850
43521
  array.push(element);
@@ -43969,7 +43640,6 @@ var Person = class Person extends Object$1 {
43969
43640
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
43970
43641
  const docContext = options.context ?? [
43971
43642
  "https://www.w3.org/ns/activitystreams",
43972
- "https://w3id.org/fep/ef61",
43973
43643
  "https://w3id.org/security/v1",
43974
43644
  "https://w3id.org/security/data-integrity/v1",
43975
43645
  "https://www.w3.org/ns/did/v1",
@@ -44133,15 +43803,6 @@ var Person = class Person extends Object$1 {
44133
43803
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
44134
43804
  }
44135
43805
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
44136
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
44137
- let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
44138
- for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
44139
- if (v == null) continue;
44140
- const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
44141
- if (typeof decoded === "undefined") continue;
44142
- _hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
44143
- }
44144
- instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
44145
43806
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
44146
43807
  let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
44147
43808
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
@@ -44483,12 +44144,6 @@ var Person = class Person extends Object$1 {
44483
44144
  } : v);
44484
44145
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
44485
44146
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
44486
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
44487
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
44488
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
44489
- } : v);
44490
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
44491
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
44492
44147
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
44493
44148
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
44494
44149
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -47723,7 +47378,6 @@ var Service = class Service extends Object$1 {
47723
47378
  #_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
47724
47379
  #_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
47725
47380
  #_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
47726
- #_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
47727
47381
  #_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
47728
47382
  #_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
47729
47383
  #_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
@@ -47792,13 +47446,6 @@ var Service = class Service extends Object$1 {
47792
47446
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
47793
47447
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
47794
47448
  }
47795
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
47796
- else throw new TypeError("The gateway must be of type URL.");
47797
- if ("gateways" in values && values.gateways != null) {
47798
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
47799
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
47800
- else throw new TypeError("The gateways must be an array of type URL.");
47801
- }
47802
47449
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
47803
47450
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
47804
47451
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
@@ -47929,14 +47576,6 @@ var Service = class Service extends Object$1 {
47929
47576
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
47930
47577
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
47931
47578
  }
47932
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
47933
- if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
47934
- else throw new TypeError("The gateway must be of type URL.");
47935
- if ("gateways" in values && values.gateways != null) {
47936
- if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
47937
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
47938
- else throw new TypeError("The gateways must be an array of type URL.");
47939
- }
47940
47579
  clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
47941
47580
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
47942
47581
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
@@ -48410,24 +48049,6 @@ var Service = class Service extends Object$1 {
48410
48049
  yield v;
48411
48050
  }
48412
48051
  }
48413
- /** Gateways where the latest version of this portable actor object can be
48414
- * retrieved.
48415
- *
48416
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
48417
- */
48418
- get gateway() {
48419
- if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
48420
- if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
48421
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
48422
- }
48423
- /** Gateways where the latest version of this portable actor object can be
48424
- * retrieved.
48425
- *
48426
- * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
48427
- */
48428
- get gateways() {
48429
- return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
48430
- }
48431
48052
  /** When `true`, conveys that for this actor, follow requests are not usually
48432
48053
  * automatically approved, but instead are examined by a person who may accept
48433
48054
  * or reject the request, at some time in the future. Setting of `false`
@@ -50297,12 +49918,6 @@ var Service = class Service extends Object$1 {
50297
49918
  }
50298
49919
  if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
50299
49920
  compactItems = [];
50300
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
50301
- const item = formatIri(v);
50302
- compactItems.push(item);
50303
- }
50304
- if (compactItems.length > 0) result["gateways"] = compactItems;
50305
- compactItems = [];
50306
49921
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
50307
49922
  const item = v;
50308
49923
  compactItems.push(item);
@@ -50518,7 +50133,6 @@ var Service = class Service extends Object$1 {
50518
50133
  if (this.id != null) result["id"] = formatIri(this.id);
50519
50134
  result["@context"] = [
50520
50135
  "https://www.w3.org/ns/activitystreams",
50521
- "https://w3id.org/fep/ef61",
50522
50136
  "https://w3id.org/security/v1",
50523
50137
  "https://w3id.org/security/data-integrity/v1",
50524
50138
  "https://www.w3.org/ns/did/v1",
@@ -50591,12 +50205,6 @@ var Service = class Service extends Object$1 {
50591
50205
  }
50592
50206
  if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
50593
50207
  array = [];
50594
- for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
50595
- const element = { "@id": formatIri(v) };
50596
- array.push(element);
50597
- }
50598
- if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
50599
- array = [];
50600
50208
  for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
50601
50209
  const element = { "@value": v };
50602
50210
  array.push(element);
@@ -50721,7 +50329,6 @@ var Service = class Service extends Object$1 {
50721
50329
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
50722
50330
  const docContext = options.context ?? [
50723
50331
  "https://www.w3.org/ns/activitystreams",
50724
- "https://w3id.org/fep/ef61",
50725
50332
  "https://w3id.org/security/v1",
50726
50333
  "https://w3id.org/security/data-integrity/v1",
50727
50334
  "https://www.w3.org/ns/did/v1",
@@ -50885,15 +50492,6 @@ var Service = class Service extends Object$1 {
50885
50492
  _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
50886
50493
  }
50887
50494
  instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
50888
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
50889
- let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
50890
- for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
50891
- if (v == null) continue;
50892
- const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
50893
- if (typeof decoded === "undefined") continue;
50894
- _hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
50895
- }
50896
- instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
50897
50495
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
50898
50496
  let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
50899
50497
  for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
@@ -51235,12 +50833,6 @@ var Service = class Service extends Object$1 {
51235
50833
  } : v);
51236
50834
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
51237
50835
  if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
51238
- const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
51239
- [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
51240
- [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
51241
- } : v);
51242
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
51243
- if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
51244
50836
  const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
51245
50837
  [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
51246
50838
  [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
@@ -52885,8 +52477,7 @@ var Video = class Video extends Document {
52885
52477
  if (this.id != null) result["id"] = formatIri(this.id);
52886
52478
  result["@context"] = [
52887
52479
  "https://www.w3.org/ns/activitystreams",
52888
- "https://w3id.org/security/data-integrity/v2",
52889
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
52480
+ "https://w3id.org/security/data-integrity/v1",
52890
52481
  "https://gotosocial.org/ns"
52891
52482
  ];
52892
52483
  return result;
@@ -52901,8 +52492,7 @@ var Video = class Video extends Document {
52901
52492
  if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
52902
52493
  const docContext = options.context ?? [
52903
52494
  "https://www.w3.org/ns/activitystreams",
52904
- "https://w3id.org/security/data-integrity/v2",
52905
- { "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
52495
+ "https://w3id.org/security/data-integrity/v1",
52906
52496
  "https://gotosocial.org/ns"
52907
52497
  ];
52908
52498
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -53330,4 +52920,4 @@ function getEntityTypeById(id) {
53330
52920
  return entityTypeIds.get(typeof id === "string" ? id : id?.href);
53331
52921
  }
53332
52922
  //#endregion
53333
- export { OrderedCollectionPage as A, Source as B, InteractionRule as C, Note as D, Multikey as E, Question as F, __commonJSMin as G, getEntityTypeById as H, QuoteAuthorization as I, __exportAll as K, QuoteRequest as L, Person as M, Place as N, Object$1 as O, Proposal as P, Reject as R, InteractionPolicy as S, Measure as T, isEntityType as U, Tombstone as V, vocab_exports as W, Follow as _, Application as a, Image as b, Create as c, Document as d, Endpoints as f, FeaturedItem as g, FeaturedCollection as h, Announce as i, Organization as j, Offer as k, CryptographicKey as l, FeatureRequest as m, Activity as n, Collection as o, FeatureAuthorization as p, __toESM as q, Agreement as r, Commitment as s, Accept as t, Delete as u, Group as v, Link as w, Intent as x, Hashtag as y, Service as z };
52923
+ export { Organization as A, Tombstone as B, Link as C, Object$1 as D, Note as E, QuoteAuthorization as F, __exportAll as G, isEntityType as H, QuoteRequest as I, __toESM as K, Reject as L, Place as M, Proposal as N, Offer as O, Question as P, Service as R, InteractionRule as S, Multikey as T, vocab_exports as U, getEntityTypeById as V, __commonJSMin as W, Follow as _, Application as a, Intent as b, Create as c, Document as d, Endpoints as f, FeaturedItem as g, FeaturedCollection as h, Announce as i, Person as j, OrderedCollectionPage as k, CryptographicKey as l, FeatureRequest as m, Activity as n, Collection as o, FeatureAuthorization as p, Agreement as r, Commitment as s, Accept as t, Delete as u, Group as v, Measure as w, InteractionPolicy as x, Hashtag as y, Source as z };