@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.
- package/deno.json +1 -1
- package/dist/mod.cjs +15 -425
- package/dist/mod.d.cts +1 -109
- package/dist/mod.d.ts +1 -109
- package/dist/mod.js +16 -426
- package/dist-tests/{actor-BQd8S953.mjs → actor-CnnyTI7i.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/application.yaml +0 -15
- package/dist-tests/audio.yaml +1 -2
- package/dist-tests/document.yaml +1 -14
- package/dist-tests/group.yaml +0 -15
- package/dist-tests/image.yaml +1 -2
- package/dist-tests/link.yaml +1 -14
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/organization.yaml +0 -15
- package/dist-tests/page.yaml +1 -2
- package/dist-tests/person.yaml +0 -15
- package/dist-tests/service.yaml +0 -15
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/video.yaml +1 -2
- package/dist-tests/{vocab-Bjwctrxn.mjs → vocab-OU5GYbNg.mjs} +16 -426
- package/dist-tests/vocab.test.mjs +1 -152
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +15 -54
- package/src/application.yaml +0 -15
- package/src/audio.yaml +1 -2
- package/src/document.yaml +1 -14
- package/src/group.yaml +0 -15
- package/src/image.yaml +1 -2
- package/src/link.yaml +1 -14
- package/src/organization.yaml +0 -15
- package/src/page.yaml +1 -2
- package/src/person.yaml +0 -15
- package/src/preprocessors.ts +1 -3
- package/src/service.yaml +0 -15
- package/src/video.yaml +1 -2
- package/src/vocab.test.ts +0 -244
package/dist/mod.cjs
CHANGED
|
@@ -34,7 +34,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
34
34
|
let es_toolkit = require("es-toolkit");
|
|
35
35
|
//#region deno.json
|
|
36
36
|
var name = "@fedify/vocab";
|
|
37
|
-
var version = "2.4.0-
|
|
37
|
+
var version = "2.4.0-pr.934.40+3331d302";
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/type.ts
|
|
40
40
|
function getTypeId(object) {
|
|
@@ -3607,8 +3607,7 @@ NativeTemporal && Date.prototype.toTemporalInstant;
|
|
|
3607
3607
|
* When an `icon` or `image` property on a vocabulary object contains an
|
|
3608
3608
|
* explicit ActivityStreams `Link` rather than an `Image`, this preprocessor
|
|
3609
3609
|
* converts it into an `Image` by mapping `href` to `url`, copying
|
|
3610
|
-
* `mediaType`, `name`, `width`, `height`, and
|
|
3611
|
-
* discarding the rest.
|
|
3610
|
+
* `mediaType`, `name`, `width`, and `height`, and discarding the rest.
|
|
3612
3611
|
*
|
|
3613
3612
|
* If the value is not a Link, or the Link has no `href`, it returns
|
|
3614
3613
|
* `undefined` so the normal range decoder continues.
|
|
@@ -3629,8 +3628,7 @@ const normalizeLinkToImage = async (value, context) => {
|
|
|
3629
3628
|
mediaType: link.mediaType,
|
|
3630
3629
|
names: link.names != null && link.names.length > 0 ? link.names : void 0,
|
|
3631
3630
|
width: link.width,
|
|
3632
|
-
height: link.height
|
|
3633
|
-
digestMultibase: link.digestMultibase
|
|
3631
|
+
height: link.height
|
|
3634
3632
|
});
|
|
3635
3633
|
};
|
|
3636
3634
|
//#endregion
|
|
@@ -25555,7 +25553,6 @@ var Application = class Application extends Object$1 {
|
|
|
25555
25553
|
#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
25556
25554
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
25557
25555
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
25558
|
-
#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
25559
25556
|
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
25560
25557
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
25561
25558
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
|
|
@@ -25624,13 +25621,6 @@ var Application = class Application extends Object$1 {
|
|
|
25624
25621
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
25625
25622
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
25626
25623
|
}
|
|
25627
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
25628
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
25629
|
-
if ("gateways" in values && values.gateways != null) {
|
|
25630
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
25631
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
25632
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
25633
|
-
}
|
|
25634
25624
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
25635
25625
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
25636
25626
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
@@ -25761,14 +25751,6 @@ var Application = class Application extends Object$1 {
|
|
|
25761
25751
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
25762
25752
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
25763
25753
|
}
|
|
25764
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
25765
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
25766
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
25767
|
-
if ("gateways" in values && values.gateways != null) {
|
|
25768
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
25769
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
25770
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
25771
|
-
}
|
|
25772
25754
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
25773
25755
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
25774
25756
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
@@ -26242,24 +26224,6 @@ var Application = class Application extends Object$1 {
|
|
|
26242
26224
|
yield v;
|
|
26243
26225
|
}
|
|
26244
26226
|
}
|
|
26245
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
26246
|
-
* retrieved.
|
|
26247
|
-
*
|
|
26248
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
26249
|
-
*/
|
|
26250
|
-
get gateway() {
|
|
26251
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
26252
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
26253
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
26254
|
-
}
|
|
26255
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
26256
|
-
* retrieved.
|
|
26257
|
-
*
|
|
26258
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
26259
|
-
*/
|
|
26260
|
-
get gateways() {
|
|
26261
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
26262
|
-
}
|
|
26263
26227
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
|
26264
26228
|
* automatically approved, but instead are examined by a person who may accept
|
|
26265
26229
|
* or reject the request, at some time in the future. Setting of `false`
|
|
@@ -28129,12 +28093,6 @@ var Application = class Application extends Object$1 {
|
|
|
28129
28093
|
}
|
|
28130
28094
|
if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
28131
28095
|
compactItems = [];
|
|
28132
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
28133
|
-
const item = (0, _fedify_vocab_runtime.formatIri)(v);
|
|
28134
|
-
compactItems.push(item);
|
|
28135
|
-
}
|
|
28136
|
-
if (compactItems.length > 0) result["gateways"] = compactItems;
|
|
28137
|
-
compactItems = [];
|
|
28138
28096
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
28139
28097
|
const item = v;
|
|
28140
28098
|
compactItems.push(item);
|
|
@@ -28350,7 +28308,6 @@ var Application = class Application extends Object$1 {
|
|
|
28350
28308
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
28351
28309
|
result["@context"] = [
|
|
28352
28310
|
"https://www.w3.org/ns/activitystreams",
|
|
28353
|
-
"https://w3id.org/fep/ef61",
|
|
28354
28311
|
"https://w3id.org/security/v1",
|
|
28355
28312
|
"https://w3id.org/security/data-integrity/v1",
|
|
28356
28313
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -28423,12 +28380,6 @@ var Application = class Application extends Object$1 {
|
|
|
28423
28380
|
}
|
|
28424
28381
|
if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
|
|
28425
28382
|
array = [];
|
|
28426
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
28427
|
-
const element = { "@id": (0, _fedify_vocab_runtime.formatIri)(v) };
|
|
28428
|
-
array.push(element);
|
|
28429
|
-
}
|
|
28430
|
-
if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
|
|
28431
|
-
array = [];
|
|
28432
28383
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
28433
28384
|
const element = { "@value": v };
|
|
28434
28385
|
array.push(element);
|
|
@@ -28553,7 +28504,6 @@ var Application = class Application extends Object$1 {
|
|
|
28553
28504
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28554
28505
|
const docContext = options.context ?? [
|
|
28555
28506
|
"https://www.w3.org/ns/activitystreams",
|
|
28556
|
-
"https://w3id.org/fep/ef61",
|
|
28557
28507
|
"https://w3id.org/security/v1",
|
|
28558
28508
|
"https://w3id.org/security/data-integrity/v1",
|
|
28559
28509
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -28717,15 +28667,6 @@ var Application = class Application extends Object$1 {
|
|
|
28717
28667
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
28718
28668
|
}
|
|
28719
28669
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
28720
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
28721
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
28722
|
-
for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
|
|
28723
|
-
if (v == null) continue;
|
|
28724
|
-
const decoded = (0, _fedify_vocab_runtime.parseGatewayUrl)(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
28725
|
-
if (typeof decoded === "undefined") continue;
|
|
28726
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
28727
|
-
}
|
|
28728
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
28729
28670
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
28730
28671
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
28731
28672
|
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) {
|
|
@@ -29067,12 +29008,6 @@ var Application = class Application extends Object$1 {
|
|
|
29067
29008
|
} : v);
|
|
29068
29009
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
|
|
29069
29010
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
29070
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
|
|
29071
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
29072
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
29073
|
-
} : v);
|
|
29074
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
29075
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
29076
29011
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
|
|
29077
29012
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
29078
29013
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -30163,7 +30098,6 @@ var Document = class Document extends Object$1 {
|
|
|
30163
30098
|
}
|
|
30164
30099
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
30165
30100
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
30166
|
-
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
|
|
30167
30101
|
/**
|
|
30168
30102
|
* Constructs a new instance of Document with the given values.
|
|
30169
30103
|
* @param values The values to initialize the instance with.
|
|
@@ -30175,8 +30109,6 @@ var Document = class Document extends Object$1 {
|
|
|
30175
30109
|
else throw new TypeError("The width must be of type number.");
|
|
30176
30110
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
30177
30111
|
else throw new TypeError("The height must be of type number.");
|
|
30178
|
-
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
30179
|
-
else throw new TypeError("The digestMultibase must be of type string.");
|
|
30180
30112
|
}
|
|
30181
30113
|
/**
|
|
30182
30114
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -30199,9 +30131,6 @@ var Document = class Document extends Object$1 {
|
|
|
30199
30131
|
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
30200
30132
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
30201
30133
|
else throw new TypeError("The height must be of type number.");
|
|
30202
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
30203
|
-
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
30204
|
-
else throw new TypeError("The digestMultibase must be of type string.");
|
|
30205
30134
|
return clone;
|
|
30206
30135
|
}
|
|
30207
30136
|
/** Specifies a hint as to the rendering width in
|
|
@@ -30220,16 +30149,6 @@ var Document = class Document extends Object$1 {
|
|
|
30220
30149
|
if (this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.length < 1) return null;
|
|
30221
30150
|
return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
30222
30151
|
}
|
|
30223
|
-
/** The multibase-encoded integrity digest of an external resource represented
|
|
30224
|
-
* by this document.
|
|
30225
|
-
*
|
|
30226
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
30227
|
-
*/
|
|
30228
|
-
get digestMultibase() {
|
|
30229
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
30230
|
-
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
30231
|
-
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
30232
|
-
}
|
|
30233
30152
|
/**
|
|
30234
30153
|
* Converts this object to a JSON-LD structure.
|
|
30235
30154
|
* @param options The options to use.
|
|
@@ -30265,18 +30184,11 @@ var Document = class Document extends Object$1 {
|
|
|
30265
30184
|
compactItems.push(item);
|
|
30266
30185
|
}
|
|
30267
30186
|
if (compactItems.length > 0) result["height"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
30268
|
-
compactItems = [];
|
|
30269
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
30270
|
-
const item = v;
|
|
30271
|
-
compactItems.push(item);
|
|
30272
|
-
}
|
|
30273
|
-
if (compactItems.length > 0) result["digestMultibase"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
30274
30187
|
result["type"] = "Document";
|
|
30275
30188
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
30276
30189
|
result["@context"] = [
|
|
30277
30190
|
"https://www.w3.org/ns/activitystreams",
|
|
30278
|
-
"https://w3id.org/security/data-integrity/
|
|
30279
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
30191
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
30280
30192
|
"https://gotosocial.org/ns"
|
|
30281
30193
|
];
|
|
30282
30194
|
return result;
|
|
@@ -30305,19 +30217,12 @@ var Document = class Document extends Object$1 {
|
|
|
30305
30217
|
array.push(element);
|
|
30306
30218
|
}
|
|
30307
30219
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#height"] = array;
|
|
30308
|
-
array = [];
|
|
30309
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
30310
|
-
const element = { "@value": v };
|
|
30311
|
-
array.push(element);
|
|
30312
|
-
}
|
|
30313
|
-
if (array.length > 0) values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = array;
|
|
30314
30220
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
|
|
30315
30221
|
if (this.id != null) values["@id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
30316
30222
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
30317
30223
|
const docContext = options.context ?? [
|
|
30318
30224
|
"https://www.w3.org/ns/activitystreams",
|
|
30319
|
-
"https://w3id.org/security/data-integrity/
|
|
30320
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
30225
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
30321
30226
|
"https://gotosocial.org/ns"
|
|
30322
30227
|
];
|
|
30323
30228
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -30418,15 +30323,6 @@ var Document = class Document extends Object$1 {
|
|
|
30418
30323
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
30419
30324
|
}
|
|
30420
30325
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
30421
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
|
|
30422
|
-
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
30423
|
-
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) {
|
|
30424
|
-
if (v == null) continue;
|
|
30425
|
-
const decoded = v["@value"];
|
|
30426
|
-
if (typeof decoded === "undefined") continue;
|
|
30427
|
-
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
30428
|
-
}
|
|
30429
|
-
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
30430
30326
|
if (!("_fromSubclass" in options) || !options._fromSubclass) try {
|
|
30431
30327
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
30432
30328
|
const compactArray = Array.isArray(json) && json.length === 1;
|
|
@@ -30451,11 +30347,6 @@ var Document = class Document extends Object$1 {
|
|
|
30451
30347
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
30452
30348
|
} : v);
|
|
30453
30349
|
if (_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.length == 1) proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
30454
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.map((v) => v instanceof URL ? {
|
|
30455
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
30456
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
30457
|
-
} : v);
|
|
30458
|
-
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
30459
30350
|
return proxy;
|
|
30460
30351
|
}
|
|
30461
30352
|
};
|
|
@@ -30525,8 +30416,7 @@ var Audio = class Audio extends Document {
|
|
|
30525
30416
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
30526
30417
|
result["@context"] = [
|
|
30527
30418
|
"https://www.w3.org/ns/activitystreams",
|
|
30528
|
-
"https://w3id.org/security/data-integrity/
|
|
30529
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
30419
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
30530
30420
|
"https://gotosocial.org/ns"
|
|
30531
30421
|
];
|
|
30532
30422
|
return result;
|
|
@@ -30541,8 +30431,7 @@ var Audio = class Audio extends Document {
|
|
|
30541
30431
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
30542
30432
|
const docContext = options.context ?? [
|
|
30543
30433
|
"https://www.w3.org/ns/activitystreams",
|
|
30544
|
-
"https://w3id.org/security/data-integrity/
|
|
30545
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
30434
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
30546
30435
|
"https://gotosocial.org/ns"
|
|
30547
30436
|
];
|
|
30548
30437
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -33293,7 +33182,6 @@ var Group = class Group extends Object$1 {
|
|
|
33293
33182
|
#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
33294
33183
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
33295
33184
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
33296
|
-
#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
33297
33185
|
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
33298
33186
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
33299
33187
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
|
|
@@ -33362,13 +33250,6 @@ var Group = class Group extends Object$1 {
|
|
|
33362
33250
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
33363
33251
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
33364
33252
|
}
|
|
33365
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
33366
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
33367
|
-
if ("gateways" in values && values.gateways != null) {
|
|
33368
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
33369
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
33370
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
33371
|
-
}
|
|
33372
33253
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
33373
33254
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
33374
33255
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
@@ -33499,14 +33380,6 @@ var Group = class Group extends Object$1 {
|
|
|
33499
33380
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
33500
33381
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
33501
33382
|
}
|
|
33502
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
33503
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
33504
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
33505
|
-
if ("gateways" in values && values.gateways != null) {
|
|
33506
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
33507
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
33508
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
33509
|
-
}
|
|
33510
33383
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
33511
33384
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
33512
33385
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
@@ -33980,24 +33853,6 @@ var Group = class Group extends Object$1 {
|
|
|
33980
33853
|
yield v;
|
|
33981
33854
|
}
|
|
33982
33855
|
}
|
|
33983
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
33984
|
-
* retrieved.
|
|
33985
|
-
*
|
|
33986
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
33987
|
-
*/
|
|
33988
|
-
get gateway() {
|
|
33989
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
33990
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
33991
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
33992
|
-
}
|
|
33993
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
33994
|
-
* retrieved.
|
|
33995
|
-
*
|
|
33996
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
33997
|
-
*/
|
|
33998
|
-
get gateways() {
|
|
33999
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
34000
|
-
}
|
|
34001
33856
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
|
34002
33857
|
* automatically approved, but instead are examined by a person who may accept
|
|
34003
33858
|
* or reject the request, at some time in the future. Setting of `false`
|
|
@@ -35867,12 +35722,6 @@ var Group = class Group extends Object$1 {
|
|
|
35867
35722
|
}
|
|
35868
35723
|
if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
35869
35724
|
compactItems = [];
|
|
35870
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
35871
|
-
const item = (0, _fedify_vocab_runtime.formatIri)(v);
|
|
35872
|
-
compactItems.push(item);
|
|
35873
|
-
}
|
|
35874
|
-
if (compactItems.length > 0) result["gateways"] = compactItems;
|
|
35875
|
-
compactItems = [];
|
|
35876
35725
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
35877
35726
|
const item = v;
|
|
35878
35727
|
compactItems.push(item);
|
|
@@ -36088,7 +35937,6 @@ var Group = class Group extends Object$1 {
|
|
|
36088
35937
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
36089
35938
|
result["@context"] = [
|
|
36090
35939
|
"https://www.w3.org/ns/activitystreams",
|
|
36091
|
-
"https://w3id.org/fep/ef61",
|
|
36092
35940
|
"https://w3id.org/security/v1",
|
|
36093
35941
|
"https://w3id.org/security/data-integrity/v1",
|
|
36094
35942
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -36161,12 +36009,6 @@ var Group = class Group extends Object$1 {
|
|
|
36161
36009
|
}
|
|
36162
36010
|
if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
|
|
36163
36011
|
array = [];
|
|
36164
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
36165
|
-
const element = { "@id": (0, _fedify_vocab_runtime.formatIri)(v) };
|
|
36166
|
-
array.push(element);
|
|
36167
|
-
}
|
|
36168
|
-
if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
|
|
36169
|
-
array = [];
|
|
36170
36012
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
36171
36013
|
const element = { "@value": v };
|
|
36172
36014
|
array.push(element);
|
|
@@ -36291,7 +36133,6 @@ var Group = class Group extends Object$1 {
|
|
|
36291
36133
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36292
36134
|
const docContext = options.context ?? [
|
|
36293
36135
|
"https://www.w3.org/ns/activitystreams",
|
|
36294
|
-
"https://w3id.org/fep/ef61",
|
|
36295
36136
|
"https://w3id.org/security/v1",
|
|
36296
36137
|
"https://w3id.org/security/data-integrity/v1",
|
|
36297
36138
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -36455,15 +36296,6 @@ var Group = class Group extends Object$1 {
|
|
|
36455
36296
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
36456
36297
|
}
|
|
36457
36298
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
36458
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
36459
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
36460
|
-
for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
|
|
36461
|
-
if (v == null) continue;
|
|
36462
|
-
const decoded = (0, _fedify_vocab_runtime.parseGatewayUrl)(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
36463
|
-
if (typeof decoded === "undefined") continue;
|
|
36464
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
36465
|
-
}
|
|
36466
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
36467
36299
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
36468
36300
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
36469
36301
|
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) {
|
|
@@ -36805,12 +36637,6 @@ var Group = class Group extends Object$1 {
|
|
|
36805
36637
|
} : v);
|
|
36806
36638
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
|
|
36807
36639
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
36808
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
|
|
36809
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
36810
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
36811
|
-
} : v);
|
|
36812
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
36813
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
36814
36640
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
|
|
36815
36641
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
36816
36642
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -36969,7 +36795,6 @@ var Link = class Link {
|
|
|
36969
36795
|
#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
|
|
36970
36796
|
#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [];
|
|
36971
36797
|
#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
|
|
36972
|
-
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
|
|
36973
36798
|
#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
36974
36799
|
#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [];
|
|
36975
36800
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
@@ -37001,8 +36826,6 @@ var Link = class Link {
|
|
|
37001
36826
|
}
|
|
37002
36827
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
37003
36828
|
else throw new TypeError("The mediaType must be of type string.");
|
|
37004
|
-
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
37005
|
-
else throw new TypeError("The digestMultibase must be of type string.");
|
|
37006
36829
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
37007
36830
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
37008
36831
|
if ("names" in values && values.names != null) {
|
|
@@ -37050,9 +36873,6 @@ var Link = class Link {
|
|
|
37050
36873
|
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
37051
36874
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
37052
36875
|
else throw new TypeError("The mediaType must be of type string.");
|
|
37053
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
37054
|
-
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
37055
|
-
else throw new TypeError("The digestMultibase must be of type string.");
|
|
37056
36876
|
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
37057
36877
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
37058
36878
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
@@ -37116,15 +36936,6 @@ var Link = class Link {
|
|
|
37116
36936
|
if (this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.length < 1) return null;
|
|
37117
36937
|
return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
37118
36938
|
}
|
|
37119
|
-
/** The multibase-encoded integrity digest of the linked resource.
|
|
37120
|
-
*
|
|
37121
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
37122
|
-
*/
|
|
37123
|
-
get digestMultibase() {
|
|
37124
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
37125
|
-
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
37126
|
-
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
37127
|
-
}
|
|
37128
36939
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
37129
36940
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
|
37130
36941
|
* values.
|
|
@@ -37337,12 +37148,6 @@ var Link = class Link {
|
|
|
37337
37148
|
}
|
|
37338
37149
|
if (compactItems.length > 0) result["mediaType"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
37339
37150
|
compactItems = [];
|
|
37340
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
37341
|
-
const item = v;
|
|
37342
|
-
compactItems.push(item);
|
|
37343
|
-
}
|
|
37344
|
-
if (compactItems.length > 0) result["digestMultibase"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
37345
|
-
compactItems = [];
|
|
37346
37151
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
37347
37152
|
const item = typeof v === "string" ? v : {
|
|
37348
37153
|
"@value": v.toString(),
|
|
@@ -37385,7 +37190,7 @@ var Link = class Link {
|
|
|
37385
37190
|
if (compactItems.length > 0) result["preview"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
37386
37191
|
result["type"] = "Link";
|
|
37387
37192
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
37388
|
-
result["@context"] =
|
|
37193
|
+
result["@context"] = "https://www.w3.org/ns/activitystreams";
|
|
37389
37194
|
return result;
|
|
37390
37195
|
}
|
|
37391
37196
|
let array;
|
|
@@ -37409,12 +37214,6 @@ var Link = class Link {
|
|
|
37409
37214
|
}
|
|
37410
37215
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#mediaType"] = array;
|
|
37411
37216
|
array = [];
|
|
37412
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
37413
|
-
const element = { "@value": v };
|
|
37414
|
-
array.push(element);
|
|
37415
|
-
}
|
|
37416
|
-
if (array.length > 0) values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = array;
|
|
37417
|
-
array = [];
|
|
37418
37217
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
37419
37218
|
const element = typeof v === "string" ? { "@value": v } : {
|
|
37420
37219
|
"@value": v.toString(),
|
|
@@ -37456,7 +37255,7 @@ var Link = class Link {
|
|
|
37456
37255
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Link"];
|
|
37457
37256
|
if (this.id != null) values["@id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
37458
37257
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
37459
|
-
const docContext = options.context ??
|
|
37258
|
+
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
37460
37259
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
37461
37260
|
if (docContext != null) {}
|
|
37462
37261
|
return compacted;
|
|
@@ -37555,15 +37354,6 @@ var Link = class Link {
|
|
|
37555
37354
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
37556
37355
|
}
|
|
37557
37356
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
37558
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [];
|
|
37559
|
-
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
37560
|
-
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) {
|
|
37561
|
-
if (v == null) continue;
|
|
37562
|
-
const decoded = v["@value"];
|
|
37563
|
-
if (typeof decoded === "undefined") continue;
|
|
37564
|
-
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
37565
|
-
}
|
|
37566
|
-
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
37567
37357
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
37568
37358
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
37569
37359
|
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) {
|
|
@@ -37728,11 +37518,6 @@ var Link = class Link {
|
|
|
37728
37518
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
37729
37519
|
} : v);
|
|
37730
37520
|
if (_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.length == 1) proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
37731
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.map((v) => v instanceof URL ? {
|
|
37732
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
37733
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
37734
|
-
} : v);
|
|
37735
|
-
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
37736
37521
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.map((v) => v instanceof URL ? {
|
|
37737
37522
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
37738
37523
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -37995,8 +37780,7 @@ var Image = class Image extends Document {
|
|
|
37995
37780
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
37996
37781
|
result["@context"] = [
|
|
37997
37782
|
"https://www.w3.org/ns/activitystreams",
|
|
37998
|
-
"https://w3id.org/security/data-integrity/
|
|
37999
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
37783
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
38000
37784
|
"https://gotosocial.org/ns"
|
|
38001
37785
|
];
|
|
38002
37786
|
return result;
|
|
@@ -38011,8 +37795,7 @@ var Image = class Image extends Document {
|
|
|
38011
37795
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
38012
37796
|
const docContext = options.context ?? [
|
|
38013
37797
|
"https://www.w3.org/ns/activitystreams",
|
|
38014
|
-
"https://w3id.org/security/data-integrity/
|
|
38015
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
37798
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
38016
37799
|
"https://gotosocial.org/ns"
|
|
38017
37800
|
];
|
|
38018
37801
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -40623,7 +40406,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
40623
40406
|
#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
40624
40407
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
40625
40408
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
40626
|
-
#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
40627
40409
|
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
40628
40410
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
40629
40411
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
|
|
@@ -40692,13 +40474,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
40692
40474
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
40693
40475
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
40694
40476
|
}
|
|
40695
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
40696
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
40697
|
-
if ("gateways" in values && values.gateways != null) {
|
|
40698
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
40699
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
40700
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
40701
|
-
}
|
|
40702
40477
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
40703
40478
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
40704
40479
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
@@ -40829,14 +40604,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
40829
40604
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
40830
40605
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
40831
40606
|
}
|
|
40832
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
40833
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
40834
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
40835
|
-
if ("gateways" in values && values.gateways != null) {
|
|
40836
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
40837
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
40838
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
40839
|
-
}
|
|
40840
40607
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
40841
40608
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
40842
40609
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
@@ -41310,24 +41077,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
41310
41077
|
yield v;
|
|
41311
41078
|
}
|
|
41312
41079
|
}
|
|
41313
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
41314
|
-
* retrieved.
|
|
41315
|
-
*
|
|
41316
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
41317
|
-
*/
|
|
41318
|
-
get gateway() {
|
|
41319
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
41320
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
41321
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
41322
|
-
}
|
|
41323
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
41324
|
-
* retrieved.
|
|
41325
|
-
*
|
|
41326
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
41327
|
-
*/
|
|
41328
|
-
get gateways() {
|
|
41329
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
41330
|
-
}
|
|
41331
41080
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
|
41332
41081
|
* automatically approved, but instead are examined by a person who may accept
|
|
41333
41082
|
* or reject the request, at some time in the future. Setting of `false`
|
|
@@ -43197,12 +42946,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
43197
42946
|
}
|
|
43198
42947
|
if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
43199
42948
|
compactItems = [];
|
|
43200
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
43201
|
-
const item = (0, _fedify_vocab_runtime.formatIri)(v);
|
|
43202
|
-
compactItems.push(item);
|
|
43203
|
-
}
|
|
43204
|
-
if (compactItems.length > 0) result["gateways"] = compactItems;
|
|
43205
|
-
compactItems = [];
|
|
43206
42949
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
43207
42950
|
const item = v;
|
|
43208
42951
|
compactItems.push(item);
|
|
@@ -43418,7 +43161,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
43418
43161
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
43419
43162
|
result["@context"] = [
|
|
43420
43163
|
"https://www.w3.org/ns/activitystreams",
|
|
43421
|
-
"https://w3id.org/fep/ef61",
|
|
43422
43164
|
"https://w3id.org/security/v1",
|
|
43423
43165
|
"https://w3id.org/security/data-integrity/v1",
|
|
43424
43166
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -43491,12 +43233,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
43491
43233
|
}
|
|
43492
43234
|
if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
|
|
43493
43235
|
array = [];
|
|
43494
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
43495
|
-
const element = { "@id": (0, _fedify_vocab_runtime.formatIri)(v) };
|
|
43496
|
-
array.push(element);
|
|
43497
|
-
}
|
|
43498
|
-
if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
|
|
43499
|
-
array = [];
|
|
43500
43236
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
43501
43237
|
const element = { "@value": v };
|
|
43502
43238
|
array.push(element);
|
|
@@ -43621,7 +43357,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
43621
43357
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
43622
43358
|
const docContext = options.context ?? [
|
|
43623
43359
|
"https://www.w3.org/ns/activitystreams",
|
|
43624
|
-
"https://w3id.org/fep/ef61",
|
|
43625
43360
|
"https://w3id.org/security/v1",
|
|
43626
43361
|
"https://w3id.org/security/data-integrity/v1",
|
|
43627
43362
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -43785,15 +43520,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
43785
43520
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
43786
43521
|
}
|
|
43787
43522
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
43788
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
43789
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
43790
|
-
for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
|
|
43791
|
-
if (v == null) continue;
|
|
43792
|
-
const decoded = (0, _fedify_vocab_runtime.parseGatewayUrl)(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
43793
|
-
if (typeof decoded === "undefined") continue;
|
|
43794
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
43795
|
-
}
|
|
43796
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
43797
43523
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
43798
43524
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
43799
43525
|
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) {
|
|
@@ -44135,12 +43861,6 @@ var Organization = class Organization extends Object$1 {
|
|
|
44135
43861
|
} : v);
|
|
44136
43862
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
|
|
44137
43863
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
44138
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
|
|
44139
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
44140
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
44141
|
-
} : v);
|
|
44142
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
44143
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44144
43864
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
|
|
44145
43865
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
44146
43866
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -44312,8 +44032,7 @@ var Page = class Page extends Document {
|
|
|
44312
44032
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
44313
44033
|
result["@context"] = [
|
|
44314
44034
|
"https://www.w3.org/ns/activitystreams",
|
|
44315
|
-
"https://w3id.org/security/data-integrity/
|
|
44316
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
44035
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
44317
44036
|
"https://gotosocial.org/ns"
|
|
44318
44037
|
];
|
|
44319
44038
|
return result;
|
|
@@ -44328,8 +44047,7 @@ var Page = class Page extends Document {
|
|
|
44328
44047
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44329
44048
|
const docContext = options.context ?? [
|
|
44330
44049
|
"https://www.w3.org/ns/activitystreams",
|
|
44331
|
-
"https://w3id.org/security/data-integrity/
|
|
44332
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
44050
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
44333
44051
|
"https://gotosocial.org/ns"
|
|
44334
44052
|
];
|
|
44335
44053
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -44444,7 +44162,6 @@ var Person = class Person extends Object$1 {
|
|
|
44444
44162
|
#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
44445
44163
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
44446
44164
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
44447
|
-
#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
44448
44165
|
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
44449
44166
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
44450
44167
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
|
|
@@ -44513,13 +44230,6 @@ var Person = class Person extends Object$1 {
|
|
|
44513
44230
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
44514
44231
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
44515
44232
|
}
|
|
44516
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44517
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
44518
|
-
if ("gateways" in values && values.gateways != null) {
|
|
44519
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
44520
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44521
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
44522
|
-
}
|
|
44523
44233
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
44524
44234
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
44525
44235
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
@@ -44650,14 +44360,6 @@ var Person = class Person extends Object$1 {
|
|
|
44650
44360
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
44651
44361
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
44652
44362
|
}
|
|
44653
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44654
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44655
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
44656
|
-
if ("gateways" in values && values.gateways != null) {
|
|
44657
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
44658
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44659
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
44660
|
-
}
|
|
44661
44363
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
44662
44364
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
44663
44365
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
@@ -45131,24 +44833,6 @@ var Person = class Person extends Object$1 {
|
|
|
45131
44833
|
yield v;
|
|
45132
44834
|
}
|
|
45133
44835
|
}
|
|
45134
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
45135
|
-
* retrieved.
|
|
45136
|
-
*
|
|
45137
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45138
|
-
*/
|
|
45139
|
-
get gateway() {
|
|
45140
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
45141
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
45142
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
45143
|
-
}
|
|
45144
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
45145
|
-
* retrieved.
|
|
45146
|
-
*
|
|
45147
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45148
|
-
*/
|
|
45149
|
-
get gateways() {
|
|
45150
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
45151
|
-
}
|
|
45152
44836
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
|
45153
44837
|
* automatically approved, but instead are examined by a person who may accept
|
|
45154
44838
|
* or reject the request, at some time in the future. Setting of `false`
|
|
@@ -47018,12 +46702,6 @@ var Person = class Person extends Object$1 {
|
|
|
47018
46702
|
}
|
|
47019
46703
|
if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
47020
46704
|
compactItems = [];
|
|
47021
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
47022
|
-
const item = (0, _fedify_vocab_runtime.formatIri)(v);
|
|
47023
|
-
compactItems.push(item);
|
|
47024
|
-
}
|
|
47025
|
-
if (compactItems.length > 0) result["gateways"] = compactItems;
|
|
47026
|
-
compactItems = [];
|
|
47027
46705
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
47028
46706
|
const item = v;
|
|
47029
46707
|
compactItems.push(item);
|
|
@@ -47239,7 +46917,6 @@ var Person = class Person extends Object$1 {
|
|
|
47239
46917
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
47240
46918
|
result["@context"] = [
|
|
47241
46919
|
"https://www.w3.org/ns/activitystreams",
|
|
47242
|
-
"https://w3id.org/fep/ef61",
|
|
47243
46920
|
"https://w3id.org/security/v1",
|
|
47244
46921
|
"https://w3id.org/security/data-integrity/v1",
|
|
47245
46922
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -47312,12 +46989,6 @@ var Person = class Person extends Object$1 {
|
|
|
47312
46989
|
}
|
|
47313
46990
|
if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
|
|
47314
46991
|
array = [];
|
|
47315
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
47316
|
-
const element = { "@id": (0, _fedify_vocab_runtime.formatIri)(v) };
|
|
47317
|
-
array.push(element);
|
|
47318
|
-
}
|
|
47319
|
-
if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
|
|
47320
|
-
array = [];
|
|
47321
46992
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
47322
46993
|
const element = { "@value": v };
|
|
47323
46994
|
array.push(element);
|
|
@@ -47442,7 +47113,6 @@ var Person = class Person extends Object$1 {
|
|
|
47442
47113
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
47443
47114
|
const docContext = options.context ?? [
|
|
47444
47115
|
"https://www.w3.org/ns/activitystreams",
|
|
47445
|
-
"https://w3id.org/fep/ef61",
|
|
47446
47116
|
"https://w3id.org/security/v1",
|
|
47447
47117
|
"https://w3id.org/security/data-integrity/v1",
|
|
47448
47118
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -47606,15 +47276,6 @@ var Person = class Person extends Object$1 {
|
|
|
47606
47276
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
47607
47277
|
}
|
|
47608
47278
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
47609
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
47610
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
47611
|
-
for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
|
|
47612
|
-
if (v == null) continue;
|
|
47613
|
-
const decoded = (0, _fedify_vocab_runtime.parseGatewayUrl)(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
47614
|
-
if (typeof decoded === "undefined") continue;
|
|
47615
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
47616
|
-
}
|
|
47617
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
47618
47279
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
47619
47280
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
47620
47281
|
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) {
|
|
@@ -47956,12 +47617,6 @@ var Person = class Person extends Object$1 {
|
|
|
47956
47617
|
} : v);
|
|
47957
47618
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
|
|
47958
47619
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
47959
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
|
|
47960
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
47961
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
47962
|
-
} : v);
|
|
47963
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
47964
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
47965
47620
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
|
|
47966
47621
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
47967
47622
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -51196,7 +50851,6 @@ var Service = class Service extends Object$1 {
|
|
|
51196
50851
|
#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
51197
50852
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
51198
50853
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
51199
|
-
#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
51200
50854
|
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
51201
50855
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
51202
50856
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set();
|
|
@@ -51265,13 +50919,6 @@ var Service = class Service extends Object$1 {
|
|
|
51265
50919
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
51266
50920
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
51267
50921
|
}
|
|
51268
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
51269
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
51270
|
-
if ("gateways" in values && values.gateways != null) {
|
|
51271
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
51272
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
51273
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
51274
|
-
}
|
|
51275
50922
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
51276
50923
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
51277
50924
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
@@ -51402,14 +51049,6 @@ var Service = class Service extends Object$1 {
|
|
|
51402
51049
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
51403
51050
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
51404
51051
|
}
|
|
51405
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
51406
|
-
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
51407
|
-
else throw new TypeError("The gateway must be of type URL.");
|
|
51408
|
-
if ("gateways" in values && values.gateways != null) {
|
|
51409
|
-
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
51410
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
51411
|
-
else throw new TypeError("The gateways must be an array of type URL.");
|
|
51412
|
-
}
|
|
51413
51052
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
51414
51053
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
51415
51054
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
@@ -51883,24 +51522,6 @@ var Service = class Service extends Object$1 {
|
|
|
51883
51522
|
yield v;
|
|
51884
51523
|
}
|
|
51885
51524
|
}
|
|
51886
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
51887
|
-
* retrieved.
|
|
51888
|
-
*
|
|
51889
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
51890
|
-
*/
|
|
51891
|
-
get gateway() {
|
|
51892
|
-
if (this._warning != null) (0, _logtape_logtape.getLogger)(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
51893
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
51894
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
51895
|
-
}
|
|
51896
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
51897
|
-
* retrieved.
|
|
51898
|
-
*
|
|
51899
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
51900
|
-
*/
|
|
51901
|
-
get gateways() {
|
|
51902
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
51903
|
-
}
|
|
51904
51525
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
|
51905
51526
|
* automatically approved, but instead are examined by a person who may accept
|
|
51906
51527
|
* or reject the request, at some time in the future. Setting of `false`
|
|
@@ -53770,12 +53391,6 @@ var Service = class Service extends Object$1 {
|
|
|
53770
53391
|
}
|
|
53771
53392
|
if (compactItems.length > 0) result["assertionMethod"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
53772
53393
|
compactItems = [];
|
|
53773
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
53774
|
-
const item = (0, _fedify_vocab_runtime.formatIri)(v);
|
|
53775
|
-
compactItems.push(item);
|
|
53776
|
-
}
|
|
53777
|
-
if (compactItems.length > 0) result["gateways"] = compactItems;
|
|
53778
|
-
compactItems = [];
|
|
53779
53394
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
53780
53395
|
const item = v;
|
|
53781
53396
|
compactItems.push(item);
|
|
@@ -53991,7 +53606,6 @@ var Service = class Service extends Object$1 {
|
|
|
53991
53606
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
53992
53607
|
result["@context"] = [
|
|
53993
53608
|
"https://www.w3.org/ns/activitystreams",
|
|
53994
|
-
"https://w3id.org/fep/ef61",
|
|
53995
53609
|
"https://w3id.org/security/v1",
|
|
53996
53610
|
"https://w3id.org/security/data-integrity/v1",
|
|
53997
53611
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -54064,12 +53678,6 @@ var Service = class Service extends Object$1 {
|
|
|
54064
53678
|
}
|
|
54065
53679
|
if (array.length > 0) values["https://w3id.org/security#assertionMethod"] = array;
|
|
54066
53680
|
array = [];
|
|
54067
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
54068
|
-
const element = { "@id": (0, _fedify_vocab_runtime.formatIri)(v) };
|
|
54069
|
-
array.push(element);
|
|
54070
|
-
}
|
|
54071
|
-
if (array.length > 0) values["https://w3id.org/fep/ef61/gateways"] = { "@list": array };
|
|
54072
|
-
array = [];
|
|
54073
53681
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
54074
53682
|
const element = { "@value": v };
|
|
54075
53683
|
array.push(element);
|
|
@@ -54194,7 +53802,6 @@ var Service = class Service extends Object$1 {
|
|
|
54194
53802
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
54195
53803
|
const docContext = options.context ?? [
|
|
54196
53804
|
"https://www.w3.org/ns/activitystreams",
|
|
54197
|
-
"https://w3id.org/fep/ef61",
|
|
54198
53805
|
"https://w3id.org/security/v1",
|
|
54199
53806
|
"https://w3id.org/security/data-integrity/v1",
|
|
54200
53807
|
"https://www.w3.org/ns/did/v1",
|
|
@@ -54358,15 +53965,6 @@ var Service = class Service extends Object$1 {
|
|
|
54358
53965
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
54359
53966
|
}
|
|
54360
53967
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
54361
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = [];
|
|
54362
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
54363
|
-
for (const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null ? [] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0] ? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"] : _hQiaHhZP8hqxckxTBrpsGNs57E3__array) {
|
|
54364
|
-
if (v == null) continue;
|
|
54365
|
-
const decoded = (0, _fedify_vocab_runtime.parseGatewayUrl)(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
54366
|
-
if (typeof decoded === "undefined") continue;
|
|
54367
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
54368
|
-
}
|
|
54369
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
54370
53968
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
54371
53969
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
54372
53970
|
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) {
|
|
@@ -54708,12 +54306,6 @@ var Service = class Service extends Object$1 {
|
|
|
54708
54306
|
} : v);
|
|
54709
54307
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length == 1) proxy.assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0];
|
|
54710
54308
|
if (_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 1 || !("assertionMethod" in proxy) && _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.length > 0) proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
54711
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.map((v) => v instanceof URL ? {
|
|
54712
|
-
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
54713
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
54714
|
-
} : v);
|
|
54715
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
54716
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1 || !("gateway" in proxy) && _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
54717
54309
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.map((v) => v instanceof URL ? {
|
|
54718
54310
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
|
|
54719
54311
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options)
|
|
@@ -56358,8 +55950,7 @@ var Video = class Video extends Document {
|
|
|
56358
55950
|
if (this.id != null) result["id"] = (0, _fedify_vocab_runtime.formatIri)(this.id);
|
|
56359
55951
|
result["@context"] = [
|
|
56360
55952
|
"https://www.w3.org/ns/activitystreams",
|
|
56361
|
-
"https://w3id.org/security/data-integrity/
|
|
56362
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
55953
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
56363
55954
|
"https://gotosocial.org/ns"
|
|
56364
55955
|
];
|
|
56365
55956
|
return result;
|
|
@@ -56374,8 +55965,7 @@ var Video = class Video extends Document {
|
|
|
56374
55965
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
56375
55966
|
const docContext = options.context ?? [
|
|
56376
55967
|
"https://www.w3.org/ns/activitystreams",
|
|
56377
|
-
"https://w3id.org/security/data-integrity/
|
|
56378
|
-
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
55968
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
56379
55969
|
"https://gotosocial.org/ns"
|
|
56380
55970
|
];
|
|
56381
55971
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|