@fedify/vocab 2.5.0-dev.2332 → 2.5.0-dev.2355
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 +851 -2
- package/dist/mod.d.cts +227 -0
- package/dist/mod.d.ts +227 -0
- package/dist/mod.js +851 -2
- package/dist-tests/{actor-DpNkhFU9.mjs → actor-BbIjMjNa.mjs} +2 -2
- package/dist-tests/actor.test.mjs +3 -3
- package/dist-tests/application.yaml +15 -0
- package/dist-tests/{esm-Cncdk-Cm.mjs → esm-rg6f9oLR.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +3 -3
- package/dist-tests/group.yaml +15 -0
- package/dist-tests/license.test.mjs +538 -0
- package/dist-tests/link.yaml +25 -0
- package/dist-tests/{lookup-CIDHxy5l.mjs → lookup-DKLMyPMJ.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +3 -3
- package/dist-tests/object.yaml +30 -0
- package/dist-tests/organization.yaml +15 -0
- package/dist-tests/person.yaml +15 -0
- package/dist-tests/portable-lookup.test.mjs +4 -4
- package/dist-tests/service.yaml +15 -0
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/src-DVk5F9Ik.mjs +9 -0
- package/dist-tests/translation.test.mjs +3 -6
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-EFWWufqL.mjs → vocab-Cg2PG-xH.mjs} +851 -2
- package/dist-tests/vocab.test.mjs +9 -3
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +480 -33
- package/src/application.yaml +15 -0
- package/src/group.yaml +15 -0
- package/src/license.test.ts +588 -0
- package/src/link.yaml +25 -0
- package/src/object.yaml +30 -0
- package/src/organization.yaml +15 -0
- package/src/person.yaml +15 -0
- package/src/service.yaml +15 -0
- package/src/vocab.test.ts +18 -6
- package/LICENSE +0 -20
|
@@ -193,10 +193,25 @@ function isValidLanguageTag(language) {
|
|
|
193
193
|
throw error;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
+
function getAbsoluteIriValue(value) {
|
|
197
|
+
if (value == null || typeof value !== "object") return void 0;
|
|
198
|
+
const node = value;
|
|
199
|
+
if (typeof node["@id"] === "string") return node["@id"].startsWith("_:") ? void 0 : node["@id"];
|
|
200
|
+
if (typeof node["@value"] !== "string") return void 0;
|
|
201
|
+
const type = node["@type"];
|
|
202
|
+
return type == null || type === "http://www.w3.org/2001/XMLSchema#string" || type === "http://www.w3.org/2001/XMLSchema#anyURI" ? node["@value"] : void 0;
|
|
203
|
+
}
|
|
204
|
+
function isAbsoluteIriValue(value) {
|
|
205
|
+
const iri = getAbsoluteIriValue(value);
|
|
206
|
+
return iri != null && canDecodeIri(iri);
|
|
207
|
+
}
|
|
196
208
|
const extraPropertyContexts = {
|
|
197
209
|
"https://schema.org/translator": "https://w3id.org/fep/22cd",
|
|
210
|
+
"https://w3id.org/fep/6757#preferredLicense": "https://w3id.org/fep/6757",
|
|
211
|
+
"http://purl.org/dc/terms/license": "https://w3id.org/fep/6757",
|
|
198
212
|
"https://w3id.org/fep/22cd#translations": "https://w3id.org/fep/22cd"
|
|
199
213
|
};
|
|
214
|
+
const extraContextUrls = ["https://w3id.org/fep/22cd", "https://w3id.org/fep/6757"];
|
|
200
215
|
function getExtraContexts(document) {
|
|
201
216
|
const contexts = /* @__PURE__ */ new Set();
|
|
202
217
|
const pending = [document];
|
|
@@ -209,7 +224,10 @@ function getExtraContexts(document) {
|
|
|
209
224
|
}
|
|
210
225
|
if ("@value" in value) continue;
|
|
211
226
|
for (const [key, child] of globalThis.Object.entries(value)) {
|
|
212
|
-
if (key === "@context")
|
|
227
|
+
if (key === "@context") {
|
|
228
|
+
for (const context of Array.isArray(child) ? child : [child]) if (typeof context === "string" && extraContextUrls.includes(context)) contexts.add(context);
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
213
231
|
if (globalThis.Object.hasOwn(extraPropertyContexts, key)) contexts.add(extraPropertyContexts[key]);
|
|
214
232
|
pending.push(child);
|
|
215
233
|
}
|
|
@@ -250,10 +268,12 @@ const PORTABLE_IRI_KEYS = /* @__PURE__ */ new Set([
|
|
|
250
268
|
"followingOf",
|
|
251
269
|
"generator",
|
|
252
270
|
"href",
|
|
271
|
+
"http://creativecommons.org/ns#license",
|
|
253
272
|
"http://fedibird.com/ns#emojiReactions",
|
|
254
273
|
"http://fedibird.com/ns#quoteUri",
|
|
255
274
|
"http://joinmastodon.org/ns#featured",
|
|
256
275
|
"http://joinmastodon.org/ns#featuredTags",
|
|
276
|
+
"http://purl.org/dc/terms/license",
|
|
257
277
|
"http://www.w3.org/ns/ldp#inbox",
|
|
258
278
|
"https://gotosocial.org/ns#announceAuthorization",
|
|
259
279
|
"https://gotosocial.org/ns#approvedBy",
|
|
@@ -265,6 +285,7 @@ const PORTABLE_IRI_KEYS = /* @__PURE__ */ new Set([
|
|
|
265
285
|
"https://gotosocial.org/ns#replyAuthorization",
|
|
266
286
|
"https://misskey-hub.net/ns#_misskey_quote",
|
|
267
287
|
"https://schema.org/isBasedOn",
|
|
288
|
+
"https://schema.org/license",
|
|
268
289
|
"https://schema.org/translationOfWork",
|
|
269
290
|
"https://schema.org/translator",
|
|
270
291
|
"https://w3id.org/fep/044f#quote",
|
|
@@ -277,6 +298,7 @@ const PORTABLE_IRI_KEYS = /* @__PURE__ */ new Set([
|
|
|
277
298
|
"https://w3id.org/fep/5711#outboxOf",
|
|
278
299
|
"https://w3id.org/fep/5711#repliesOf",
|
|
279
300
|
"https://w3id.org/fep/5711#sharesOf",
|
|
301
|
+
"https://w3id.org/fep/6757#preferredLicense",
|
|
280
302
|
"https://w3id.org/fep/7aa9#featureAuthorization",
|
|
281
303
|
"https://w3id.org/fep/7aa9#featuredCollections",
|
|
282
304
|
"https://w3id.org/fep/7aa9#featuredObject",
|
|
@@ -356,6 +378,7 @@ const PORTABLE_IRI_KEYS = /* @__PURE__ */ new Set([
|
|
|
356
378
|
"isBasedOn",
|
|
357
379
|
"items",
|
|
358
380
|
"last",
|
|
381
|
+
"license",
|
|
359
382
|
"likeAuthorization",
|
|
360
383
|
"liked",
|
|
361
384
|
"likedOf",
|
|
@@ -375,6 +398,7 @@ const PORTABLE_IRI_KEYS = /* @__PURE__ */ new Set([
|
|
|
375
398
|
"outboxOf",
|
|
376
399
|
"owner",
|
|
377
400
|
"partOf",
|
|
401
|
+
"preferredLicense",
|
|
378
402
|
"prev",
|
|
379
403
|
"preview",
|
|
380
404
|
"proof",
|
|
@@ -526,6 +550,7 @@ var Object$1 = class Object$1 {
|
|
|
526
550
|
#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [];
|
|
527
551
|
#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = /* @__PURE__ */ new Set();
|
|
528
552
|
#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = [];
|
|
553
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = [];
|
|
529
554
|
/**
|
|
530
555
|
* Constructs a new instance of Object with the given values.
|
|
531
556
|
* @param values The values to initialize the instance with.
|
|
@@ -767,6 +792,8 @@ var Object$1 = class Object$1 {
|
|
|
767
792
|
} else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
|
|
768
793
|
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
|
|
769
794
|
else throw new TypeError("The translations must be an array of type Translation.");
|
|
795
|
+
if ("licenses" in values && values.licenses != null) if (Array.isArray(values.licenses) && values.licenses.every((v) => v instanceof URL)) this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
796
|
+
else throw new TypeError("The licenses must be an array of type URL.");
|
|
770
797
|
}
|
|
771
798
|
/**
|
|
772
799
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -1095,6 +1122,9 @@ var Object$1 = class Object$1 {
|
|
|
1095
1122
|
clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.slice();
|
|
1096
1123
|
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
|
|
1097
1124
|
else throw new TypeError("The translations must be an array of type Translation.");
|
|
1125
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
1126
|
+
if ("licenses" in values && values.licenses != null) if (Array.isArray(values.licenses) && values.licenses.every((v) => v instanceof URL)) clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
1127
|
+
else throw new TypeError("The licenses must be an array of type URL.");
|
|
1098
1128
|
return clone;
|
|
1099
1129
|
}
|
|
1100
1130
|
async #fetchAttachment(url, options = {}) {
|
|
@@ -7564,6 +7594,27 @@ var Object$1 = class Object$1 {
|
|
|
7564
7594
|
get translations() {
|
|
7565
7595
|
return this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
7566
7596
|
}
|
|
7597
|
+
/** The copyright licenses for this object, as defined by
|
|
7598
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
7599
|
+
* URI, such as <https://creativecommons.org/licenses/by/4.0/>; license names
|
|
7600
|
+
* and SPDX short identifiers are not license URIs. Multiple values are
|
|
7601
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
7602
|
+
*
|
|
7603
|
+
* An empty list means the object carries no license metadata. Fedify does
|
|
7604
|
+
* not synthesize a default license for it; FEP-6757 suggests that consumers
|
|
7605
|
+
* treat such content as “all rights reserved,” but that is a consumer policy,
|
|
7606
|
+
* not a value of this property. A license on an actor, activity, or
|
|
7607
|
+
* collection covers that object itself, not the objects the actor authored,
|
|
7608
|
+
* the activity's object, or the collection's items. An actor's
|
|
7609
|
+
* `preferredLicense` is not a fallback for this property either.
|
|
7610
|
+
*
|
|
7611
|
+
* The `https://schema.org/license` and
|
|
7612
|
+
* `http://creativecommons.org/ns#license` properties are read as synonyms
|
|
7613
|
+
* when this property is absent, but only this property is written.
|
|
7614
|
+
*/
|
|
7615
|
+
get licenses() {
|
|
7616
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
7617
|
+
}
|
|
7567
7618
|
/**
|
|
7568
7619
|
* Converts this object to a JSON-LD structure.
|
|
7569
7620
|
* @param options The options to use.
|
|
@@ -7977,6 +8028,12 @@ var Object$1 = class Object$1 {
|
|
|
7977
8028
|
compactItems.push(item);
|
|
7978
8029
|
}
|
|
7979
8030
|
if (compactItems.length > 0) result["translations"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
8031
|
+
compactItems = [];
|
|
8032
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
8033
|
+
const item = formatIri(v);
|
|
8034
|
+
compactItems.push(item);
|
|
8035
|
+
}
|
|
8036
|
+
if (compactItems.length > 0) result["license"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
7980
8037
|
result["type"] = "Object";
|
|
7981
8038
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
7982
8039
|
result["@context"] = [
|
|
@@ -8438,6 +8495,17 @@ var Object$1 = class Object$1 {
|
|
|
8438
8495
|
array.push(element);
|
|
8439
8496
|
}
|
|
8440
8497
|
if (array.length > 0) values["https://w3id.org/fep/22cd#translations"] = array;
|
|
8498
|
+
array = [];
|
|
8499
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
8500
|
+
let element = { "@id": formatIri(v) };
|
|
8501
|
+
if (Array.isArray(element)) {
|
|
8502
|
+
if (element.length < 1) continue;
|
|
8503
|
+
if (element.length == 1) element = element[0];
|
|
8504
|
+
}
|
|
8505
|
+
if (typeof element === "undefined") continue;
|
|
8506
|
+
array.push(element);
|
|
8507
|
+
}
|
|
8508
|
+
if (array.length > 0) values["http://purl.org/dc/terms/license"] = array;
|
|
8441
8509
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Object"];
|
|
8442
8510
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
8443
8511
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -8457,6 +8525,11 @@ var Object$1 = class Object$1 {
|
|
|
8457
8525
|
}
|
|
8458
8526
|
}
|
|
8459
8527
|
];
|
|
8528
|
+
if (options.context == null) {
|
|
8529
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
8530
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
8531
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
8532
|
+
}
|
|
8460
8533
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8461
8534
|
if (options.context == null) {
|
|
8462
8535
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -8479,6 +8552,7 @@ var Object$1 = class Object$1 {
|
|
|
8479
8552
|
if (this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof != null && this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.length > 0) return false;
|
|
8480
8553
|
if (this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy != null && this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.length > 0) return false;
|
|
8481
8554
|
if (this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations != null && this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.length > 0) return false;
|
|
8555
|
+
if (this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null && this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) return false;
|
|
8482
8556
|
return true;
|
|
8483
8557
|
}
|
|
8484
8558
|
/**
|
|
@@ -9902,6 +9976,21 @@ var Object$1 = class Object$1 {
|
|
|
9902
9976
|
_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.push(decoded);
|
|
9903
9977
|
}
|
|
9904
9978
|
instance.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
9979
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = [];
|
|
9980
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["http://purl.org/dc/terms/license"];
|
|
9981
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["https://schema.org/license"];
|
|
9982
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["http://creativecommons.org/ns#license"];
|
|
9983
|
+
for (const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null ? [] : _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && "@list" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0] ? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]["@list"] : _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array) {
|
|
9984
|
+
if (v == null) continue;
|
|
9985
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
9986
|
+
if (typeof decoded === "undefined") {
|
|
9987
|
+
shouldCacheJsonLd = false;
|
|
9988
|
+
continue;
|
|
9989
|
+
}
|
|
9990
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9991
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
9992
|
+
}
|
|
9993
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
9905
9994
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9906
9995
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9907
9996
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -10127,6 +10216,11 @@ var Object$1 = class Object$1 {
|
|
|
10127
10216
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
10128
10217
|
} : v);
|
|
10129
10218
|
if (_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.length > 1 || !("translation" in proxy) && _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.length > 0) proxy.translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
10219
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.map((v) => v instanceof URL ? {
|
|
10220
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
10221
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
10222
|
+
} : v);
|
|
10223
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1 || !("license" in proxy) && _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
10130
10224
|
return proxy;
|
|
10131
10225
|
}
|
|
10132
10226
|
};
|
|
@@ -10224,6 +10318,11 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
10224
10318
|
"toot": "http://joinmastodon.org/ns#",
|
|
10225
10319
|
"Emoji": "toot:Emoji"
|
|
10226
10320
|
}];
|
|
10321
|
+
if (options.context == null) {
|
|
10322
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
10323
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
10324
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
10325
|
+
}
|
|
10227
10326
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10228
10327
|
if (options.context == null) {
|
|
10229
10328
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -11049,6 +11148,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
11049
11148
|
}
|
|
11050
11149
|
}
|
|
11051
11150
|
];
|
|
11151
|
+
if (options.context == null) {
|
|
11152
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
11153
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
11154
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
11155
|
+
}
|
|
11052
11156
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
11053
11157
|
if (options.context == null) {
|
|
11054
11158
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -13417,6 +13521,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
13417
13521
|
"https://w3id.org/security/data-integrity/v1",
|
|
13418
13522
|
"https://gotosocial.org/ns"
|
|
13419
13523
|
];
|
|
13524
|
+
if (options.context == null) {
|
|
13525
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
13526
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
13527
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
13528
|
+
}
|
|
13420
13529
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13421
13530
|
if (options.context == null) {
|
|
13422
13531
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -13825,6 +13934,11 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
13825
13934
|
"Emoji": "toot:Emoji"
|
|
13826
13935
|
}
|
|
13827
13936
|
];
|
|
13937
|
+
if (options.context == null) {
|
|
13938
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
13939
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
13940
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
13941
|
+
}
|
|
13828
13942
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13829
13943
|
if (options.context == null) {
|
|
13830
13944
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -14150,6 +14264,11 @@ var PropertyValue = class {
|
|
|
14150
14264
|
"PropertyValue": "schema:PropertyValue",
|
|
14151
14265
|
"value": "schema:value"
|
|
14152
14266
|
}];
|
|
14267
|
+
if (options.context == null) {
|
|
14268
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
14269
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
14270
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
14271
|
+
}
|
|
14153
14272
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14154
14273
|
if (options.context == null) {
|
|
14155
14274
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -14502,6 +14621,11 @@ var Measure = class {
|
|
|
14502
14621
|
"hasUnit": "om2:hasUnit",
|
|
14503
14622
|
"hasNumericalValue": "om2:hasNumericalValue"
|
|
14504
14623
|
}];
|
|
14624
|
+
if (options.context == null) {
|
|
14625
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
14626
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
14627
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
14628
|
+
}
|
|
14505
14629
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14506
14630
|
if (options.context == null) {
|
|
14507
14631
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -15267,6 +15391,11 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
15267
15391
|
"https://w3id.org/security/data-integrity/v1",
|
|
15268
15392
|
"https://gotosocial.org/ns"
|
|
15269
15393
|
];
|
|
15394
|
+
if (options.context == null) {
|
|
15395
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
15396
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
15397
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
15398
|
+
}
|
|
15270
15399
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15271
15400
|
if (options.context == null) {
|
|
15272
15401
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -15522,6 +15651,11 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
15522
15651
|
"https://w3id.org/security/data-integrity/v1",
|
|
15523
15652
|
"https://gotosocial.org/ns"
|
|
15524
15653
|
];
|
|
15654
|
+
if (options.context == null) {
|
|
15655
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
15656
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
15657
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
15658
|
+
}
|
|
15525
15659
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15526
15660
|
if (options.context == null) {
|
|
15527
15661
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -15900,6 +16034,11 @@ var InteractionPolicy = class {
|
|
|
15900
16034
|
keepFreeFloatingNodes: true
|
|
15901
16035
|
});
|
|
15902
16036
|
let docContext = options.context ?? ["https://gotosocial.org/ns", "https://w3id.org/fep/7aa9"];
|
|
16037
|
+
if (options.context == null) {
|
|
16038
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
16039
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
16040
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
16041
|
+
}
|
|
15903
16042
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15904
16043
|
if (options.context == null) {
|
|
15905
16044
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -16344,6 +16483,11 @@ var InteractionRule = class {
|
|
|
16344
16483
|
keepFreeFloatingNodes: true
|
|
16345
16484
|
});
|
|
16346
16485
|
let docContext = options.context ?? "https://gotosocial.org/ns";
|
|
16486
|
+
if (options.context == null) {
|
|
16487
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
16488
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
16489
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
16490
|
+
}
|
|
16347
16491
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
16348
16492
|
if (options.context == null) {
|
|
16349
16493
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -17110,6 +17254,11 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
17110
17254
|
"https://w3id.org/security/data-integrity/v1",
|
|
17111
17255
|
"https://gotosocial.org/ns"
|
|
17112
17256
|
];
|
|
17257
|
+
if (options.context == null) {
|
|
17258
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
17259
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
17260
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
17261
|
+
}
|
|
17113
17262
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17114
17263
|
if (options.context == null) {
|
|
17115
17264
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -17364,6 +17513,11 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
17364
17513
|
"https://w3id.org/security/data-integrity/v1",
|
|
17365
17514
|
"https://gotosocial.org/ns"
|
|
17366
17515
|
];
|
|
17516
|
+
if (options.context == null) {
|
|
17517
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
17518
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
17519
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
17520
|
+
}
|
|
17367
17521
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17368
17522
|
if (options.context == null) {
|
|
17369
17523
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -18096,6 +18250,11 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
18096
18250
|
"https://w3id.org/security/data-integrity/v1",
|
|
18097
18251
|
"https://gotosocial.org/ns"
|
|
18098
18252
|
];
|
|
18253
|
+
if (options.context == null) {
|
|
18254
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
18255
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
18256
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
18257
|
+
}
|
|
18099
18258
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18100
18259
|
if (options.context == null) {
|
|
18101
18260
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -18350,6 +18509,11 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
18350
18509
|
"https://w3id.org/security/data-integrity/v1",
|
|
18351
18510
|
"https://gotosocial.org/ns"
|
|
18352
18511
|
];
|
|
18512
|
+
if (options.context == null) {
|
|
18513
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
18514
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
18515
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
18516
|
+
}
|
|
18353
18517
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18354
18518
|
if (options.context == null) {
|
|
18355
18519
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -19083,6 +19247,11 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
19083
19247
|
"https://gotosocial.org/ns",
|
|
19084
19248
|
{ "QuoteAuthorization": "https://w3id.org/fep/044f#QuoteAuthorization" }
|
|
19085
19249
|
];
|
|
19250
|
+
if (options.context == null) {
|
|
19251
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
19252
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
19253
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
19254
|
+
}
|
|
19086
19255
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19087
19256
|
if (options.context == null) {
|
|
19088
19257
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -19367,6 +19536,11 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
19367
19536
|
}
|
|
19368
19537
|
}
|
|
19369
19538
|
];
|
|
19539
|
+
if (options.context == null) {
|
|
19540
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
19541
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
19542
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
19543
|
+
}
|
|
19370
19544
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19371
19545
|
if (options.context == null) {
|
|
19372
19546
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -20220,6 +20394,11 @@ var Translation = class {
|
|
|
20220
20394
|
keepFreeFloatingNodes: true
|
|
20221
20395
|
});
|
|
20222
20396
|
let docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/22cd"];
|
|
20397
|
+
if (options.context == null) {
|
|
20398
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
20399
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
20400
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
20401
|
+
}
|
|
20223
20402
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
20224
20403
|
if (options.context == null) {
|
|
20225
20404
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -21083,6 +21262,11 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
21083
21262
|
"https://gotosocial.org/ns",
|
|
21084
21263
|
"https://w3id.org/fep/7aa9"
|
|
21085
21264
|
];
|
|
21265
|
+
if (options.context == null) {
|
|
21266
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
21267
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
21268
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
21269
|
+
}
|
|
21086
21270
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
21087
21271
|
if (options.context == null) {
|
|
21088
21272
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -21335,6 +21519,11 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
21335
21519
|
"https://gotosocial.org/ns",
|
|
21336
21520
|
"https://w3id.org/fep/7aa9"
|
|
21337
21521
|
];
|
|
21522
|
+
if (options.context == null) {
|
|
21523
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
21524
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
21525
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
21526
|
+
}
|
|
21338
21527
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
21339
21528
|
if (options.context == null) {
|
|
21340
21529
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -24756,6 +24945,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24756
24945
|
}
|
|
24757
24946
|
}
|
|
24758
24947
|
];
|
|
24948
|
+
if (options.context == null) {
|
|
24949
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
24950
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
24951
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
24952
|
+
}
|
|
24759
24953
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24760
24954
|
if (options.context == null) {
|
|
24761
24955
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -25711,6 +25905,11 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25711
25905
|
}
|
|
25712
25906
|
}
|
|
25713
25907
|
];
|
|
25908
|
+
if (options.context == null) {
|
|
25909
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
25910
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
25911
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
25912
|
+
}
|
|
25714
25913
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25715
25914
|
if (options.context == null) {
|
|
25716
25915
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -26107,6 +26306,11 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
26107
26306
|
"Hashtag": "as:Hashtag"
|
|
26108
26307
|
}
|
|
26109
26308
|
];
|
|
26309
|
+
if (options.context == null) {
|
|
26310
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
26311
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
26312
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
26313
|
+
}
|
|
26110
26314
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
26111
26315
|
if (options.context == null) {
|
|
26112
26316
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -26876,6 +27080,11 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
26876
27080
|
"https://gotosocial.org/ns",
|
|
26877
27081
|
"https://w3id.org/fep/7aa9"
|
|
26878
27082
|
];
|
|
27083
|
+
if (options.context == null) {
|
|
27084
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
27085
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
27086
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
27087
|
+
}
|
|
26879
27088
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
26880
27089
|
if (options.context == null) {
|
|
26881
27090
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -27211,6 +27420,11 @@ var DidService = class {
|
|
|
27211
27420
|
keepFreeFloatingNodes: true
|
|
27212
27421
|
});
|
|
27213
27422
|
let docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
27423
|
+
if (options.context == null) {
|
|
27424
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
27425
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
27426
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
27427
|
+
}
|
|
27214
27428
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27215
27429
|
if (options.context == null) {
|
|
27216
27430
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -27414,6 +27628,11 @@ var Export = class Export extends DidService {
|
|
|
27414
27628
|
keepFreeFloatingNodes: true
|
|
27415
27629
|
});
|
|
27416
27630
|
let docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
27631
|
+
if (options.context == null) {
|
|
27632
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
27633
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
27634
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
27635
|
+
}
|
|
27417
27636
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27418
27637
|
if (options.context == null) {
|
|
27419
27638
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -27991,6 +28210,11 @@ var DataIntegrityProof = class {
|
|
|
27991
28210
|
keepFreeFloatingNodes: true
|
|
27992
28211
|
});
|
|
27993
28212
|
let docContext = options.context ?? "https://w3id.org/security/data-integrity/v1";
|
|
28213
|
+
if (options.context == null) {
|
|
28214
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
28215
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
28216
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
28217
|
+
}
|
|
27994
28218
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27995
28219
|
if (options.context == null) {
|
|
27996
28220
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -28684,6 +28908,11 @@ var CryptographicKey = class {
|
|
|
28684
28908
|
keepFreeFloatingNodes: true
|
|
28685
28909
|
});
|
|
28686
28910
|
let docContext = options.context ?? "https://w3id.org/security/v1";
|
|
28911
|
+
if (options.context == null) {
|
|
28912
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
28913
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
28914
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
28915
|
+
}
|
|
28687
28916
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28688
28917
|
if (options.context == null) {
|
|
28689
28918
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -29344,6 +29573,11 @@ var Multikey = class {
|
|
|
29344
29573
|
keepFreeFloatingNodes: true
|
|
29345
29574
|
});
|
|
29346
29575
|
let docContext = options.context ?? "https://w3id.org/security/multikey/v1";
|
|
29576
|
+
if (options.context == null) {
|
|
29577
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
29578
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
29579
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
29580
|
+
}
|
|
29347
29581
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29348
29582
|
if (options.context == null) {
|
|
29349
29583
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -29729,6 +29963,11 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
29729
29963
|
"hasNumericalValue": "om2:hasNumericalValue"
|
|
29730
29964
|
}
|
|
29731
29965
|
];
|
|
29966
|
+
if (options.context == null) {
|
|
29967
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
29968
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
29969
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
29970
|
+
}
|
|
29732
29971
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29733
29972
|
if (options.context == null) {
|
|
29734
29973
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -30112,6 +30351,11 @@ var Commitment = class {
|
|
|
30112
30351
|
"hasUnit": "om2:hasUnit",
|
|
30113
30352
|
"hasNumericalValue": "om2:hasNumericalValue"
|
|
30114
30353
|
}];
|
|
30354
|
+
if (options.context == null) {
|
|
30355
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30356
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
30357
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
30358
|
+
}
|
|
30115
30359
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
30116
30360
|
if (options.context == null) {
|
|
30117
30361
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -30584,6 +30828,11 @@ var Intent = class {
|
|
|
30584
30828
|
"hasUnit": "om2:hasUnit",
|
|
30585
30829
|
"hasNumericalValue": "om2:hasNumericalValue"
|
|
30586
30830
|
}];
|
|
30831
|
+
if (options.context == null) {
|
|
30832
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30833
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
30834
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
30835
|
+
}
|
|
30587
30836
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
30588
30837
|
if (options.context == null) {
|
|
30589
30838
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -31081,6 +31330,11 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
31081
31330
|
"hasNumericalValue": "om2:hasNumericalValue"
|
|
31082
31331
|
}
|
|
31083
31332
|
];
|
|
31333
|
+
if (options.context == null) {
|
|
31334
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
31335
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
31336
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
31337
|
+
}
|
|
31084
31338
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
31085
31339
|
if (options.context == null) {
|
|
31086
31340
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -31354,6 +31608,11 @@ var Accept = class Accept extends Activity {
|
|
|
31354
31608
|
"https://w3id.org/security/data-integrity/v1",
|
|
31355
31609
|
"https://gotosocial.org/ns"
|
|
31356
31610
|
];
|
|
31611
|
+
if (options.context == null) {
|
|
31612
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
31613
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
31614
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
31615
|
+
}
|
|
31357
31616
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
31358
31617
|
if (options.context == null) {
|
|
31359
31618
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -31550,6 +31809,11 @@ var Add = class Add extends Activity {
|
|
|
31550
31809
|
"https://w3id.org/security/data-integrity/v1",
|
|
31551
31810
|
"https://gotosocial.org/ns"
|
|
31552
31811
|
];
|
|
31812
|
+
if (options.context == null) {
|
|
31813
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
31814
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
31815
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
31816
|
+
}
|
|
31553
31817
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
31554
31818
|
if (options.context == null) {
|
|
31555
31819
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -31773,6 +32037,11 @@ var Announce = class Announce extends Activity {
|
|
|
31773
32037
|
}
|
|
31774
32038
|
}
|
|
31775
32039
|
];
|
|
32040
|
+
if (options.context == null) {
|
|
32041
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
32042
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
32043
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
32044
|
+
}
|
|
31776
32045
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
31777
32046
|
if (options.context == null) {
|
|
31778
32047
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -31936,6 +32205,7 @@ var Application = class Application extends Object$1 {
|
|
|
31936
32205
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
31937
32206
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
31938
32207
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
32208
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
31939
32209
|
/**
|
|
31940
32210
|
* Constructs a new instance of Application with the given values.
|
|
31941
32211
|
* @param values The values to initialize the instance with.
|
|
@@ -32057,6 +32327,8 @@ var Application = class Application extends Object$1 {
|
|
|
32057
32327
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
32058
32328
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
32059
32329
|
else throw new TypeError("The cat must be of type boolean.");
|
|
32330
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
32331
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
32060
32332
|
}
|
|
32061
32333
|
/**
|
|
32062
32334
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -32238,6 +32510,9 @@ var Application = class Application extends Object$1 {
|
|
|
32238
32510
|
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
32239
32511
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
32240
32512
|
else throw new TypeError("The cat must be of type boolean.");
|
|
32513
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
32514
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
32515
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
32241
32516
|
return clone;
|
|
32242
32517
|
}
|
|
32243
32518
|
/** A short username which may be used to refer to the actor,
|
|
@@ -35972,6 +36247,18 @@ var Application = class Application extends Object$1 {
|
|
|
35972
36247
|
if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1) return null;
|
|
35973
36248
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
35974
36249
|
}
|
|
36250
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
36251
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
36252
|
+
* as the default `license` of a new object and let the user choose another.
|
|
36253
|
+
*
|
|
36254
|
+
* This is not a fallback license: an object without its own `license` is not
|
|
36255
|
+
* licensed under its author's preferred license.
|
|
36256
|
+
*/
|
|
36257
|
+
get preferredLicense() {
|
|
36258
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
36259
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
36260
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
36261
|
+
}
|
|
35975
36262
|
/**
|
|
35976
36263
|
* Converts this object to a JSON-LD structure.
|
|
35977
36264
|
* @param options The options to use.
|
|
@@ -36243,6 +36530,12 @@ var Application = class Application extends Object$1 {
|
|
|
36243
36530
|
compactItems.push(item);
|
|
36244
36531
|
}
|
|
36245
36532
|
if (compactItems.length > 0) result["isCat"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
36533
|
+
compactItems = [];
|
|
36534
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
36535
|
+
const item = formatIri(v);
|
|
36536
|
+
compactItems.push(item);
|
|
36537
|
+
}
|
|
36538
|
+
if (compactItems.length > 0) result["preferredLicense"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
36246
36539
|
result["type"] = "Application";
|
|
36247
36540
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
36248
36541
|
result["@context"] = [
|
|
@@ -36565,6 +36858,17 @@ var Application = class Application extends Object$1 {
|
|
|
36565
36858
|
array.push(element);
|
|
36566
36859
|
}
|
|
36567
36860
|
if (array.length > 0) values["https://misskey-hub.net/ns#isCat"] = array;
|
|
36861
|
+
array = [];
|
|
36862
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
36863
|
+
let element = { "@id": formatIri(v) };
|
|
36864
|
+
if (Array.isArray(element)) {
|
|
36865
|
+
if (element.length < 1) continue;
|
|
36866
|
+
if (element.length == 1) element = element[0];
|
|
36867
|
+
}
|
|
36868
|
+
if (typeof element === "undefined") continue;
|
|
36869
|
+
array.push(element);
|
|
36870
|
+
}
|
|
36871
|
+
if (array.length > 0) values["https://w3id.org/fep/6757#preferredLicense"] = array;
|
|
36568
36872
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Application"];
|
|
36569
36873
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
36570
36874
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -36616,6 +36920,11 @@ var Application = class Application extends Object$1 {
|
|
|
36616
36920
|
"isCat": "misskey:isCat"
|
|
36617
36921
|
}
|
|
36618
36922
|
];
|
|
36923
|
+
if (options.context == null) {
|
|
36924
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
36925
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
36926
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
36927
|
+
}
|
|
36619
36928
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
36620
36929
|
if (options.context == null) {
|
|
36621
36930
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -36634,6 +36943,7 @@ var Application = class Application extends Object$1 {
|
|
|
36634
36943
|
isCompactable() {
|
|
36635
36944
|
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null && this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0) return false;
|
|
36636
36945
|
if (this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service != null && this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0) return false;
|
|
36946
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null && this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0) return false;
|
|
36637
36947
|
return super.isCompactable();
|
|
36638
36948
|
}
|
|
36639
36949
|
/**
|
|
@@ -37168,6 +37478,19 @@ var Application = class Application extends Object$1 {
|
|
|
37168
37478
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
37169
37479
|
}
|
|
37170
37480
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
37481
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
37482
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values["https://w3id.org/fep/6757#preferredLicense"];
|
|
37483
|
+
for (const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null ? [] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && "@list" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0] ? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]["@list"] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array) {
|
|
37484
|
+
if (v == null) continue;
|
|
37485
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
37486
|
+
if (typeof decoded === "undefined") {
|
|
37487
|
+
shouldCacheJsonLd = false;
|
|
37488
|
+
continue;
|
|
37489
|
+
}
|
|
37490
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37491
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
37492
|
+
}
|
|
37493
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
37171
37494
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
37172
37495
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
37173
37496
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -37309,6 +37632,11 @@ var Application = class Application extends Object$1 {
|
|
|
37309
37632
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
37310
37633
|
} : v);
|
|
37311
37634
|
if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
37635
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.map((v) => v instanceof URL ? {
|
|
37636
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
37637
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
37638
|
+
} : v);
|
|
37639
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
37312
37640
|
return proxy;
|
|
37313
37641
|
}
|
|
37314
37642
|
};
|
|
@@ -37396,6 +37724,11 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
37396
37724
|
"https://w3id.org/security/data-integrity/v1",
|
|
37397
37725
|
"https://gotosocial.org/ns"
|
|
37398
37726
|
];
|
|
37727
|
+
if (options.context == null) {
|
|
37728
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37729
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
37730
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
37731
|
+
}
|
|
37399
37732
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
37400
37733
|
if (options.context == null) {
|
|
37401
37734
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -37593,6 +37926,11 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
37593
37926
|
"https://w3id.org/security/data-integrity/v1",
|
|
37594
37927
|
"https://gotosocial.org/ns"
|
|
37595
37928
|
];
|
|
37929
|
+
if (options.context == null) {
|
|
37930
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37931
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
37932
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
37933
|
+
}
|
|
37596
37934
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
37597
37935
|
if (options.context == null) {
|
|
37598
37936
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -38416,6 +38754,11 @@ var Article = class Article extends Object$1 {
|
|
|
38416
38754
|
}
|
|
38417
38755
|
}
|
|
38418
38756
|
];
|
|
38757
|
+
if (options.context == null) {
|
|
38758
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
38759
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
38760
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
38761
|
+
}
|
|
38419
38762
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
38420
38763
|
if (options.context == null) {
|
|
38421
38764
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -38800,6 +39143,11 @@ var Document = class Document extends Object$1 {
|
|
|
38800
39143
|
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
38801
39144
|
"https://gotosocial.org/ns"
|
|
38802
39145
|
];
|
|
39146
|
+
if (options.context == null) {
|
|
39147
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39148
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
39149
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
39150
|
+
}
|
|
38803
39151
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
38804
39152
|
if (options.context == null) {
|
|
38805
39153
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -39067,6 +39415,11 @@ var Audio = class Audio extends Document {
|
|
|
39067
39415
|
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
39068
39416
|
"https://gotosocial.org/ns"
|
|
39069
39417
|
];
|
|
39418
|
+
if (options.context == null) {
|
|
39419
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39420
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
39421
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
39422
|
+
}
|
|
39070
39423
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39071
39424
|
if (options.context == null) {
|
|
39072
39425
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -39260,6 +39613,11 @@ var Ignore = class Ignore extends Activity {
|
|
|
39260
39613
|
"https://w3id.org/security/data-integrity/v1",
|
|
39261
39614
|
"https://gotosocial.org/ns"
|
|
39262
39615
|
];
|
|
39616
|
+
if (options.context == null) {
|
|
39617
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39618
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
39619
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
39620
|
+
}
|
|
39263
39621
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39264
39622
|
if (options.context == null) {
|
|
39265
39623
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -39456,6 +39814,11 @@ var Block = class Block extends Ignore {
|
|
|
39456
39814
|
"https://w3id.org/security/data-integrity/v1",
|
|
39457
39815
|
"https://gotosocial.org/ns"
|
|
39458
39816
|
];
|
|
39817
|
+
if (options.context == null) {
|
|
39818
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39819
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
39820
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
39821
|
+
}
|
|
39459
39822
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39460
39823
|
if (options.context == null) {
|
|
39461
39824
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -40495,6 +40858,11 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
40495
40858
|
}
|
|
40496
40859
|
}
|
|
40497
40860
|
];
|
|
40861
|
+
if (options.context == null) {
|
|
40862
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
40863
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
40864
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
40865
|
+
}
|
|
40498
40866
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40499
40867
|
if (options.context == null) {
|
|
40500
40868
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -40797,6 +41165,11 @@ var Create = class Create extends Activity {
|
|
|
40797
41165
|
}
|
|
40798
41166
|
}
|
|
40799
41167
|
];
|
|
41168
|
+
if (options.context == null) {
|
|
41169
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41170
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
41171
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
41172
|
+
}
|
|
40800
41173
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40801
41174
|
if (options.context == null) {
|
|
40802
41175
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -41016,6 +41389,11 @@ var Delete = class Delete extends Activity {
|
|
|
41016
41389
|
}
|
|
41017
41390
|
}
|
|
41018
41391
|
];
|
|
41392
|
+
if (options.context == null) {
|
|
41393
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41394
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
41395
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
41396
|
+
}
|
|
41019
41397
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41020
41398
|
if (options.context == null) {
|
|
41021
41399
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -41212,6 +41590,11 @@ var Dislike = class Dislike extends Activity {
|
|
|
41212
41590
|
"Emoji": "toot:Emoji"
|
|
41213
41591
|
}
|
|
41214
41592
|
];
|
|
41593
|
+
if (options.context == null) {
|
|
41594
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41595
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
41596
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
41597
|
+
}
|
|
41215
41598
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41216
41599
|
if (options.context == null) {
|
|
41217
41600
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -41693,6 +42076,11 @@ var Endpoints = class {
|
|
|
41693
42076
|
keepFreeFloatingNodes: true
|
|
41694
42077
|
});
|
|
41695
42078
|
let docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
42079
|
+
if (options.context == null) {
|
|
42080
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
42081
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
42082
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
42083
|
+
}
|
|
41696
42084
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41697
42085
|
if (options.context == null) {
|
|
41698
42086
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -42021,6 +42409,11 @@ var Event = class Event extends Object$1 {
|
|
|
42021
42409
|
"https://w3id.org/security/data-integrity/v1",
|
|
42022
42410
|
"https://gotosocial.org/ns"
|
|
42023
42411
|
];
|
|
42412
|
+
if (options.context == null) {
|
|
42413
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
42414
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
42415
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
42416
|
+
}
|
|
42024
42417
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
42025
42418
|
if (options.context == null) {
|
|
42026
42419
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -42215,6 +42608,11 @@ var Flag = class Flag extends Activity {
|
|
|
42215
42608
|
"https://w3id.org/security/data-integrity/v1",
|
|
42216
42609
|
"https://gotosocial.org/ns"
|
|
42217
42610
|
];
|
|
42611
|
+
if (options.context == null) {
|
|
42612
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
42613
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
42614
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
42615
|
+
}
|
|
42218
42616
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
42219
42617
|
if (options.context == null) {
|
|
42220
42618
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -42413,6 +42811,11 @@ var Follow = class Follow extends Activity {
|
|
|
42413
42811
|
"https://w3id.org/security/multikey/v1",
|
|
42414
42812
|
"https://gotosocial.org/ns"
|
|
42415
42813
|
];
|
|
42814
|
+
if (options.context == null) {
|
|
42815
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
42816
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
42817
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
42818
|
+
}
|
|
42416
42819
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
42417
42820
|
if (options.context == null) {
|
|
42418
42821
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -42576,6 +42979,7 @@ var Group = class Group extends Object$1 {
|
|
|
42576
42979
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
42577
42980
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
42578
42981
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
42982
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
42579
42983
|
/**
|
|
42580
42984
|
* Constructs a new instance of Group with the given values.
|
|
42581
42985
|
* @param values The values to initialize the instance with.
|
|
@@ -42697,6 +43101,8 @@ var Group = class Group extends Object$1 {
|
|
|
42697
43101
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
42698
43102
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
42699
43103
|
else throw new TypeError("The cat must be of type boolean.");
|
|
43104
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
43105
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
42700
43106
|
}
|
|
42701
43107
|
/**
|
|
42702
43108
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -42878,6 +43284,9 @@ var Group = class Group extends Object$1 {
|
|
|
42878
43284
|
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
42879
43285
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
42880
43286
|
else throw new TypeError("The cat must be of type boolean.");
|
|
43287
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
43288
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
43289
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
42881
43290
|
return clone;
|
|
42882
43291
|
}
|
|
42883
43292
|
/** A short username which may be used to refer to the actor,
|
|
@@ -46612,6 +47021,18 @@ var Group = class Group extends Object$1 {
|
|
|
46612
47021
|
if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1) return null;
|
|
46613
47022
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
46614
47023
|
}
|
|
47024
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
47025
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
47026
|
+
* as the default `license` of a new object and let the user choose another.
|
|
47027
|
+
*
|
|
47028
|
+
* This is not a fallback license: an object without its own `license` is not
|
|
47029
|
+
* licensed under its author's preferred license.
|
|
47030
|
+
*/
|
|
47031
|
+
get preferredLicense() {
|
|
47032
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
47033
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
47034
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
47035
|
+
}
|
|
46615
47036
|
/**
|
|
46616
47037
|
* Converts this object to a JSON-LD structure.
|
|
46617
47038
|
* @param options The options to use.
|
|
@@ -46883,6 +47304,12 @@ var Group = class Group extends Object$1 {
|
|
|
46883
47304
|
compactItems.push(item);
|
|
46884
47305
|
}
|
|
46885
47306
|
if (compactItems.length > 0) result["isCat"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
47307
|
+
compactItems = [];
|
|
47308
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
47309
|
+
const item = formatIri(v);
|
|
47310
|
+
compactItems.push(item);
|
|
47311
|
+
}
|
|
47312
|
+
if (compactItems.length > 0) result["preferredLicense"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
46886
47313
|
result["type"] = "Group";
|
|
46887
47314
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
46888
47315
|
result["@context"] = [
|
|
@@ -47205,6 +47632,17 @@ var Group = class Group extends Object$1 {
|
|
|
47205
47632
|
array.push(element);
|
|
47206
47633
|
}
|
|
47207
47634
|
if (array.length > 0) values["https://misskey-hub.net/ns#isCat"] = array;
|
|
47635
|
+
array = [];
|
|
47636
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
47637
|
+
let element = { "@id": formatIri(v) };
|
|
47638
|
+
if (Array.isArray(element)) {
|
|
47639
|
+
if (element.length < 1) continue;
|
|
47640
|
+
if (element.length == 1) element = element[0];
|
|
47641
|
+
}
|
|
47642
|
+
if (typeof element === "undefined") continue;
|
|
47643
|
+
array.push(element);
|
|
47644
|
+
}
|
|
47645
|
+
if (array.length > 0) values["https://w3id.org/fep/6757#preferredLicense"] = array;
|
|
47208
47646
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Group"];
|
|
47209
47647
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
47210
47648
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -47256,6 +47694,11 @@ var Group = class Group extends Object$1 {
|
|
|
47256
47694
|
"isCat": "misskey:isCat"
|
|
47257
47695
|
}
|
|
47258
47696
|
];
|
|
47697
|
+
if (options.context == null) {
|
|
47698
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
47699
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
47700
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
47701
|
+
}
|
|
47259
47702
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
47260
47703
|
if (options.context == null) {
|
|
47261
47704
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -47274,6 +47717,7 @@ var Group = class Group extends Object$1 {
|
|
|
47274
47717
|
isCompactable() {
|
|
47275
47718
|
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null && this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0) return false;
|
|
47276
47719
|
if (this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service != null && this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0) return false;
|
|
47720
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null && this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0) return false;
|
|
47277
47721
|
return super.isCompactable();
|
|
47278
47722
|
}
|
|
47279
47723
|
/**
|
|
@@ -47808,6 +48252,19 @@ var Group = class Group extends Object$1 {
|
|
|
47808
48252
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
47809
48253
|
}
|
|
47810
48254
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
48255
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
48256
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values["https://w3id.org/fep/6757#preferredLicense"];
|
|
48257
|
+
for (const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null ? [] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && "@list" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0] ? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]["@list"] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array) {
|
|
48258
|
+
if (v == null) continue;
|
|
48259
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
48260
|
+
if (typeof decoded === "undefined") {
|
|
48261
|
+
shouldCacheJsonLd = false;
|
|
48262
|
+
continue;
|
|
48263
|
+
}
|
|
48264
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
48265
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
48266
|
+
}
|
|
48267
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
47811
48268
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
47812
48269
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47813
48270
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -47949,6 +48406,11 @@ var Group = class Group extends Object$1 {
|
|
|
47949
48406
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
47950
48407
|
} : v);
|
|
47951
48408
|
if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
48409
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.map((v) => v instanceof URL ? {
|
|
48410
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
48411
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
48412
|
+
} : v);
|
|
48413
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
47952
48414
|
return proxy;
|
|
47953
48415
|
}
|
|
47954
48416
|
};
|
|
@@ -48028,6 +48490,7 @@ var Link = class Link {
|
|
|
48028
48490
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
48029
48491
|
#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [];
|
|
48030
48492
|
#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
48493
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = [];
|
|
48031
48494
|
/**
|
|
48032
48495
|
* Constructs a new instance of Link with the given values.
|
|
48033
48496
|
* @param values The values to initialize the instance with.
|
|
@@ -48073,6 +48536,8 @@ var Link = class Link {
|
|
|
48073
48536
|
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
48074
48537
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
48075
48538
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
48539
|
+
if ("licenses" in values && values.licenses != null) if (Array.isArray(values.licenses) && values.licenses.every((v) => v instanceof URL)) this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
48540
|
+
else throw new TypeError("The licenses must be an array of type URL.");
|
|
48076
48541
|
}
|
|
48077
48542
|
/**
|
|
48078
48543
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -48139,6 +48604,9 @@ var Link = class Link {
|
|
|
48139
48604
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
48140
48605
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
48141
48606
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
48607
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
48608
|
+
if ("licenses" in values && values.licenses != null) if (Array.isArray(values.licenses) && values.licenses.every((v) => v instanceof URL)) clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
48609
|
+
else throw new TypeError("The licenses must be an array of type URL.");
|
|
48142
48610
|
return clone;
|
|
48143
48611
|
}
|
|
48144
48612
|
/** The target resource pointed to by a {@link Link}.
|
|
@@ -48467,6 +48935,22 @@ var Link = class Link {
|
|
|
48467
48935
|
yield v;
|
|
48468
48936
|
}
|
|
48469
48937
|
}
|
|
48938
|
+
/** The copyright licenses for the linked resource, as defined by
|
|
48939
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
48940
|
+
* URI, such as <https://creativecommons.org/publicdomain/mark/1.0/>; license
|
|
48941
|
+
* names and SPDX short identifiers are not license URIs. Multiple values are
|
|
48942
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
48943
|
+
*
|
|
48944
|
+
* An empty list means the link carries no license metadata. Fedify does not
|
|
48945
|
+
* synthesize a default license for it.
|
|
48946
|
+
*
|
|
48947
|
+
* The `https://schema.org/license` and
|
|
48948
|
+
* `http://creativecommons.org/ns#license` properties are read as synonyms
|
|
48949
|
+
* when this property is absent, but only this property is written.
|
|
48950
|
+
*/
|
|
48951
|
+
get licenses() {
|
|
48952
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
48953
|
+
}
|
|
48470
48954
|
/**
|
|
48471
48955
|
* Converts this object to a JSON-LD structure.
|
|
48472
48956
|
* @param options The options to use.
|
|
@@ -48552,6 +49036,12 @@ var Link = class Link {
|
|
|
48552
49036
|
compactItems.push(item);
|
|
48553
49037
|
}
|
|
48554
49038
|
if (compactItems.length > 0) result["preview"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
49039
|
+
compactItems = [];
|
|
49040
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
49041
|
+
const item = formatIri(v);
|
|
49042
|
+
compactItems.push(item);
|
|
49043
|
+
}
|
|
49044
|
+
if (compactItems.length > 0) result["license"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
48555
49045
|
result["type"] = "Link";
|
|
48556
49046
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
48557
49047
|
result["@context"] = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"];
|
|
@@ -48667,6 +49157,17 @@ var Link = class Link {
|
|
|
48667
49157
|
array.push(element);
|
|
48668
49158
|
}
|
|
48669
49159
|
if (array.length > 0) values["https://www.w3.org/ns/activitystreams#preview"] = array;
|
|
49160
|
+
array = [];
|
|
49161
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
49162
|
+
let element = { "@id": formatIri(v) };
|
|
49163
|
+
if (Array.isArray(element)) {
|
|
49164
|
+
if (element.length < 1) continue;
|
|
49165
|
+
if (element.length == 1) element = element[0];
|
|
49166
|
+
}
|
|
49167
|
+
if (typeof element === "undefined") continue;
|
|
49168
|
+
array.push(element);
|
|
49169
|
+
}
|
|
49170
|
+
if (array.length > 0) values["http://purl.org/dc/terms/license"] = array;
|
|
48670
49171
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Link"];
|
|
48671
49172
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
48672
49173
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -48674,6 +49175,11 @@ var Link = class Link {
|
|
|
48674
49175
|
keepFreeFloatingNodes: true
|
|
48675
49176
|
});
|
|
48676
49177
|
let docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"];
|
|
49178
|
+
if (options.context == null) {
|
|
49179
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
49180
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
49181
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
49182
|
+
}
|
|
48677
49183
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
48678
49184
|
if (options.context == null) {
|
|
48679
49185
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -48688,6 +49194,7 @@ var Link = class Link {
|
|
|
48688
49194
|
}
|
|
48689
49195
|
isCompactable() {
|
|
48690
49196
|
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name != null && this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0) return false;
|
|
49197
|
+
if (this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null && this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) return false;
|
|
48691
49198
|
return true;
|
|
48692
49199
|
}
|
|
48693
49200
|
/**
|
|
@@ -48963,6 +49470,21 @@ var Link = class Link {
|
|
|
48963
49470
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
48964
49471
|
}
|
|
48965
49472
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
49473
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = [];
|
|
49474
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["http://purl.org/dc/terms/license"];
|
|
49475
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["https://schema.org/license"];
|
|
49476
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values["http://creativecommons.org/ns#license"];
|
|
49477
|
+
for (const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null ? [] : _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && "@list" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0] ? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]["@list"] : _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array) {
|
|
49478
|
+
if (v == null) continue;
|
|
49479
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
49480
|
+
if (typeof decoded === "undefined") {
|
|
49481
|
+
shouldCacheJsonLd = false;
|
|
49482
|
+
continue;
|
|
49483
|
+
}
|
|
49484
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
49485
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
49486
|
+
}
|
|
49487
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
48966
49488
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48967
49489
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48968
49490
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -49029,6 +49551,11 @@ var Link = class Link {
|
|
|
49029
49551
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
49030
49552
|
} : v);
|
|
49031
49553
|
if (_gCVTegXxWWCw6wWRxa1QF65zusg_preview.length > 1 || !("preview" in proxy) && _gCVTegXxWWCw6wWRxa1QF65zusg_preview.length > 0) proxy.previews = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
49554
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.map((v) => v instanceof URL ? {
|
|
49555
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
49556
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
49557
|
+
} : v);
|
|
49558
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1 || !("license" in proxy) && _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
49032
49559
|
return proxy;
|
|
49033
49560
|
}
|
|
49034
49561
|
};
|
|
@@ -49122,6 +49649,11 @@ var Hashtag = class Hashtag extends Link {
|
|
|
49122
49649
|
keepFreeFloatingNodes: true
|
|
49123
49650
|
});
|
|
49124
49651
|
let docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", { "Hashtag": "as:Hashtag" }];
|
|
49652
|
+
if (options.context == null) {
|
|
49653
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
49654
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
49655
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
49656
|
+
}
|
|
49125
49657
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
49126
49658
|
if (options.context == null) {
|
|
49127
49659
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -49327,6 +49859,11 @@ var Image = class Image extends Document {
|
|
|
49327
49859
|
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
49328
49860
|
"https://gotosocial.org/ns"
|
|
49329
49861
|
];
|
|
49862
|
+
if (options.context == null) {
|
|
49863
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
49864
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
49865
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
49866
|
+
}
|
|
49330
49867
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
49331
49868
|
if (options.context == null) {
|
|
49332
49869
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -49521,6 +50058,11 @@ var Offer = class Offer extends Activity {
|
|
|
49521
50058
|
"https://w3id.org/security/data-integrity/v1",
|
|
49522
50059
|
"https://gotosocial.org/ns"
|
|
49523
50060
|
];
|
|
50061
|
+
if (options.context == null) {
|
|
50062
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50063
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
50064
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
50065
|
+
}
|
|
49524
50066
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
49525
50067
|
if (options.context == null) {
|
|
49526
50068
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -49715,6 +50257,11 @@ var Invite = class Invite extends Offer {
|
|
|
49715
50257
|
"https://w3id.org/security/data-integrity/v1",
|
|
49716
50258
|
"https://gotosocial.org/ns"
|
|
49717
50259
|
];
|
|
50260
|
+
if (options.context == null) {
|
|
50261
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50262
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
50263
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
50264
|
+
}
|
|
49718
50265
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
49719
50266
|
if (options.context == null) {
|
|
49720
50267
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -49908,6 +50455,11 @@ var Join = class Join extends Activity {
|
|
|
49908
50455
|
"https://w3id.org/security/data-integrity/v1",
|
|
49909
50456
|
"https://gotosocial.org/ns"
|
|
49910
50457
|
];
|
|
50458
|
+
if (options.context == null) {
|
|
50459
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50460
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
50461
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
50462
|
+
}
|
|
49911
50463
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
49912
50464
|
if (options.context == null) {
|
|
49913
50465
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -50101,6 +50653,11 @@ var Leave = class Leave extends Activity {
|
|
|
50101
50653
|
"https://w3id.org/security/data-integrity/v1",
|
|
50102
50654
|
"https://gotosocial.org/ns"
|
|
50103
50655
|
];
|
|
50656
|
+
if (options.context == null) {
|
|
50657
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50658
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
50659
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
50660
|
+
}
|
|
50104
50661
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
50105
50662
|
if (options.context == null) {
|
|
50106
50663
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -50298,6 +50855,11 @@ var Like = class Like extends Activity {
|
|
|
50298
50855
|
"Emoji": "toot:Emoji"
|
|
50299
50856
|
}
|
|
50300
50857
|
];
|
|
50858
|
+
if (options.context == null) {
|
|
50859
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50860
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
50861
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
50862
|
+
}
|
|
50301
50863
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
50302
50864
|
if (options.context == null) {
|
|
50303
50865
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -50490,6 +51052,11 @@ var Listen = class Listen extends Activity {
|
|
|
50490
51052
|
"https://w3id.org/security/data-integrity/v1",
|
|
50491
51053
|
"https://gotosocial.org/ns"
|
|
50492
51054
|
];
|
|
51055
|
+
if (options.context == null) {
|
|
51056
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
51057
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
51058
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
51059
|
+
}
|
|
50493
51060
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
50494
51061
|
if (options.context == null) {
|
|
50495
51062
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -50688,6 +51255,11 @@ var Mention = class Mention extends Link {
|
|
|
50688
51255
|
keepFreeFloatingNodes: true
|
|
50689
51256
|
});
|
|
50690
51257
|
let docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
51258
|
+
if (options.context == null) {
|
|
51259
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
51260
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
51261
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
51262
|
+
}
|
|
50691
51263
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
50692
51264
|
if (options.context == null) {
|
|
50693
51265
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -50879,6 +51451,11 @@ var Move = class Move extends Activity {
|
|
|
50879
51451
|
"https://w3id.org/security/data-integrity/v1",
|
|
50880
51452
|
"https://gotosocial.org/ns"
|
|
50881
51453
|
];
|
|
51454
|
+
if (options.context == null) {
|
|
51455
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
51456
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
51457
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
51458
|
+
}
|
|
50882
51459
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
50883
51460
|
if (options.context == null) {
|
|
50884
51461
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -51703,6 +52280,11 @@ var Note = class Note extends Object$1 {
|
|
|
51703
52280
|
}
|
|
51704
52281
|
}
|
|
51705
52282
|
];
|
|
52283
|
+
if (options.context == null) {
|
|
52284
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
52285
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
52286
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
52287
|
+
}
|
|
51706
52288
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
51707
52289
|
if (options.context == null) {
|
|
51708
52290
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -52354,6 +52936,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
52354
52936
|
}
|
|
52355
52937
|
}
|
|
52356
52938
|
];
|
|
52939
|
+
if (options.context == null) {
|
|
52940
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
52941
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
52942
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
52943
|
+
}
|
|
52357
52944
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
52358
52945
|
if (options.context == null) {
|
|
52359
52946
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -52639,6 +53226,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52639
53226
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
52640
53227
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
52641
53228
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
53229
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
52642
53230
|
/**
|
|
52643
53231
|
* Constructs a new instance of Organization with the given values.
|
|
52644
53232
|
* @param values The values to initialize the instance with.
|
|
@@ -52760,6 +53348,8 @@ var Organization = class Organization extends Object$1 {
|
|
|
52760
53348
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
52761
53349
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
52762
53350
|
else throw new TypeError("The cat must be of type boolean.");
|
|
53351
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
53352
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
52763
53353
|
}
|
|
52764
53354
|
/**
|
|
52765
53355
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -52941,6 +53531,9 @@ var Organization = class Organization extends Object$1 {
|
|
|
52941
53531
|
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
52942
53532
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
52943
53533
|
else throw new TypeError("The cat must be of type boolean.");
|
|
53534
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
53535
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
53536
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
52944
53537
|
return clone;
|
|
52945
53538
|
}
|
|
52946
53539
|
/** A short username which may be used to refer to the actor,
|
|
@@ -56675,6 +57268,18 @@ var Organization = class Organization extends Object$1 {
|
|
|
56675
57268
|
if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1) return null;
|
|
56676
57269
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
56677
57270
|
}
|
|
57271
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
57272
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
57273
|
+
* as the default `license` of a new object and let the user choose another.
|
|
57274
|
+
*
|
|
57275
|
+
* This is not a fallback license: an object without its own `license` is not
|
|
57276
|
+
* licensed under its author's preferred license.
|
|
57277
|
+
*/
|
|
57278
|
+
get preferredLicense() {
|
|
57279
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
57280
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
57281
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
57282
|
+
}
|
|
56678
57283
|
/**
|
|
56679
57284
|
* Converts this object to a JSON-LD structure.
|
|
56680
57285
|
* @param options The options to use.
|
|
@@ -56946,6 +57551,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
56946
57551
|
compactItems.push(item);
|
|
56947
57552
|
}
|
|
56948
57553
|
if (compactItems.length > 0) result["isCat"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
57554
|
+
compactItems = [];
|
|
57555
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
57556
|
+
const item = formatIri(v);
|
|
57557
|
+
compactItems.push(item);
|
|
57558
|
+
}
|
|
57559
|
+
if (compactItems.length > 0) result["preferredLicense"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
56949
57560
|
result["type"] = "Organization";
|
|
56950
57561
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
56951
57562
|
result["@context"] = [
|
|
@@ -57268,6 +57879,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
57268
57879
|
array.push(element);
|
|
57269
57880
|
}
|
|
57270
57881
|
if (array.length > 0) values["https://misskey-hub.net/ns#isCat"] = array;
|
|
57882
|
+
array = [];
|
|
57883
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
57884
|
+
let element = { "@id": formatIri(v) };
|
|
57885
|
+
if (Array.isArray(element)) {
|
|
57886
|
+
if (element.length < 1) continue;
|
|
57887
|
+
if (element.length == 1) element = element[0];
|
|
57888
|
+
}
|
|
57889
|
+
if (typeof element === "undefined") continue;
|
|
57890
|
+
array.push(element);
|
|
57891
|
+
}
|
|
57892
|
+
if (array.length > 0) values["https://w3id.org/fep/6757#preferredLicense"] = array;
|
|
57271
57893
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Organization"];
|
|
57272
57894
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
57273
57895
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -57319,6 +57941,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
57319
57941
|
"isCat": "misskey:isCat"
|
|
57320
57942
|
}
|
|
57321
57943
|
];
|
|
57944
|
+
if (options.context == null) {
|
|
57945
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
57946
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
57947
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
57948
|
+
}
|
|
57322
57949
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
57323
57950
|
if (options.context == null) {
|
|
57324
57951
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -57337,6 +57964,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
57337
57964
|
isCompactable() {
|
|
57338
57965
|
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null && this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0) return false;
|
|
57339
57966
|
if (this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service != null && this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0) return false;
|
|
57967
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null && this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0) return false;
|
|
57340
57968
|
return super.isCompactable();
|
|
57341
57969
|
}
|
|
57342
57970
|
/**
|
|
@@ -57871,6 +58499,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
57871
58499
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
57872
58500
|
}
|
|
57873
58501
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
58502
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
58503
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values["https://w3id.org/fep/6757#preferredLicense"];
|
|
58504
|
+
for (const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null ? [] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && "@list" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0] ? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]["@list"] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array) {
|
|
58505
|
+
if (v == null) continue;
|
|
58506
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
58507
|
+
if (typeof decoded === "undefined") {
|
|
58508
|
+
shouldCacheJsonLd = false;
|
|
58509
|
+
continue;
|
|
58510
|
+
}
|
|
58511
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
58512
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
58513
|
+
}
|
|
58514
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
57874
58515
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
57875
58516
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
57876
58517
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -58012,6 +58653,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
58012
58653
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
58013
58654
|
} : v);
|
|
58014
58655
|
if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
58656
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.map((v) => v instanceof URL ? {
|
|
58657
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
58658
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
58659
|
+
} : v);
|
|
58660
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
58015
58661
|
return proxy;
|
|
58016
58662
|
}
|
|
58017
58663
|
};
|
|
@@ -58113,6 +58759,11 @@ var Page = class Page extends Document {
|
|
|
58113
58759
|
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
58114
58760
|
"https://gotosocial.org/ns"
|
|
58115
58761
|
];
|
|
58762
|
+
if (options.context == null) {
|
|
58763
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
58764
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
58765
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
58766
|
+
}
|
|
58116
58767
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
58117
58768
|
if (options.context == null) {
|
|
58118
58769
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -58276,6 +58927,7 @@ var Person = class Person extends Object$1 {
|
|
|
58276
58927
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
58277
58928
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
58278
58929
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
58930
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
58279
58931
|
/**
|
|
58280
58932
|
* Constructs a new instance of Person with the given values.
|
|
58281
58933
|
* @param values The values to initialize the instance with.
|
|
@@ -58397,6 +59049,8 @@ var Person = class Person extends Object$1 {
|
|
|
58397
59049
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
58398
59050
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
58399
59051
|
else throw new TypeError("The cat must be of type boolean.");
|
|
59052
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
59053
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
58400
59054
|
}
|
|
58401
59055
|
/**
|
|
58402
59056
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -58578,6 +59232,9 @@ var Person = class Person extends Object$1 {
|
|
|
58578
59232
|
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
58579
59233
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
58580
59234
|
else throw new TypeError("The cat must be of type boolean.");
|
|
59235
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
59236
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
59237
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
58581
59238
|
return clone;
|
|
58582
59239
|
}
|
|
58583
59240
|
/** A short username which may be used to refer to the actor,
|
|
@@ -62312,6 +62969,18 @@ var Person = class Person extends Object$1 {
|
|
|
62312
62969
|
if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1) return null;
|
|
62313
62970
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
62314
62971
|
}
|
|
62972
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
62973
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
62974
|
+
* as the default `license` of a new object and let the user choose another.
|
|
62975
|
+
*
|
|
62976
|
+
* This is not a fallback license: an object without its own `license` is not
|
|
62977
|
+
* licensed under its author's preferred license.
|
|
62978
|
+
*/
|
|
62979
|
+
get preferredLicense() {
|
|
62980
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
62981
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
62982
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
62983
|
+
}
|
|
62315
62984
|
/**
|
|
62316
62985
|
* Converts this object to a JSON-LD structure.
|
|
62317
62986
|
* @param options The options to use.
|
|
@@ -62583,6 +63252,12 @@ var Person = class Person extends Object$1 {
|
|
|
62583
63252
|
compactItems.push(item);
|
|
62584
63253
|
}
|
|
62585
63254
|
if (compactItems.length > 0) result["isCat"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
63255
|
+
compactItems = [];
|
|
63256
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
63257
|
+
const item = formatIri(v);
|
|
63258
|
+
compactItems.push(item);
|
|
63259
|
+
}
|
|
63260
|
+
if (compactItems.length > 0) result["preferredLicense"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
62586
63261
|
result["type"] = "Person";
|
|
62587
63262
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
62588
63263
|
result["@context"] = [
|
|
@@ -62905,6 +63580,17 @@ var Person = class Person extends Object$1 {
|
|
|
62905
63580
|
array.push(element);
|
|
62906
63581
|
}
|
|
62907
63582
|
if (array.length > 0) values["https://misskey-hub.net/ns#isCat"] = array;
|
|
63583
|
+
array = [];
|
|
63584
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
63585
|
+
let element = { "@id": formatIri(v) };
|
|
63586
|
+
if (Array.isArray(element)) {
|
|
63587
|
+
if (element.length < 1) continue;
|
|
63588
|
+
if (element.length == 1) element = element[0];
|
|
63589
|
+
}
|
|
63590
|
+
if (typeof element === "undefined") continue;
|
|
63591
|
+
array.push(element);
|
|
63592
|
+
}
|
|
63593
|
+
if (array.length > 0) values["https://w3id.org/fep/6757#preferredLicense"] = array;
|
|
62908
63594
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Person"];
|
|
62909
63595
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
62910
63596
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -62956,6 +63642,11 @@ var Person = class Person extends Object$1 {
|
|
|
62956
63642
|
"isCat": "misskey:isCat"
|
|
62957
63643
|
}
|
|
62958
63644
|
];
|
|
63645
|
+
if (options.context == null) {
|
|
63646
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
63647
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
63648
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
63649
|
+
}
|
|
62959
63650
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
62960
63651
|
if (options.context == null) {
|
|
62961
63652
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -62974,6 +63665,7 @@ var Person = class Person extends Object$1 {
|
|
|
62974
63665
|
isCompactable() {
|
|
62975
63666
|
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null && this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0) return false;
|
|
62976
63667
|
if (this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service != null && this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0) return false;
|
|
63668
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null && this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0) return false;
|
|
62977
63669
|
return super.isCompactable();
|
|
62978
63670
|
}
|
|
62979
63671
|
/**
|
|
@@ -63508,6 +64200,19 @@ var Person = class Person extends Object$1 {
|
|
|
63508
64200
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
63509
64201
|
}
|
|
63510
64202
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
64203
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
64204
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values["https://w3id.org/fep/6757#preferredLicense"];
|
|
64205
|
+
for (const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null ? [] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && "@list" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0] ? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]["@list"] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array) {
|
|
64206
|
+
if (v == null) continue;
|
|
64207
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
64208
|
+
if (typeof decoded === "undefined") {
|
|
64209
|
+
shouldCacheJsonLd = false;
|
|
64210
|
+
continue;
|
|
64211
|
+
}
|
|
64212
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
64213
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
64214
|
+
}
|
|
64215
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
63511
64216
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
63512
64217
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
63513
64218
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -63649,6 +64354,11 @@ var Person = class Person extends Object$1 {
|
|
|
63649
64354
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
63650
64355
|
} : v);
|
|
63651
64356
|
if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
64357
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.map((v) => v instanceof URL ? {
|
|
64358
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
64359
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
64360
|
+
} : v);
|
|
64361
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
63652
64362
|
return proxy;
|
|
63653
64363
|
}
|
|
63654
64364
|
};
|
|
@@ -63955,6 +64665,11 @@ var Place = class Place extends Object$1 {
|
|
|
63955
64665
|
"https://w3id.org/security/data-integrity/v1",
|
|
63956
64666
|
"https://gotosocial.org/ns"
|
|
63957
64667
|
];
|
|
64668
|
+
if (options.context == null) {
|
|
64669
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
64670
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
64671
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
64672
|
+
}
|
|
63958
64673
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
63959
64674
|
if (options.context == null) {
|
|
63960
64675
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -64535,6 +65250,11 @@ var Profile = class Profile extends Object$1 {
|
|
|
64535
65250
|
"https://w3id.org/security/data-integrity/v1",
|
|
64536
65251
|
"https://gotosocial.org/ns"
|
|
64537
65252
|
];
|
|
65253
|
+
if (options.context == null) {
|
|
65254
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
65255
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
65256
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
65257
|
+
}
|
|
64538
65258
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
64539
65259
|
if (options.context == null) {
|
|
64540
65260
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -65894,6 +66614,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
65894
66614
|
}
|
|
65895
66615
|
}
|
|
65896
66616
|
];
|
|
66617
|
+
if (options.context == null) {
|
|
66618
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
66619
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
66620
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
66621
|
+
}
|
|
65897
66622
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
65898
66623
|
if (options.context == null) {
|
|
65899
66624
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -66247,6 +66972,11 @@ var Read = class Read extends Activity {
|
|
|
66247
66972
|
"https://w3id.org/security/data-integrity/v1",
|
|
66248
66973
|
"https://gotosocial.org/ns"
|
|
66249
66974
|
];
|
|
66975
|
+
if (options.context == null) {
|
|
66976
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
66977
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
66978
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
66979
|
+
}
|
|
66250
66980
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
66251
66981
|
if (options.context == null) {
|
|
66252
66982
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -66440,6 +67170,11 @@ var Reject = class Reject extends Activity {
|
|
|
66440
67170
|
"https://w3id.org/security/data-integrity/v1",
|
|
66441
67171
|
"https://gotosocial.org/ns"
|
|
66442
67172
|
];
|
|
67173
|
+
if (options.context == null) {
|
|
67174
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
67175
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
67176
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
67177
|
+
}
|
|
66443
67178
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
66444
67179
|
if (options.context == null) {
|
|
66445
67180
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -67612,6 +68347,11 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
67612
68347
|
"https://w3id.org/security/data-integrity/v1",
|
|
67613
68348
|
"https://gotosocial.org/ns"
|
|
67614
68349
|
];
|
|
68350
|
+
if (options.context == null) {
|
|
68351
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
68352
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
68353
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
68354
|
+
}
|
|
67615
68355
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
67616
68356
|
if (options.context == null) {
|
|
67617
68357
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -67886,6 +68626,11 @@ var Remove = class Remove extends Activity {
|
|
|
67886
68626
|
"https://w3id.org/security/data-integrity/v1",
|
|
67887
68627
|
"https://gotosocial.org/ns"
|
|
67888
68628
|
];
|
|
68629
|
+
if (options.context == null) {
|
|
68630
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
68631
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
68632
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
68633
|
+
}
|
|
67889
68634
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
67890
68635
|
if (options.context == null) {
|
|
67891
68636
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -68049,6 +68794,7 @@ var Service = class Service extends Object$1 {
|
|
|
68049
68794
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
68050
68795
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
68051
68796
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
68797
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
68052
68798
|
/**
|
|
68053
68799
|
* Constructs a new instance of Service with the given values.
|
|
68054
68800
|
* @param values The values to initialize the instance with.
|
|
@@ -68170,6 +68916,8 @@ var Service = class Service extends Object$1 {
|
|
|
68170
68916
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
68171
68917
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
68172
68918
|
else throw new TypeError("The cat must be of type boolean.");
|
|
68919
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
68920
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
68173
68921
|
}
|
|
68174
68922
|
/**
|
|
68175
68923
|
* Clones this instance, optionally updating it with the given values.
|
|
@@ -68351,6 +69099,9 @@ var Service = class Service extends Object$1 {
|
|
|
68351
69099
|
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
68352
69100
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
68353
69101
|
else throw new TypeError("The cat must be of type boolean.");
|
|
69102
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
69103
|
+
if ("preferredLicense" in values && values.preferredLicense != null) if (values.preferredLicense instanceof URL) clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
69104
|
+
else throw new TypeError("The preferredLicense must be of type URL.");
|
|
68354
69105
|
return clone;
|
|
68355
69106
|
}
|
|
68356
69107
|
/** A short username which may be used to refer to the actor,
|
|
@@ -72085,6 +72836,18 @@ var Service = class Service extends Object$1 {
|
|
|
72085
72836
|
if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1) return null;
|
|
72086
72837
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
72087
72838
|
}
|
|
72839
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
72840
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
72841
|
+
* as the default `license` of a new object and let the user choose another.
|
|
72842
|
+
*
|
|
72843
|
+
* This is not a fallback license: an object without its own `license` is not
|
|
72844
|
+
* licensed under its author's preferred license.
|
|
72845
|
+
*/
|
|
72846
|
+
get preferredLicense() {
|
|
72847
|
+
if (this._warning != null) getLogger(this._warning.category).warn(this._warning.message, this._warning.values);
|
|
72848
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
72849
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
72850
|
+
}
|
|
72088
72851
|
/**
|
|
72089
72852
|
* Converts this object to a JSON-LD structure.
|
|
72090
72853
|
* @param options The options to use.
|
|
@@ -72356,6 +73119,12 @@ var Service = class Service extends Object$1 {
|
|
|
72356
73119
|
compactItems.push(item);
|
|
72357
73120
|
}
|
|
72358
73121
|
if (compactItems.length > 0) result["isCat"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
73122
|
+
compactItems = [];
|
|
73123
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
73124
|
+
const item = formatIri(v);
|
|
73125
|
+
compactItems.push(item);
|
|
73126
|
+
}
|
|
73127
|
+
if (compactItems.length > 0) result["preferredLicense"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
72359
73128
|
result["type"] = "Service";
|
|
72360
73129
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
72361
73130
|
result["@context"] = [
|
|
@@ -72678,6 +73447,17 @@ var Service = class Service extends Object$1 {
|
|
|
72678
73447
|
array.push(element);
|
|
72679
73448
|
}
|
|
72680
73449
|
if (array.length > 0) values["https://misskey-hub.net/ns#isCat"] = array;
|
|
73450
|
+
array = [];
|
|
73451
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
73452
|
+
let element = { "@id": formatIri(v) };
|
|
73453
|
+
if (Array.isArray(element)) {
|
|
73454
|
+
if (element.length < 1) continue;
|
|
73455
|
+
if (element.length == 1) element = element[0];
|
|
73456
|
+
}
|
|
73457
|
+
if (typeof element === "undefined") continue;
|
|
73458
|
+
array.push(element);
|
|
73459
|
+
}
|
|
73460
|
+
if (array.length > 0) values["https://w3id.org/fep/6757#preferredLicense"] = array;
|
|
72681
73461
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Service"];
|
|
72682
73462
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
72683
73463
|
if (options.format === "expand") return await jsonld.expand(values, {
|
|
@@ -72729,6 +73509,11 @@ var Service = class Service extends Object$1 {
|
|
|
72729
73509
|
"isCat": "misskey:isCat"
|
|
72730
73510
|
}
|
|
72731
73511
|
];
|
|
73512
|
+
if (options.context == null) {
|
|
73513
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
73514
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
73515
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
73516
|
+
}
|
|
72732
73517
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
72733
73518
|
if (options.context == null) {
|
|
72734
73519
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -72747,6 +73532,7 @@ var Service = class Service extends Object$1 {
|
|
|
72747
73532
|
isCompactable() {
|
|
72748
73533
|
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername != null && this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.length > 0) return false;
|
|
72749
73534
|
if (this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service != null && this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0) return false;
|
|
73535
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null && this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0) return false;
|
|
72750
73536
|
return super.isCompactable();
|
|
72751
73537
|
}
|
|
72752
73538
|
/**
|
|
@@ -73281,6 +74067,19 @@ var Service = class Service extends Object$1 {
|
|
|
73281
74067
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
73282
74068
|
}
|
|
73283
74069
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
74070
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [];
|
|
74071
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values["https://w3id.org/fep/6757#preferredLicense"];
|
|
74072
|
+
for (const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null ? [] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && "@list" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0] ? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]["@list"] : _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array) {
|
|
74073
|
+
if (v == null) continue;
|
|
74074
|
+
const decoded = isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)) : void 0;
|
|
74075
|
+
if (typeof decoded === "undefined") {
|
|
74076
|
+
shouldCacheJsonLd = false;
|
|
74077
|
+
continue;
|
|
74078
|
+
}
|
|
74079
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
74080
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
74081
|
+
}
|
|
74082
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
73284
74083
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
73285
74084
|
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
73286
74085
|
if (cacheJsonLd != null && cacheJsonLd !== expanded) {
|
|
@@ -73422,6 +74221,11 @@ var Service = class Service extends Object$1 {
|
|
|
73422
74221
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
73423
74222
|
} : v);
|
|
73424
74223
|
if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
74224
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.map((v) => v instanceof URL ? {
|
|
74225
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
74226
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
74227
|
+
} : v);
|
|
74228
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
73425
74229
|
return proxy;
|
|
73426
74230
|
}
|
|
73427
74231
|
};
|
|
@@ -73639,6 +74443,11 @@ var Source = class {
|
|
|
73639
74443
|
keepFreeFloatingNodes: true
|
|
73640
74444
|
});
|
|
73641
74445
|
let docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
74446
|
+
if (options.context == null) {
|
|
74447
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
74448
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
74449
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
74450
|
+
}
|
|
73642
74451
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
73643
74452
|
if (options.context == null) {
|
|
73644
74453
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -73866,6 +74675,11 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
73866
74675
|
"https://w3id.org/security/data-integrity/v1",
|
|
73867
74676
|
"https://gotosocial.org/ns"
|
|
73868
74677
|
];
|
|
74678
|
+
if (options.context == null) {
|
|
74679
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
74680
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
74681
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
74682
|
+
}
|
|
73869
74683
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
73870
74684
|
if (options.context == null) {
|
|
73871
74685
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -74059,6 +74873,11 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
74059
74873
|
"https://w3id.org/security/data-integrity/v1",
|
|
74060
74874
|
"https://gotosocial.org/ns"
|
|
74061
74875
|
];
|
|
74876
|
+
if (options.context == null) {
|
|
74877
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
74878
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
74879
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
74880
|
+
}
|
|
74062
74881
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
74063
74882
|
if (options.context == null) {
|
|
74064
74883
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -74350,6 +75169,11 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
74350
75169
|
"https://w3id.org/security/data-integrity/v1",
|
|
74351
75170
|
"https://gotosocial.org/ns"
|
|
74352
75171
|
];
|
|
75172
|
+
if (options.context == null) {
|
|
75173
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75174
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
75175
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
75176
|
+
}
|
|
74353
75177
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
74354
75178
|
if (options.context == null) {
|
|
74355
75179
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -74589,6 +75413,11 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
74589
75413
|
"https://w3id.org/security/data-integrity/v1",
|
|
74590
75414
|
"https://gotosocial.org/ns"
|
|
74591
75415
|
];
|
|
75416
|
+
if (options.context == null) {
|
|
75417
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75418
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
75419
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
75420
|
+
}
|
|
74592
75421
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
74593
75422
|
if (options.context == null) {
|
|
74594
75423
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -74796,6 +75625,11 @@ var Undo = class Undo extends Activity {
|
|
|
74796
75625
|
"Emoji": "toot:Emoji"
|
|
74797
75626
|
}
|
|
74798
75627
|
];
|
|
75628
|
+
if (options.context == null) {
|
|
75629
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75630
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
75631
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
75632
|
+
}
|
|
74799
75633
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
74800
75634
|
if (options.context == null) {
|
|
74801
75635
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -75051,6 +75885,11 @@ var Update = class Update extends Activity {
|
|
|
75051
75885
|
}
|
|
75052
75886
|
}
|
|
75053
75887
|
];
|
|
75888
|
+
if (options.context == null) {
|
|
75889
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75890
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
75891
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
75892
|
+
}
|
|
75054
75893
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
75055
75894
|
if (options.context == null) {
|
|
75056
75895
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -75259,6 +76098,11 @@ var Video = class Video extends Document {
|
|
|
75259
76098
|
{ "digestMultibase": "https://www.w3.org/ns/credentials/v2#digestMultibase" },
|
|
75260
76099
|
"https://gotosocial.org/ns"
|
|
75261
76100
|
];
|
|
76101
|
+
if (options.context == null) {
|
|
76102
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76103
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
76104
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
76105
|
+
}
|
|
75262
76106
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
75263
76107
|
if (options.context == null) {
|
|
75264
76108
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -75451,6 +76295,11 @@ var View = class View extends Activity {
|
|
|
75451
76295
|
"https://w3id.org/security/data-integrity/v1",
|
|
75452
76296
|
"https://gotosocial.org/ns"
|
|
75453
76297
|
];
|
|
76298
|
+
if (options.context == null) {
|
|
76299
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76300
|
+
const additionalContexts = getExtraContexts(values).filter((context) => !currentContexts.includes(context));
|
|
76301
|
+
if (additionalContexts.length > 0) docContext = [...currentContexts, ...additionalContexts];
|
|
76302
|
+
}
|
|
75454
76303
|
let compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
75455
76304
|
if (options.context == null) {
|
|
75456
76305
|
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
@@ -75732,4 +76581,4 @@ function getEntityTypeById(id) {
|
|
|
75732
76581
|
return entityTypeIds.get(typeof id === "string" ? id : id?.href);
|
|
75733
76582
|
}
|
|
75734
76583
|
//#endregion
|
|
75735
|
-
export {
|
|
76584
|
+
export { __exportAll as $, Object$1 as A, QuoteAuthorization as B, Intent as C, Measure as D, Link as E, Person as F, Tombstone as G, Reject as H, Place as I, Video as J, Translation as K, PropertyValue as L, OrderedCollection as M, OrderedCollectionPage as N, Multikey as O, Organization as P, __commonJSMin as Q, Proposal as R, Image as S, InteractionRule as T, Service as U, QuoteRequest as V, Source as W, isEntityType as X, getEntityTypeById as Y, vocab_exports as Z, FeaturedCollection as _, Application as a, Group as b, CollectionPage as c, CryptographicKey as d, __toESM as et, Delete as f, FeatureRequest as g, FeatureAuthorization as h, Announce as i, Offer as j, Note as k, Commitment as l, Endpoints as m, Activity as n, Article as o, Document as p, Update as q, Agreement as r, Collection as s, Accept as t, Create as u, FeaturedItem as v, InteractionPolicy as w, Hashtag as x, Follow as y, Question as z };
|